Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
FP
Stacked Borrows Coq
Commits
7d4f09e3
Commit
7d4f09e3
authored
Jul 06, 2019
by
Ralf Jung
Browse files
Merge branch 'master' of gitlab.mpi-sws.org:FP/stacked-borrows
parents
3c6012c2
18c86cec
Changes
2
Show whitespace changes
Inline
Side-by-side
theories/sim/cmra.v
View file @
7d4f09e3
...
...
@@ -298,3 +298,6 @@ Proof. intros Eq. rewrite lookup_core Eq /core /= core_id //. Qed.
Definition
res_callState
(
c
:
call_id
)
(
cs
:
call_state
)
:
resUR
:=
((
ε
,
{
[
c
:=
to_callStateR
cs
]
}
),
ε
).
Definition
res_mapsto
l
s
stk
:
resUR
:=
(
ε
,
{
[
l
:=
to_locStateR
(
lsLocal
s
stk
)]
}
).
theories/sim/refl_step.v
View file @
7d4f09e3
...
...
@@ -7,9 +7,6 @@ Set Default Proof Using "Type".
(
**
MEM
STEP
-----------------------------------------------------------------*
)
Definition
res_alloc_local
l
s
stk
:
resUR
:=
(
ε
,
{
[
l
:=
to_locStateR
(
lsLocal
s
stk
)]
}
).
Lemma
sim_body_alloc_local
fs
ft
r
n
T
σ
s
σ
t
Φ
:
let
l
:=
(
fresh_block
σ
t
.(
shp
),
0
)
in
let
t
:=
(
Tagged
σ
t
.(
snp
))
in
...
...
@@ -19,7 +16,7 @@ Lemma sim_body_alloc_local fs ft r n T σs σt Φ :
let
σ
t
'
:=
mkState
(
init_mem
l
(
tsize
T
)
σ
t
.(
shp
))
(
init_stacks
σ
t
.(
sst
)
l
(
tsize
T
)
t
)
σ
t
.(
scs
)
(
S
σ
t
.(
snp
))
σ
t
.(
snc
)
in
let
r
'
:
resUR
:=
res_
alloc_local
l
ScPoison
(
init_stack
t
)
in
let
r
'
:
resUR
:=
res_
mapsto
l
ScPoison
(
init_stack
t
)
in
Φ
(
r
⋅
r
'
)
n
(
PlaceR
l
t
T
)
σ
s
'
(
PlaceR
l
t
T
)
σ
t
'
:
Prop
→
r
⊨
{
n
,
fs
,
ft
}
(
Alloc
T
,
σ
s
)
≥
(
Alloc
T
,
σ
t
)
:
Φ
.
Proof
.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment