mathlib3 documentation

category_theory.with_terminal

with_initial and with_terminal #

THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.

Given a category C, this file constructs two objects:

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

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

The inclusion from C intro with_terminal C resp. with_initial C is denoted with_terminal.incl resp. with_initial.incl.

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

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

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

Formally adjoin a terminal object to a category.

Instances for category_theory.with_terminal

Formally adjoin an initial object to a category.

Instances for category_theory.with_initial
@[simp]

Identity morphisms for with_terminal C.

Equations
@[simp]

Composition of morphisms for with_terminal C.

Equations

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

Equations
@[protected, instance]
Equations
@[simp]
theorem category_theory.with_terminal.lift_obj {C : Type u} [category_theory.category C] {D : Type u_1} [category_theory.category D] {Z : D} (F : C D) (M : Π (x : C), F.obj x Z) (hM : (x y : C) (f : x y), F.map f M y = M x) (X : category_theory.with_terminal C) :
(category_theory.with_terminal.lift F M hM).obj X = category_theory.with_terminal.lift._match_1 F X
def category_theory.with_terminal.lift {C : Type u} [category_theory.category C] {D : Type u_1} [category_theory.category D] {Z : D} (F : C D) (M : Π (x : C), F.obj x Z) (hM : (x y : C) (f : x y), F.map f M y = M x) :

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

Equations
@[simp]
theorem category_theory.with_terminal.lift_map {C : Type u} [category_theory.category C] {D : Type u_1} [category_theory.category D] {Z : D} (F : C D) (M : Π (x : C), F.obj x Z) (hM : (x y : C) (f : x y), F.map f M y = M x) (X Y : category_theory.with_terminal C) (f : X Y) :
(category_theory.with_terminal.lift F M hM).map f = category_theory.with_terminal.lift._match_2 F M X Y f
@[simp]
theorem category_theory.with_terminal.incl_lift_hom_app {C : Type u} [category_theory.category C] {D : Type u_1} [category_theory.category D] {Z : D} (F : C D) (M : Π (x : C), F.obj x Z) (hM : (x y : C) (f : x y), F.map f M y = M x) (X : C) :
@[simp]
theorem category_theory.with_terminal.incl_lift_inv_app {C : Type u} [category_theory.category C] {D : Type u_1} [category_theory.category D] {Z : D} (F : C D) (M : Π (x : C), F.obj x Z) (hM : (x y : C) (f : x y), F.map f M y = M x) (X : C) :
def category_theory.with_terminal.incl_lift {C : Type u} [category_theory.category C] {D : Type u_1} [category_theory.category D] {Z : D} (F : C D) (M : Π (x : C), F.obj x Z) (hM : (x y : C) (f : x y), F.map f M y = M x) :

The isomorphism between incl ⋙ lift F _ _ with F.

Equations
@[simp]
theorem category_theory.with_terminal.lift_star_hom {C : Type u} [category_theory.category C] {D : Type u_1} [category_theory.category D] {Z : D} (F : C D) (M : Π (x : C), F.obj x Z) (hM : (x y : C) (f : x y), F.map f M y = M x) :
(category_theory.with_terminal.lift_star F M hM).hom = 𝟙 (category_theory.with_terminal.lift._match_1 F category_theory.with_terminal.star)
def category_theory.with_terminal.lift_star {C : Type u} [category_theory.category C] {D : Type u_1} [category_theory.category D] {Z : D} (F : C D) (M : Π (x : C), F.obj x Z) (hM : (x y : C) (f : x y), F.map f M y = M x) :

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

Equations
@[simp]
theorem category_theory.with_terminal.lift_star_inv {C : Type u} [category_theory.category C] {D : Type u_1} [category_theory.category D] {Z : D} (F : C D) (M : Π (x : C), F.obj x Z) (hM : (x y : C) (f : x y), F.map f M y = M x) :
@[simp]

The uniqueness of lift.

Equations
@[simp]
theorem category_theory.with_terminal.lift_to_terminal_map {C : Type u} [category_theory.category C] {D : Type u_1} [category_theory.category D] {Z : D} (F : C D) (hZ : category_theory.limits.is_terminal Z) (X Y : category_theory.with_terminal C) (f : X Y) :
(category_theory.with_terminal.lift_to_terminal F hZ).map f = category_theory.with_terminal.lift._match_2 F (λ (x : C), hZ.from (F.obj x)) X Y f
@[simp]

Identity morphisms for with_initial C.

Equations
@[simp]

Composition of morphisms for with_initial C.

Equations

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

Equations
@[protected, instance]
Equations
def category_theory.with_initial.lift {C : Type u} [category_theory.category C] {D : Type u_1} [category_theory.category D] {Z : D} (F : C D) (M : Π (x : C), Z F.obj x) (hM : (x y : C) (f : x y), M x F.map f = M y) :

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

Equations
@[simp]
theorem category_theory.with_initial.lift_map {C : Type u} [category_theory.category C] {D : Type u_1} [category_theory.category D] {Z : D} (F : C D) (M : Π (x : C), Z F.obj x) (hM : (x y : C) (f : x y), M x F.map f = M y) (X Y : category_theory.with_initial C) (f : X Y) :
(category_theory.with_initial.lift F M hM).map f = category_theory.with_initial.lift._match_2 F M X Y f
@[simp]
theorem category_theory.with_initial.lift_obj {C : Type u} [category_theory.category C] {D : Type u_1} [category_theory.category D] {Z : D} (F : C D) (M : Π (x : C), Z F.obj x) (hM : (x y : C) (f : x y), M x F.map f = M y) (X : category_theory.with_initial C) :
(category_theory.with_initial.lift F M hM).obj X = category_theory.with_initial.lift._match_1 F X
@[simp]
theorem category_theory.with_initial.incl_lift_hom_app {C : Type u} [category_theory.category C] {D : Type u_1} [category_theory.category D] {Z : D} (F : C D) (M : Π (x : C), Z F.obj x) (hM : (x y : C) (f : x y), M x F.map f = M y) (X : C) :
@[simp]
theorem category_theory.with_initial.incl_lift_inv_app {C : Type u} [category_theory.category C] {D : Type u_1} [category_theory.category D] {Z : D} (F : C D) (M : Π (x : C), Z F.obj x) (hM : (x y : C) (f : x y), M x F.map f = M y) (X : C) :
def category_theory.with_initial.incl_lift {C : Type u} [category_theory.category C] {D : Type u_1} [category_theory.category D] {Z : D} (F : C D) (M : Π (x : C), Z F.obj x) (hM : (x y : C) (f : x y), M x F.map f = M y) :

The isomorphism between incl ⋙ lift F _ _ with F.

Equations
@[simp]
theorem category_theory.with_initial.lift_star_inv {C : Type u} [category_theory.category C] {D : Type u_1} [category_theory.category D] {Z : D} (F : C D) (M : Π (x : C), Z F.obj x) (hM : (x y : C) (f : x y), M x F.map f = M y) :
def category_theory.with_initial.lift_star {C : Type u} [category_theory.category C] {D : Type u_1} [category_theory.category D] {Z : D} (F : C D) (M : Π (x : C), Z F.obj x) (hM : (x y : C) (f : x y), M x F.map f = M y) :

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

Equations
@[simp]
theorem category_theory.with_initial.lift_star_hom {C : Type u} [category_theory.category C] {D : Type u_1} [category_theory.category D] {Z : D} (F : C D) (M : Π (x : C), Z F.obj x) (hM : (x y : C) (f : x y), M x F.map f = M y) :
(category_theory.with_initial.lift_star F M hM).hom = 𝟙 (category_theory.with_initial.lift._match_1 F category_theory.with_initial.star)
@[simp]

The uniqueness of lift.

Equations
@[simp]
@[simp]
theorem category_theory.with_initial.lift_to_initial_map {C : Type u} [category_theory.category C] {D : Type u_1} [category_theory.category D] {Z : D} (F : C D) (hZ : category_theory.limits.is_initial Z) (X Y : category_theory.with_initial C) (f : X Y) :
(category_theory.with_initial.lift_to_initial F hZ).map f = category_theory.with_initial.lift._match_2 F (λ (x : C), hZ.to (F.obj x)) X Y f
@[simp]
@[simp]