Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris-coq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Marianna Rapoport
iris-coq
Commits
58d1d6c9
Commit
58d1d6c9
authored
9 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Use some wp tactics in heap example.
parent
8f710abf
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/tests.v
+8
-9
8 additions, 9 deletions
heap_lang/tests.v
with
8 additions
and
9 deletions
heap_lang/tests.v
+
8
−
9
View file @
58d1d6c9
...
...
@@ -31,18 +31,17 @@ Section LiftingTests.
Goal
∀
γh
N
,
heap_ctx
HeapI
γh
N
⊑
wp
N
e
(
λ
v
,
v
=
'
2
)
.
Proof
.
move
=>
γh
N
.
rewrite
/
e
.
rewrite
-
(
wp_bindi
(
LetCtx
_
_))
.
eapply
wp_alloc
;
eauto
;
[]
.
wp_focus
(
ref
'
1
)
%
L
.
eapply
wp_alloc
;
eauto
;
[]
.
rewrite
-
later_intro
;
apply
forall_intro
=>
l
;
apply
wand_intro_l
.
rewrite
-
wp_let
//=
-
later_intro
.
rewrite
-
(
wp_bindi
(
SeqCtx
(
Load
(
Loc
_))))
/=.
rewrite
-
(
wp_bindi
(
StoreRCtx
(
LocV
_)))
/=.
rewrite
-
(
wp_bindi
(
BinOpLCtx
PlusOp
_))
/=.
eapply
wp_load
;
eauto
with
I
;
[]
.
apply
sep_mono
;
first
done
.
wp_rec
.
wp_focus
(
!
LocV
l
)
%
L
.
eapply
wp_load
;
eauto
with
I
;
[]
.
apply
sep_mono_r
.
rewrite
-
later_intro
;
apply
wand_intro_l
.
rewrite
-
wp_bin_op
//
-
later_intro
.
eapply
wp_store
;
eauto
with
I
;
[]
.
apply
sep_mono
;
first
done
.
wp_bin_op
.
wp_focus
(_
<-
_)
%
L
.
eapply
wp_store
;
eauto
with
I
;
[]
.
apply
sep_mono_r
.
rewrite
-
later_intro
.
apply
wand_intro_l
.
rewrite
-
wp_seq
-
wp_value'
-
later_intro
.
wp_rec
.
eapply
wp_load
;
eauto
with
I
;
[]
.
apply
sep_mono
;
first
done
.
rewrite
-
later_intro
.
apply
wand_intro_l
.
by
apply
const_intro
.
...
...
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