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
Construct a bundled Cat from the underlying type and the typeclass.
Instances For
The 1-morphism in Cat corresponding to a functor.
Instances For
The equivalence between the type of functors between two categories and the type of 1-morphisms in Cat between the objects corresponding to those categories.
Instances For
The equivalence between the type of 1-morphisms in Cat between two objects and the type of functors between the categories corresponding to those objects.
Instances For
The 2-morphism in Cat corresponding to a natural transformation between functors.
Instances For
The 2-iso in Cat corresponding to a natural isomorphism.
Instances For
The natural isomorphism corresponding to a 2-iso in Cat
Instances For
Bicategory structure on Cat
Cat is a strict bicategory.
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.
Instances For
See through the defeq objects.obj X = X.
Any isomorphism in Cat induces an equivalence of the underlying categories.
Instances For
Under certain hypotheses, an equivalence of categories actually
defines an isomorphism in Cat.
Instances For
Embedding Type into Cat as discrete categories.
This ought to be modelled as a 2-functor!