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
84c05235
Commit
84c05235
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Mononicity of step taking fancy updates.
parent
fda5c51c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
theories/base_logic/lib/fancy_updates.v
+3
-0
3 additions, 0 deletions
theories/base_logic/lib/fancy_updates.v
theories/program_logic/ectx_lifting.v
+3
-4
3 additions, 4 deletions
theories/program_logic/ectx_lifting.v
theories/program_logic/lifting.v
+1
-2
1 addition, 2 deletions
theories/program_logic/lifting.v
with
7 additions
and
6 deletions
theories/base_logic/lib/fancy_updates.v
+
3
−
0
View file @
84c05235
...
...
@@ -217,6 +217,9 @@ Notation "P ={ E }▷=∗ Q" := (P ={E,E}▷=∗ Q)%I
Section
step_fupd
.
Context
`{
invG
Σ
}
.
Lemma
step_fupd_wand
E1
E2
P
Q
:
(|
=
{
E1
,
E2
}
▷=>
P
)
-∗
(
P
-∗
Q
)
-∗
|
=
{
E1
,
E2
}
▷=>
Q
.
Proof
.
iIntros
"HP HPQ"
.
by
iApply
"HPQ"
.
Qed
.
Lemma
step_fupd_mask_frame_r
E1
E2
Ef
P
:
E1
⊥
Ef
→
E2
⊥
Ef
→
(|
=
{
E1
,
E2
}
▷=>
P
)
⊢
|
=
{
E1
∪
Ef
,
E2
∪
Ef
}
▷=>
P
.
Proof
.
...
...
This diff is collapsed.
Click to expand it.
theories/program_logic/ectx_lifting.v
+
3
−
4
View file @
84c05235
...
...
@@ -38,8 +38,8 @@ Lemma wp_lift_pure_head_step {E E' Φ} e1 :
⊢
WP
e1
@
E
{{
Φ
}}
.
Proof
using
Hinh
.
iIntros
(??)
"H"
.
iApply
wp_lift_pure_step
;
eauto
.
i
Mod
"H"
.
iModIntro
.
iNext
.
iMod
"H"
.
iModIntro
.
iIntros
(????)
.
iApply
"H"
.
eauto
.
i
Apply
(
step_fupd_wand
with
"H"
);
iIntros
"H"
.
iIntros
(????)
.
iApply
"H"
;
eauto
.
Qed
.
Lemma
wp_lift_atomic_head_step
{
E
Φ
}
e1
:
...
...
@@ -67,8 +67,7 @@ Proof.
iIntros
(?)
"H"
.
iApply
wp_lift_atomic_head_step
;
eauto
.
iIntros
(
σ1
)
"Hσ1"
.
iMod
(
"H"
$!
σ1
with
"Hσ1"
)
as
"[$ H]"
;
iModIntro
.
iNext
;
iIntros
(
v2
σ2
efs
)
"%"
.
iMod
(
"H"
$!
v2
σ2
efs
with
"[#]"
)
as
"(% & $ & $)"
=>
//
;
subst
.
by
iApply
big_sepL_nil
.
iMod
(
"H"
$!
v2
σ2
efs
with
"[#]"
)
as
"(% & $ & $)"
=>
//
;
subst
;
auto
.
Qed
.
Lemma
wp_lift_pure_det_head_step
{
E
E'
Φ
}
e1
e2
efs
:
...
...
This diff is collapsed.
Click to expand it.
theories/program_logic/lifting.v
+
1
−
2
View file @
84c05235
...
...
@@ -65,8 +65,7 @@ Lemma wp_lift_pure_det_step `{Inhabited (state Λ)} {E E' Φ} e1 e2 efs :
Proof
.
iIntros
(?
Hpuredet
)
"H"
.
iApply
(
wp_lift_pure_step
E
);
try
done
.
{
by
intros
;
eapply
Hpuredet
.
}
(* TODO: Can we make this nicer? iNext for fupd, for example, could help. *)
iMod
"H"
.
iModIntro
.
iNext
.
iMod
"H"
.
iModIntro
.
iApply
(
step_fupd_wand
with
"H"
);
iIntros
"H"
.
by
iIntros
(
e'
efs'
σ
(_
&
->
&
->
)
%
Hpuredet
)
.
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