Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris
Manage
Activity
Members
Labels
Plan
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
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
Paolo G. Giarrusso
iris
Commits
18297553
Commit
18297553
authored
1 year ago
by
Ike Mulder
Committed by
Robbert Krebbers
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Added missing reflexivity, symmetry, transitivity lemmas on
, →, -∗ and ∗-∗
parent
666d5439
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+2
-0
2 additions, 0 deletions
CHANGELOG.md
iris/bi/derived_laws.v
+25
-9
25 additions, 9 deletions
iris/bi/derived_laws.v
with
27 additions
and
9 deletions
CHANGELOG.md
+
2
−
0
View file @
18297553
...
...
@@ -86,6 +86,8 @@ Coq 8.13 is no longer supported.
`Fractional`
, making it very hard to reason about search termination).
-
Rewrite
`frame_fractional`
lemma using the new
`FrameFractionalQp`
typeclass
for
`Qp`
reasoning.
*
Add missing transitivity, symmetry and reflexivity lemmas about the
`↔`
,
`→`
,
`-∗`
and
`∗-∗`
connectives. (by Ike Mulder)
**Changes in `proofmode`:**
...
...
This diff is collapsed.
Click to expand it.
iris/bi/derived_laws.v
+
25
−
9
View file @
18297553
...
...
@@ -223,6 +223,11 @@ Proof.
-
by
apply
impl_intro_l
;
rewrite
left_id
.
Qed
.
Lemma
impl_refl
P
Q
:
Q
⊢
P
→
P
.
Proof
.
apply
impl_intro_l
,
and_elim_l
.
Qed
.
Lemma
impl_trans
P
Q
R
:
(
P
→
Q
)
∧
(
Q
→
R
)
⊢
(
P
→
R
)
.
Proof
.
apply
impl_intro_l
.
by
rewrite
assoc
!
impl_elim_r
.
Qed
.
Lemma
False_impl
P
:
(
False
→
P
)
⊣⊢
True
.
Proof
.
apply
(
anti_symm
(
⊢
));
[
by
auto
|]
.
...
...
@@ -336,13 +341,20 @@ Global Instance iff_proper :
Proper
((
⊣⊢
)
==>
(
⊣⊢
)
==>
(
⊣⊢
))
(
@
bi_iff
PROP
)
:=
ne_proper_2
_
.
Lemma
iff_refl
Q
P
:
Q
⊢
P
↔
P
.
Proof
.
rewrite
/
bi_iff
;
apply
and_intro
;
apply
impl_
intro_l
;
auto
.
Qed
.
Proof
.
rewrite
/
bi_iff
.
apply
and_intro
;
apply
impl_
refl
.
Qed
.
Lemma
iff_sym
P
Q
:
(
P
↔
Q
)
⊣⊢
(
Q
↔
P
)
.
Proof
.
apply
equiv_entails
.
split
;
apply
and_intro
;
try
apply
and_elim_r
;
apply
and_elim_l
.
Qed
.
Lemma
iff_trans
P
Q
R
:
(
P
↔
Q
)
∧
(
Q
↔
R
)
⊢
(
P
↔
R
)
.
Proof
.
apply
and_intro
.
-
rewrite
/
bi_iff
(
and_elim_l
_
(_
→
_))
(
and_elim_l
_
(_
→
_))
.
apply
impl_trans
.
-
rewrite
/
bi_iff
(
and_elim_r
_
(_
→
_))
(
and_elim_r
_
(_
→
_))
comm
.
apply
impl_trans
.
Qed
.
(* BI Stuff *)
Local
Hint
Resolve
sep_mono
:
core
.
...
...
@@ -427,6 +439,8 @@ Proof.
apply
wand_intro_l
.
rewrite
left_absorb
.
auto
.
Qed
.
Lemma
wand_refl
P
:
⊢
P
-∗
P
.
Proof
.
apply
wand_intro_l
.
by
rewrite
right_id
.
Qed
.
Lemma
wand_trans
P
Q
R
:
(
P
-∗
Q
)
∗
(
Q
-∗
R
)
⊢
(
P
-∗
R
)
.
Proof
.
apply
wand_intro_l
.
by
rewrite
assoc
!
wand_elim_r
.
Qed
.
...
...
@@ -476,8 +490,16 @@ Proof. solve_proper. Qed.
Global
Instance
wand_iff_proper
:
Proper
((
⊣⊢
)
==>
(
⊣⊢
)
==>
(
⊣⊢
))
(
@
bi_wand_iff
PROP
)
:=
ne_proper_2
_
.
Lemma
wand_iff_refl
P
:
emp
⊢
P
∗-∗
P
.
Lemma
wand_iff_refl
P
:
⊢
P
∗-∗
P
.
Proof
.
apply
and_intro
;
apply
wand_intro_l
;
by
rewrite
right_id
.
Qed
.
Lemma
wand_iff_sym
P
Q
:
(
P
∗-∗
Q
)
⊣⊢
(
Q
∗-∗
P
)
.
Proof
.
apply
equiv_entails
;
split
;
rewrite
/
bi_wand_iff
;
eauto
.
Qed
.
Lemma
wand_iff_trans
P
Q
R
:
(
P
∗-∗
Q
)
∗
(
Q
∗-∗
R
)
⊢
(
P
∗-∗
R
)
.
Proof
.
apply
and_intro
.
-
rewrite
/
bi_wand_iff
!
and_elim_l
.
apply
wand_trans
.
-
rewrite
/
bi_wand_iff
!
and_elim_r
comm
.
apply
wand_trans
.
Qed
.
Lemma
wand_entails
P
Q
:
(
⊢
P
-∗
Q
)
→
P
⊢
Q
.
Proof
.
intros
.
rewrite
-
[
P
]
emp_sep
.
by
apply
wand_elim_l'
.
Qed
.
...
...
@@ -496,12 +518,6 @@ Proof.
intros
HPQ
;
apply
(
anti_symm
(
⊢
));
apply
wand_entails
;
rewrite
/
bi_emp_valid
HPQ
/
bi_wand_iff
;
auto
.
Qed
.
Lemma
wand_iff_sym
P
Q
:
(
P
∗-∗
Q
)
⊣⊢
(
Q
∗-∗
P
)
.
Proof
.
apply
equiv_entails
;
split
;
apply
and_intro
;
try
apply
and_elim_r
;
apply
and_elim_l
.
Qed
.
Lemma
entails_impl
P
Q
:
(
P
⊢
Q
)
→
(
⊢
P
→
Q
)
.
Proof
.
intros
->
.
apply
impl_intro_l
.
auto
.
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