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.Functor.KanExtension.DenseAtYoneda

22 declarations. Mathlib docs · Source

The Yoneda embedding is dense

Any presheaf of types is a colimit of representable presheaves. This is stated in two ways for each of the variants of the Yoneda embedding (yoneda, uliftYoneda and shrinkYoneda):

  • as the fact that for any P : Cᵒᵖ ⥤ Type _, there is a colimit cocone involving representable presheaves that is indexed by the opposite category of the category of elements of P, see Functor.Elements.isColimitShrinkYonedaCocone for the case of shrinkYoneda.
  • when the opposite of the category of elements is replaced by categories of costructured arrows for the Yoneda embedding, we get definitions like denseAtShrinkYoneda, which expresses that the Yoneda embedding is a dense functor, a fact which is also stated using Functor.IsDense instances.

References

  • https://ncatlab.org/nlab/show/dense+subcategory

def CategoryTheory.Functor.Elements.shrinkYonedaCocone E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C] →
      (P : CategoryTheory.Functor Cᵒᵖ (Type w)) →
        CategoryTheory.Limits.Cocone
          ((CategoryTheory.Functor.Elements.π P).leftOp.comp CategoryTheory.shrinkYoneda.{w, v, u})

The (colimit) cocone which expresses a presheaf P : Cᵒᵖ ⥤ Type w as as a colimit (indexed by P.Elementsᵒᵖ) of representable presheaves (defined using shrinkYoneda).

theorem CategoryTheory.Functor.Elements.shrinkYonedaCocone_ι_app E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C]
  (P : CategoryTheory.Functor Cᵒᵖ (Type w)) (x : P.Elementsᵒᵖ),
  (CategoryTheory.Functor.Elements.shrinkYonedaCocone P).ι.app x =
    CategoryTheory.shrinkYonedaEquiv.symm (Opposite.unop x).val

theorem CategoryTheory.Functor.Elements.shrinkYonedaCocone_pt E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C]
  (P : CategoryTheory.Functor Cᵒᵖ (Type w)), (CategoryTheory.Functor.Elements.shrinkYonedaCocone P).pt = P

def CategoryTheory.Functor.Elements.isColimitShrinkYonedaCoconeObj E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C] →
      (P : CategoryTheory.Functor Cᵒᵖ (Type w)) →
        (X : Cᵒᵖ) →
          CategoryTheory.Limits.IsColimit
            (((CategoryTheory.evaluation Cᵒᵖ (Type w)).obj X).mapCocone
              (CategoryTheory.Functor.Elements.shrinkYonedaCocone P))

Let P : Cᵒᵖ ⥤ Type w be a presheaf. For any X : Cᵒᵖ, the cocone shrinkYonedaCocone P becomes colimit after applying the evaluation functor (Cᵒᵖ ⥤ Type w) ⥤ Type w at X.

def CategoryTheory.Functor.Elements.isColimitShrinkYonedaCocone E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C] →
      (P : CategoryTheory.Functor Cᵒᵖ (Type w)) →
        CategoryTheory.Limits.IsColimit (CategoryTheory.Functor.Elements.shrinkYonedaCocone P)

Any presheaf P is a colimit of representable presheaves (defined using shrinkYoneda) indexed by the opposite category of the category of elements in P.

def CategoryTheory.Functor.Elements.yonedaCocone E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (P : CategoryTheory.Functor Cᵒᵖ (Type v)) →
      CategoryTheory.Limits.Cocone ((CategoryTheory.Functor.Elements.π P).leftOp.comp CategoryTheory.yoneda)

The (colimit) cocone which expresses a presheaf P : Cᵒᵖ ⥤ Type v as as a colimit (indexed by P.Elementsᵒᵖ) of representable presheaves (defined using yoneda).

theorem CategoryTheory.Functor.Elements.yonedaCocone_ι_app E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (P : CategoryTheory.Functor Cᵒᵖ (Type v)) (x : P.Elementsᵒᵖ),
  (CategoryTheory.Functor.Elements.yonedaCocone P).ι.app x = CategoryTheory.yonedaEquiv.symm (Opposite.unop x).val

theorem CategoryTheory.Functor.Elements.yonedaCocone_pt E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (P : CategoryTheory.Functor Cᵒᵖ (Type v)),
  (CategoryTheory.Functor.Elements.yonedaCocone P).pt = P

def CategoryTheory.Functor.Elements.isColimitYonedaCoconeObj E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (P : CategoryTheory.Functor Cᵒᵖ (Type v)) →
      (X : Cᵒᵖ) →
        CategoryTheory.Limits.IsColimit
          (((CategoryTheory.evaluation Cᵒᵖ (Type v)).obj X).mapCocone (CategoryTheory.Functor.Elements.yonedaCocone P))

Let P : Cᵒᵖ ⥤ Type v be a presheaf. For any X : Cᵒᵖ, the cocone yonedaCocone P becomes colimit after applying the evaluation functor (Cᵒᵖ ⥤ Type w) ⥤ Type w at X.

def CategoryTheory.Functor.Elements.isColimitYonedaCocone E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (P : CategoryTheory.Functor Cᵒᵖ (Type v)) →
      CategoryTheory.Limits.IsColimit (CategoryTheory.Functor.Elements.yonedaCocone P)

Any presheaf P is a colimit of representable presheaves (defined using yoneda) indexed by the opposite category of elements in P.

def CategoryTheory.Functor.Elements.uliftYonedaCocone E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (P : CategoryTheory.Functor Cᵒᵖ (Type (max w v))) →
      CategoryTheory.Limits.Cocone
        ((CategoryTheory.Functor.Elements.π P).leftOp.comp CategoryTheory.uliftYoneda.{w, v, u})

The (colimit) cocone which expresses a presheaf P : Cᵒᵖ ⥤ Type max w v as as a colimit (indexed by P.Elementsᵒᵖ) of representable presheaves (defined using uliftYoneda).

theorem CategoryTheory.Functor.Elements.uliftYonedaCocone_ι_app E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (P : CategoryTheory.Functor Cᵒᵖ (Type (max w v)))
  (x : P.Elementsᵒᵖ),
  (CategoryTheory.Functor.Elements.uliftYonedaCocone P).ι.app x =
    CategoryTheory.uliftYonedaEquiv.symm (Opposite.unop x).val

theorem CategoryTheory.Functor.Elements.uliftYonedaCocone_pt E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (P : CategoryTheory.Functor Cᵒᵖ (Type (max w v))),
  (CategoryTheory.Functor.Elements.uliftYonedaCocone P).pt = P

def CategoryTheory.Functor.Elements.isColimitUliftYonedaCoconeObj E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (P : CategoryTheory.Functor Cᵒᵖ (Type (max w v))) →
      (X : Cᵒᵖ) →
        CategoryTheory.Limits.IsColimit
          (((CategoryTheory.evaluation Cᵒᵖ (Type (max w v))).obj X).mapCocone
            (CategoryTheory.Functor.Elements.uliftYonedaCocone P))

Let P : Cᵒᵖ ⥤ Type max w v be a presheaf. For any X : Cᵒᵖ, the cocone uliftYonedaCocone P becomes colimit after applying the evaluation functor (Cᵒᵖ ⥤ Type w) ⥤ Type w at X.

def CategoryTheory.Functor.Elements.isColimitUliftYonedaCocone E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (P : CategoryTheory.Functor Cᵒᵖ (Type (max w v))) →
      CategoryTheory.Limits.IsColimit (CategoryTheory.Functor.Elements.uliftYonedaCocone P)

Any presheaf P is a colimit of representable presheaves (defined using uliftYoneda) indexed by the opposite category of elements in P.

instance CategoryTheory.instIsDenseFunctorOppositeTypeShrinkYoneda E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C],
  CategoryTheory.shrinkYoneda.{w, v, u}.IsDense

instance CategoryTheory.instIsDenseFunctorOppositeTypeUliftYoneda E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C], CategoryTheory.uliftYoneda.{w, v, u}.IsDense

instance CategoryTheory.instIsDenseFunctorOppositeTypeYoneda E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C], CategoryTheory.yoneda.IsDense

def CategoryTheory.denseAtShrinkYoneda E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C] →
      (P : CategoryTheory.Functor Cᵒᵖ (Type w)) → CategoryTheory.shrinkYoneda.{w, v, u}.DenseAt P

When C is a locally w-small category, the functor shrinkYoneda : C ⥤ Cᵒᵖ ⥤ Type w is dense at any P : Cᵒᵖ ⥤ Type w: the presheaf P identifies to the colimit of the canonical cocone of representable presheaves indexed by the category CostructuredArrow shrinkYoneda P.

def CategoryTheory.denseAtYoneda E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (P : CategoryTheory.Functor Cᵒᵖ (Type v)) → CategoryTheory.yoneda.DenseAt P

The functor yoneda : C ⥤ Cᵒᵖ ⥤ Type v is dense at any P : Cᵒᵖ ⥤ Type v: the presheaf P identifies to the colimit of the canonical cocone of representable presheaves indexed by the category CostructuredArrow yoneda P.

def CategoryTheory.denseAtUliftYoneda E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (P : CategoryTheory.Functor Cᵒᵖ (Type (max w v))) → CategoryTheory.uliftYoneda.{w, v, u}.DenseAt P

When C is a category where morphisms are in Type v, the functor uliftYoneda.{w} : C ⥤ Cᵒᵖ ⥤ Type max w v is dense at any P : Cᵒᵖ ⥤ Type max w v: the presheaf P identifies to the colimit of the canonical cocone of representable presheaves indexed by the category CostructuredArrow uliftYoneda P.

theorem CategoryTheory.Presheaf.final_toCostructuredArrow_comp_pre E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {I : Type v} [inst_1 : CategoryTheory.SmallCategory I]
  (F : CategoryTheory.Functor I C) {c : CategoryTheory.Limits.Cocone (F.comp CategoryTheory.yoneda)}
  (hc : CategoryTheory.Limits.IsColimit c),
  (c.toCostructuredArrow.comp (CategoryTheory.CostructuredArrow.pre F CategoryTheory.yoneda c.pt)).Final

Given a functor F : I ⥤ C, a cocone c on F ⋙ yoneda : I ⥤ Cᵒᵖ ⥤ Type v₁ induces a functor I ⥤ CostructuredArrow yoneda c.pt which maps i : I to the leg yoneda.obj (F.obj i) ⟶ c.pt. If c is a colimit cocone, then that functor is final.

Proposition 2.6.3(ii) in [Kashiwara2006]