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
William Mansky
Iris
Commits
ed7164d8
Commit
ed7164d8
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
stronger make_laterable_wand; and an instance for persistent things being laterable
parent
62d66722
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iris/bi/lib/laterable.v
+17
-6
17 additions, 6 deletions
iris/bi/lib/laterable.v
with
17 additions
and
6 deletions
iris/bi/lib/laterable.v
+
17
−
6
View file @
ed7164d8
...
...
@@ -43,6 +43,12 @@ Section instances.
iIntros
"!> >_"
.
done
.
Qed
.
Global
Instance
persistent_laterable
`{
!
BiAffine
PROP
}
P
:
Persistent
P
→
Laterable
P
.
Proof
.
intros
?
.
apply
intuitionistic_laterable
;
apply
_
.
Qed
.
Global
Instance
sep_laterable
P
Q
:
Laterable
P
→
Laterable
Q
→
Laterable
(
P
∗
Q
)
.
Proof
.
...
...
@@ -69,7 +75,8 @@ Section instances.
Laterable
([
∗
]
Ps
)
.
Proof
.
induction
2
;
simpl
;
apply
_
.
Qed
.
(* A wrapper to obtain a weaker, laterable form of any assertion. *)
(* A wrapper to obtain a weaker, laterable form of any assertion.
Alternatively: the modality corresponding to [Laterable]. *)
Definition
make_laterable
(
Q
:
PROP
)
:
PROP
:=
∃
P
,
▷
P
∗
□
(
▷
P
-∗
Q
)
.
...
...
@@ -86,13 +93,17 @@ Section instances.
(
Q1
⊢
Q2
)
→
(
make_laterable
Q1
⊢
make_laterable
Q2
)
.
Proof
.
by
intros
->
.
Qed
.
(** A stronger version of [make_laterable_mono] that lets us keep persistent
resources. *)
(** A stronger version of [make_laterable_mono] that lets us keep laterable
resources. We cannot keep arbitrary resources since that would let us "frame
in" non-laterable things. *)
Lemma
make_laterable_wand
Q1
Q2
:
□
(
Q1
-∗
Q2
)
-∗
(
make_laterable
Q1
-∗
make_laterable
Q2
)
.
make_laterable
(
Q1
-∗
Q2
)
-∗
(
make_laterable
Q1
-∗
make_laterable
Q2
)
.
Proof
.
iIntros
"#HQ HQ1"
.
iDestruct
"HQ1"
as
(
P
)
"[HP #HQ1]"
.
iExists
P
.
iFrame
.
iIntros
"!> HP"
.
iApply
"HQ"
.
iApply
"HQ1"
.
done
.
iIntros
"HQ HQ1"
.
iDestruct
"HQ"
as
(
Q1'
)
"[HQ1' #HQ]"
.
iDestruct
"HQ1"
as
(
P
)
"[HP #HQ1]"
.
iExists
(
Q1'
∗
P
)
%
I
.
iFrame
.
iIntros
"!> [HQ1' HP]"
.
iApply
(
"HQ"
with
"HQ1'"
)
.
iApply
"HQ1"
.
done
.
Qed
.
Global
Instance
make_laterable_laterable
Q
:
...
...
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