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
Gaëtan Gilbert
Iris
Commits
31a0912c
Commit
31a0912c
authored
5 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Some additional results about `<affine>?p`.
parent
c54aa817
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/derived_laws_bi.v
+11
-0
11 additions, 0 deletions
theories/bi/derived_laws_bi.v
with
11 additions
and
0 deletions
theories/bi/derived_laws_bi.v
+
11
−
0
View file @
31a0912c
...
...
@@ -1144,6 +1144,13 @@ Proof. destruct p; simpl; auto using affinely_sep. Qed.
Lemma
affinely_if_idemp
p
P
:
<
affine
>
?p
<
affine
>
?p
P
⊣⊢
<
affine
>
?p
P
.
Proof
.
destruct
p
;
simpl
;
auto
using
affinely_idemp
.
Qed
.
Lemma
affinely_if_and_l
p
P
Q
:
<
affine
>
?p
P
∧
Q
⊣⊢
<
affine
>
?p
(
P
∧
Q
)
.
Proof
.
destruct
p
;
simpl
;
auto
using
affinely_and_l
.
Qed
.
Lemma
affinely_if_and_r
p
P
Q
:
P
∧
<
affine
>
?p
Q
⊣⊢
<
affine
>
?p
(
P
∧
Q
)
.
Proof
.
destruct
p
;
simpl
;
auto
using
affinely_and_r
.
Qed
.
Lemma
affinely_if_and_lr
p
P
Q
:
<
affine
>
?p
P
∧
Q
⊣⊢
P
∧
<
affine
>
?p
Q
.
Proof
.
destruct
p
;
simpl
;
auto
using
affinely_and_lr
.
Qed
.
(* Conditional absorbingly modality *)
Global
Instance
absorbingly_if_ne
p
:
NonExpansive
(
@
bi_absorbingly_if
PROP
p
)
.
Proof
.
solve_proper
.
Qed
.
...
...
@@ -1468,10 +1475,14 @@ Global Instance persistently_persistent P : Persistent (<pers> P).
Proof
.
by
rewrite
/
Persistent
persistently_idemp
.
Qed
.
Global
Instance
affinely_persistent
P
:
Persistent
P
→
Persistent
(
<
affine
>
P
)
.
Proof
.
rewrite
/
bi_affinely
.
apply
_
.
Qed
.
Global
Instance
affinely_if_persistent
p
P
:
Persistent
P
→
Persistent
(
<
affine
>
?p
P
)
.
Proof
.
destruct
p
;
simpl
;
apply
_
.
Qed
.
Global
Instance
intuitionistically_persistent
P
:
Persistent
(
□
P
)
.
Proof
.
rewrite
/
bi_intuitionistically
.
apply
_
.
Qed
.
Global
Instance
absorbingly_persistent
P
:
Persistent
P
→
Persistent
(
<
absorb
>
P
)
.
Proof
.
rewrite
/
bi_absorbingly
.
apply
_
.
Qed
.
Global
Instance
absorbingly_if_persistent
p
P
:
Persistent
P
→
Persistent
(
<
absorb
>
?p
P
)
.
Proof
.
destruct
p
;
simpl
;
apply
_
.
Qed
.
Global
Instance
from_option_persistent
{
A
}
P
(
Ψ
:
A
→
PROP
)
(
mx
:
option
A
)
:
(
∀
x
,
Persistent
(
Ψ
x
))
→
Persistent
P
→
Persistent
(
from_option
Ψ
P
mx
)
.
Proof
.
destruct
mx
;
apply
_
.
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