Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Iris
Iris
Commits
d9cad5bf
Commit
d9cad5bf
authored
Feb 15, 2017
by
Janno
Browse files
Add IntoPure instances for ∗, ∧, and ∨.
parent
84d78426
Changes
1
Hide whitespace changes
Inline
Side-by-side
theories/proofmode/class_instances.v
View file @
d9cad5bf
...
@@ -55,6 +55,15 @@ Global Instance into_pure_forall {X : Type} (Φ : X → uPred M) φ :
...
@@ -55,6 +55,15 @@ Global Instance into_pure_forall {X : Type} (Φ : X → uPred M) φ :
Proof
.
Proof
.
rewrite
/
IntoPure
=>
Hx
.
rewrite
-
pure_forall_2
.
by
setoid_rewrite
Hx
.
rewrite
/
IntoPure
=>
Hx
.
rewrite
-
pure_forall_2
.
by
setoid_rewrite
Hx
.
Qed
.
Qed
.
Global
Instance
into_pure_pure_conj
(
φ
1
φ
2
:
uPred
M
)
P1
P2
:
IntoPure
φ
1
P1
->
IntoPure
φ
2
P2
->
IntoPure
(
φ
1
∧
φ
2
)
(
P1
∧
P2
).
Proof
.
rewrite
/
IntoPure
pure_and
.
by
intros
->
->.
Qed
.
Global
Instance
into_pure_pure_sep
(
φ
1
φ
2
:
uPred
M
)
P1
P2
:
IntoPure
φ
1
P1
->
IntoPure
φ
2
P2
->
IntoPure
(
φ
1
∗
φ
2
)
(
P1
∧
P2
).
Proof
.
rewrite
/
IntoPure
sep_and
pure_and
.
by
intros
->
->.
Qed
.
Global
Instance
into_pure_pure_disj
(
φ
1
φ
2
:
uPred
M
)
P1
P2
:
IntoPure
φ
1
P1
->
IntoPure
φ
2
P2
->
IntoPure
(
φ
1
∨
φ
2
)
(
P1
∨
P2
).
Proof
.
rewrite
/
IntoPure
pure_or
.
by
intros
->
->.
Qed
.
(* FromPure *)
(* FromPure *)
Global
Instance
from_pure_pure
φ
:
@
FromPure
M
⌜φ⌝
φ
.
Global
Instance
from_pure_pure
φ
:
@
FromPure
M
⌜φ⌝
φ
.
...
...
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