The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V24. Category theory

Mathlib.CategoryTheory.Category.Cat

107 declarations. Mathlib docs · Source

theorem CategoryTheory.Cat.Hom₂.ofNatTrans.inj E1 #

∀ {C D : CategoryTheory.Cat} {F G : C ⟶ D} {toNatTrans toNatTrans_1 : F.toFunctor ⟶ G.toFunctor},
  { toNatTrans := toNatTrans } = { toNatTrans := toNatTrans_1 } → toNatTrans = toNatTrans_1

theorem CategoryTheory.Cat.Hom.ofFunctor.injEq E0 #

∀ {C D : CategoryTheory.Cat} (toFunctor toFunctor_1 : CategoryTheory.Functor ↑C ↑D),
  ({ toFunctor := toFunctor } = { toFunctor := toFunctor_1 }) = (toFunctor = toFunctor_1)

theorem CategoryTheory.Cat.Hom.ofFunctor.inj E1 #

∀ {C D : CategoryTheory.Cat} {toFunctor toFunctor_1 : CategoryTheory.Functor ↑C ↑D},
  { toFunctor := toFunctor } = { toFunctor := toFunctor_1 } → toFunctor = toFunctor_1

def CategoryTheory.Cat.Hom₂.ctorIdx E1 #

{C D : CategoryTheory.Cat} → {F G : C ⟶ D} → CategoryTheory.Cat.Hom₂ F G → ℕ

def CategoryTheory.Cat.Hom.ctorIdx E1 #

{C D : CategoryTheory.Cat} → C.Hom D → ℕ

theorem CategoryTheory.Cat.Hom₂.ofNatTrans.injEq E0 #

∀ {C D : CategoryTheory.Cat} {F G : C ⟶ D} (toNatTrans toNatTrans_1 : F.toFunctor ⟶ G.toFunctor),
  ({ toNatTrans := toNatTrans } = { toNatTrans := toNatTrans_1 }) = (toNatTrans = toNatTrans_1)

def CategoryTheory.Cat E1 #

Type (max (u + 1) u (v + 1))

Category of categories.

instance CategoryTheory.Cat.instInhabited E0 #

Inhabited CategoryTheory.Cat

instance CategoryTheory.Cat.instCoeSortType E0 #

CoeSort CategoryTheory.Cat (Type u)

instance CategoryTheory.Cat.str E0 #

(C : CategoryTheory.Cat) → CategoryTheory.Category.{v, u} ↑C

def CategoryTheory.Cat.of E1 #

(C : Type u) → [CategoryTheory.Category.{v, u} C] → CategoryTheory.Cat

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

def CategoryTheory.Cat.delabOf E1 #

Lean.PrettyPrinter.Delaborator.Delab

This prints CategoryTheory.Cat.of X as ↧X.

structure CategoryTheory.Cat.Hom E1 #

CategoryTheory.Cat → CategoryTheory.Cat → Type (max u v)

The type of 1-morphisms in the bicategory of categories Cat. This is a structure around Functor to prevent defeq-abuse

theorem CategoryTheory.Cat.Hom.ext_iff E0 #

∀ {C D : CategoryTheory.Cat} {x y : C.Hom D}, x = y ↔ x.toFunctor = y.toFunctor

theorem CategoryTheory.Cat.Hom.ext E1 #

∀ {C D : CategoryTheory.Cat} {x y : C.Hom D}, x.toFunctor = y.toFunctor → x = y

ctor CategoryTheory.Cat.Hom.ofFunctor E0 #

{C D : CategoryTheory.Cat} → CategoryTheory.Functor ↑C ↑D → C.Hom D

abbrev CategoryTheory.Cat.Hom.toFunctor E1 #

{C D : CategoryTheory.Cat} → C.Hom D → CategoryTheory.Functor ↑C ↑D

The Functor underlying a 1-morphism in Cat

instance CategoryTheory.Cat.instQuiver E0 #

Quiver CategoryTheory.Cat

def CategoryTheory.Functor.toCatHom E1 #

{C D : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.Category.{v, u} D] → CategoryTheory.Functor C D → (↧C ⟶ ↧D)

The 1-morphism in Cat corresponding to a functor.

theorem CategoryTheory.Functor.toCatHom_toFunctor E0 #

∀ {C D : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Category.{v, u} D]
  (F : CategoryTheory.Functor C D), F.toCatHom.toFunctor = F

theorem CategoryTheory.Cat.ext E1 #

∀ {C D : CategoryTheory.Cat} {F G : C ⟶ D}, F.toFunctor = G.toFunctor → F = G

theorem CategoryTheory.Cat.ext_iff E0 #

∀ {C D : CategoryTheory.Cat} {F G : C ⟶ D}, F = G ↔ F.toFunctor = G.toFunctor

def CategoryTheory.Functor.equivCatHom E1 #

(C D : Type u) →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.Category.{v, u} D] → CategoryTheory.Functor C D ≃ (↧C ⟶ ↧D)

The equivalence between the type of functors between two categories and the type of 1-morphisms in Cat between the objects corresponding to those categories.

theorem CategoryTheory.Functor.equivCatHom_symm_apply E0 #

∀ (C D : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Category.{v, u} D]
  (self : (↧C).Hom ↧D), (CategoryTheory.Functor.equivCatHom C D).symm self = self.toFunctor

theorem CategoryTheory.Functor.equivCatHom_apply E0 #

∀ (C D : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Category.{v, u} D]
  (F : CategoryTheory.Functor C D), (CategoryTheory.Functor.equivCatHom C D) F = F.toCatHom

def CategoryTheory.Cat.Hom.equivFunctor E1 #

(C D : CategoryTheory.Cat) → (C ⟶ D) ≃ CategoryTheory.Functor ↑C ↑D

The equivalence between the type of 1-morphisms in Cat between two objects and the type of functors between the categories corresponding to those objects.

theorem CategoryTheory.Cat.Hom.equivFunctor_apply E0 #

∀ (C D : CategoryTheory.Cat) (a : ↧↑C ⟶ ↧↑D), (CategoryTheory.Cat.Hom.equivFunctor C D) a = a.toFunctor

theorem CategoryTheory.Cat.Hom.equivFunctor_symm_apply E0 #

∀ (C D : CategoryTheory.Cat) (a : CategoryTheory.Functor ↑C ↑D),
  (CategoryTheory.Cat.Hom.equivFunctor C D).symm a = a.toCatHom

structure CategoryTheory.Cat.Hom₂ E1 #

{C D : CategoryTheory.Cat} → (C ⟶ D) → (C ⟶ D) → Type (max u v)

The type of 2-morphisms in the bicategory of categories Cat. This is a wrapper around NatTrans to prevent defeq-abuse.

ctor CategoryTheory.Cat.Hom₂.ofNatTrans E0 #

{C D : CategoryTheory.Cat} → {F G : C ⟶ D} → (F.toFunctor ⟶ G.toFunctor) → CategoryTheory.Cat.Hom₂ F G

abbrev CategoryTheory.Cat.Hom₂.toNatTrans E1 #

{C D : CategoryTheory.Cat} → {F G : C ⟶ D} → CategoryTheory.Cat.Hom₂ F G → (F.toFunctor ⟶ G.toFunctor)

The natural transformation underlying a 2-morphism in Cat

instance CategoryTheory.Cat.Hom.instQuiver E0 #

{C D : CategoryTheory.Cat} → Quiver (C ⟶ D)

def CategoryTheory.NatTrans.toCatHom₂ E1 #

{C D : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.Category.{v, u} D] →
      {F G : CategoryTheory.Functor C D} → (F ⟶ G) → (F.toCatHom ⟶ G.toCatHom)

The 2-morphism in Cat corresponding to a natural transformation between functors.

theorem CategoryTheory.NatTrans.toCatHom₂_toNatTrans E0 #

∀ {C D : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Category.{v, u} D]
  {F G : CategoryTheory.Functor C D} (η : F ⟶ G), (CategoryTheory.NatTrans.toCatHom₂ η).toNatTrans = η

instance CategoryTheory.Cat.Hom.instCategory E0 #

{X Y : CategoryTheory.Cat} → CategoryTheory.Category.{max u v, max u v} (X ⟶ Y)

theorem CategoryTheory.NatTrans.toCatHom₂_id E0 #

∀ {C D : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Category.{v, u} D]
  (F : CategoryTheory.Functor C D),
  CategoryTheory.NatTrans.toCatHom₂ (CategoryTheory.CategoryStruct.id F) = CategoryTheory.CategoryStruct.id F.toCatHom

theorem CategoryTheory.NatTrans.toCatHom₂_comp E0 #

∀ {C D : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Category.{v, u} D]
  {F G H : CategoryTheory.Functor C D} (η₁ : F ⟶ G) (η₂ : G ⟶ H),
  CategoryTheory.NatTrans.toCatHom₂ (CategoryTheory.CategoryStruct.comp η₁ η₂) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.NatTrans.toCatHom₂ η₁) (CategoryTheory.NatTrans.toCatHom₂ η₂)

theorem CategoryTheory.Cat.Hom.toNatTrans_id E0 #

∀ {C D : CategoryTheory.Cat} (F : C ⟶ D),
  (CategoryTheory.CategoryStruct.id F).toNatTrans = CategoryTheory.CategoryStruct.id F.toFunctor

theorem CategoryTheory.Cat.Hom.toNatTrans_comp E0 #

∀ {C D : CategoryTheory.Cat} {F G H : C ⟶ D} (η₁ : F ⟶ G) (η₂ : G ⟶ H),
  (CategoryTheory.CategoryStruct.comp η₁ η₂).toNatTrans = CategoryTheory.CategoryStruct.comp η₁.toNatTrans η₂.toNatTrans

theorem CategoryTheory.Cat.Hom₂.ext E1 #

∀ {C D : CategoryTheory.Cat} {F G : C ⟶ D} {η₁ η₂ : F ⟶ G}, η₁.toNatTrans = η₂.toNatTrans → η₁ = η₂

theorem CategoryTheory.Cat.Hom₂.ext_iff E0 #

∀ {C D : CategoryTheory.Cat} {F G : C ⟶ D} {η₁ η₂ : F ⟶ G}, η₁ = η₂ ↔ η₁.toNatTrans = η₂.toNatTrans

def CategoryTheory.Cat.Hom.isoMk E1 #

{C D : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.Category.{v, u} D] →
      {F G : CategoryTheory.Functor C D} → (F ≅ G) → (F.toCatHom ≅ G.toCatHom)

The 2-iso in Cat corresponding to a natural isomorphism.

theorem CategoryTheory.Cat.Hom.isoMk_hom E0 #

∀ {C D : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Category.{v, u} D]
  {F G : CategoryTheory.Functor C D} (e : F ≅ G),
  (CategoryTheory.Cat.Hom.isoMk e).hom = CategoryTheory.NatTrans.toCatHom₂ e.hom

theorem CategoryTheory.Cat.Hom.isoMk_inv E0 #

∀ {C D : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Category.{v, u} D]
  {F G : CategoryTheory.Functor C D} (e : F ≅ G),
  (CategoryTheory.Cat.Hom.isoMk e).inv = CategoryTheory.NatTrans.toCatHom₂ e.inv

def CategoryTheory.Cat.Hom.toNatIso E1 #

{X Y : CategoryTheory.Cat} → {F G : X ⟶ Y} → (F ≅ G) → (F.toFunctor ≅ G.toFunctor)

The natural isomorphism corresponding to a 2-iso in Cat

theorem CategoryTheory.Cat.Hom.toNatIso_hom E0 #

∀ {X Y : CategoryTheory.Cat} {F G : X ⟶ Y} (e : F ≅ G), (CategoryTheory.Cat.Hom.toNatIso e).hom = e.hom.toNatTrans

theorem CategoryTheory.Cat.Hom.toNatIso_inv E0 #

∀ {X Y : CategoryTheory.Cat} {F G : X ⟶ Y} (e : F ≅ G), (CategoryTheory.Cat.Hom.toNatIso e).inv = e.inv.toNatTrans

theorem CategoryTheory.Cat.Hom.isoMk_toNatIso E0 #

∀ {X Y : CategoryTheory.Cat} {F G : X ⟶ Y} (e : F ≅ G),
  CategoryTheory.Cat.Hom.isoMk (CategoryTheory.Cat.Hom.toNatIso e) = e

theorem CategoryTheory.Cat.Hom.toNatIso_isoMk E0 #

∀ {C D : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Category.{v, u} D]
  {F G : CategoryTheory.Functor C D} (e : F ≅ G), CategoryTheory.Cat.Hom.toNatIso (CategoryTheory.Cat.Hom.isoMk e) = e

instance CategoryTheory.Cat.Hom.instIsIsoFunctorαCategoryToNatTransHomHom E0 #

∀ {X Y : CategoryTheory.Cat} {F G : X ⟶ Y} (e : F ≅ G), CategoryTheory.IsIso e.hom.toNatTrans

instance CategoryTheory.Cat.Hom.instIsIsoFunctorαCategoryToNatTransInvHom E0 #

∀ {X Y : CategoryTheory.Cat} {F G : X ⟶ Y} (e : F ≅ G), CategoryTheory.IsIso e.inv.toNatTrans

theorem CategoryTheory.Cat.Hom.hom_inv_id_toNatTrans E0 #

∀ {X Y : CategoryTheory.Cat} {F G : X ⟶ Y} (e : F ≅ G),
  CategoryTheory.CategoryStruct.comp e.hom.toNatTrans e.inv.toNatTrans = CategoryTheory.CategoryStruct.id F.toFunctor

theorem CategoryTheory.Cat.Hom.hom_inv_id_toNatTrans_assoc E0 #

∀ {X Y : CategoryTheory.Cat} {F G : X ⟶ Y} (e : F ≅ G) {Z : CategoryTheory.Functor ↑X ↑Y} (h : F.toFunctor ⟶ Z),
  CategoryTheory.CategoryStruct.comp e.hom.toNatTrans (CategoryTheory.CategoryStruct.comp e.inv.toNatTrans h) = h

theorem CategoryTheory.Cat.Hom.inv_hom_id_toNatTrans_assoc E0 #

∀ {X Y : CategoryTheory.Cat} {F G : X ⟶ Y} (e : F ≅ G) {Z : CategoryTheory.Functor ↑X ↑Y} (h : G.toFunctor ⟶ Z),
  CategoryTheory.CategoryStruct.comp e.inv.toNatTrans (CategoryTheory.CategoryStruct.comp e.hom.toNatTrans h) = h

theorem CategoryTheory.Cat.Hom.inv_hom_id_toNatTrans E0 #

∀ {X Y : CategoryTheory.Cat} {F G : X ⟶ Y} (e : F ≅ G),
  CategoryTheory.CategoryStruct.comp e.inv.toNatTrans e.hom.toNatTrans = CategoryTheory.CategoryStruct.id G.toFunctor

theorem CategoryTheory.Cat.Hom.hom_inv_id_toNatTrans_app E0 #

∀ {X Y : CategoryTheory.Cat} {F G : X ⟶ Y} (e : F ≅ G) (A : ↑X),
  CategoryTheory.CategoryStruct.comp (e.hom.toNatTrans.app A) (e.inv.toNatTrans.app A) =
    CategoryTheory.CategoryStruct.id (F.toFunctor.obj A)

theorem CategoryTheory.Cat.Hom.hom_inv_id_toNatTrans_app_assoc E0 #

∀ {X Y : CategoryTheory.Cat} {F G : X ⟶ Y} (e : F ≅ G) (A : ↑X) {Z : ↑Y} (h : F.toFunctor.obj A ⟶ Z),
  CategoryTheory.CategoryStruct.comp (e.hom.toNatTrans.app A)
      (CategoryTheory.CategoryStruct.comp (e.inv.toNatTrans.app A) h) =
    h

theorem CategoryTheory.Cat.Hom.inv_hom_id_toNatTrans_app_assoc E0 #

∀ {X Y : CategoryTheory.Cat} {F G : X ⟶ Y} (e : F ≅ G) (A : ↑X) {Z : ↑Y} (h : G.toFunctor.obj A ⟶ Z),
  CategoryTheory.CategoryStruct.comp (e.inv.toNatTrans.app A)
      (CategoryTheory.CategoryStruct.comp (e.hom.toNatTrans.app A) h) =
    h

theorem CategoryTheory.Cat.Hom.inv_hom_id_toNatTrans_app E0 #

∀ {X Y : CategoryTheory.Cat} {F G : X ⟶ Y} (e : F ≅ G) (A : ↑X),
  CategoryTheory.CategoryStruct.comp (e.inv.toNatTrans.app A) (e.hom.toNatTrans.app A) =
    CategoryTheory.CategoryStruct.id (G.toFunctor.obj A)

instance CategoryTheory.Cat.bicategory E0 #

CategoryTheory.Bicategory CategoryTheory.Cat

Bicategory structure on Cat

instance CategoryTheory.Cat.bicategory.strict E0 #

CategoryTheory.Bicategory.Strict CategoryTheory.Cat

Cat is a strict bicategory.

instance CategoryTheory.Cat.category E0 #

CategoryTheory.LargeCategory CategoryTheory.Cat

Category structure on Cat

theorem CategoryTheory.Cat.Hom.id_toFunctor E0 #

∀ {C : CategoryTheory.Cat}, (CategoryTheory.CategoryStruct.id C).toFunctor = CategoryTheory.Functor.id ↑C

theorem CategoryTheory.Cat.Hom.id_obj E1 #

∀ {C : CategoryTheory.Cat} (X : ↑C), (CategoryTheory.CategoryStruct.id C).toFunctor.obj X = X

theorem CategoryTheory.Cat.Hom.id_map E1 #

∀ {C : CategoryTheory.Cat} {X Y : ↑C} (f : X ⟶ Y), (CategoryTheory.CategoryStruct.id C).toFunctor.map f = f

theorem CategoryTheory.Cat.Hom.comp_toFunctor E0 #

∀ {C D E : CategoryTheory.Cat} (F : C ⟶ D) (G : D ⟶ E),
  (CategoryTheory.CategoryStruct.comp F G).toFunctor = F.toFunctor.comp G.toFunctor

theorem CategoryTheory.Cat.Hom.comp_obj E1 #

∀ {C D E : CategoryTheory.Cat} (F : C ⟶ D) (G : D ⟶ E) (X : ↑C),
  (CategoryTheory.CategoryStruct.comp F G).toFunctor.obj X = G.toFunctor.obj (F.toFunctor.obj X)

theorem CategoryTheory.Cat.Hom.comp_map E1 #

∀ {C D E : CategoryTheory.Cat} (F : C ⟶ D) (G : D ⟶ E) {X Y : ↑C} (f : X ⟶ Y),
  (CategoryTheory.CategoryStruct.comp F G).toFunctor.map f = G.toFunctor.map (F.toFunctor.map f)

theorem CategoryTheory.Cat.Hom₂.id_app E1 #

∀ {C D : CategoryTheory.Cat} (F : C ⟶ D) (X : ↑C),
  (CategoryTheory.CategoryStruct.id F).toNatTrans.app X = CategoryTheory.CategoryStruct.id (F.toFunctor.obj X)

theorem CategoryTheory.Cat.Hom₂.comp_app E0 #

∀ {C D : CategoryTheory.Cat} {F G H : C ⟶ D} (α : F ⟶ G) (β : G ⟶ H) (X : ↑C),
  (CategoryTheory.CategoryStruct.comp α β).toNatTrans.app X =
    CategoryTheory.CategoryStruct.comp (α.toNatTrans.app X) (β.toNatTrans.app X)

theorem CategoryTheory.Cat.Hom₂.comp_app_assoc E1 #

∀ {C D : CategoryTheory.Cat} {F G H : C ⟶ D} (α : F ⟶ G) (β : G ⟶ H) (X : ↑C) {Z : ↑D} (h : H.toFunctor.obj X ⟶ Z),
  CategoryTheory.CategoryStruct.comp ((CategoryTheory.CategoryStruct.comp α β).toNatTrans.app X) h =
    CategoryTheory.CategoryStruct.comp (α.toNatTrans.app X) (CategoryTheory.CategoryStruct.comp (β.toNatTrans.app X) h)

theorem CategoryTheory.Cat.Hom₂.eqToHom_toNatTrans E0 #

∀ {C D : CategoryTheory.Cat} {F G : C ⟶ D} (h : F = G), (CategoryTheory.eqToHom h).toNatTrans = CategoryTheory.eqToHom ⋯

theorem CategoryTheory.Cat.eqToHom_app E1 #

∀ {C D : CategoryTheory.Cat} (F G : C ⟶ D) (h : F = G) (X : ↑C),
  (CategoryTheory.eqToHom h).toNatTrans.app X = CategoryTheory.eqToHom ⋯

theorem CategoryTheory.Cat.whiskerLeft_toNatTrans E0 #

∀ {C D E : CategoryTheory.Cat} (F : C ⟶ D) {G H : D ⟶ E} (η : G ⟶ H),
  (CategoryTheory.Bicategory.whiskerLeft F η).toNatTrans = F.toFunctor.whiskerLeft η.toNatTrans

theorem CategoryTheory.Cat.whiskerLeft_app E1 #

∀ {C D E : CategoryTheory.Cat} (F : C ⟶ D) {G H : D ⟶ E} (η : G ⟶ H) (X : ↑C),
  (CategoryTheory.Bicategory.whiskerLeft F η).toNatTrans.app X = η.toNatTrans.app (F.toFunctor.obj X)

theorem CategoryTheory.Cat.whiskerRight_toNatTrans E0 #

∀ {C D E : CategoryTheory.Cat} {F G : C ⟶ D} (H : D ⟶ E) (η : F ⟶ G),
  (CategoryTheory.Bicategory.whiskerRight η H).toNatTrans = CategoryTheory.Functor.whiskerRight η.toNatTrans H.toFunctor

theorem CategoryTheory.Cat.whiskerRight_app E1 #

∀ {C D E : CategoryTheory.Cat} {F G : C ⟶ D} (H : D ⟶ E) (η : F ⟶ G) (X : ↑C),
  (CategoryTheory.Bicategory.whiskerRight η H).toNatTrans.app X = H.toFunctor.map (η.toNatTrans.app X)

theorem CategoryTheory.Cat.Hom.toNatIso_leftUnitor E0 #

∀ {B C : CategoryTheory.Cat} (F : B ⟶ C),
  CategoryTheory.Cat.Hom.toNatIso (CategoryTheory.Bicategory.leftUnitor F) = F.toFunctor.leftUnitor

theorem CategoryTheory.Cat.leftUnitor_hom_toNatTrans E0 #

∀ {B C : CategoryTheory.Cat} (F : B ⟶ C),
  (CategoryTheory.Bicategory.leftUnitor F).hom.toNatTrans = F.toFunctor.leftUnitor.hom

theorem CategoryTheory.Cat.leftUnitor_inv_toNatTrans E0 #

∀ {B C : CategoryTheory.Cat} (F : B ⟶ C),
  (CategoryTheory.Bicategory.leftUnitor F).inv.toNatTrans = F.toFunctor.leftUnitor.inv

theorem CategoryTheory.Cat.leftUnitor_hom_app E1 #

∀ {B C : CategoryTheory.Cat} (F : B ⟶ C) (X : ↑B),
  (CategoryTheory.Bicategory.leftUnitor F).hom.toNatTrans.app X = CategoryTheory.eqToHom ⋯

theorem CategoryTheory.Cat.leftUnitor_inv_app E1 #

∀ {B C : CategoryTheory.Cat} (F : B ⟶ C) (X : ↑B),
  (CategoryTheory.Bicategory.leftUnitor F).inv.toNatTrans.app X = CategoryTheory.eqToHom ⋯

theorem CategoryTheory.Cat.Hom.toNatIso_rightUnitor E0 #

∀ {B C : CategoryTheory.Cat} (F : B ⟶ C),
  CategoryTheory.Cat.Hom.toNatIso (CategoryTheory.Bicategory.rightUnitor F) =
    CategoryTheory.eqToIso ⋯ ≪≫ F.toFunctor.rightUnitor ≪≫ CategoryTheory.eqToIso ⋯

theorem CategoryTheory.Cat.rightUnitor_hom_toNatTrans E0 #

∀ {B C : CategoryTheory.Cat} (F : B ⟶ C),
  (CategoryTheory.Bicategory.rightUnitor F).hom.toNatTrans = F.toFunctor.rightUnitor.hom

theorem CategoryTheory.Cat.rightUnitor_inv_toNatTrans E0 #

∀ {B C : CategoryTheory.Cat} (F : B ⟶ C),
  (CategoryTheory.Bicategory.rightUnitor F).inv.toNatTrans = F.toFunctor.rightUnitor.inv

theorem CategoryTheory.Cat.rightUnitor_hom_app E1 #

∀ {B C : CategoryTheory.Cat} (F : B ⟶ C) (X : ↑B),
  (CategoryTheory.Bicategory.rightUnitor F).hom.toNatTrans.app X = CategoryTheory.eqToHom ⋯

theorem CategoryTheory.Cat.rightUnitor_inv_app E1 #

∀ {B C : CategoryTheory.Cat} (F : B ⟶ C) (X : ↑B),
  (CategoryTheory.Bicategory.rightUnitor F).inv.toNatTrans.app X = CategoryTheory.eqToHom ⋯

theorem CategoryTheory.Cat.Hom.toNatIso_associator E0 #

∀ {B C D E : CategoryTheory.Cat} (F : B ⟶ C) (G : C ⟶ D) (H : D ⟶ E),
  CategoryTheory.Cat.Hom.toNatIso (CategoryTheory.Bicategory.associator F G H) =
    F.toFunctor.associator G.toFunctor H.toFunctor

theorem CategoryTheory.Cat.associator_hom_toNatTrans E0 #

∀ {B C D E : CategoryTheory.Cat} (F : B ⟶ C) (G : C ⟶ D) (H : D ⟶ E),
  (CategoryTheory.Bicategory.associator F G H).hom.toNatTrans = (F.toFunctor.associator G.toFunctor H.toFunctor).hom

theorem CategoryTheory.Cat.associator_inv_toNatTrans E0 #

∀ {B C D E : CategoryTheory.Cat} (F : B ⟶ C) (G : C ⟶ D) (H : D ⟶ E),
  (CategoryTheory.Bicategory.associator F G H).inv.toNatTrans = (F.toFunctor.associator G.toFunctor H.toFunctor).inv

theorem CategoryTheory.Cat.associator_hom_app E1 #

∀ {B C D E : CategoryTheory.Cat} (F : B ⟶ C) (G : C ⟶ D) (H : D ⟶ E) (X : ↑B),
  (CategoryTheory.Bicategory.associator F G H).hom.toNatTrans.app X = CategoryTheory.eqToHom ⋯

theorem CategoryTheory.Cat.associator_inv_app E1 #

∀ {B C D E : CategoryTheory.Cat} (F : B ⟶ C) (G : C ⟶ D) (H : D ⟶ E) (X : ↑B),
  (CategoryTheory.Bicategory.associator F G H).inv.toNatTrans.app X = CategoryTheory.eqToHom ⋯

theorem CategoryTheory.Cat.id_eq_id E2 #

∀ (X : CategoryTheory.Cat), (CategoryTheory.CategoryStruct.id X).toFunctor = CategoryTheory.Functor.id ↑X

The identity in the category of categories equals the identity functor.

theorem CategoryTheory.Cat.comp_eq_comp E1 #

∀ {X Y Z : CategoryTheory.Cat} (F : X ⟶ Y) (G : Y ⟶ Z),
  (CategoryTheory.CategoryStruct.comp F G).toFunctor = F.toFunctor.comp G.toFunctor

Composition in the category of categories equals functor composition.

theorem CategoryTheory.Cat.of_α E0 #

∀ (C : Type u_1) [inst : CategoryTheory.Category.{v_1, u_1} C], ↑↧C = C

theorem CategoryTheory.Cat.coe_of E0 #

∀ (C : CategoryTheory.Cat), ↧↑C = C

def CategoryTheory.Cat.objects E1 #

CategoryTheory.Functor CategoryTheory.Cat (Type u)

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

instance CategoryTheory.Cat.instCategoryObjObjects E0 #

(X : CategoryTheory.Cat) → CategoryTheory.Category.{v, u} (CategoryTheory.Cat.objects.obj X)

See through the defeq objects.obj X = X.

def CategoryTheory.Cat.equivOfIso E1 #

{C D : CategoryTheory.Cat} → (C ≅ D) → (↑C ≌ ↑D)

Any isomorphism in Cat induces an equivalence of the underlying categories.

def CategoryTheory.Cat.isoOfEquiv E1 #

{C D : CategoryTheory.Cat} →
  (e : ↑C ≌ ↑D) →
    (h₁ : ∀ (X : ↑C), e.inverse.obj (e.functor.obj X) = X) →
      (h₂ : ∀ (Y : ↑D), e.functor.obj (e.inverse.obj Y) = Y) →
        autoParam (∀ (X : ↑C), e.unitIso.hom.app X = CategoryTheory.eqToHom ⋯) CategoryTheory.Cat.isoOfEquiv._auto_1 →
          autoParam (∀ (Y : ↑D), e.counitIso.hom.app Y = CategoryTheory.eqToHom ⋯)
              CategoryTheory.Cat.isoOfEquiv._auto_3 →
            (C ≅ D)

Under certain hypotheses, an equivalence of categories actually defines an isomorphism in Cat.

theorem CategoryTheory.Cat.isoOfEquiv_inv E0 #

∀ {C D : CategoryTheory.Cat} (e : ↑C ≌ ↑D) (h₁ : ∀ (X : ↑C), e.inverse.obj (e.functor.obj X) = X)
  (h₂ : ∀ (Y : ↑D), e.functor.obj (e.inverse.obj Y) = Y)
  (h₃ : autoParam (∀ (X : ↑C), e.unitIso.hom.app X = CategoryTheory.eqToHom ⋯) CategoryTheory.Cat.isoOfEquiv._auto_1)
  (h₄ : autoParam (∀ (Y : ↑D), e.counitIso.hom.app Y = CategoryTheory.eqToHom ⋯) CategoryTheory.Cat.isoOfEquiv._auto_3),
  (CategoryTheory.Cat.isoOfEquiv e h₁ h₂ h₃ h₄).inv = e.inverse.toCatHom

theorem CategoryTheory.Cat.isoOfEquiv_hom E0 #

∀ {C D : CategoryTheory.Cat} (e : ↑C ≌ ↑D) (h₁ : ∀ (X : ↑C), e.inverse.obj (e.functor.obj X) = X)
  (h₂ : ∀ (Y : ↑D), e.functor.obj (e.inverse.obj Y) = Y)
  (h₃ : autoParam (∀ (X : ↑C), e.unitIso.hom.app X = CategoryTheory.eqToHom ⋯) CategoryTheory.Cat.isoOfEquiv._auto_1)
  (h₄ : autoParam (∀ (Y : ↑D), e.counitIso.hom.app Y = CategoryTheory.eqToHom ⋯) CategoryTheory.Cat.isoOfEquiv._auto_3),
  (CategoryTheory.Cat.isoOfEquiv e h₁ h₂ h₃ h₄).hom = e.functor.toCatHom

def CategoryTheory.typeToCat E1 #

CategoryTheory.Functor (Type u) CategoryTheory.Cat

Embedding Type into Cat as discrete categories.

This ought to be modelled as a 2-functor!

theorem CategoryTheory.typeToCat_obj E0 #

∀ (X : Type u), CategoryTheory.typeToCat.obj X = ↧(CategoryTheory.Discrete X)

theorem CategoryTheory.typeToCat_map E0 #

∀ {X Y : Type u} (f : X ⟶ Y),
  CategoryTheory.typeToCat.map f =
    (CategoryTheory.Discrete.functor (CategoryTheory.Discrete.mk ∘ ⇑(CategoryTheory.ConcreteCategory.hom f))).toCatHom

instance CategoryTheory.instFaithfulCatTypeToCat E0 #

CategoryTheory.typeToCat.Faithful

instance CategoryTheory.instFullCatTypeToCat E0 #

CategoryTheory.typeToCat.Full