Category of categories #
This file contains the definition of the category Cat
of all categories.
In this category objects are categories and
morphisms are functors between these categories.
Implementation notes #
Though Cat
is not a concrete category, we use bundled
to define
its carrier type.
Category of categories.
Instances For
Equations
- CategoryTheory.Cat.instInhabited = { default := { α := Type ?u.3, str := CategoryTheory.types } }
Equations
- CategoryTheory.Cat.instCoeSortType = { coe := CategoryTheory.Bundled.α }
Equations
- C.str = C.str
Bicategory structure on Cat
Equations
- One or more equations did not get rendered due to their size.
Cat
is a strict bicategory.
Equations
Category structure on Cat
The identity in the category of categories equals the identity functor.
Composition in the category of categories equals functor composition.
Functor that gets the set of objects of a category. It is not
called forget
, because it is not a faithful functor.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- X.instCategoryObjObjects = inferInstance
Any isomorphism in Cat
induces an equivalence of the underlying categories.
Equations
- CategoryTheory.Cat.equivOfIso γ = { functor := γ.hom, inverse := γ.inv, unitIso := CategoryTheory.eqToIso ⋯, counitIso := CategoryTheory.eqToIso ⋯, functor_unitIso_comp := ⋯ }
Instances For
Embedding Type
into Cat
as discrete categories.
This ought to be modelled as a 2-functor!
Equations
- One or more equations did not get rendered due to their size.