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.
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 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
Bicategory structure on Cat
Cat is a strict bicategory.
Category structure on Cat
The identity in the category of categories equals the identity functor.
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.
Under certain hypotheses, an equivalence of categories actually
defines an isomorphism in Cat.