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
Joshua Yanovski
iris-coq
Commits
962e8779
Commit
962e8779
authored
Feb 13, 2016
by
Ralf Jung
Browse files
wp_alloc fails to work
parent
036278e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
heap_lang/heap.v
View file @
962e8779
...
...
@@ -65,6 +65,17 @@ Section heap.
ownP
σ
⊑
pvs
N
N
(
∃
γ
,
heap_ctx
HeapI
γ
N
∧
heap_own
HeapI
γ
σ
).
Proof
.
by
rewrite
-{
1
}
[
σ
]
from_to_heap
-
(
auth_alloc
_
N
).
Qed
.
Lemma
wp_alloc_heap
N
E
γ
σ
e
v
P
Q
:
nclose
N
⊆
E
→
to_val
e
=
Some
v
→
P
⊑
heap_ctx
HeapI
γ
N
→
P
⊑
(
heap_own
HeapI
γ
σ
★
▷
(
∀
l
,
σ
!!
l
=
None
∧
heap_own
HeapI
γ
(
<
[
l
:=
v
]
>
σ
)
-
★
Q
(
LocV
l
)))
→
P
⊑
wp
E
(
Alloc
e
)
Q
.
Proof
.
rewrite
/
heap_ctx
/
heap_own
.
intros
HN
Hval
Hl
Hctx
HP
.
Fail
eapply
(
auth_fsa
(
heap_inv
HeapI
)
(
wp_fsa
_
_
)
(
alter
(
λ
_
,
Excl
v
)
l
)).
Abort
.
Lemma
wp_load_heap
N
E
γ
σ
l
v
P
Q
:
nclose
N
⊆
E
→
σ
!!
l
=
Some
v
→
...
...
Write
Preview
Markdown
is supported
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