| 1 |
|
| 2 |
Reserved Infix "$->" (at level 99). |
| 3 |
Reserved Infix "$<~>" (at level 85). |
| 4 |
|
| 5 |
Global Set Primitive Projections. |
| 6 |
|
| 7 |
Class IsGraph (A : Type) := |
| 8 |
{ |
| 9 |
Hom : A -> A -> Type |
| 10 |
}. |
| 11 |
|
| 12 |
Notation "a $-> b" := (Hom a b). |
| 13 |
|
| 14 |
Class HasEquivs (A : Type) `{IsGraph A} := |
| 15 |
{ |
| 16 |
CatEquiv : A -> A -> Type |
| 17 |
where "a $<~> b" := (CatEquiv a b) ; |
| 18 |
}. |
| 19 |
|
| 20 |
Infix "$<~>" := CatEquiv. |
| 21 |
Axiom cate_fun : forall `{HasEquivs} {a b}, (a $<~> b) -> (a $-> b). |
| 22 |
Coercion cate_fun : CatEquiv >-> Hom. |
| 23 |
|
| 24 |
Definition cate_inv {A} `{HasEquivs A} {a b : A} (f : a $<~> b) : a $-> b. |
| 25 |
Proof. |
| 26 |
exact f. |
| 27 |
Defined. |