Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
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
Gaëtan Gilbert
Iris
Commits
c9c90cf6
Commit
c9c90cf6
authored
5 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Fix issue
#288
.
parent
d12506a1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/proofmode/class_instances_bi.v
+10
-2
10 additions, 2 deletions
theories/proofmode/class_instances_bi.v
with
10 additions
and
2 deletions
theories/proofmode/class_instances_bi.v
+
10
−
2
View file @
c9c90cf6
...
...
@@ -4,6 +4,7 @@ From iris.proofmode Require Import base modality_instances classes ltac_tactics.
Set
Default
Proof
Using
"Type"
.
Import
bi
.
(* FIXME(Coq #6294): needs new unification *)
(** The lemma [from_assumption_exact is not an instance, but defined using
[notypeclasses refine] through [Hint Extern] to enable the better unification
algorithm. We use [shelve] to avoid the creation of unshelved goals for evars
...
...
@@ -15,6 +16,15 @@ Proof. by rewrite /FromAssumption /= intuitionistically_if_elim. Qed.
Hint
Extern
0
(
FromAssumption
_
_
_)
=>
notypeclasses
refine
(
from_assumption_exact
_
_);
shelve
:
typeclass_instances
.
(* FIXME(Coq #6294): needs new unification *)
(** Similarly, the lemma [from_exist_exist] is defined using a [Hint Extern] to
enable the better unification algorithm.
See https://gitlab.mpi-sws.org/iris/iris/issues/288 *)
Lemma
from_exist_exist
{
PROP
:
bi
}
{
A
}
(
Φ
:
A
→
PROP
)
:
FromExist
(
∃
a
,
Φ
a
)
Φ
.
Proof
.
by
rewrite
/
FromExist
.
Qed
.
Hint
Extern
0
(
FromExist
_
_)
=>
notypeclasses
refine
(
from_exist_exist
_)
:
typeclass_instances
.
Section
bi_instances
.
Context
{
PROP
:
bi
}
.
Implicit
Types
P
Q
R
:
PROP
.
...
...
@@ -871,8 +881,6 @@ Global Instance into_or_embed `{BiEmbed PROP PROP'} P Q1 Q2 :
Proof
.
by
rewrite
/
IntoOr
-
embed_or
=>
<-.
Qed
.
(** FromExist *)
Global
Instance
from_exist_exist
{
A
}
(
Φ
:
A
→
PROP
)
:
FromExist
(
∃
a
,
Φ
a
)
Φ
.
Proof
.
by
rewrite
/
FromExist
.
Qed
.
Global
Instance
from_exist_texist
{
A
}
(
Φ
:
tele_arg
A
→
PROP
)
:
FromExist
(
∃
.
.
a
,
Φ
a
)
Φ
.
Proof
.
by
rewrite
/
FromExist
bi_texist_exist
.
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