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
Rice Wine
Iris
Commits
f072ab70
Commit
f072ab70
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://gitlab.mpi-sws.org/FP/iris-coq
parents
99cbb525
f72563c7
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
base_logic/derived.v
+6
-1
6 additions, 1 deletion
base_logic/derived.v
base_logic/primitive.v
+2
-4
2 additions, 4 deletions
base_logic/primitive.v
with
8 additions
and
5 deletions
base_logic/derived.v
+
6
−
1
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
)
.
...
...
This diff is collapsed.
Click to expand it.
base_logic/primitive.v
+
2
−
4
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
.
...
...
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