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
William Mansky
Iris
Commits
ccbb7d03
Commit
ccbb7d03
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
wp_load: use proof mode
parent
68be79c3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
heap_lang/heap.v
+8
-11
8 additions, 11 deletions
heap_lang/heap.v
heap_lang/proofmode.v
+1
-1
1 addition, 1 deletion
heap_lang/proofmode.v
with
9 additions
and
12 deletions
heap_lang/heap.v
+
8
−
11
View file @
ccbb7d03
...
...
@@ -160,20 +160,17 @@ Section heap.
iIntros
"Hheap"
.
iApply
"HΦ"
.
by
rewrite
/
heap_mapsto
.
Qed
.
Lemma
wp_load
N
E
l
q
v
P
Φ
:
P
⊢
heap_ctx
N
→
nclose
N
⊆
E
→
P
⊢
(
▷
l
↦
{
q
}
v
★
▷
(
l
↦
{
q
}
v
-★
Φ
v
))
→
P
⊢
WP
Load
(
Lit
(
LitLoc
l
))
@
E
{{
Φ
}}
.
Lemma
wp_load
N
E
l
q
v
Φ
:
nclose
N
⊆
E
→
(
heap_ctx
N
★
▷
l
↦
{
q
}
v
★
▷
(
l
↦
{
q
}
v
-★
Φ
v
))
⊢
WP
Load
(
Lit
(
LitLoc
l
))
@
E
{{
Φ
}}
.
Proof
.
rewrite
/
heap_ctx
/
heap_
inv
=>
??
HPΦ
.
iIntros
{?}
"[#Hinv [Hmapsto HΦ]]"
.
rewrite
/
heap_ctx
/
heap_
mapsto
.
apply
(
auth_fsa'
heap_inv
(
wp_fsa
_)
id
)
with
N
heap_name
{[
l
:=
Frac
q
(
DecAgree
v
)
]};
simpl
;
eauto
with
I
.
rewrite
HPΦ
{
HPΦ
};
apply
sep_mono_r
,
forall_intro
=>
h
;
apply
wand_intro_l
.
rewrite
-
assoc
;
apply
const_elim_sep_l
=>
?
.
rewrite
-
(
wp_load_pst
_
(
<
[
l
:=
v
]
>
(
of_heap
h
)))
?lookup_insert
//.
rewrite
const_equiv
//
left_id
.
rewrite
/
heap_inv
of_heap_singleton_op
//.
apply
sep_mono_r
,
later_mono
,
wand_intro_l
.
by
rewrite
-
later_intro
.
iFrame
"Hmapsto"
.
iIntros
{
h
}
"[% Hheap]"
.
rewrite
/
heap_inv
.
iApply
(
wp_load_pst
_
(
<
[
l
:=
v
]
>
(
of_heap
h
)));
first
by
rewrite
lookup_insert
.
rewrite
of_heap_singleton_op
//.
iFrame
"Hheap"
.
iNext
.
iIntros
"Hheap"
.
iFrame
"Hheap"
.
iSplit
;
first
by
iPureIntro
.
done
.
Qed
.
Lemma
wp_store
N
E
l
v'
e
v
P
Φ
:
...
...
This diff is collapsed.
Click to expand it.
heap_lang/proofmode.v
+
1
−
1
View file @
ccbb7d03
...
...
@@ -39,7 +39,7 @@ Lemma tac_wp_load Δ Δ' N E i l q v Φ :
Δ'
⊢
Φ
v
→
Δ
⊢
WP
Load
(
Lit
(
LitLoc
l
))
@
E
{{
Φ
}}
.
Proof
.
intros
.
eapply
wp_load
;
eauto
.
intros
.
rewrite
-
wp_load
//
-
always_and_sep_l
.
apply
and_intro
;
first
done
.
rewrite
strip_later_env_sound
-
later_sep
envs_lookup_split
//
;
simpl
.
by
apply
later_mono
,
sep_mono_r
,
wand_mono
.
Qed
.
...
...
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