Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
Iris
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
122
Issues
122
List
Boards
Labels
Service Desk
Milestones
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Iris
Iris
Commits
f072ab70
Commit
f072ab70
authored
Nov 22, 2016
by
Ralf Jung
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.mpi-sws.org/FP/iris-coq
parents
99cbb525
f72563c7
Pipeline
#3041
passed with stage
in 10 minutes and 21 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
base_logic/derived.v
base_logic/derived.v
+6
-1
base_logic/primitive.v
base_logic/primitive.v
+2
-4
No files found.
base_logic/derived.v
View file @
f072ab70
...
...
@@ -35,7 +35,7 @@ Notation "P ⊣⊢ Q" := (equiv (A:=uPred M) P%I Q%I). (* Force implicit argumen
(* Derived logical stuff *)
Lemma
False_elim
P
:
False
⊢
P
.
Proof
.
by
apply
(
pure_elim
False
).
Qed
.
Proof
.
by
apply
(
pure_elim
'
False
).
Qed
.
Lemma
True_intro
P
:
P
⊢
True
.
Proof
.
by
apply
pure_intro
.
Qed
.
...
...
@@ -212,6 +212,11 @@ Proof.
-
apply
or_elim
;
apply
exist_elim
=>
a
;
rewrite
-(
exist_intro
a
)
;
auto
.
Qed
.
Lemma
pure_elim
φ
Q
R
:
(
Q
⊢
⌜φ⌝
)
→
(
φ
→
Q
⊢
R
)
→
Q
⊢
R
.
Proof
.
intros
HQ
HQR
.
rewrite
-(
idemp
uPred_and
Q
)
{
1
}
HQ
.
apply
impl_elim_l'
,
pure_elim'
=>
?.
by
apply
entails_impl
,
HQR
.
Qed
.
Lemma
pure_mono
φ
1
φ
2
:
(
φ
1
→
φ
2
)
→
⌜φ
1
⌝
⊢
⌜φ
2
⌝
.
Proof
.
intros
;
apply
pure_elim
with
φ
1
;
eauto
.
Qed
.
Global
Instance
pure_mono'
:
Proper
(
impl
==>
(
⊢
))
(@
uPred_pure
M
).
...
...
base_logic/primitive.v
View file @
f072ab70
...
...
@@ -318,10 +318,8 @@ Global Instance bupd_proper : Proper ((≡) ==> (≡)) (@uPred_bupd M) := ne_pro
(** Introduction and elimination rules *)
Lemma
pure_intro
φ
P
:
φ
→
P
⊢
⌜φ⌝
.
Proof
.
by
intros
?
;
unseal
;
split
.
Qed
.
Lemma
pure_elim
φ
Q
R
:
(
Q
⊢
⌜φ⌝
)
→
(
φ
→
Q
⊢
R
)
→
Q
⊢
R
.
Proof
.
unseal
;
intros
HQP
HQR
;
split
=>
n
x
??
;
apply
HQR
;
first
eapply
HQP
;
eauto
.
Qed
.
Lemma
pure_elim'
φ
P
:
(
φ
→
True
⊢
P
)
→
⌜φ⌝
⊢
P
.
Proof
.
unseal
;
intros
HP
;
split
=>
n
x
??.
by
apply
HP
.
Qed
.
Lemma
pure_forall_2
{
A
}
(
φ
:
A
→
Prop
)
:
(
∀
x
:
A
,
⌜φ
x
⌝
)
⊢
⌜
∀
x
:
A
,
φ
x
⌝
.
Proof
.
by
unseal
.
Qed
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment