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
Pierre Roux
Iris
Commits
92eaea66
Commit
92eaea66
authored
5 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Avoid `wp_skip` lemma (which follows from `wp_pure`).
parent
82942fc0
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
theories/heap_lang/lifting.v
+7
-14
7 additions, 14 deletions
theories/heap_lang/lifting.v
with
7 additions
and
14 deletions
theories/heap_lang/lifting.v
+
7
−
14
View file @
92eaea66
...
...
@@ -475,22 +475,14 @@ Proof.
-
apply
exists_last
in
HNeq
as
[
κ'
[[
p'
[
w'
v'
]]
->
]]
.
rewrite
-
app_assoc
.
iMod
(
"WPe"
$!
σ1
_
_
n
with
"[$Hσ $Hκ]"
)
as
"[Hs WPe]"
.
iModIntro
.
iSplit
.
{
iDestruct
"Hs"
as
"%"
.
iPureIntro
.
destruct
s
;
[
by
apply
resolve_reducible
|
done
]
.
}
iIntros
(
e2
σ2
efs
step
)
.
apply
step_resolve
in
step
;
last
done
.
inversion
step
.
match
goal
with
H
:
_
++
_
=
_
++
_
|
-
_
=>
apply
app_inj_2
in
H
;
last
done
;
destruct
H
as
[
->
[
=->
->
->
]]
end
.
subst
.
iMod
(
"WPe"
$!
(
Val
w'
)
σ2
efs
with
"[%]"
)
as
"WPe"
.
{
eexists
[]
_
_;
try
done
.
}
iIntros
(
e2
σ2
efs
step
)
.
apply
step_resolve
in
step
;
last
done
.
inversion
step
;
simplify_list_eq
.
iMod
(
"WPe"
$!
(
Val
w'
)
σ2
efs
with
"[%]"
)
as
"WPe"
.
{
eexists
[]
_
_;
try
done
.
}
iModIntro
.
iNext
.
iMod
"WPe"
as
"[[$ Hκ] WPe]"
.
iMod
(
proph_map_resolve_proph
p'
(
w'
,
v'
)
κs
with
"[$Hκ $Hp]"
)
as
(
vs'
->
)
"[$ HPost]"
.
iModIntro
.
rewrite
!
wp_unfold
/
wp_pre
/=.
iDestruct
"WPe"
as
"[HΦ $]"
.
iMod
"HΦ"
.
iModIntro
.
iApply
"HΦ"
;
[
done
|
iFrame
]
.
Qed
.
Lemma
wp_skip
s
E
Φ
:
▷
Φ
(
LitV
LitUnit
)
-∗
WP
Skip
@
s
;
E
{{
Φ
}}
.
Proof
.
iIntros
"HΦ"
.
iApply
wp_lift_atomic_head_step_no_fork
;
auto
.
iIntros
(
σ1
κ
κs
n
)
"Hσ"
.
iModIntro
.
iSplit
.
-
iPureIntro
.
eexists
_,
_,
_,
_
.
by
constructor
.
-
iIntros
(
e2
σ2
efs
step
)
"!>"
.
inversion
step
.
simplify_eq
.
by
iFrame
.
iMod
"HΦ"
.
iModIntro
.
by
iApply
"HΦ"
.
Qed
.
Lemma
wp_resolve_proph
s
E
p
vs
v
:
...
...
@@ -499,7 +491,8 @@ Lemma wp_resolve_proph s E p vs v :
{{{
vs'
,
RET
(
LitV
LitUnit
);
⌜
vs
=
(
LitV
LitUnit
,
v
)::
vs'
⌝
∗
proph
p
vs'
}}}
.
Proof
.
iIntros
(
Φ
)
"Hp HΦ"
.
iApply
(
wp_resolve
with
"Hp"
);
first
done
.
iApply
wp_skip
.
iNext
.
iIntros
(
vs'
)
"HEq Hp"
.
iApply
"HΦ"
.
iFrame
.
iApply
wp_pure_step_later
=>
//=.
iApply
wp_value
.
iIntros
"!>"
(
vs'
)
"HEq Hp"
.
iApply
"HΦ"
.
iFrame
.
Qed
.
End
lifting
.
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