Documentation

Mathlib.CategoryTheory.Groupoid.Grpd.Basic

Category of groupoids #

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

We also provide two “forgetting” functors: objects : Grpd ⥤ Type and forgetToCat : Grpd ⥤ Cat.

Implementation notes #

Though Grpd is not a concrete category, we use Bundled to define its carrier type.

def CategoryTheory.Grpd :
Type (max (u + 1) u (v + 1))

Category of groupoids

Equations
    Instances For

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

      Equations
        Instances For
          @[simp]
          theorem CategoryTheory.Grpd.coe_of (C : Type u) [Groupoid C] :
          (of C) = C

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

          Equations
            Instances For

              Forgetting functor to Cat

              Equations
                Instances For
                  theorem CategoryTheory.Grpd.comp_eq_comp {C D E : Grpd} (f : C D) (g : D E) :

                  Convert arrows in the category of groupoids to functors, which sometimes helps in applying simp lemmas

                  Converts identity in the category of groupoids to the functor identity

                  @[deprecated CategoryTheory.Grpd.comp_eq_comp (since := "2025-09-04")]
                  theorem CategoryTheory.Grpd.hom_to_functor {C D E : Grpd} (f : C D) (g : D E) :

                  Alias of CategoryTheory.Grpd.comp_eq_comp.


                  Convert arrows in the category of groupoids to functors, which sometimes helps in applying simp lemmas

                  @[deprecated "Deprecated in favor of using `CategoryTheory.Grpd.id_eq_id`" (since := "2025-09-04")]
                  def CategoryTheory.Grpd.piLimitFan J : Type u⦄ (F : JGrpd) :

                  Construct the product over an indexed family of groupoids, as a fan.

                  Equations
                    Instances For

                      The product fan over an indexed family of groupoids, is a limit cone.

                      Equations
                        Instances For
                          noncomputable def CategoryTheory.Grpd.piIsoPi (J : Type u) (f : JGrpd) :
                          of ((j : J) → (f j)) ∏ᶜ f

                          The product of a family of groupoids is isomorphic to the product object in the category of Groupoids

                          Equations
                            Instances For
                              @[simp]
                              theorem CategoryTheory.Grpd.piIsoPi_hom_π (J : Type u) (f : JGrpd) (j : J) :
                              CategoryStruct.comp (piIsoPi J f).hom (Limits.Pi.π f j) = Pi.eval (fun (i : J) => (f i)) j