Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
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
Abhishek Anand
Iris
Commits
620ac27c
Commit
620ac27c
authored
7 years ago
by
David Swasey
Browse files
Options
Downloads
Patches
Plain Diff
Rename stuckness lemmas.
parent
dd0a95de
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/program_logic/hoare.v
+4
-4
4 additions, 4 deletions
theories/program_logic/hoare.v
theories/program_logic/weakestpre.v
+3
-3
3 additions, 3 deletions
theories/program_logic/weakestpre.v
with
7 additions
and
7 deletions
theories/program_logic/hoare.v
+
4
−
4
View file @
620ac27c
...
@@ -57,9 +57,9 @@ Proof. solve_proper. Qed.
...
@@ -57,9 +57,9 @@ Proof. solve_proper. Qed.
Lemma
ht_mono
s
E
P
P'
Φ
Φ'
e
:
Lemma
ht_mono
s
E
P
P'
Φ
Φ'
e
:
(
P
⊢
P'
)
→
(
∀
v
,
Φ'
v
⊢
Φ
v
)
→
{{
P'
}}
e
@
s
;
E
{{
Φ'
}}
⊢
{{
P
}}
e
@
s
;
E
{{
Φ
}}
.
(
P
⊢
P'
)
→
(
∀
v
,
Φ'
v
⊢
Φ
v
)
→
{{
P'
}}
e
@
s
;
E
{{
Φ'
}}
⊢
{{
P
}}
e
@
s
;
E
{{
Φ
}}
.
Proof
.
by
intros
;
apply
persistently_mono
,
wand_mono
,
wp_mono
.
Qed
.
Proof
.
by
intros
;
apply
persistently_mono
,
wand_mono
,
wp_mono
.
Qed
.
Lemma
ht_stuck
ness
_mono
s1
s2
E
P
Φ
e
:
Lemma
ht_stuck_mono
s1
s2
E
P
Φ
e
:
(
s1
≤
s2
)
%
stuckness
→
{{
P
}}
e
@
s1
;
E
{{
Φ
}}
⊢
{{
P
}}
e
@
s2
;
E
{{
Φ
}}
.
(
s1
≤
s2
)
%
stuckness
→
{{
P
}}
e
@
s1
;
E
{{
Φ
}}
⊢
{{
P
}}
e
@
s2
;
E
{{
Φ
}}
.
Proof
.
by
intros
;
apply
persistently_mono
,
wand_mono
,
wp_stuck
ness
_mono
.
Qed
.
Proof
.
by
intros
;
apply
persistently_mono
,
wand_mono
,
wp_stuck_mono
.
Qed
.
Global
Instance
ht_mono'
s
E
:
Global
Instance
ht_mono'
s
E
:
Proper
(
flip
(
⊢
)
==>
eq
==>
pointwise_relation
_
(
⊢
)
==>
(
⊢
))
(
ht
s
E
)
.
Proper
(
flip
(
⊢
)
==>
eq
==>
pointwise_relation
_
(
⊢
)
==>
(
⊢
))
(
ht
s
E
)
.
Proof
.
solve_proper
.
Qed
.
Proof
.
solve_proper
.
Qed
.
...
@@ -98,10 +98,10 @@ Proof.
...
@@ -98,10 +98,10 @@ Proof.
iIntros
(
v
)
"Hv"
.
by
iApply
"HwpK"
.
iIntros
(
v
)
"Hv"
.
by
iApply
"HwpK"
.
Qed
.
Qed
.
Lemma
ht_
forget_not_stuck
s
E
P
Φ
e
:
Lemma
ht_
stuck_weaken
s
E
P
Φ
e
:
{{
P
}}
e
@
s
;
E
{{
Φ
}}
⊢
{{
P
}}
e
@
E
?{{
Φ
}}
.
{{
P
}}
e
@
s
;
E
{{
Φ
}}
⊢
{{
P
}}
e
@
E
?{{
Φ
}}
.
Proof
.
Proof
.
by
iIntros
"#Hwp !# ?"
;
iApply
wp_
forget_not_stuck
;
iApply
"Hwp"
.
by
iIntros
"#Hwp !# ?"
;
iApply
wp_
stuck_weaken
;
iApply
"Hwp"
.
Qed
.
Qed
.
Lemma
ht_mask_weaken
s
E1
E2
P
Φ
e
:
Lemma
ht_mask_weaken
s
E1
E2
P
Φ
e
:
...
...
This diff is collapsed.
Click to expand it.
theories/program_logic/weakestpre.v
+
3
−
3
View file @
620ac27c
...
@@ -210,7 +210,7 @@ Proof.
...
@@ -210,7 +210,7 @@ Proof.
iMod
"Hclose"
as
"_"
.
by
iApply
(
"IH"
with
"HΦ"
)
.
iMod
"Hclose"
as
"_"
.
by
iApply
(
"IH"
with
"HΦ"
)
.
Qed
.
Qed
.
Lemma
wp_
forget_not_stuck
s
E
e
Φ
:
Lemma
wp_
stuck_weaken
s
E
e
Φ
:
WP
e
@
s
;
E
{{
Φ
}}
⊢
WP
e
@
E
?{{
Φ
}}
.
WP
e
@
s
;
E
{{
Φ
}}
⊢
WP
e
@
E
?{{
Φ
}}
.
Proof
.
Proof
.
iIntros
"H"
.
iLöb
as
"IH"
forall
(
E
e
Φ
)
.
rewrite
!
wp_unfold
/
wp_pre
.
iIntros
"H"
.
iLöb
as
"IH"
forall
(
E
e
Φ
)
.
rewrite
!
wp_unfold
/
wp_pre
.
...
@@ -311,9 +311,9 @@ Proof.
...
@@ -311,9 +311,9 @@ Proof.
iIntros
(
HΦ
)
"H"
;
iApply
(
wp_strong_mono
s
E
E
);
auto
.
iIntros
(
HΦ
)
"H"
;
iApply
(
wp_strong_mono
s
E
E
);
auto
.
iIntros
"{$H}"
(
v
)
"?"
.
by
iApply
HΦ
.
iIntros
"{$H}"
(
v
)
"?"
.
by
iApply
HΦ
.
Qed
.
Qed
.
Lemma
wp_stuck
ness
_mono
s1
s2
E
e
Φ
:
Lemma
wp_stuck_mono
s1
s2
E
e
Φ
:
(
s1
≤
s2
)
%
stuckness
→
WP
e
@
s1
;
E
{{
Φ
}}
⊢
WP
e
@
s2
;
E
{{
Φ
}}
.
(
s1
≤
s2
)
%
stuckness
→
WP
e
@
s1
;
E
{{
Φ
}}
⊢
WP
e
@
s2
;
E
{{
Φ
}}
.
Proof
.
case
:
s1
;
case
:
s2
=>
//
_
.
exact
:
wp_
forget_not_stuck
.
Qed
.
Proof
.
case
:
s1
;
case
:
s2
=>
//
_
.
exact
:
wp_
stuck_weaken
.
Qed
.
Lemma
wp_mask_mono
s
E1
E2
e
Φ
:
E1
⊆
E2
→
WP
e
@
s
;
E1
{{
Φ
}}
⊢
WP
e
@
s
;
E2
{{
Φ
}}
.
Lemma
wp_mask_mono
s
E1
E2
e
Φ
:
E1
⊆
E2
→
WP
e
@
s
;
E1
{{
Φ
}}
⊢
WP
e
@
s
;
E2
{{
Φ
}}
.
Proof
.
iIntros
(?)
"H"
;
iApply
(
wp_strong_mono
s
E1
E2
);
auto
.
iFrame
;
eauto
.
Qed
.
Proof
.
iIntros
(?)
"H"
;
iApply
(
wp_strong_mono
s
E1
E2
);
auto
.
iFrame
;
eauto
.
Qed
.
Global
Instance
wp_mono'
s
E
e
:
Global
Instance
wp_mono'
s
E
e
:
...
...
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