Skip to content

Commit cc994e8

Browse files
committed
1 parent 63b2313 commit cc994e8

File tree

5 files changed

+21
-10
lines changed

5 files changed

+21
-10
lines changed

theories/Categories/Category/Morphisms.v

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@ Hint Rewrite @left_inverse @right_inverse : morphism.
3232
Class Isomorphic {C : PreCategory} s d :=
3333
{
3434
morphism_isomorphic : morphism C s d;
35-
isisomorphism_isomorphic :> IsIsomorphism morphism_isomorphic
35+
isisomorphism_isomorphic : IsIsomorphism morphism_isomorphic
3636
}.
3737

3838
(*Coercion Build_Isomorphic : IsIsomorphism >-> Isomorphic.*)
3939
Coercion morphism_isomorphic : Isomorphic >-> morphism.
40+
(* Use :> and remove the two following lines,
41+
once Coq 8.16 is the minimum required version. *)
42+
#[export] Existing Instance isisomorphism_isomorphic.
4043
Coercion isisomorphism_isomorphic : Isomorphic >-> IsIsomorphism.
4144

4245
Local Infix "<~=~>" := Isomorphic : category_scope.

theories/Colimits/Colimit.v

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ Generalizable All Variables.
1515
(** A colimit is the extremity of a cocone. *)
1616

1717
Class IsColimit `(D: Diagram G) (Q: Type) := {
18-
iscolimit_cocone :> Cocone D Q;
18+
iscolimit_cocone : Cocone D Q;
1919
iscolimit_unicocone : UniversalCocone iscolimit_cocone;
2020
}.
21-
21+
(* Use :> and remove the two following lines,
22+
once Coq 8.16 is the minimum required version. *)
23+
#[export] Existing Instance iscolimit_cocone.
2224
Coercion iscolimit_cocone : IsColimit >-> Cocone.
2325

2426
Arguments Build_IsColimit {G D Q} C H : rename.

theories/Diagrams/Cocone.v

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,11 @@ Section Cocone.
8383
(** A cocone [C] over [D] to [X] is said universal when for all [Y] the map [cocone_postcompose] is an equivalence. In particular, given another cocone [C'] over [D] to [X'] the inverse of the map allows to recover a map [h] : [X] -> [X'] such that [C'] is [C] postcomposed with [h]. The fact that [cocone_postcompose] is an equivalence is an elegant way of stating the usual "unique existence" of category theory. *)
8484

8585
Class UniversalCocone (C : Cocone D X) := {
86-
is_universal :> forall Y, IsEquiv (@cocone_postcompose C Y);
86+
is_universal : forall Y, IsEquiv (@cocone_postcompose C Y);
8787
}.
88-
88+
(* Use :> and remove the two following lines,
89+
once Coq 8.16 is the minimum required version. *)
90+
#[export] Existing Instance is_universal.
8991
Coercion is_universal : UniversalCocone >-> Funclass.
9092

9193
End Cocone.

theories/Diagrams/Cone.v

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,11 @@ Section Cone.
8181
(** A cone [C] over [D] from [X] is said universal when for all [Y] the map [cone_precompose] is an equivalence. In particular, given another cone [C'] over [D] from [X'] the inverse of the map allows us to recover a map [h] : [X] -> [X'] such that [C'] is [C] precomposed with [h]. The fact that [cone_precompose] is an equivalence is an elegant way of stating the usual "unique existence" of category theory. *)
8282

8383
Class UniversalCone (C : Cone X D) := {
84-
is_universal :> forall Y, IsEquiv (@cone_precompose C Y);
85-
}.
86-
84+
is_universal : forall Y, IsEquiv (@cone_precompose C Y);
85+
}.
86+
(* Use :> and remove the two following lines,
87+
once Coq 8.16 is the minimum required version. *)
88+
#[export] Existing Instance is_universal.
8789
Coercion is_universal : UniversalCone >-> Funclass.
8890

8991
End Cone.

theories/Limits/Limit.v

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ Generalizable All Variables.
1515
(** A Limit is the extremity of a cone. *)
1616

1717
Class IsLimit `(D : Diagram G) (Q : Type) := {
18-
islimit_cone :> Cone Q D;
18+
islimit_cone : Cone Q D;
1919
islimit_unicone : UniversalCone islimit_cone;
2020
}.
21-
21+
(* Use :> and remove the two following lines,
22+
once Coq 8.16 is the minimum required version. *)
23+
#[export] Existing Instance islimit_cone.
2224
Coercion islimit_cone : IsLimit >-> Cone.
2325

2426
Arguments Build_IsLimit {G D Q} C H : rename.

0 commit comments

Comments
 (0)