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
1244bcfb
Commit
1244bcfb
authored
6 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
prove a variant of wp_invariance that does not require finding fupd_intro_mask'
parent
42f0842f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/program_logic/adequacy.v
+18
-0
18 additions, 0 deletions
theories/program_logic/adequacy.v
with
18 additions
and
0 deletions
theories/program_logic/adequacy.v
+
18
−
0
View file @
1244bcfb
From
stdpp
Require
Import
namespaces
.
From
iris
.
program_logic
Require
Export
weakestpre
.
From
iris
.
algebra
Require
Import
gmap
auth
agree
gset
coPset
.
From
iris
.
base_logic
.
lib
Require
Import
wsat
.
...
...
@@ -203,3 +204,20 @@ Proof.
iDestruct
"Hwp"
as
(
Istate
)
"(HIstate & Hwp & Hclose)"
.
iApply
(
@
wptp_invariance
_
_
(
IrisG
_
_
Hinv
Istate
));
eauto
with
iFrame
.
Qed
.
(* An equivalent version that does not require finding [fupd_intro_mask'], but
can be confusing to use. *)
Corollary
wp_invariance'
Σ
Λ
`{
invPreG
Σ
}
s
e
σ1
t2
σ2
φ
:
(
∀
`{
Hinv
:
invG
Σ
},
(|
=
{
⊤
}=>
∃
stateI
:
state
Λ
→
iProp
Σ
,
let
_
:
irisG
Λ
Σ
:=
IrisG
_
_
Hinv
stateI
in
stateI
σ1
∗
WP
e
@
s
;
⊤
{{
_,
True
}}
∗
(
stateI
σ2
-∗
∃
E
,
|
=
{
⊤
,
E
}=>
⌜
φ
⌝
))
%
I
)
→
rtc
step
([
e
],
σ1
)
(
t2
,
σ2
)
→
φ
.
Proof
.
intros
Hwp
.
eapply
wp_invariance
;
first
done
.
intros
Hinv
.
iMod
(
Hwp
Hinv
)
as
(
stateI
)
"(? & ? & Hφ)"
.
iModIntro
.
iExists
stateI
.
iFrame
.
iIntros
"Hσ"
.
iDestruct
(
"Hφ"
with
"Hσ"
)
as
(
E
)
">Hφ"
.
iMod
(
fupd_intro_mask'
)
as
"_"
;
last
by
iModIntro
.
solve_ndisj
.
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