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
7b460868
Commit
7b460868
authored
4 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Make the proof closer to the jungle proof.
parent
13e8dee5
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
theories/bi/lib/counterexamples.v
+14
-8
14 additions, 8 deletions
theories/bi/lib/counterexamples.v
with
14 additions
and
8 deletions
theories/bi/lib/counterexamples.v
+
14
−
8
View file @
7b460868
...
...
@@ -7,23 +7,29 @@ Set Default Proof Using "Type*".
(** This proves that the combination of affinity [P ∗ Q ⊢ P] and the classical
excluded-middle [P ∨ ¬P] axiom makes the separation conjunction trivial, i.e.,
it gives [P -∗ P ∗ P].
it gives [P -∗ P ∗ P]
and [P ∧ Q -∗ P ∗ Q]
.
A similar proof is presented
in
Our proof essentially follows the structure of the proof of Theorem 3
in
https://scholar.princeton.edu/sites/default/files/qinxiang/files/putting_order_to_the_separation_logic_jungle_revised_version.pdf *)
Module
affine_em
.
Section
affine_em
.
Context
`{
!
BiAffine
PROP
}
.
Context
(
em
:
∀
P
:
PROP
,
⊢
P
∨
¬
P
)
.
Implicit
Types
P
Q
:
PROP
.
Lemma
sep_dup
P
:
P
-∗
P
∗
P
.
Proof
.
iIntros
"HP"
.
iDestruct
(
em
P
)
as
"[HP'|HnotP]"
.
-
iFrame
"HP HP'"
.
-
iExFalso
.
by
iApply
"HnotP"
.
Qed
.
Lemma
and_sep
P
Q
:
P
∧
Q
-∗
P
∗
Q
.
Proof
using
All
.
iIntros
"HPQ"
.
iDestruct
(
em
P
)
as
"[HP|HnotP]"
.
-
iFrame
"HP"
.
by
iDestruct
"HPQ"
as
"[_ HQ]"
.
-
iExFalso
.
iApply
"HnotP"
.
by
iDestruct
"HPQ"
as
"[HP _]"
.
Proof
.
iIntros
"HPQ"
.
iDestruct
(
sep_dup
with
"HPQ"
)
as
"[HPQ HPQ']"
.
iSplitL
"HPQ"
.
-
by
iDestruct
"HPQ"
as
"[HP _]"
.
-
by
iDestruct
"HPQ'"
as
"[_ HQ]"
.
Qed
.
Lemma
sep_trivial
P
:
P
-∗
P
∗
P
.
Proof
using
All
.
iIntros
"HP"
.
iApply
and_sep
;
auto
.
Qed
.
End
affine_em
.
End
affine_em
.
(** This proves that the combination of Löb induction [(▷ P → P) ⊢ P] and the
...
...
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