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
Abhishek Anand
Iris
Commits
d18747b6
Commit
d18747b6
authored
7 years ago
by
Robbert Krebbers
Committed by
Jacques-Henri Jourdan
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Simplify box axioms.
Thanks to discussions with Ales and Amin.
parent
52c3006d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
theories/base_logic/upred.v
+3
-11
3 additions, 11 deletions
theories/base_logic/upred.v
theories/bi/derived.v
+9
-0
9 additions, 0 deletions
theories/bi/derived.v
theories/bi/interface.v
+3
-7
3 additions, 7 deletions
theories/bi/interface.v
with
15 additions
and
18 deletions
theories/base_logic/upred.v
+
3
−
11
View file @
d18747b6
...
@@ -451,21 +451,13 @@ Proof.
...
@@ -451,21 +451,13 @@ Proof.
by
unseal
.
by
unseal
.
-
(* P ⊢ □ emp (ADMISSIBLE) *)
-
(* P ⊢ □ emp (ADMISSIBLE) *)
intros
P
.
unfold
uPred_emp
;
unseal
;
by
split
=>
n
x
?
_
.
intros
P
.
unfold
uPred_emp
;
unseal
;
by
split
=>
n
x
?
_
.
-
(* emp ∧ □ P ⊢ P *)
intros
P
.
unseal
;
split
=>
n
x
?
[_
?];
simpl
in
*.
eauto
using
uPred_mono
,
@
cmra_included_core
,
cmra_included_includedN
.
-
(* □ P ∗ Q ⊢ □ P (ADMISSIBLE) *)
-
(* □ P ∗ Q ⊢ □ P (ADMISSIBLE) *)
intros
P
Q
.
move
:
(
uPred_persistently
P
)=>
P'
.
intros
P
Q
.
move
:
(
uPred_persistently
P
)=>
P'
.
unseal
;
split
;
intros
n
x
?
(
x1
&
x2
&
?
&
?
&
_);
ofe_subst
;
unseal
;
split
;
intros
n
x
?
(
x1
&
x2
&
?
&
?
&
_);
ofe_subst
;
eauto
using
uPred_mono
,
cmra_includedN_l
.
eauto
using
uPred_mono
,
cmra_includedN_l
.
-
(* □ P ∧ (Q ∗ R) ⊢ (□ P ∧ Q) ∗ R (ADMISSIBLE) *)
-
(* □ P ∧ Q ⊢ (emp ∧ P) ∗ Q *)
intros
P
Q
R
.
unseal
;
split
;
intros
n
x
?
[?
(
x1
&
x2
&
Hx
&
?
&
?)];
simpl
in
*.
intros
P
Q
.
unseal
;
split
=>
n
x
?
[??];
simpl
in
*.
exists
(
core
(
x1
⋅
x2
)
⋅
x1
),
x2
.
split_and
!.
exists
(
core
x
),
x
;
rewrite
?cmra_core_l
;
auto
.
+
by
rewrite
-
assoc
cmra_core_l
.
+
eapply
uPred_mono
;
first
done
.
rewrite
-
{
1
}
cmra_core_idemp
Hx
.
eapply
cmra_core_monoN
,
cmra_includedN_l
.
+
eauto
using
uPred_mono
,
cmra_includedN_r
.
+
done
.
Qed
.
Qed
.
Lemma
uPred_sbi_mixin
(
M
:
ucmraT
)
:
SBIMixin
Lemma
uPred_sbi_mixin
(
M
:
ucmraT
)
:
SBIMixin
...
...
This diff is collapsed.
Click to expand it.
theories/bi/derived.v
+
9
−
0
View file @
d18747b6
...
@@ -872,6 +872,15 @@ Proof. intros P Q; apply persistently_mono. Qed.
...
@@ -872,6 +872,15 @@ Proof. intros P Q; apply persistently_mono. Qed.
Global
Instance
persistently_absorbing
P
:
Absorbing
(
□
P
)
.
Global
Instance
persistently_absorbing
P
:
Absorbing
(
□
P
)
.
Proof
.
rewrite
/
Absorbing
=>
R
.
apply
persistently_absorbing
.
Qed
.
Proof
.
rewrite
/
Absorbing
=>
R
.
apply
persistently_absorbing
.
Qed
.
Lemma
persistently_and_sep_assoc_1
P
Q
R
:
□
P
∧
(
Q
∗
R
)
⊢
(
□
P
∧
Q
)
∗
R
.
Proof
.
rewrite
{
1
}
persistently_idemp_2
persistently_and_sep_elim
assoc
.
apply
sep_mono_l
,
and_intro
.
-
by
rewrite
and_elim_r
absorbing
.
-
by
rewrite
and_elim_l
left_id
.
Qed
.
Lemma
persistently_and_emp_elim
P
:
emp
∧
□
P
⊢
P
.
Proof
.
by
rewrite
comm
persistently_and_sep_elim
right_id
and_elim_r
.
Qed
.
Lemma
persistently_elim
P
:
□
P
⊢
P
∗
True
.
Lemma
persistently_elim
P
:
□
P
⊢
P
∗
True
.
Proof
.
Proof
.
rewrite
-
(
right_id
True
%
I
_
(
□
_)
%
I
)
-
{
1
}(
left_id
emp
%
I
_
True
%
I
)
.
rewrite
-
(
right_id
True
%
I
_
(
□
_)
%
I
)
-
{
1
}(
left_id
emp
%
I
_
True
%
I
)
.
...
...
This diff is collapsed.
Click to expand it.
theories/bi/interface.v
+
3
−
7
View file @
d18747b6
...
@@ -111,10 +111,8 @@ Section bi_mixin.
...
@@ -111,10 +111,8 @@ Section bi_mixin.
□
(
∃
a
,
Ψ
a
)
⊢
∃
a
,
□
Ψ
a
;
□
(
∃
a
,
Ψ
a
)
⊢
∃
a
,
□
Ψ
a
;
bi_mixin_persistently_emp_intro
P
:
P
⊢
□
emp
;
bi_mixin_persistently_emp_intro
P
:
P
⊢
□
emp
;
bi_mixin_persistently_and_emp_elim
P
:
emp
∧
□
P
⊢
P
;
bi_mixin_persistently_absorbing
P
Q
:
□
P
∗
Q
⊢
□
P
;
bi_mixin_persistently_absorbing
P
Q
:
□
P
∗
Q
⊢
□
P
;
bi_mixin_persistently_and_sep_
assoc_1
P
Q
R
:
□
P
∧
(
Q
∗
R
)
⊢
(
□
P
∧
Q
)
∗
R
;
bi_mixin_persistently_and_sep_
elim
P
Q
:
□
P
∧
Q
⊢
(
emp
∧
P
)
∗
Q
;
}
.
}
.
Record
SBIMixin
:=
{
Record
SBIMixin
:=
{
...
@@ -420,12 +418,10 @@ Proof. eapply bi_mixin_persistently_exist_1, bi_bi_mixin. Qed.
...
@@ -420,12 +418,10 @@ Proof. eapply bi_mixin_persistently_exist_1, bi_bi_mixin. Qed.
Lemma
persistently_emp_intro
P
:
P
⊢
□
emp
.
Lemma
persistently_emp_intro
P
:
P
⊢
□
emp
.
Proof
.
eapply
bi_mixin_persistently_emp_intro
,
bi_bi_mixin
.
Qed
.
Proof
.
eapply
bi_mixin_persistently_emp_intro
,
bi_bi_mixin
.
Qed
.
Lemma
persistently_and_emp_elim
P
:
emp
∧
□
P
⊢
P
.
Proof
.
eapply
bi_mixin_persistently_and_emp_elim
,
bi_bi_mixin
.
Qed
.
Lemma
persistently_absorbing
P
Q
:
□
P
∗
Q
⊢
□
P
.
Lemma
persistently_absorbing
P
Q
:
□
P
∗
Q
⊢
□
P
.
Proof
.
eapply
(
bi_mixin_persistently_absorbing
bi_entails
),
bi_bi_mixin
.
Qed
.
Proof
.
eapply
(
bi_mixin_persistently_absorbing
bi_entails
),
bi_bi_mixin
.
Qed
.
Lemma
persistently_and_sep_
assoc_1
P
Q
R
:
□
P
∧
(
Q
∗
R
)
⊢
(
□
P
∧
Q
)
∗
R
.
Lemma
persistently_and_sep_
elim
P
Q
:
□
P
∧
Q
⊢
(
emp
∧
P
)
∗
Q
.
Proof
.
eapply
bi_mixin_persistently_and_sep_
assoc_1
,
bi_bi_mixin
.
Qed
.
Proof
.
eapply
bi_mixin_persistently_and_sep_
elim
,
bi_bi_mixin
.
Qed
.
End
bi_laws
.
End
bi_laws
.
Section
sbi_laws
.
Section
sbi_laws
.
...
...
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