Documentation

Mathlib.CategoryTheory.WithTerminal

WithInitial and WithTerminal #

Given a category C, this file constructs two objects:

  1. WithTerminal C, the category built from C by formally adjoining a terminal object.
  2. WithInitial C, the category built from C by formally adjoining an initial object.

The terminal resp. initial object is WithTerminal.star resp. WithInitial.star, and the proofs that these are terminal resp. initial are in WithTerminal.star_terminal and WithInitial.star_initial.

The inclusion from C into WithTerminal C resp. WithInitial C is denoted WithTerminal.incl resp. WithInitial.incl.

The relevant constructions needed for the universal properties of these constructions are:

  1. lift, which lifts F : C ⥤ D to a functor from WithTerminal C resp. WithInitial C in the case where an object Z : D is provided satisfying some additional conditions.
  2. inclLift shows that the composition of lift with incl is isomorphic to the functor which was lifted.
  3. liftUnique provides the uniqueness property of lift.

In addition to this, we provide WithTerminal.map and WithInitial.map providing the functoriality of these constructions with respect to functors on the base categories.

We define corresponding pseudofunctors WithTerminal.pseudofunctor and WithInitial.pseudofunctor from Cat to Cat.

Formally adjoin a terminal object to a category.

Instances For
    inductive CategoryTheory.WithInitial (C : Type u) :

    Formally adjoin an initial object to a category.

    Instances For

      The inclusion from C into WithTerminal C.

      Equations
      Instances For

        Map WithTerminal with respect to a functor F : C ⥤ D.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          A natural isomorphism between the functor map (𝟭 C) and 𝟭 (WithTerminal C).

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            A natural isomorphism between the functor map (F ⋙ G) and map F ⋙ map G .

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              From a natural transformation of functors C ⥤ D, the induced natural transformation of functors WithTerminal C ⥤ WithTerminal D.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For

                The prelax functor from Cat to Cat defined with WithTerminal.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For

                  The pseudofunctor from Cat to Cat defined with WithTerminal.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    def CategoryTheory.WithTerminal.lift {C : Type u} [CategoryTheory.Category.{v, u} C] {D : Type u_1} [CategoryTheory.Category.{u_2, u_1} D] {Z : D} (F : CategoryTheory.Functor C D) (M : (x : C) → F.obj x Z) (hM : ∀ (x y : C) (f : x y), CategoryTheory.CategoryStruct.comp (F.map f) (M y) = M x) :

                    Lift a functor F : C ⥤ D to WithTerminal C ⥤ D.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      @[simp]
                      theorem CategoryTheory.WithTerminal.lift_obj {C : Type u} [CategoryTheory.Category.{v, u} C] {D : Type u_1} [CategoryTheory.Category.{u_2, u_1} D] {Z : D} (F : CategoryTheory.Functor C D) (M : (x : C) → F.obj x Z) (hM : ∀ (x y : C) (f : x y), CategoryTheory.CategoryStruct.comp (F.map f) (M y) = M x) (X : CategoryTheory.WithTerminal C) :

                      The isomorphism between incllift F _ _ with F.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        @[simp]
                        theorem CategoryTheory.WithTerminal.inclLift_inv_app {C : Type u} [CategoryTheory.Category.{v, u} C] {D : Type u_1} [CategoryTheory.Category.{u_2, u_1} D] {Z : D} (F : CategoryTheory.Functor C D) (M : (x : C) → F.obj x Z) (hM : ∀ (x y : C) (f : x y), CategoryTheory.CategoryStruct.comp (F.map f) (M y) = M x) (x✝ : C) :
                        @[simp]

                        The isomorphism between (lift F _ _).obj WithTerminal.star with Z.

                        Equations
                        Instances For
                          @[simp]
                          @[simp]

                          The uniqueness of lift.

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For

                            The inclusion of C into WithInitial C.

                            Equations
                            Instances For

                              Map WithInitial with respect to a functor F : C ⥤ D.

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For

                                A natural isomorphism between the functor map (𝟭 C) and 𝟭 (WithInitial C).

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For

                                  A natural isomorphism between the functor map (F ⋙ G) and map F ⋙ map G .

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For

                                    From a natural transformation of functors C ⥤ D, the induced natural transformation of functors WithInitial C ⥤ WithInitial D.

                                    Equations
                                    • One or more equations did not get rendered due to their size.
                                    Instances For

                                      The prelax functor from Cat to Cat defined with WithInitial.

                                      Equations
                                      • One or more equations did not get rendered due to their size.
                                      Instances For

                                        The pseudofunctor from Cat to Cat defined with WithInitial.

                                        Equations
                                        • One or more equations did not get rendered due to their size.
                                        Instances For
                                          def CategoryTheory.WithInitial.lift {C : Type u} [CategoryTheory.Category.{v, u} C] {D : Type u_1} [CategoryTheory.Category.{u_2, u_1} D] {Z : D} (F : CategoryTheory.Functor C D) (M : (x : C) → Z F.obj x) (hM : ∀ (x y : C) (f : x y), CategoryTheory.CategoryStruct.comp (M x) (F.map f) = M y) :

                                          Lift a functor F : C ⥤ D to WithInitial C ⥤ D.

                                          Equations
                                          • One or more equations did not get rendered due to their size.
                                          Instances For
                                            @[simp]
                                            theorem CategoryTheory.WithInitial.lift_obj {C : Type u} [CategoryTheory.Category.{v, u} C] {D : Type u_1} [CategoryTheory.Category.{u_2, u_1} D] {Z : D} (F : CategoryTheory.Functor C D) (M : (x : C) → Z F.obj x) (hM : ∀ (x y : C) (f : x y), CategoryTheory.CategoryStruct.comp (M x) (F.map f) = M y) (X : CategoryTheory.WithInitial C) :
                                            def CategoryTheory.WithInitial.inclLift {C : Type u} [CategoryTheory.Category.{v, u} C] {D : Type u_1} [CategoryTheory.Category.{u_2, u_1} D] {Z : D} (F : CategoryTheory.Functor C D) (M : (x : C) → Z F.obj x) (hM : ∀ (x y : C) (f : x y), CategoryTheory.CategoryStruct.comp (M x) (F.map f) = M y) :

                                            The isomorphism between incllift F _ _ with F.

                                            Equations
                                            • One or more equations did not get rendered due to their size.
                                            Instances For
                                              @[simp]
                                              theorem CategoryTheory.WithInitial.inclLift_hom_app {C : Type u} [CategoryTheory.Category.{v, u} C] {D : Type u_1} [CategoryTheory.Category.{u_2, u_1} D] {Z : D} (F : CategoryTheory.Functor C D) (M : (x : C) → Z F.obj x) (hM : ∀ (x y : C) (f : x y), CategoryTheory.CategoryStruct.comp (M x) (F.map f) = M y) (x✝ : C) :
                                              @[simp]
                                              theorem CategoryTheory.WithInitial.inclLift_inv_app {C : Type u} [CategoryTheory.Category.{v, u} C] {D : Type u_1} [CategoryTheory.Category.{u_2, u_1} D] {Z : D} (F : CategoryTheory.Functor C D) (M : (x : C) → Z F.obj x) (hM : ∀ (x y : C) (f : x y), CategoryTheory.CategoryStruct.comp (M x) (F.map f) = M y) (x✝ : C) :

                                              The isomorphism between (lift F _ _).obj WithInitial.star with Z.

                                              Equations
                                              Instances For
                                                @[simp]
                                                @[simp]

                                                The uniqueness of lift.

                                                Equations
                                                • One or more equations did not get rendered due to their size.
                                                Instances For