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
Hai Dang
Iris
Commits
818a8dfa
Commit
818a8dfa
authored
6 years ago
by
Joseph Tassarotti
Browse files
Options
Downloads
Patches
Plain Diff
Show that step fupd commutes with forall for plain predicates in Iris.
parent
44dc86c8
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/base_logic/lib/fancy_updates.v
+20
-0
20 additions, 0 deletions
theories/base_logic/lib/fancy_updates.v
with
20 additions
and
0 deletions
theories/base_logic/lib/fancy_updates.v
+
20
−
0
View file @
818a8dfa
...
...
@@ -50,6 +50,26 @@ Proof.
iNext
.
by
iMod
(
"HP"
with
"[$]"
)
as
"(_ & _ & HP)"
.
Qed
.
Lemma
step_fupd_forall_plain
`{
invG
Σ
}
{
A
:
Type
}
E
(
Ψ
:
A
→
iProp
Σ
)
`{
∀
x
:
A
,
Plain
(
Ψ
x
)}:
(|
=
{
E
,
∅
}
▷=>
∀
a
,
Ψ
a
)
%
I
⊣⊢
(
∀
a
,
|
=
{
E
,
∅
}
▷=>
Ψ
a
)
%
I
.
Proof
.
intros
.
apply
(
anti_symm
(
⊢
))
.
-
iIntros
"H"
.
iIntros
(
a
)
.
iMod
"H"
.
iModIntro
.
iNext
.
iMod
"H"
;
auto
.
-
rewrite
uPred_fupd_eq
/
uPred_fupd_def
.
iIntros
"H (Hw&HE)"
.
iMod
(
ownE_empty
)
as
"Hemp"
.
iAssert
(
▷
◇
∀
a
,
Ψ
a
)
%
I
with
"[Hw HE H]"
as
"#Hplain"
.
{
iIntros
(
a
)
.
iMod
(
"H"
$!
a
with
"[$Hw $HE]"
)
as
">(Hw&HE&H)"
.
iNext
.
iMod
(
"H"
with
"[$Hw $HE]"
)
as
">(?&?&$)"
.
}
iAssert
(
wsat
∗
ownE
∅
∗
▷
(
wsat
∗
ownE
∅
==∗
◇
(
wsat
∗
ownE
E
)))
%
I
with
"[H Hw HE Hemp]"
as
"($&$&H)"
.
{
iFrame
.
by
iIntros
"!> (?&?)"
.
}
iIntros
"!> !> !> Hw"
.
by
iMod
(
"H"
with
"Hw"
)
as
">($&$)"
.
Qed
.
Lemma
fupd_plain_soundness
`{
invPreG
Σ
}
E
(
P
:
iProp
Σ
)
`{
!
Plain
P
}:
(
∀
`{
Hinv
:
invG
Σ
},
(|
=
{
⊤
,
E
}=>
P
)
%
I
)
→
(
▷
P
)
%
I
.
Proof
.
...
...
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