| 1 |
Set Implicit Arguments. |
| 2 |
Generalizable All Variables. |
| 3 |
|
| 4 |
Record Category {obj : Type} := |
| 5 |
{ |
| 6 |
Morphism : obj -> obj -> Type; |
| 7 |
|
| 8 |
Identity : forall x, Morphism x x; |
| 9 |
Compose : forall s d d', Morphism d d' -> Morphism s d -> Morphism s d'; |
| 10 |
LeftIdentity : forall a b (f : Morphism a b), Compose (Identity b) f = f |
| 11 |
}. |
| 12 |
|
| 13 |
|
| 14 |
Section DiscreteAdjoints. |
| 15 |
|
| 16 |
Let C := {| |
| 17 |
Morphism := (fun X Y : Type => X -> Y); |
| 18 |
Identity := (fun X : Type => (fun x : X => x)); |
| 19 |
Compose := (fun _ _ _ f g => (fun x => f (g x))); |
| 20 |
LeftIdentity := (fun X Y p => @eq_refl _ p : (fun x : X => p x) = p) |
| 21 |
|}. |
| 22 |
Variable ObjectFunctor : C = C. |
| 23 |
|
| 24 |
Goal True. |
| 25 |
Proof. |
| 26 |
subst C. |
| 27 |
revert ObjectFunctor. |
| 28 |
intro ObjectFunctor. |
| 29 |
simpl in ObjectFunctor. |
| 30 |
revert ObjectFunctor. |
| 31 |
Abort. |
| 32 |
|
| 33 |
End DiscreteAdjoints. |