Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Simcha van Collem
Iris
Commits
b6b2f174
Commit
b6b2f174
authored
9 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
complete heap.v
parent
042e24dc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
heap_lang/heap.v
+20
-3
20 additions, 3 deletions
heap_lang/heap.v
with
20 additions
and
3 deletions
heap_lang/heap.v
+
20
−
3
View file @
b6b2f174
...
@@ -118,9 +118,13 @@ Section heap.
...
@@ -118,9 +118,13 @@ Section heap.
P
⊑
(
▷
(
∀
l
,
heap_mapsto
HeapI
γ
l
v
-★
Q
(
LocV
l
)))
→
P
⊑
(
▷
(
∀
l
,
heap_mapsto
HeapI
γ
l
v
-★
Q
(
LocV
l
)))
→
P
⊑
wp
E
(
Alloc
e
)
Q
.
P
⊑
wp
E
(
Alloc
e
)
Q
.
Proof
.
Proof
.
intros
HN
?
?
HP
.
eapply
wp_alloc_heap
with
(
σ
:=
∅
);
try
eassumption
.
intros
HN
?
Hctx
HP
.
rewrite
-
(
right_id
True
%
I
(
★
)
%
I
(
P
))
(
auth_empty
γ
)
pvs_frame_l
.
rewrite
HP
.
Fail
rewrite
left_id
.
apply
wp_strip_pvs
.
eapply
wp_alloc_heap
with
(
σ
:=
∅
);
try
eassumption
.
Abort
.
{
eauto
with
I
.
}
rewrite
HP
comm
.
apply
sep_mono
.
-
rewrite
/
heap_own
.
f_equiv
.
apply
:
map_eq
=>
l
.
by
rewrite
lookup_fmap
!
lookup_empty
.
-
apply
later_mono
,
forall_mono
=>
l
.
apply
wand_mono
;
last
done
.
eauto
with
I
.
Qed
.
Lemma
wp_load_heap
N
E
γ
σ
l
v
P
Q
:
Lemma
wp_load_heap
N
E
γ
σ
l
v
P
Q
:
σ
!!
l
=
Some
v
→
σ
!!
l
=
Some
v
→
...
@@ -276,4 +280,17 @@ Section heap.
...
@@ -276,4 +280,17 @@ Section heap.
-
rewrite
/
from_heap
/
to_heap
lookup_insert_ne
//
!
lookup_omap
!
lookup_op
!
lookup_fmap
.
-
rewrite
/
from_heap
/
to_heap
lookup_insert_ne
//
!
lookup_omap
!
lookup_op
!
lookup_fmap
.
rewrite
lookup_insert_ne
//.
rewrite
lookup_insert_ne
//.
Qed
.
Qed
.
Lemma
wp_cas_suc
N
E
γ
l
e1
v1
e2
v2
P
Q
:
to_val
e1
=
Some
v1
→
to_val
e2
=
Some
v2
→
nclose
N
⊆
E
→
P
⊑
heap_ctx
HeapI
γ
N
→
P
⊑
(
heap_mapsto
HeapI
γ
l
v1
★
▷
(
heap_mapsto
HeapI
γ
l
v2
-★
Q
'
true
))
→
P
⊑
wp
E
(
Cas
(
Loc
l
)
e1
e2
)
Q
.
Proof
.
rewrite
/
heap_mapsto
=>????
HP
.
eapply
wp_cas_suc_heap
;
try
eassumption
;
last
first
.
-
rewrite
HP
.
apply
sep_mono
;
first
done
.
by
rewrite
insert_singleton
.
-
by
simplify_map_equality
.
Qed
.
End
heap
.
End
heap
.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment