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
Abel Nieto
Iris
Commits
5d3c508d
Commit
5d3c508d
authored
6 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
New lemma `step_fupdN_wand`, and use instead of `step_fupdN_mono`.
parent
d9d67406
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/base_logic/lib/fancy_updates.v
+3
-4
3 additions, 4 deletions
theories/base_logic/lib/fancy_updates.v
theories/bi/updates.v
+10
-1
10 additions, 1 deletion
theories/bi/updates.v
with
13 additions
and
5 deletions
theories/base_logic/lib/fancy_updates.v
+
3
−
4
View file @
5d3c508d
...
...
@@ -78,8 +78,8 @@ Proof.
iPoseProof
(
Hiter
Hinv
)
as
"H"
.
clear
Hiter
.
destruct
n
as
[|
n
]
.
-
iApply
fupd_plainly_mask_empty
.
iMod
"H"
as
%
?;
auto
.
-
i
PoseProof
(
step_fupdN_
mono
_
_
_
_
(|
=
{
⊤
}=>
⌜
φ
⌝
)
%
I
with
"H"
)
as
"H'"
.
{
iIntros
"H"
.
by
iApply
fupd_plain_mask_empty
.
}
-
i
Destruct
(
step_fupdN_
wand
_
_
_
_
(|
=
{
⊤
}=>
⌜
φ
⌝
)
%
I
with
"H
[]
"
)
as
"H'"
.
{
by
iApply
fupd_plain_mask_empty
.
}
rewrite
-
step_fupdN_S_fupd
.
iMod
(
step_fupdN_plain
with
"H'"
)
as
"Hφ"
.
iModIntro
.
iNext
.
rewrite
-
later_laterN
laterN_later
.
...
...
@@ -92,6 +92,5 @@ Lemma step_fupdN_soundness' `{invPreG Σ} φ n :
Proof
.
iIntros
(
Hiter
)
.
eapply
(
step_fupdN_soundness
_
n
)
.
iIntros
(
Hinv
)
.
iPoseProof
(
Hiter
Hinv
)
as
"Hiter"
.
iApply
(
step_fupdN_mono
with
"Hiter"
)
.
iIntros
(?)
.
iMod
(
fupd_intro_mask'
_
∅
)
as
"_"
;
auto
.
iApply
(
step_fupdN_wand
with
"Hiter"
)
.
by
iApply
(
fupd_mask_weaken
_
_
_)
.
Qed
.
This diff is collapsed.
Click to expand it.
theories/bi/updates.v
+
10
−
1
View file @
5d3c508d
...
...
@@ -359,11 +359,20 @@ Section fupd_derived.
Qed
.
Lemma
step_fupdN_mono
E1
E2
n
P
Q
:
(
P
⊢
Q
)
→
(|
=
{
E1
,
E2
}
▷=>^
n
P
)
⊢
(|
=
{
E1
,
E2
}
▷=>^
n
Q
)
.
(
P
⊢
Q
)
→
(|
=
{
E1
,
E2
}
▷=>^
n
P
)
⊢
(|
=
{
E1
,
E2
}
▷=>^
n
Q
)
.
Proof
.
intros
HPQ
.
induction
n
as
[|
n
IH
]=>
//=.
rewrite
IH
//.
Qed
.
Lemma
step_fupdN_wand
E1
E2
n
P
Q
:
(|
=
{
E1
,
E2
}
▷=>^
n
P
)
-∗
(
P
-∗
Q
)
-∗
(|
=
{
E1
,
E2
}
▷=>^
n
Q
)
.
Proof
.
apply
wand_intro_l
.
induction
n
as
[|
n
IH
]=>
/=.
{
by
rewrite
wand_elim_l
.
}
rewrite
-
IH
-
fupd_frame_l
later_sep
-
fupd_frame_l
.
by
apply
sep_mono
;
first
apply
later_intro
.
Qed
.
Lemma
step_fupdN_S_fupd
n
E
P
:
(|
=
{
E
,
∅
}
▷=>^
(
S
n
)
P
)
⊣⊢
(|
=
{
E
,
∅
}
▷=>^
(
S
n
)
|
=
{
E
}=>
P
)
.
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