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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
George Pirlea
Iris
Commits
2b06f3e2
Commit
2b06f3e2
authored
Mar 05, 2018
by
Jacques-Henri Jourdan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure as_valid_embed is not used when there is no embedding.
parent
7cfa93e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
theories/proofmode/class_instances.v
theories/proofmode/class_instances.v
+8
-1
No files found.
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
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