Category of groupoids

This file contains the definition of the category Groupoid of all groupoids. In this category objects are groupoids and morphisms are functors between these groupoids.

We also provide two “forgetting” functors: objects : Groupoid ⥤ Type and forget_to_Cat : Groupoid ⥤ Cat.

Implementation notes

Though Groupoid is not a concrete category, we use bundled to define its carrier type.


category_theory.Groupoid

Category of groupoids

category_theory.Groupoid.of

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

category_theory.Groupoid.category

Category structure on Groupoid

category_theory.Groupoid.objects

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

category_theory.Groupoid.forget_to_Cat

Forgetting functor to Cat