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
Pierre Roux
Iris
Commits
898bb375
Commit
898bb375
authored
5 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
More documentation.
parent
3d3b7c1d
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/bi/lib/core.v
+8
-0
8 additions, 0 deletions
theories/bi/lib/core.v
with
8 additions
and
0 deletions
theories/bi/lib/core.v
+
8
−
0
View file @
898bb375
...
@@ -56,6 +56,13 @@ Section core.
...
@@ -56,6 +56,13 @@ Section core.
Lemma
coreP_elim
P
:
Persistent
P
→
coreP
P
-∗
P
.
Lemma
coreP_elim
P
:
Persistent
P
→
coreP
P
-∗
P
.
Proof
.
rewrite
/
coreP
.
iIntros
(?)
"HCP"
.
iApply
"HCP"
;
auto
.
Qed
.
Proof
.
rewrite
/
coreP
.
iIntros
(?)
"HCP"
.
iApply
"HCP"
;
auto
.
Qed
.
(** The [<affine>] modality is needed for general BIs:
- The right-to-left direction corresponds to elimination of [<pers>], which
cannot be done without [<affine>].
- The left-to-right direction corresponds the introduction of [<pers>]. The
[<affine>] modality makes it stronger since it appears in the LHS of the
[⊢] in the premise. As a user, you have to prove [<affine> coreP P ⊢ Q],
which is weaker than [coreP P ⊢ Q]. *)
Lemma
coreP_entails
P
Q
:
(
<
affine
>
coreP
P
⊢
Q
)
↔
(
P
⊢
<
pers
>
Q
)
.
Lemma
coreP_entails
P
Q
:
(
<
affine
>
coreP
P
⊢
Q
)
↔
(
P
⊢
<
pers
>
Q
)
.
Proof
.
Proof
.
split
.
split
.
...
@@ -63,6 +70,7 @@ Section core.
...
@@ -63,6 +70,7 @@ Section core.
iIntros
"!>"
.
by
iApply
HP
.
iIntros
"!>"
.
by
iApply
HP
.
-
iIntros
(
->
)
"HcQ"
.
by
iDestruct
(
coreP_elim
with
"HcQ"
)
as
"#HQ"
.
-
iIntros
(
->
)
"HcQ"
.
by
iDestruct
(
coreP_elim
with
"HcQ"
)
as
"#HQ"
.
Qed
.
Qed
.
(** A more convenient variant of the above lemma for affine [P]. *)
Lemma
coreP_entails'
P
Q
`{
!
Affine
P
}
:
(
coreP
P
⊢
Q
)
↔
(
P
⊢
□
Q
)
.
Lemma
coreP_entails'
P
Q
`{
!
Affine
P
}
:
(
coreP
P
⊢
Q
)
↔
(
P
⊢
□
Q
)
.
Proof
.
Proof
.
rewrite
-
(
affine_affinely
(
coreP
P
))
coreP_entails
.
split
.
rewrite
-
(
affine_affinely
(
coreP
P
))
coreP_entails
.
split
.
...
...
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