Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Jonas Kastberg
iris
Commits
6afa0332
Commit
6afa0332
authored
Mar 18, 2020
by
Ralf Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make pair_core_id a new-unification-instance
parent
26d4f967
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
theories/algebra/cmra.v
theories/algebra/cmra.v
+6
-1
No files found.
theories/algebra/cmra.v
View file @
6afa0332
...
...
@@ -1170,7 +1170,9 @@ Section prod.
CmraDiscrete
A
→
CmraDiscrete
B
→
CmraDiscrete
prodR
.
Proof
.
split
.
apply
_
.
by
intros
?
[]
;
split
;
apply
cmra_discrete_valid
.
Qed
.
Global
Instance
pair_core_id
x
y
:
(* FIXME(Coq #6294): This is not an instance because we need it to use the new
unification. *)
Lemma
pair_core_id
x
y
:
CoreId
x
→
CoreId
y
→
CoreId
(
x
,
y
).
Proof
.
by
rewrite
/
CoreId
prod_pcore_Some'
.
Qed
.
...
...
@@ -1189,6 +1191,9 @@ Section prod.
Proof
.
move
=>?
[??]
[
_
?]
[
_
/=?].
eauto
.
Qed
.
End
prod
.
(* Registering as [Hint Extern] with new unification. *)
Hint
Extern
4
(
CoreId
_
)
=>
notypeclasses
refine
(
pair_core_id
_
_
_
_
)
:
typeclass_instances
.
Arguments
prodR
:
clear
implicits
.
Section
prod_unit
.
...
...
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