Category of categories

This file contains definition of 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_theory.Cat

Category of categories.

category_theory.Cat.of

Construct a bundled Cat from the underlying type and the typeclass.

category_theory.Cat.category

Category structure on Cat

category_theory.Cat.objects

Functor that gets the set of objects of a category. It is not called forget, because it is not a faithful functor.