Skip to content
GitLab
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
2b06f3e2
Commit
2b06f3e2
authored
Mar 05, 2018
by
Jacques-Henri Jourdan
Browse files
Make sure as_valid_embed is not used when there is no embedding.
parent
7cfa93e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
theories/proofmode/class_instances.v
View file @
2b06f3e2
...
...
@@ -1007,9 +1007,16 @@ Proof.
-
intros
x
.
apply
H1
.
revert
H2
.
by
rewrite
(
bi
.
forall_elim
x
).
Qed
.
(* We add a useless hypothesis [BiEmbed PROP PROP'] in order to make
sure this iinstance is not used when there is no embedding between
PROP and PROP'.
The first [`{BiEmbed PROP PROP'}] is not considered as a premise by
Coq TC search mechanism because the rest of the hypothesis is dependent
on it. *)
Global
Instance
as_valid_embed
`
{
BiEmbed
PROP
PROP'
}
(
φ
:
Prop
)
(
P
:
PROP
)
:
BiEmbed
PROP
PROP'
→
AsValid0
φ
P
→
AsValid
φ
⎡
P
⎤
.
Proof
.
rewrite
/
AsValid0
/
AsValid
=>
->.
rewrite
embed_valid
//.
Qed
.
Proof
.
rewrite
/
AsValid0
/
AsValid
=>
_
->.
rewrite
embed_valid
//.
Qed
.
End
bi_instances
.
Section
sbi_instances
.
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment