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.Enriched.Basic

103 declarations. Mathlib docs Β· Source

Enriched categories

We set up the basic theory of V-enriched categories, for V an arbitrary monoidal category.

We do not assume here that V is a concrete category, so there does not need to be an "honest" underlying category!

Use X ⟢[V] Y to obtain the V object of morphisms from X to Y.

This file contains the definitions of V-enriched categories and V-functors.

We don't yet define the V-object of natural transformations between a pair of V-functors (this requires limits in V), but we do provide a presheaf isomorphic to the Yoneda embedding of this object.

We verify that when V = Type v, all these notions reduce to the usual ones.

References

  • [Kim Morrison, David Penneys, Monoidal Categories Enriched in Braided Monoidal Categories][morrison-penney-enriched]

We now turn to natural transformations between V-functors.

The most commonly encountered definition of an enriched natural transformation is a collection of morphisms

(πŸ™_ W) ⟢ (F.obj X ⟢[V] G.obj X)

satisfying an appropriate analogue of the naturality square. (c.f. https://ncatlab.org/nlab/show/enriched+natural+transformation)

This is the same thing as a natural transformation F.forget ⟢ G.forget.

We formalize this as EnrichedNatTrans F G, which is a Type.

However, there's also something much nicer: with appropriate additional hypotheses, there is a V-object EnrichedNatTransObj F G which contains more information, and from which one can recover EnrichedNatTrans F G ≃ (πŸ™_ V) ⟢ EnrichedNatTransObj F G.

Using these as the hom-objects, we can build a V-enriched category with objects the V-functors.

For EnrichedNatTransObj to exist, it suffices to have V braided and complete.

Before assuming V is complete, we assume it is braided and define a presheaf enrichedNatTransYoneda F G which is isomorphic to the Yoneda embedding of EnrichedNatTransObj F G whether or not that object actually exists.

This presheaf has components (enrichedNatTransYoneda F G).obj A what we call the A-graded enriched natural transformations, which are collections of morphisms

A ⟢ (F.obj X ⟢[V] G.obj X)

satisfying a similar analogue of the naturality square, this time incorporating a half-braiding on A.

(We actually define EnrichedNatTrans F G as the special case A := πŸ™_ V with the trivial half-braiding, and when defining enrichedNatTransYoneda F G we use the half-braidings coming from the ambient braiding on V.)

theorem CategoryTheory.EnrichedNatTrans.mk.injEq E0 #

βˆ€ {V : Type v} [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] {D : Type uβ‚‚} [inst_3 : CategoryTheory.EnrichedCategory V D]
  {F G : CategoryTheory.EnrichedFunctor V C D} (out out_1 : F.forget ⟢ G.forget),
  ({ out := out } = { out := out_1 }) = (out = out_1)

def CategoryTheory.EnrichedFunctor.ctorIdx E1 #

{V : Type v} β†’
  {inst : CategoryTheory.Category.{w, v} V} β†’
    {inst_1 : CategoryTheory.MonoidalCategory V} β†’
      {C : Type u₁} β†’
        {inst_2 : CategoryTheory.EnrichedCategory V C} β†’
          {D : Type uβ‚‚} β†’ {inst_3 : CategoryTheory.EnrichedCategory V D} β†’ CategoryTheory.EnrichedFunctor V C D β†’ β„•

def CategoryTheory.EnrichedCategory.ctorIdx E1 #

{V : Type v} β†’
  {inst : CategoryTheory.Category.{w, v} V} β†’
    {inst_1 : CategoryTheory.MonoidalCategory V} β†’ {C : Type u₁} β†’ CategoryTheory.EnrichedCategory V C β†’ β„•

theorem CategoryTheory.GradedNatTrans.mk.inj E1 #

βˆ€ {V : Type v} {inst : CategoryTheory.Category.{w, v} V} {inst_1 : CategoryTheory.MonoidalCategory V} {C : Type u₁}
  {inst_2 : CategoryTheory.EnrichedCategory V C} {D : Type uβ‚‚} {inst_3 : CategoryTheory.EnrichedCategory V D}
  {A : CategoryTheory.Center V} {F G : CategoryTheory.EnrichedFunctor V C D}
  {app : (X : C) β†’ A.fst ⟢ F.obj X ⟢[V] G.obj X}
  {naturality :
    βˆ€ (X Y : C),
      CategoryTheory.CategoryStruct.comp (A.snd.β (X ⟢[V] Y)).hom
          (CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.tensorHom (F.map X Y) (app Y))
            (CategoryTheory.eComp V (F.obj X) (F.obj Y) (G.obj Y))) =
        CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.tensorHom (app X) (G.map X Y))
          (CategoryTheory.eComp V (F.obj X) (G.obj X) (G.obj Y))}
  {app_1 : (X : C) β†’ A.fst ⟢ F.obj X ⟢[V] G.obj X}
  {naturality_1 :
    βˆ€ (X Y : C),
      CategoryTheory.CategoryStruct.comp (A.snd.β (X ⟢[V] Y)).hom
          (CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.tensorHom (F.map X Y) (app_1 Y))
            (CategoryTheory.eComp V (F.obj X) (F.obj Y) (G.obj Y))) =
        CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.tensorHom (app_1 X) (G.map X Y))
          (CategoryTheory.eComp V (F.obj X) (G.obj X) (G.obj Y))},
  { app := app, naturality := naturality } = { app := app_1, naturality := naturality_1 } β†’ app = app_1

def CategoryTheory.GradedNatTrans.ctorIdx E1 #

{V : Type v} β†’
  {inst : CategoryTheory.Category.{w, v} V} β†’
    {inst_1 : CategoryTheory.MonoidalCategory V} β†’
      {C : Type u₁} β†’
        {inst_2 : CategoryTheory.EnrichedCategory V C} β†’
          {D : Type uβ‚‚} β†’
            {inst_3 : CategoryTheory.EnrichedCategory V D} β†’
              {A : CategoryTheory.Center V} β†’
                {F G : CategoryTheory.EnrichedFunctor V C D} β†’ CategoryTheory.GradedNatTrans A F G β†’ β„•

theorem CategoryTheory.EnrichedFunctor.mk.injEq E0 #

βˆ€ {V : Type v} [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] {D : Type uβ‚‚} [inst_3 : CategoryTheory.EnrichedCategory V D]
  (obj : C β†’ D) (map : (X Y : C) β†’ (X ⟢[V] Y) ⟢ obj X ⟢[V] obj Y)
  (map_id :
    autoParam
      (βˆ€ (X : C), CategoryTheory.CategoryStruct.comp (CategoryTheory.eId V X) (map X X) = CategoryTheory.eId V (obj X))
      CategoryTheory.EnrichedFunctor.map_id._autoParam)
  (map_comp :
    autoParam
      (βˆ€ (X Y Z : C),
        CategoryTheory.CategoryStruct.comp (CategoryTheory.eComp V X Y Z) (map X Z) =
          CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.tensorHom (map X Y) (map Y Z))
            (CategoryTheory.eComp V (obj X) (obj Y) (obj Z)))
      CategoryTheory.EnrichedFunctor.map_comp._autoParam)
  (obj_1 : C β†’ D) (map_1 : (X Y : C) β†’ (X ⟢[V] Y) ⟢ obj_1 X ⟢[V] obj_1 Y)
  (map_id_1 :
    autoParam
      (βˆ€ (X : C),
        CategoryTheory.CategoryStruct.comp (CategoryTheory.eId V X) (map_1 X X) = CategoryTheory.eId V (obj_1 X))
      CategoryTheory.EnrichedFunctor.map_id._autoParam)
  (map_comp_1 :
    autoParam
      (βˆ€ (X Y Z : C),
        CategoryTheory.CategoryStruct.comp (CategoryTheory.eComp V X Y Z) (map_1 X Z) =
          CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.tensorHom (map_1 X Y) (map_1 Y Z))
            (CategoryTheory.eComp V (obj_1 X) (obj_1 Y) (obj_1 Z)))
      CategoryTheory.EnrichedFunctor.map_comp._autoParam),
  ({ obj := obj, map := map, map_id := map_id, map_comp := map_comp } =
      { obj := obj_1, map := map_1, map_id := map_id_1, map_comp := map_comp_1 }) =
    (obj = obj_1 ∧ map ≍ map_1)

theorem CategoryTheory.EnrichedNatTrans.mk.inj E1 #

βˆ€ {V : Type v} {inst : CategoryTheory.Category.{w, v} V} {inst_1 : CategoryTheory.MonoidalCategory V} {C : Type u₁}
  {inst_2 : CategoryTheory.EnrichedCategory V C} {D : Type uβ‚‚} {inst_3 : CategoryTheory.EnrichedCategory V D}
  {F G : CategoryTheory.EnrichedFunctor V C D} {out out_1 : F.forget ⟢ G.forget},
  { out := out } = { out := out_1 } β†’ out = out_1

theorem CategoryTheory.GradedNatTrans.mk.congr_simp E1 #

βˆ€ {V : Type v} [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] {D : Type uβ‚‚} [inst_3 : CategoryTheory.EnrichedCategory V D]
  {A : CategoryTheory.Center V} {F G : CategoryTheory.EnrichedFunctor V C D}
  (app app_1 : (X : C) β†’ A.fst ⟢ F.obj X ⟢[V] G.obj X) (e_app : app = app_1)
  (naturality :
    βˆ€ (X Y : C),
      CategoryTheory.CategoryStruct.comp (A.snd.β (X ⟢[V] Y)).hom
          (CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.tensorHom (F.map X Y) (app Y))
            (CategoryTheory.eComp V (F.obj X) (F.obj Y) (G.obj Y))) =
        CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.tensorHom (app X) (G.map X Y))
          (CategoryTheory.eComp V (F.obj X) (G.obj X) (G.obj Y))),
  { app := app, naturality := naturality } = { app := app_1, naturality := β‹― }

theorem CategoryTheory.EnrichedFunctor.mk.inj E1 #

βˆ€ {V : Type v} {inst : CategoryTheory.Category.{w, v} V} {inst_1 : CategoryTheory.MonoidalCategory V} {C : Type u₁}
  {inst_2 : CategoryTheory.EnrichedCategory V C} {D : Type uβ‚‚} {inst_3 : CategoryTheory.EnrichedCategory V D}
  {obj : C β†’ D} {map : (X Y : C) β†’ (X ⟢[V] Y) ⟢ obj X ⟢[V] obj Y}
  {map_id :
    autoParam
      (βˆ€ (X : C), CategoryTheory.CategoryStruct.comp (CategoryTheory.eId V X) (map X X) = CategoryTheory.eId V (obj X))
      CategoryTheory.EnrichedFunctor.map_id._autoParam}
  {map_comp :
    autoParam
      (βˆ€ (X Y Z : C),
        CategoryTheory.CategoryStruct.comp (CategoryTheory.eComp V X Y Z) (map X Z) =
          CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.tensorHom (map X Y) (map Y Z))
            (CategoryTheory.eComp V (obj X) (obj Y) (obj Z)))
      CategoryTheory.EnrichedFunctor.map_comp._autoParam}
  {obj_1 : C β†’ D} {map_1 : (X Y : C) β†’ (X ⟢[V] Y) ⟢ obj_1 X ⟢[V] obj_1 Y}
  {map_id_1 :
    autoParam
      (βˆ€ (X : C),
        CategoryTheory.CategoryStruct.comp (CategoryTheory.eId V X) (map_1 X X) = CategoryTheory.eId V (obj_1 X))
      CategoryTheory.EnrichedFunctor.map_id._autoParam}
  {map_comp_1 :
    autoParam
      (βˆ€ (X Y Z : C),
        CategoryTheory.CategoryStruct.comp (CategoryTheory.eComp V X Y Z) (map_1 X Z) =
          CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.tensorHom (map_1 X Y) (map_1 Y Z))
            (CategoryTheory.eComp V (obj_1 X) (obj_1 Y) (obj_1 Z)))
      CategoryTheory.EnrichedFunctor.map_comp._autoParam},
  { obj := obj, map := map, map_id := map_id, map_comp := map_comp } =
      { obj := obj_1, map := map_1, map_id := map_id_1, map_comp := map_comp_1 } β†’
    obj = obj_1 ∧ map ≍ map_1

theorem CategoryTheory.GradedNatTrans.mk.injEq E0 #

βˆ€ {V : Type v} [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] {D : Type uβ‚‚} [inst_3 : CategoryTheory.EnrichedCategory V D]
  {A : CategoryTheory.Center V} {F G : CategoryTheory.EnrichedFunctor V C D}
  (app : (X : C) β†’ A.fst ⟢ F.obj X ⟢[V] G.obj X)
  (naturality :
    βˆ€ (X Y : C),
      CategoryTheory.CategoryStruct.comp (A.snd.β (X ⟢[V] Y)).hom
          (CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.tensorHom (F.map X Y) (app Y))
            (CategoryTheory.eComp V (F.obj X) (F.obj Y) (G.obj Y))) =
        CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.tensorHom (app X) (G.map X Y))
          (CategoryTheory.eComp V (F.obj X) (G.obj X) (G.obj Y)))
  (app_1 : (X : C) β†’ A.fst ⟢ F.obj X ⟢[V] G.obj X)
  (naturality_1 :
    βˆ€ (X Y : C),
      CategoryTheory.CategoryStruct.comp (A.snd.β (X ⟢[V] Y)).hom
          (CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.tensorHom (F.map X Y) (app_1 Y))
            (CategoryTheory.eComp V (F.obj X) (F.obj Y) (G.obj Y))) =
        CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.tensorHom (app_1 X) (G.map X Y))
          (CategoryTheory.eComp V (F.obj X) (G.obj X) (G.obj Y))),
  ({ app := app, naturality := naturality } = { app := app_1, naturality := naturality_1 }) = (app = app_1)

def CategoryTheory.EnrichedNatTrans.ctorIdx E1 #

{V : Type v} β†’
  {inst : CategoryTheory.Category.{w, v} V} β†’
    {inst_1 : CategoryTheory.MonoidalCategory V} β†’
      {C : Type u₁} β†’
        {inst_2 : CategoryTheory.EnrichedCategory V C} β†’
          {D : Type uβ‚‚} β†’
            {inst_3 : CategoryTheory.EnrichedCategory V D} β†’
              {F G : CategoryTheory.EnrichedFunctor V C D} β†’ CategoryTheory.EnrichedNatTrans F G β†’ β„•

class CategoryTheory.EnrichedCategory E1 #

(V : Type v) β†’
  [inst : CategoryTheory.Category.{w, v} V] β†’ [CategoryTheory.MonoidalCategory V] β†’ Type u₁ β†’ Type (max (max u₁ v) w)

A V-category is a category enriched in a monoidal category V.

Note that we do not assume that V is a concrete category, so there may not be an "honest" underlying category at all!

ctor CategoryTheory.EnrichedCategory.mk E0 #

{V : Type v} β†’
  [inst : CategoryTheory.Category.{w, v} V] β†’
    [inst_1 : CategoryTheory.MonoidalCategory V] β†’
      {C : Type u₁} β†’
        (Hom : C β†’ C β†’ V) β†’
          (id : (X : C) β†’ CategoryTheory.MonoidalCategoryStruct.tensorUnit V ⟢ Hom X X) β†’
            (comp : (X Y Z : C) β†’ CategoryTheory.MonoidalCategoryStruct.tensorObj (Hom X Y) (Hom Y Z) ⟢ Hom X Z) β†’
              autoParam
                  (βˆ€ (X Y : C),
                    CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.leftUnitor (Hom X Y)).inv
                        (CategoryTheory.CategoryStruct.comp
                          (CategoryTheory.MonoidalCategoryStruct.whiskerRight (id X) (Hom X Y)) (comp X X Y)) =
                      CategoryTheory.CategoryStruct.id (Hom X Y))
                  CategoryTheory.EnrichedCategory.id_comp._autoParam β†’
                autoParam
                    (βˆ€ (X Y : C),
                      CategoryTheory.CategoryStruct.comp
                          (CategoryTheory.MonoidalCategoryStruct.rightUnitor (Hom X Y)).inv
                          (CategoryTheory.CategoryStruct.comp
                            (CategoryTheory.MonoidalCategoryStruct.whiskerLeft (Hom X Y) (id Y)) (comp X Y Y)) =
                        CategoryTheory.CategoryStruct.id (Hom X Y))
                    CategoryTheory.EnrichedCategory.comp_id._autoParam β†’
                  autoParam
                      (βˆ€ (W X Y Z : C),
                        CategoryTheory.CategoryStruct.comp
                            (CategoryTheory.MonoidalCategoryStruct.associator (Hom W X) (Hom X Y) (Hom Y Z)).inv
                            (CategoryTheory.CategoryStruct.comp
                              (CategoryTheory.MonoidalCategoryStruct.whiskerRight (comp W X Y) (Hom Y Z))
                              (comp W Y Z)) =
                          CategoryTheory.CategoryStruct.comp
                            (CategoryTheory.MonoidalCategoryStruct.whiskerLeft (Hom W X) (comp X Y Z)) (comp W X Z))
                      CategoryTheory.EnrichedCategory.assoc._autoParam β†’
                    CategoryTheory.EnrichedCategory V C

abbrev CategoryTheory.EnrichedCategory.Hom E1 #

{V : Type v} β†’
  {inst : CategoryTheory.Category.{w, v} V} β†’
    {inst_1 : CategoryTheory.MonoidalCategory V} β†’
      {C : Type u₁} β†’ [self : CategoryTheory.EnrichedCategory V C] β†’ C β†’ C β†’ V

X ⟢[V] Y is the V object of morphisms from X to Y.

abbrev CategoryTheory.EnrichedCategory.id E1 #

{V : Type v} β†’
  {inst : CategoryTheory.Category.{w, v} V} β†’
    {inst_1 : CategoryTheory.MonoidalCategory V} β†’
      {C : Type u₁} β†’
        [self : CategoryTheory.EnrichedCategory V C] β†’
          (X : C) β†’ CategoryTheory.MonoidalCategoryStruct.tensorUnit V ⟢ X ⟢[V] X

The identity morphism of this category

abbrev CategoryTheory.EnrichedCategory.comp E1 #

{V : Type v} β†’
  {inst : CategoryTheory.Category.{w, v} V} β†’
    {inst_1 : CategoryTheory.MonoidalCategory V} β†’
      {C : Type u₁} β†’
        [self : CategoryTheory.EnrichedCategory V C] β†’
          (X Y Z : C) β†’ CategoryTheory.MonoidalCategoryStruct.tensorObj (X ⟢[V] Y) (Y ⟢[V] Z) ⟢ X ⟢[V] Z

Composition of two morphisms in this category

theorem CategoryTheory.EnrichedCategory.id_comp E1 #

βˆ€ {V : Type v} {inst : CategoryTheory.Category.{w, v} V} {inst_1 : CategoryTheory.MonoidalCategory V} {C : Type u₁}
  [self : CategoryTheory.EnrichedCategory V C] (X Y : C),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.leftUnitor (X ⟢[V] Y)).inv
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.MonoidalCategoryStruct.whiskerRight (CategoryTheory.EnrichedCategory.id X) (X ⟢[V] Y))
        (CategoryTheory.EnrichedCategory.comp X X Y)) =
    CategoryTheory.CategoryStruct.id (X ⟢[V] Y)

theorem CategoryTheory.EnrichedCategory.comp_id E1 #

βˆ€ {V : Type v} {inst : CategoryTheory.Category.{w, v} V} {inst_1 : CategoryTheory.MonoidalCategory V} {C : Type u₁}
  [self : CategoryTheory.EnrichedCategory V C] (X Y : C),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.rightUnitor (X ⟢[V] Y)).inv
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.MonoidalCategoryStruct.whiskerLeft (X ⟢[V] Y) (CategoryTheory.EnrichedCategory.id Y))
        (CategoryTheory.EnrichedCategory.comp X Y Y)) =
    CategoryTheory.CategoryStruct.id (X ⟢[V] Y)

theorem CategoryTheory.EnrichedCategory.assoc E1 #

βˆ€ {V : Type v} {inst : CategoryTheory.Category.{w, v} V} {inst_1 : CategoryTheory.MonoidalCategory V} {C : Type u₁}
  [self : CategoryTheory.EnrichedCategory V C] (W X Y Z : C),
  CategoryTheory.CategoryStruct.comp
      (CategoryTheory.MonoidalCategoryStruct.associator (W ⟢[V] X) (X ⟢[V] Y) (Y ⟢[V] Z)).inv
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.MonoidalCategoryStruct.whiskerRight (CategoryTheory.EnrichedCategory.comp W X Y) (Y ⟢[V] Z))
        (CategoryTheory.EnrichedCategory.comp W Y Z)) =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.MonoidalCategoryStruct.whiskerLeft (W ⟢[V] X) (CategoryTheory.EnrichedCategory.comp X Y Z))
      (CategoryTheory.EnrichedCategory.comp W X Z)

def CategoryTheory.«term_⟢[_]_» E1 #

Lean.TrailingParserDescr

X ⟢[V] Y is the V object of morphisms from X to Y.

def CategoryTheory.eId E1 #

(V : Type v) β†’
  [inst : CategoryTheory.Category.{w, v} V] β†’
    [inst_1 : CategoryTheory.MonoidalCategory V] β†’
      {C : Type u₁} β†’
        [inst_2 : CategoryTheory.EnrichedCategory V C] β†’
          (X : C) β†’ CategoryTheory.MonoidalCategoryStruct.tensorUnit V ⟢ X ⟢[V] X

The πŸ™_ V-shaped generalized element giving the identity in a V-enriched category.

def CategoryTheory.eComp E1 #

(V : Type v) β†’
  [inst : CategoryTheory.Category.{w, v} V] β†’
    [inst_1 : CategoryTheory.MonoidalCategory V] β†’
      {C : Type u₁} β†’
        [inst_2 : CategoryTheory.EnrichedCategory V C] β†’
          (X Y Z : C) β†’ CategoryTheory.MonoidalCategoryStruct.tensorObj (X ⟢[V] Y) (Y ⟢[V] Z) ⟢ X ⟢[V] Z

The composition V-morphism for a V-enriched category.

theorem CategoryTheory.e_id_comp E0 #

βˆ€ (V : Type v) [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] (X Y : C),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.leftUnitor (X ⟢[V] Y)).inv
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.MonoidalCategoryStruct.whiskerRight (CategoryTheory.eId V X) (X ⟢[V] Y))
        (CategoryTheory.eComp V X X Y)) =
    CategoryTheory.CategoryStruct.id (X ⟢[V] Y)

theorem CategoryTheory.e_id_comp_assoc E0 #

βˆ€ (V : Type v) [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] (X Y : C) {Z : V} (h : (X ⟢[V] Y) ⟢ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.leftUnitor (X ⟢[V] Y)).inv
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.MonoidalCategoryStruct.whiskerRight (CategoryTheory.eId V X) (X ⟢[V] Y))
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.eComp V X X Y) h)) =
    h

theorem CategoryTheory.e_comp_id E0 #

βˆ€ (V : Type v) [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] (X Y : C),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.rightUnitor (X ⟢[V] Y)).inv
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.MonoidalCategoryStruct.whiskerLeft (X ⟢[V] Y) (CategoryTheory.eId V Y))
        (CategoryTheory.eComp V X Y Y)) =
    CategoryTheory.CategoryStruct.id (X ⟢[V] Y)

theorem CategoryTheory.e_comp_id_assoc E0 #

βˆ€ (V : Type v) [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] (X Y : C) {Z : V} (h : (X ⟢[V] Y) ⟢ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.rightUnitor (X ⟢[V] Y)).inv
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.MonoidalCategoryStruct.whiskerLeft (X ⟢[V] Y) (CategoryTheory.eId V Y))
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.eComp V X Y Y) h)) =
    h

theorem CategoryTheory.e_assoc_assoc E0 #

βˆ€ (V : Type v) [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] (W X Y Z : C) {Z_1 : V} (h : (W ⟢[V] Z) ⟢ Z_1),
  CategoryTheory.CategoryStruct.comp
      (CategoryTheory.MonoidalCategoryStruct.associator (W ⟢[V] X) (X ⟢[V] Y) (Y ⟢[V] Z)).inv
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.MonoidalCategoryStruct.whiskerRight (CategoryTheory.eComp V W X Y) (Y ⟢[V] Z))
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.eComp V W Y Z) h)) =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.MonoidalCategoryStruct.whiskerLeft (W ⟢[V] X) (CategoryTheory.eComp V X Y Z))
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.eComp V W X Z) h)

theorem CategoryTheory.e_assoc E0 #

βˆ€ (V : Type v) [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] (W X Y Z : C),
  CategoryTheory.CategoryStruct.comp
      (CategoryTheory.MonoidalCategoryStruct.associator (W ⟢[V] X) (X ⟢[V] Y) (Y ⟢[V] Z)).inv
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.MonoidalCategoryStruct.whiskerRight (CategoryTheory.eComp V W X Y) (Y ⟢[V] Z))
        (CategoryTheory.eComp V W Y Z)) =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.MonoidalCategoryStruct.whiskerLeft (W ⟢[V] X) (CategoryTheory.eComp V X Y Z))
      (CategoryTheory.eComp V W X Z)

theorem CategoryTheory.e_assoc' E1 #

βˆ€ (V : Type v) [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] (W X Y Z : C),
  CategoryTheory.CategoryStruct.comp
      (CategoryTheory.MonoidalCategoryStruct.associator (W ⟢[V] X) (X ⟢[V] Y) (Y ⟢[V] Z)).hom
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.MonoidalCategoryStruct.whiskerLeft (W ⟢[V] X) (CategoryTheory.eComp V X Y Z))
        (CategoryTheory.eComp V W X Z)) =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.MonoidalCategoryStruct.whiskerRight (CategoryTheory.eComp V W X Y) (Y ⟢[V] Z))
      (CategoryTheory.eComp V W Y Z)

theorem CategoryTheory.e_assoc'_assoc E1 #

βˆ€ (V : Type v) [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] (W X Y Z : C) {Z_1 : V} (h : (W ⟢[V] Z) ⟢ Z_1),
  CategoryTheory.CategoryStruct.comp
      (CategoryTheory.MonoidalCategoryStruct.associator (W ⟢[V] X) (X ⟢[V] Y) (Y ⟢[V] Z)).hom
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.MonoidalCategoryStruct.whiskerLeft (W ⟢[V] X) (CategoryTheory.eComp V X Y Z))
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.eComp V W X Z) h)) =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.MonoidalCategoryStruct.whiskerRight (CategoryTheory.eComp V W X Y) (Y ⟢[V] Z))
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.eComp V W Y Z) h)

def CategoryTheory.TransportEnrichment E1 #

{V : Type v} β†’
  [inst : CategoryTheory.Category.{w, v} V] β†’
    [inst_1 : CategoryTheory.MonoidalCategory V] β†’
      {W : Type v'} β†’
        [inst_2 : CategoryTheory.Category.{w', v'} W] β†’
          [inst_3 : CategoryTheory.MonoidalCategory W] β†’
            (F : CategoryTheory.Functor V W) β†’ [F.LaxMonoidal] β†’ Type u₁ β†’ Type u₁

A type synonym for C, which should come equipped with a V-enriched category structure. In a moment we will equip this with the W-enriched category structure obtained by applying the functor F : LaxMonoidalFunctor V W to each hom object.

instance CategoryTheory.instEnrichedCategoryTransportEnrichment E0 #

{V : Type v} β†’
  [inst : CategoryTheory.Category.{w, v} V] β†’
    [inst_1 : CategoryTheory.MonoidalCategory V] β†’
      {C : Type u₁} β†’
        [CategoryTheory.EnrichedCategory V C] β†’
          {W : Type v'} β†’
            [inst_3 : CategoryTheory.Category.{w', v'} W] β†’
              [inst_4 : CategoryTheory.MonoidalCategory W] β†’
                (F : CategoryTheory.Functor V W) β†’
                  [inst_5 : F.LaxMonoidal] β†’ CategoryTheory.EnrichedCategory W (CategoryTheory.TransportEnrichment F C)

theorem CategoryTheory.TransportEnrichment.eId_eq E0 #

βˆ€ {V : Type v} [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] {W : Type v'} [inst_3 : CategoryTheory.Category.{w', v'} W]
  [inst_4 : CategoryTheory.MonoidalCategory W] (F : CategoryTheory.Functor V W) [inst_5 : F.LaxMonoidal]
  (X : CategoryTheory.TransportEnrichment F C),
  CategoryTheory.eId W X =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Functor.LaxMonoidal.Ξ΅ F) (F.map (CategoryTheory.eId V X))

theorem CategoryTheory.TransportEnrichment.eComp_eq E0 #

βˆ€ {V : Type v} [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] {W : Type v'} [inst_3 : CategoryTheory.Category.{w', v'} W]
  [inst_4 : CategoryTheory.MonoidalCategory W] (F : CategoryTheory.Functor V W) [inst_5 : F.LaxMonoidal]
  (X Y Z : CategoryTheory.TransportEnrichment F C),
  CategoryTheory.eComp W X Y Z =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Functor.LaxMonoidal.μ F (X ⟢[V] Y) (Y ⟢[V] Z))
      (F.map (CategoryTheory.eComp V X Y Z))

def CategoryTheory.categoryOfEnrichedCategoryType E1 #

(C : Type u₁) β†’ [π’ž : CategoryTheory.EnrichedCategory (Type v) C] β†’ CategoryTheory.Category.{v, u₁} C

Construct an honest category from a Type v-enriched category.

def CategoryTheory.enrichedCategoryTypeOfCategory E1 #

(C : Type u₁) β†’ [π’ž : CategoryTheory.Category.{v, u₁} C] β†’ CategoryTheory.EnrichedCategory (Type v) C

Construct a Type v-enriched category from an honest category.

def CategoryTheory.enrichedCategoryTypeEquivCategory E1 #

(C : Type u₁) β†’ CategoryTheory.EnrichedCategory (Type v) C ≃ CategoryTheory.Category.{v, u₁} C

We verify that an enriched category in Type u is just the same thing as an honest category.

def CategoryTheory.ForgetEnrichment E1 #

(W : Type v) β†’
  [inst : CategoryTheory.Category.{w, v} W] β†’
    [inst_1 : CategoryTheory.MonoidalCategory W] β†’ (C : Type u₁) β†’ [CategoryTheory.EnrichedCategory W C] β†’ Type u₁

A type synonym for C, which should come equipped with a V-enriched category structure. In a moment we will equip this with the (honest) category structure so that X ⟢ Y is (πŸ™_ W) ⟢ (X ⟢[W] Y).

We obtain this category by transporting the enrichment in V along the lax monoidal functor coyonedaTensorUnit, then using the equivalence of Type-enriched categories with honest categories.

This is sometimes called the "underlying" category of an enriched category, although some care is needed as the functor coyonedaTensorUnit, which always exists, does not necessarily coincide with "the forgetful functor" from V to Type, if such exists. When V is any of Type, Top, AddCommGroup, or Module R, coyonedaTensorUnit is just the usual forgetful functor, however. For V = Algebra R, the usual forgetful functor is coyoneda of R[X], not of R. (Perhaps we should have a typeclass for this situation: ConcreteMonoidal?)

def CategoryTheory.ForgetEnrichment.of E1 #

{C : Type u₁} β†’
  (W : Type v) β†’
    [inst : CategoryTheory.Category.{w, v} W] β†’
      [inst_1 : CategoryTheory.MonoidalCategory W] β†’
        [inst_2 : CategoryTheory.EnrichedCategory W C] β†’ C β†’ CategoryTheory.ForgetEnrichment W C

Typecheck an object of C as an object of ForgetEnrichment W C.

def CategoryTheory.ForgetEnrichment.to E1 #

{C : Type u₁} β†’
  (W : Type v) β†’
    [inst : CategoryTheory.Category.{w, v} W] β†’
      [inst_1 : CategoryTheory.MonoidalCategory W] β†’
        [inst_2 : CategoryTheory.EnrichedCategory W C] β†’ CategoryTheory.ForgetEnrichment W C β†’ C

Typecheck an object of ForgetEnrichment W C as an object of C.

theorem CategoryTheory.ForgetEnrichment.to_of E0 #

βˆ€ {C : Type u₁} (W : Type v) [inst : CategoryTheory.Category.{w, v} W] [inst_1 : CategoryTheory.MonoidalCategory W]
  [inst_2 : CategoryTheory.EnrichedCategory W C] (X : C),
  CategoryTheory.ForgetEnrichment.to W (CategoryTheory.ForgetEnrichment.of W X) = X

theorem CategoryTheory.ForgetEnrichment.of_to E0 #

βˆ€ {C : Type u₁} (W : Type v) [inst : CategoryTheory.Category.{w, v} W] [inst_1 : CategoryTheory.MonoidalCategory W]
  [inst_2 : CategoryTheory.EnrichedCategory W C] (X : CategoryTheory.ForgetEnrichment W C),
  CategoryTheory.ForgetEnrichment.of W (CategoryTheory.ForgetEnrichment.to W X) = X

instance CategoryTheory.categoryForgetEnrichment E0 #

{C : Type u₁} β†’
  (W : Type v) β†’
    [inst : CategoryTheory.Category.{w, v} W] β†’
      [inst_1 : CategoryTheory.MonoidalCategory W] β†’
        [inst_2 : CategoryTheory.EnrichedCategory W C] β†’
          CategoryTheory.Category.{w, u₁} (CategoryTheory.ForgetEnrichment W C)

def CategoryTheory.ForgetEnrichment.homOf E1 #

{C : Type u₁} β†’
  (W : Type v) β†’
    [inst : CategoryTheory.Category.{w, v} W] β†’
      [inst_1 : CategoryTheory.MonoidalCategory W] β†’
        [inst_2 : CategoryTheory.EnrichedCategory W C] β†’
          {X Y : C} β†’
            (CategoryTheory.MonoidalCategoryStruct.tensorUnit W ⟢ X ⟢[W] Y) β†’
              (CategoryTheory.ForgetEnrichment.of W X ⟢ CategoryTheory.ForgetEnrichment.of W Y)

Typecheck a (πŸ™_ W)-shaped W-morphism as a morphism in ForgetEnrichment W C.

def CategoryTheory.ForgetEnrichment.homTo E1 #

{C : Type u₁} β†’
  (W : Type v) β†’
    [inst : CategoryTheory.Category.{w, v} W] β†’
      [inst_1 : CategoryTheory.MonoidalCategory W] β†’
        [inst_2 : CategoryTheory.EnrichedCategory W C] β†’
          {X Y : CategoryTheory.ForgetEnrichment W C} β†’
            (X ⟢ Y) β†’
              (CategoryTheory.MonoidalCategoryStruct.tensorUnit W ⟢
                CategoryTheory.ForgetEnrichment.to W X ⟢[W] CategoryTheory.ForgetEnrichment.to W Y)

Typecheck a morphism in ForgetEnrichment W C as a (πŸ™_ W)-shaped W-morphism.

theorem CategoryTheory.ForgetEnrichment.homTo_homOf E0 #

βˆ€ {C : Type u₁} (W : Type v) [inst : CategoryTheory.Category.{w, v} W] [inst_1 : CategoryTheory.MonoidalCategory W]
  [inst_2 : CategoryTheory.EnrichedCategory W C] {X Y : C}
  (f : CategoryTheory.MonoidalCategoryStruct.tensorUnit W ⟢ X ⟢[W] Y),
  CategoryTheory.ForgetEnrichment.homTo W (CategoryTheory.ForgetEnrichment.homOf W f) = f

theorem CategoryTheory.ForgetEnrichment.homOf_homTo E0 #

βˆ€ {C : Type u₁} (W : Type v) [inst : CategoryTheory.Category.{w, v} W] [inst_1 : CategoryTheory.MonoidalCategory W]
  [inst_2 : CategoryTheory.EnrichedCategory W C] {X Y : CategoryTheory.ForgetEnrichment W C} (f : X ⟢ Y),
  CategoryTheory.ForgetEnrichment.homOf W (CategoryTheory.ForgetEnrichment.homTo W f) = f

theorem CategoryTheory.ForgetEnrichment.homTo_id E0 #

βˆ€ {C : Type u₁} (W : Type v) [inst : CategoryTheory.Category.{w, v} W] [inst_1 : CategoryTheory.MonoidalCategory W]
  [inst_2 : CategoryTheory.EnrichedCategory W C] (X : CategoryTheory.ForgetEnrichment W C),
  CategoryTheory.ForgetEnrichment.homTo W (CategoryTheory.CategoryStruct.id X) =
    CategoryTheory.eId W (CategoryTheory.ForgetEnrichment.to W X)

The identity in the "underlying" category of an enriched category.

theorem CategoryTheory.ForgetEnrichment.homOf_eId E0 #

βˆ€ {C : Type u₁} (W : Type v) [inst : CategoryTheory.Category.{w, v} W] [inst_1 : CategoryTheory.MonoidalCategory W]
  [inst_2 : CategoryTheory.EnrichedCategory W C] (X : C),
  CategoryTheory.ForgetEnrichment.homOf W (CategoryTheory.eId W X) =
    CategoryTheory.CategoryStruct.id (CategoryTheory.ForgetEnrichment.of W X)

theorem CategoryTheory.ForgetEnrichment.homTo_comp E0 #

βˆ€ {C : Type u₁} (W : Type v) [inst : CategoryTheory.Category.{w, v} W] [inst_1 : CategoryTheory.MonoidalCategory W]
  [inst_2 : CategoryTheory.EnrichedCategory W C] {X Y Z : CategoryTheory.ForgetEnrichment W C} (f : X ⟢ Y) (g : Y ⟢ Z),
  CategoryTheory.ForgetEnrichment.homTo W (CategoryTheory.CategoryStruct.comp f g) =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.MonoidalCategoryStruct.leftUnitor (CategoryTheory.MonoidalCategoryStruct.tensorUnit W)).inv
        (CategoryTheory.MonoidalCategoryStruct.tensorHom (CategoryTheory.ForgetEnrichment.homTo W f)
          (CategoryTheory.ForgetEnrichment.homTo W g)))
      (CategoryTheory.eComp W (CategoryTheory.ForgetEnrichment.to W X) (CategoryTheory.ForgetEnrichment.to W Y)
        (CategoryTheory.ForgetEnrichment.to W Z))

Composition in the "underlying" category of an enriched category.

theorem CategoryTheory.ForgetEnrichment.homOf_comp E0 #

βˆ€ {C : Type u₁} (W : Type v) [inst : CategoryTheory.Category.{w, v} W] [inst_1 : CategoryTheory.MonoidalCategory W]
  [inst_2 : CategoryTheory.EnrichedCategory W C] {X Y Z : C}
  (f : CategoryTheory.MonoidalCategoryStruct.tensorUnit W ⟢ X ⟢[W] Y)
  (g : CategoryTheory.MonoidalCategoryStruct.tensorUnit W ⟢ Y ⟢[W] Z),
  CategoryTheory.ForgetEnrichment.homOf W
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.MonoidalCategoryStruct.leftUnitor (CategoryTheory.MonoidalCategoryStruct.tensorUnit W)).inv
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.tensorHom f g)
          (CategoryTheory.eComp W X Y Z))) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.ForgetEnrichment.homOf W f)
      (CategoryTheory.ForgetEnrichment.homOf W g)

structure CategoryTheory.EnrichedFunctor E1 #

(V : Type v) β†’
  [inst : CategoryTheory.Category.{w, v} V] β†’
    [inst_1 : CategoryTheory.MonoidalCategory V] β†’
      (C : Type u₁) β†’
        [CategoryTheory.EnrichedCategory V C] β†’
          (D : Type uβ‚‚) β†’ [CategoryTheory.EnrichedCategory V D] β†’ Type (max (max u₁ uβ‚‚) w)

A V-functor F between V-enriched categories has a V-morphism from X ⟢[V] Y to F.obj X ⟢[V] F.obj Y, satisfying the usual axioms.

ctor CategoryTheory.EnrichedFunctor.mk E0 #

{V : Type v} β†’
  [inst : CategoryTheory.Category.{w, v} V] β†’
    [inst_1 : CategoryTheory.MonoidalCategory V] β†’
      {C : Type u₁} β†’
        [inst_2 : CategoryTheory.EnrichedCategory V C] β†’
          {D : Type uβ‚‚} β†’
            [inst_3 : CategoryTheory.EnrichedCategory V D] β†’
              (obj : C β†’ D) β†’
                (map : (X Y : C) β†’ (X ⟢[V] Y) ⟢ obj X ⟢[V] obj Y) β†’
                  autoParam
                      (βˆ€ (X : C),
                        CategoryTheory.CategoryStruct.comp (CategoryTheory.eId V X) (map X X) =
                          CategoryTheory.eId V (obj X))
                      CategoryTheory.EnrichedFunctor.map_id._autoParam β†’
                    autoParam
                        (βˆ€ (X Y Z : C),
                          CategoryTheory.CategoryStruct.comp (CategoryTheory.eComp V X Y Z) (map X Z) =
                            CategoryTheory.CategoryStruct.comp
                              (CategoryTheory.MonoidalCategoryStruct.tensorHom (map X Y) (map Y Z))
                              (CategoryTheory.eComp V (obj X) (obj Y) (obj Z)))
                        CategoryTheory.EnrichedFunctor.map_comp._autoParam β†’
                      CategoryTheory.EnrichedFunctor V C D

abbrev CategoryTheory.EnrichedFunctor.obj E1 #

{V : Type v} β†’
  [inst : CategoryTheory.Category.{w, v} V] β†’
    [inst_1 : CategoryTheory.MonoidalCategory V] β†’
      {C : Type u₁} β†’
        [inst_2 : CategoryTheory.EnrichedCategory V C] β†’
          {D : Type uβ‚‚} β†’ [inst_3 : CategoryTheory.EnrichedCategory V D] β†’ CategoryTheory.EnrichedFunctor V C D β†’ C β†’ D

The application of this functor to an object

abbrev CategoryTheory.EnrichedFunctor.map E1 #

{V : Type v} β†’
  [inst : CategoryTheory.Category.{w, v} V] β†’
    [inst_1 : CategoryTheory.MonoidalCategory V] β†’
      {C : Type u₁} β†’
        [inst_2 : CategoryTheory.EnrichedCategory V C] β†’
          {D : Type uβ‚‚} β†’
            [inst_3 : CategoryTheory.EnrichedCategory V D] β†’
              (self : CategoryTheory.EnrichedFunctor V C D) β†’ (X Y : C) β†’ (X ⟢[V] Y) ⟢ self.obj X ⟢[V] self.obj Y

The V-morphism from X ⟢[V] Y to F.obj X ⟢[V] F.obj Y, for all X Y : C

theorem CategoryTheory.EnrichedFunctor.map_id E0 #

βˆ€ {V : Type v} [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] {D : Type uβ‚‚} [inst_3 : CategoryTheory.EnrichedCategory V D]
  (self : CategoryTheory.EnrichedFunctor V C D) (X : C),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.eId V X) (self.map X X) = CategoryTheory.eId V (self.obj X)

theorem CategoryTheory.EnrichedFunctor.map_comp E0 #

βˆ€ {V : Type v} [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] {D : Type uβ‚‚} [inst_3 : CategoryTheory.EnrichedCategory V D]
  (self : CategoryTheory.EnrichedFunctor V C D) (X Y Z : C),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.eComp V X Y Z) (self.map X Z) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.tensorHom (self.map X Y) (self.map Y Z))
      (CategoryTheory.eComp V (self.obj X) (self.obj Y) (self.obj Z))

theorem CategoryTheory.EnrichedFunctor.map_id_assoc E0 #

βˆ€ {V : Type v} [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] {D : Type uβ‚‚} [inst_3 : CategoryTheory.EnrichedCategory V D]
  (self : CategoryTheory.EnrichedFunctor V C D) (X : C) {Z : V} (h : (self.obj X ⟢[V] self.obj X) ⟢ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.eId V X) (CategoryTheory.CategoryStruct.comp (self.map X X) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.eId V (self.obj X)) h

theorem CategoryTheory.EnrichedFunctor.map_comp_assoc E0 #

βˆ€ {V : Type v} [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] {D : Type uβ‚‚} [inst_3 : CategoryTheory.EnrichedCategory V D]
  (self : CategoryTheory.EnrichedFunctor V C D) (X Y Z : C) {Z_1 : V} (h : (self.obj X ⟢[V] self.obj Z) ⟢ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.eComp V X Y Z)
      (CategoryTheory.CategoryStruct.comp (self.map X Z) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.tensorHom (self.map X Y) (self.map Y Z))
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.eComp V (self.obj X) (self.obj Y) (self.obj Z)) h)

def CategoryTheory.EnrichedFunctor.id E1 #

(V : Type v) β†’
  [inst : CategoryTheory.Category.{w, v} V] β†’
    [inst_1 : CategoryTheory.MonoidalCategory V] β†’
      (C : Type u₁) β†’ [inst_2 : CategoryTheory.EnrichedCategory V C] β†’ CategoryTheory.EnrichedFunctor V C C

The identity enriched functor.

theorem CategoryTheory.EnrichedFunctor.id_map E0 #

βˆ€ (V : Type v) [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] (C : Type u₁)
  [inst_2 : CategoryTheory.EnrichedCategory V C] (x x_1 : C),
  (CategoryTheory.EnrichedFunctor.id V C).map x x_1 = CategoryTheory.CategoryStruct.id (x ⟢[V] x_1)

theorem CategoryTheory.EnrichedFunctor.id_obj E0 #

βˆ€ (V : Type v) [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] (C : Type u₁)
  [inst_2 : CategoryTheory.EnrichedCategory V C] (X : C), (CategoryTheory.EnrichedFunctor.id V C).obj X = X

instance CategoryTheory.EnrichedFunctor.instInhabited E0 #

(V : Type v) β†’
  [inst : CategoryTheory.Category.{w, v} V] β†’
    [inst_1 : CategoryTheory.MonoidalCategory V] β†’
      {C : Type u₁} β†’ [inst_2 : CategoryTheory.EnrichedCategory V C] β†’ Inhabited (CategoryTheory.EnrichedFunctor V C C)

def CategoryTheory.EnrichedFunctor.comp E1 #

(V : Type v) β†’
  [inst : CategoryTheory.Category.{w, v} V] β†’
    [inst_1 : CategoryTheory.MonoidalCategory V] β†’
      {C : Type u₁} β†’
        {D : Type uβ‚‚} β†’
          {E : Type u₃} β†’
            [inst_2 : CategoryTheory.EnrichedCategory V C] β†’
              [inst_3 : CategoryTheory.EnrichedCategory V D] β†’
                [inst_4 : CategoryTheory.EnrichedCategory V E] β†’
                  CategoryTheory.EnrichedFunctor V C D β†’
                    CategoryTheory.EnrichedFunctor V D E β†’ CategoryTheory.EnrichedFunctor V C E

Composition of enriched functors.

theorem CategoryTheory.EnrichedFunctor.comp_map E0 #

βˆ€ (V : Type v) [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  {D : Type uβ‚‚} {E : Type u₃} [inst_2 : CategoryTheory.EnrichedCategory V C]
  [inst_3 : CategoryTheory.EnrichedCategory V D] [inst_4 : CategoryTheory.EnrichedCategory V E]
  (F : CategoryTheory.EnrichedFunctor V C D) (G : CategoryTheory.EnrichedFunctor V D E) (x x_1 : C),
  (CategoryTheory.EnrichedFunctor.comp V F G).map x x_1 =
    CategoryTheory.CategoryStruct.comp (F.map x x_1) (G.map (F.obj x) (F.obj x_1))

theorem CategoryTheory.EnrichedFunctor.comp_obj E0 #

βˆ€ (V : Type v) [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  {D : Type uβ‚‚} {E : Type u₃} [inst_2 : CategoryTheory.EnrichedCategory V C]
  [inst_3 : CategoryTheory.EnrichedCategory V D] [inst_4 : CategoryTheory.EnrichedCategory V E]
  (F : CategoryTheory.EnrichedFunctor V C D) (G : CategoryTheory.EnrichedFunctor V D E) (X : C),
  (CategoryTheory.EnrichedFunctor.comp V F G).obj X = G.obj (F.obj X)

theorem CategoryTheory.EnrichedFunctor.ext E1 #

βˆ€ (V : Type v) [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  {D : Type uβ‚‚} [inst_2 : CategoryTheory.EnrichedCategory V C] [inst_3 : CategoryTheory.EnrichedCategory V D]
  {F G : CategoryTheory.EnrichedFunctor V C D} (h_obj : βˆ€ (X : C), F.obj X = G.obj X),
  (βˆ€ (X Y : C), CategoryTheory.CategoryStruct.comp (F.map X Y) (CategoryTheory.eqToHom β‹―) = G.map X Y) β†’ F = G

def CategoryTheory.EnrichedFunctor.forget E1 #

{W : Type v'} β†’
  [inst : CategoryTheory.Category.{w', v'} W] β†’
    [inst_1 : CategoryTheory.MonoidalCategory W] β†’
      {C : Type u₁} β†’
        [inst_2 : CategoryTheory.EnrichedCategory W C] β†’
          {D : Type uβ‚‚} β†’
            [inst_3 : CategoryTheory.EnrichedCategory W D] β†’
              CategoryTheory.EnrichedFunctor W C D β†’
                CategoryTheory.Functor (CategoryTheory.ForgetEnrichment W C) (CategoryTheory.ForgetEnrichment W D)

An enriched functor induces an honest functor of the underlying categories, by mapping the (πŸ™_ W)-shaped morphisms.

theorem CategoryTheory.EnrichedFunctor.forget_map E0 #

βˆ€ {W : Type v'} [inst : CategoryTheory.Category.{w', v'} W] [inst_1 : CategoryTheory.MonoidalCategory W] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory W C] {D : Type uβ‚‚} [inst_3 : CategoryTheory.EnrichedCategory W D]
  (F : CategoryTheory.EnrichedFunctor W C D) {X Y : CategoryTheory.ForgetEnrichment W C} (f : X ⟢ Y),
  F.forget.map f =
    CategoryTheory.ForgetEnrichment.homOf W
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.ForgetEnrichment.homTo W f)
        (F.map (CategoryTheory.ForgetEnrichment.to W X) (CategoryTheory.ForgetEnrichment.to W Y)))

theorem CategoryTheory.EnrichedFunctor.forget_obj E0 #

βˆ€ {W : Type v'} [inst : CategoryTheory.Category.{w', v'} W] [inst_1 : CategoryTheory.MonoidalCategory W] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory W C] {D : Type uβ‚‚} [inst_3 : CategoryTheory.EnrichedCategory W D]
  (F : CategoryTheory.EnrichedFunctor W C D) (X : CategoryTheory.ForgetEnrichment W C),
  F.forget.obj X = CategoryTheory.ForgetEnrichment.of W (F.obj (CategoryTheory.ForgetEnrichment.to W X))

def CategoryTheory.EnrichedFunctor.forgetComp E1 #

{W : Type v'} β†’
  [inst : CategoryTheory.Category.{w', v'} W] β†’
    [inst_1 : CategoryTheory.MonoidalCategory W] β†’
      {C : Type u₁} β†’
        [inst_2 : CategoryTheory.EnrichedCategory W C] β†’
          {D : Type uβ‚‚} β†’
            [inst_3 : CategoryTheory.EnrichedCategory W D] β†’
              {E : Type u₃} β†’
                [inst_4 : CategoryTheory.EnrichedCategory W E] β†’
                  (F : CategoryTheory.EnrichedFunctor W C D) β†’
                    (G : CategoryTheory.EnrichedFunctor W D E) β†’
                      (CategoryTheory.EnrichedFunctor.comp W F G).forget β‰… F.forget.comp G.forget

EnrichedFunctor.forget distributes over composition of enriched functors up to isomorphism.

theorem CategoryTheory.EnrichedFunctor.forgetComp_inv_app E0 #

βˆ€ {W : Type v'} [inst : CategoryTheory.Category.{w', v'} W] [inst_1 : CategoryTheory.MonoidalCategory W] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory W C] {D : Type uβ‚‚} [inst_3 : CategoryTheory.EnrichedCategory W D]
  {E : Type u₃} [inst_4 : CategoryTheory.EnrichedCategory W E] (F : CategoryTheory.EnrichedFunctor W C D)
  (G : CategoryTheory.EnrichedFunctor W D E) (X : CategoryTheory.ForgetEnrichment W C),
  (F.forgetComp G).inv.app X =
    CategoryTheory.CategoryStruct.id
      (CategoryTheory.ForgetEnrichment.of W (G.obj (F.obj (CategoryTheory.ForgetEnrichment.to W X))))

theorem CategoryTheory.EnrichedFunctor.forgetComp_hom_app E0 #

βˆ€ {W : Type v'} [inst : CategoryTheory.Category.{w', v'} W] [inst_1 : CategoryTheory.MonoidalCategory W] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory W C] {D : Type uβ‚‚} [inst_3 : CategoryTheory.EnrichedCategory W D]
  {E : Type u₃} [inst_4 : CategoryTheory.EnrichedCategory W E] (F : CategoryTheory.EnrichedFunctor W C D)
  (G : CategoryTheory.EnrichedFunctor W D E) (X : CategoryTheory.ForgetEnrichment W C),
  (F.forgetComp G).hom.app X =
    CategoryTheory.CategoryStruct.id
      (CategoryTheory.ForgetEnrichment.of W (G.obj (F.obj (CategoryTheory.ForgetEnrichment.to W X))))

def CategoryTheory.EnrichedFunctor.forgetId E1 #

(W : Type v') β†’
  [inst : CategoryTheory.Category.{w', v'} W] β†’
    [inst_1 : CategoryTheory.MonoidalCategory W] β†’
      (C : Type u₁) β†’
        [inst_2 : CategoryTheory.EnrichedCategory W C] β†’
          (CategoryTheory.EnrichedFunctor.id W C).forget β‰…
            CategoryTheory.Functor.id (CategoryTheory.ForgetEnrichment W C)

EnrichedFunctor.forget maps the identity enriched functor to a functor isomorphic to Functor.id.

theorem CategoryTheory.EnrichedFunctor.forgetId_inv_app E0 #

βˆ€ (W : Type v') [inst : CategoryTheory.Category.{w', v'} W] [inst_1 : CategoryTheory.MonoidalCategory W] (C : Type u₁)
  [inst_2 : CategoryTheory.EnrichedCategory W C] (X : CategoryTheory.ForgetEnrichment W C),
  (CategoryTheory.EnrichedFunctor.forgetId W C).inv.app X = CategoryTheory.CategoryStruct.id X

theorem CategoryTheory.EnrichedFunctor.forgetId_hom_app E0 #

βˆ€ (W : Type v') [inst : CategoryTheory.Category.{w', v'} W] [inst_1 : CategoryTheory.MonoidalCategory W] (C : Type u₁)
  [inst_2 : CategoryTheory.EnrichedCategory W C] (X : CategoryTheory.ForgetEnrichment W C),
  (CategoryTheory.EnrichedFunctor.forgetId W C).hom.app X = CategoryTheory.CategoryStruct.id X

structure CategoryTheory.GradedNatTrans E1 #

{V : Type v} β†’
  [inst : CategoryTheory.Category.{w, v} V] β†’
    [inst_1 : CategoryTheory.MonoidalCategory V] β†’
      {C : Type u₁} β†’
        [inst_2 : CategoryTheory.EnrichedCategory V C] β†’
          {D : Type uβ‚‚} β†’
            [inst_3 : CategoryTheory.EnrichedCategory V D] β†’
              CategoryTheory.Center V β†’
                CategoryTheory.EnrichedFunctor V C D β†’ CategoryTheory.EnrichedFunctor V C D β†’ Type (max u₁ w)

The type of A-graded natural transformations between V-functors F and G. This is the type of morphisms in V from A to the V-object of natural transformations.

theorem CategoryTheory.GradedNatTrans.ext_iff E0 #

βˆ€ {V : Type v} {inst : CategoryTheory.Category.{w, v} V} {inst_1 : CategoryTheory.MonoidalCategory V} {C : Type u₁}
  {inst_2 : CategoryTheory.EnrichedCategory V C} {D : Type uβ‚‚} {inst_3 : CategoryTheory.EnrichedCategory V D}
  {A : CategoryTheory.Center V} {F G : CategoryTheory.EnrichedFunctor V C D}
  {x y : CategoryTheory.GradedNatTrans A F G}, x = y ↔ x.app = y.app

theorem CategoryTheory.GradedNatTrans.ext E1 #

βˆ€ {V : Type v} {inst : CategoryTheory.Category.{w, v} V} {inst_1 : CategoryTheory.MonoidalCategory V} {C : Type u₁}
  {inst_2 : CategoryTheory.EnrichedCategory V C} {D : Type uβ‚‚} {inst_3 : CategoryTheory.EnrichedCategory V D}
  {A : CategoryTheory.Center V} {F G : CategoryTheory.EnrichedFunctor V C D}
  {x y : CategoryTheory.GradedNatTrans A F G}, x.app = y.app β†’ x = y

ctor CategoryTheory.GradedNatTrans.mk E0 #

{V : Type v} β†’
  [inst : CategoryTheory.Category.{w, v} V] β†’
    [inst_1 : CategoryTheory.MonoidalCategory V] β†’
      {C : Type u₁} β†’
        [inst_2 : CategoryTheory.EnrichedCategory V C] β†’
          {D : Type uβ‚‚} β†’
            [inst_3 : CategoryTheory.EnrichedCategory V D] β†’
              {A : CategoryTheory.Center V} β†’
                {F G : CategoryTheory.EnrichedFunctor V C D} β†’
                  (app : (X : C) β†’ A.fst ⟢ F.obj X ⟢[V] G.obj X) β†’
                    (βˆ€ (X Y : C),
                        CategoryTheory.CategoryStruct.comp (A.snd.β (X ⟢[V] Y)).hom
                            (CategoryTheory.CategoryStruct.comp
                              (CategoryTheory.MonoidalCategoryStruct.tensorHom (F.map X Y) (app Y))
                              (CategoryTheory.eComp V (F.obj X) (F.obj Y) (G.obj Y))) =
                          CategoryTheory.CategoryStruct.comp
                            (CategoryTheory.MonoidalCategoryStruct.tensorHom (app X) (G.map X Y))
                            (CategoryTheory.eComp V (F.obj X) (G.obj X) (G.obj Y))) β†’
                      CategoryTheory.GradedNatTrans A F G

abbrev CategoryTheory.GradedNatTrans.app E1 #

{V : Type v} β†’
  [inst : CategoryTheory.Category.{w, v} V] β†’
    [inst_1 : CategoryTheory.MonoidalCategory V] β†’
      {C : Type u₁} β†’
        [inst_2 : CategoryTheory.EnrichedCategory V C] β†’
          {D : Type uβ‚‚} β†’
            [inst_3 : CategoryTheory.EnrichedCategory V D] β†’
              {A : CategoryTheory.Center V} β†’
                {F G : CategoryTheory.EnrichedFunctor V C D} β†’
                  CategoryTheory.GradedNatTrans A F G β†’ (X : C) β†’ A.fst ⟢ F.obj X ⟢[V] G.obj X

The A-graded transformation from F to G

theorem CategoryTheory.GradedNatTrans.naturality E1 #

βˆ€ {V : Type v} [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] {D : Type uβ‚‚} [inst_3 : CategoryTheory.EnrichedCategory V D]
  {A : CategoryTheory.Center V} {F G : CategoryTheory.EnrichedFunctor V C D}
  (self : CategoryTheory.GradedNatTrans A F G) (X Y : C),
  CategoryTheory.CategoryStruct.comp (A.snd.β (X ⟢[V] Y)).hom
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.tensorHom (F.map X Y) (self.app Y))
        (CategoryTheory.eComp V (F.obj X) (F.obj Y) (G.obj Y))) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.tensorHom (self.app X) (G.map X Y))
      (CategoryTheory.eComp V (F.obj X) (G.obj X) (G.obj Y))

app is a natural transformation.

theorem CategoryTheory.GradedNatTrans.naturality_assoc E1 #

βˆ€ {V : Type v} [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] {D : Type uβ‚‚} [inst_3 : CategoryTheory.EnrichedCategory V D]
  {A : CategoryTheory.Center V} {F G : CategoryTheory.EnrichedFunctor V C D}
  (self : CategoryTheory.GradedNatTrans A F G) (X Y : C) {Z : V} (h : (F.obj X ⟢[V] G.obj Y) ⟢ Z),
  CategoryTheory.CategoryStruct.comp (A.snd.β (X ⟢[V] Y)).hom
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.tensorHom (F.map X Y) (self.app Y))
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.eComp V (F.obj X) (F.obj Y) (G.obj Y)) h)) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategoryStruct.tensorHom (self.app X) (G.map X Y))
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.eComp V (F.obj X) (G.obj X) (G.obj Y)) h)

app is a natural transformation.

structure CategoryTheory.EnrichedNatTrans E1 #

{V : Type v} β†’
  [inst : CategoryTheory.Category.{w, v} V] β†’
    [inst_1 : CategoryTheory.MonoidalCategory V] β†’
      {C : Type u₁} β†’
        [inst_2 : CategoryTheory.EnrichedCategory V C] β†’
          {D : Type uβ‚‚} β†’
            [inst_3 : CategoryTheory.EnrichedCategory V D] β†’
              CategoryTheory.EnrichedFunctor V C D β†’ CategoryTheory.EnrichedFunctor V C D β†’ Type (max u₁ w)

A natural transformation between two enriched functors is a πŸ™_ V-graded natural transformation.

ctor CategoryTheory.EnrichedNatTrans.mk E0 #

{V : Type v} β†’
  [inst : CategoryTheory.Category.{w, v} V] β†’
    [inst_1 : CategoryTheory.MonoidalCategory V] β†’
      {C : Type u₁} β†’
        [inst_2 : CategoryTheory.EnrichedCategory V C] β†’
          {D : Type uβ‚‚} β†’
            [inst_3 : CategoryTheory.EnrichedCategory V D] β†’
              {F G : CategoryTheory.EnrichedFunctor V C D} β†’ (F.forget ⟢ G.forget) β†’ CategoryTheory.EnrichedNatTrans F G

abbrev CategoryTheory.EnrichedNatTrans.out E1 #

{V : Type v} β†’
  [inst : CategoryTheory.Category.{w, v} V] β†’
    [inst_1 : CategoryTheory.MonoidalCategory V] β†’
      {C : Type u₁} β†’
        [inst_2 : CategoryTheory.EnrichedCategory V C] β†’
          {D : Type uβ‚‚} β†’
            [inst_3 : CategoryTheory.EnrichedCategory V D] β†’
              {F G : CategoryTheory.EnrichedFunctor V C D} β†’ CategoryTheory.EnrichedNatTrans F G β†’ (F.forget ⟢ G.forget)

The underlying natural transformation of an enriched transformation.

instance CategoryTheory.EnrichedFunctor.category E0 #

{V : Type v} β†’
  [inst : CategoryTheory.Category.{w, v} V] β†’
    [inst_1 : CategoryTheory.MonoidalCategory V] β†’
      {C : Type u₁} β†’
        [inst_2 : CategoryTheory.EnrichedCategory V C] β†’
          {D : Type uβ‚‚} β†’
            [inst_3 : CategoryTheory.EnrichedCategory V D] β†’
              CategoryTheory.Category.{max u₁ w, max (max uβ‚‚ u₁) w} (CategoryTheory.EnrichedFunctor V C D)

Enriched functors form a category with the morphisms between functors F and G being enriched natural transformations, i.e. natural transformations F.forget ⟢ G.forget.

theorem CategoryTheory.EnrichedFunctor.category_id_out E0 #

βˆ€ {V : Type v} [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] {D : Type uβ‚‚} [inst_3 : CategoryTheory.EnrichedCategory V D]
  (F : CategoryTheory.EnrichedFunctor V C D),
  (CategoryTheory.CategoryStruct.id F).out = CategoryTheory.CategoryStruct.id F.forget

theorem CategoryTheory.EnrichedFunctor.category_comp_out E0 #

βˆ€ {V : Type v} [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] {D : Type uβ‚‚} [inst_3 : CategoryTheory.EnrichedCategory V D]
  {X Y Z : CategoryTheory.EnrichedFunctor V C D} (F : CategoryTheory.EnrichedNatTrans X Y)
  (G : CategoryTheory.EnrichedNatTrans Y Z),
  (CategoryTheory.CategoryStruct.comp F G).out = CategoryTheory.CategoryStruct.comp F.out G.out

theorem CategoryTheory.EnrichedFunctor.hom_ext_iff E0 #

βˆ€ {V : Type v} [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] {D : Type uβ‚‚} [inst_3 : CategoryTheory.EnrichedCategory V D]
  {F G : CategoryTheory.EnrichedFunctor V C D} {Ξ± Ξ² : F ⟢ G}, Ξ± = Ξ² ↔ βˆ€ (X : C), Ξ±.out.app X = Ξ².out.app X

theorem CategoryTheory.EnrichedFunctor.hom_ext E1 #

βˆ€ {V : Type v} [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] {D : Type uβ‚‚} [inst_3 : CategoryTheory.EnrichedCategory V D]
  {F G : CategoryTheory.EnrichedFunctor V C D} {Ξ± Ξ² : F ⟢ G}, (βˆ€ (X : C), Ξ±.out.app X = Ξ².out.app X) β†’ Ξ± = Ξ²

def CategoryTheory.EnrichedFunctor.isoMk E1 #

{V : Type v} β†’
  [inst : CategoryTheory.Category.{w, v} V] β†’
    [inst_1 : CategoryTheory.MonoidalCategory V] β†’
      {C : Type u₁} β†’
        [inst_2 : CategoryTheory.EnrichedCategory V C] β†’
          {D : Type uβ‚‚} β†’
            [inst_3 : CategoryTheory.EnrichedCategory V D] β†’
              {F G : CategoryTheory.EnrichedFunctor V C D} β†’ (F.forget β‰… G.forget) β†’ (F β‰… G)

To construct an isomorphism between enriched functors F and G, it suffices to construct a natural isomorphism between F.forget and G.forget.

theorem CategoryTheory.EnrichedFunctor.isoMk_inv_out E0 #

βˆ€ {V : Type v} [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] {D : Type uβ‚‚} [inst_3 : CategoryTheory.EnrichedCategory V D]
  {F G : CategoryTheory.EnrichedFunctor V C D} (h : F.forget β‰… G.forget),
  (CategoryTheory.EnrichedFunctor.isoMk h).inv.out = h.inv

theorem CategoryTheory.EnrichedFunctor.isoMk_hom_out E0 #

βˆ€ {V : Type v} [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] {D : Type uβ‚‚} [inst_3 : CategoryTheory.EnrichedCategory V D]
  {F G : CategoryTheory.EnrichedFunctor V C D} (h : F.forget β‰… G.forget),
  (CategoryTheory.EnrichedFunctor.isoMk h).hom.out = h.hom

def CategoryTheory.enrichedNatTransYoneda E1 #

{V : Type v} β†’
  [inst : CategoryTheory.Category.{w, v} V] β†’
    [inst_1 : CategoryTheory.MonoidalCategory V] β†’
      {C : Type u₁} β†’
        [inst_2 : CategoryTheory.EnrichedCategory V C] β†’
          {D : Type uβ‚‚} β†’
            [inst_3 : CategoryTheory.EnrichedCategory V D] β†’
              [CategoryTheory.BraidedCategory V] β†’
                CategoryTheory.EnrichedFunctor V C D β†’
                  CategoryTheory.EnrichedFunctor V C D β†’ CategoryTheory.Functor Vα΅’α΅– (Type (max u₁ w))

A presheaf isomorphic to the Yoneda embedding of the V-object of natural transformations from F to G.

theorem CategoryTheory.enrichedNatTransYoneda_map E0 #

βˆ€ {V : Type v} [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] {D : Type uβ‚‚} [inst_3 : CategoryTheory.EnrichedCategory V D]
  [inst_4 : CategoryTheory.BraidedCategory V] (F G : CategoryTheory.EnrichedFunctor V C D) {X Y : Vα΅’α΅–} (f : X ⟢ Y),
  (CategoryTheory.enrichedNatTransYoneda F G).map f =
    TypeCat.ofHom fun Οƒ ↦ { app := fun X_1 ↦ CategoryTheory.CategoryStruct.comp f.unop (Οƒ.app X_1), naturality := β‹― }

theorem CategoryTheory.enrichedNatTransYoneda_obj E0 #

βˆ€ {V : Type v} [inst : CategoryTheory.Category.{w, v} V] [inst_1 : CategoryTheory.MonoidalCategory V] {C : Type u₁}
  [inst_2 : CategoryTheory.EnrichedCategory V C] {D : Type uβ‚‚} [inst_3 : CategoryTheory.EnrichedCategory V D]
  [inst_4 : CategoryTheory.BraidedCategory V] (F G : CategoryTheory.EnrichedFunctor V C D) (A : Vα΅’α΅–),
  (CategoryTheory.enrichedNatTransYoneda F G).obj A =
    CategoryTheory.GradedNatTrans ((CategoryTheory.Center.ofBraided V).obj (Opposite.unop A)) F G

def CategoryTheory.enrichedFunctorTypeEquivFunctor E1 #

{C : Type u₁} β†’
  [π’ž : CategoryTheory.EnrichedCategory (Type v) C] β†’
    {D : Type uβ‚‚} β†’
      [π’Ÿ : CategoryTheory.EnrichedCategory (Type v) D] β†’
        CategoryTheory.EnrichedFunctor (Type v) C D ≃ CategoryTheory.Functor C D

We verify that an enriched functor between Type v enriched categories is just the same thing as an honest functor.

theorem CategoryTheory.enrichedFunctorTypeEquivFunctor_symm_apply_obj E0 #

βˆ€ {C : Type u₁} [π’ž : CategoryTheory.EnrichedCategory (Type v) C] {D : Type uβ‚‚}
  [π’Ÿ : CategoryTheory.EnrichedCategory (Type v) D] (F : CategoryTheory.Functor C D) (X : C),
  (CategoryTheory.enrichedFunctorTypeEquivFunctor.symm F).obj X = F.obj X

theorem CategoryTheory.enrichedFunctorTypeEquivFunctor_apply_map E0 #

βˆ€ {C : Type u₁} [π’ž : CategoryTheory.EnrichedCategory (Type v) C] {D : Type uβ‚‚}
  [π’Ÿ : CategoryTheory.EnrichedCategory (Type v) D] (F : CategoryTheory.EnrichedFunctor (Type v) C D) {X Y : C}
  (f : X ⟢ Y),
  (CategoryTheory.enrichedFunctorTypeEquivFunctor F).map f = (CategoryTheory.ConcreteCategory.hom (F.map X Y)) f

theorem CategoryTheory.enrichedFunctorTypeEquivFunctor_apply_obj E0 #

βˆ€ {C : Type u₁} [π’ž : CategoryTheory.EnrichedCategory (Type v) C] {D : Type uβ‚‚}
  [π’Ÿ : CategoryTheory.EnrichedCategory (Type v) D] (F : CategoryTheory.EnrichedFunctor (Type v) C D) (X : C),
  (CategoryTheory.enrichedFunctorTypeEquivFunctor F).obj X = F.obj X

theorem CategoryTheory.enrichedFunctorTypeEquivFunctor_symm_apply_map E0 #

βˆ€ {C : Type u₁} [π’ž : CategoryTheory.EnrichedCategory (Type v) C] {D : Type uβ‚‚}
  [π’Ÿ : CategoryTheory.EnrichedCategory (Type v) D] (F : CategoryTheory.Functor C D) (x x_1 : C),
  (CategoryTheory.enrichedFunctorTypeEquivFunctor.symm F).map x x_1 = TypeCat.ofHom fun f ↦ F.map f

def CategoryTheory.enrichedNatTransYonedaTypeIsoYonedaNatTrans E1 #

{C : Type v} β†’
  [inst : CategoryTheory.EnrichedCategory (Type v) C] β†’
    {D : Type v} β†’
      [inst_1 : CategoryTheory.EnrichedCategory (Type v) D] β†’
        (F G : CategoryTheory.EnrichedFunctor (Type v) C D) β†’
          CategoryTheory.enrichedNatTransYoneda F G β‰…
            CategoryTheory.yoneda.obj
              (CategoryTheory.enrichedFunctorTypeEquivFunctor F ⟢ CategoryTheory.enrichedFunctorTypeEquivFunctor G)

We verify that the presheaf representing natural transformations between Type v-enriched functors is actually represented by the usual type of natural transformations!