The areas / V24. Category theory
Mathlib.CategoryTheory.Limits.Presheaf
16 declarations and 35 deprecated aliases. Mathlib docs · Source
Colimit of representables
All the definitions in this file are deprecated. The results from this file
are now in the folder Mathlib/CategoryTheory/Functor/KanExtension/.
In particular, the fact that any presheaf of types is a colimit of
representable presheaves is now proven in the fil
Mathlib/CategoryTheory/Functor/KanExtension/DenseAtYoneda.lean.
In this file, We show that every presheaf of types on a category C (with Category.{v₁} C)
is a colimit of representables. This result is also known as the density theorem,
the co-Yoneda lemma and the Ninja Yoneda lemma. Three formulations are given:
colimitOfRepresentableuses the category of elements of a functor to types;isColimitTautologicalCoconeuses the category of costructured arrows foryoneda : C ⥤ Cᵒᵖ ⥤ Type v₁;isColimitTautologicalCocone'uses the category of costructured arrows foruliftYoneda : C ⥤ Cᵒᵖ ⥤ Type max w v₁, when the presheaf has values inType max w v₁;
In this file, we also study the left Kan extensions of functors A : C ⥤ ℰ
along the Yoneda embedding uliftYoneda : C ⥤ Cᵒᵖ ⥤ Type max w v₁ v₂
(when Category.{v₂} ℰ and w is an auxiliary universe). In particular,
the definition uliftYonedaAdjunction shows that such a pointwise left Kan
extension (which exists when ℰ has colimits) is a left adjoint to the
functor restrictedULiftYoneda : ℰ ⥤ Cᵒᵖ ⥤ Type max w v₁ v₂.
In the lemma isLeftKanExtension_along_uliftYoneda_iff, we show that
if L : (Cᵒᵖ ⥤ Type max w v₁ v₂) ⥤ ℰ and α : A ⟶ uliftYoneda ⋙ L, then
α makes L the left Kan extension of L along yoneda if and only if
α is an isomorphism (i.e. L extends A) and L preserves colimits.
uniqueExtensionAlongULiftYoneda shows uliftYoneda.leftKanExtension A is
unique amongst functors preserving colimits with this property, establishing the
presheaf category as the free cocompletion of a category.
Given a functor F : C ⥤ D, we also show construct an isomorphism
compULiftYonedaIsoULiftYonedaCompLan : F ⋙ uliftYoneda ≅ uliftYoneda ⋙ F.op.lan, and
show that it makes F.op.lan a left Kan extension of F ⋙ uliftYoneda.
Tags
colimit, representable, presheaf, free cocompletion
References
- [S. MacLane, I. Moerdijk, Sheaves in Geometry and Logic][MM92]
- https://ncatlab.org/nlab/show/Yoneda+extension
theorem CategoryTheory.Presheaf.restrictedULiftYonedaHomEquiv'_symm_naturality_right_assoc E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {ℰ : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} ℰ]
(A : CategoryTheory.Functor C ℰ) (P : CategoryTheory.Functor Cᵒᵖ (Type (max w v₁ v₂))) {E E' : ℰ} (g : E ⟶ E')
(f : P ⟶ (CategoryTheory.Presheaf.restrictedULiftYoneda A).obj E)
{Z : CategoryTheory.Functor (CategoryTheory.CostructuredArrow CategoryTheory.uliftYoneda.{max w v₂, v₁, u₁} P) ℰ}
(h :
(CategoryTheory.Functor.const
(CategoryTheory.CostructuredArrow CategoryTheory.uliftYoneda.{max w v₂, v₁, u₁} P)).obj
E' ⟶
Z),
CategoryTheory.CategoryStruct.comp
((CategoryTheory.Presheaf.restrictedULiftYonedaHomEquiv' A P E').symm
(CategoryTheory.CategoryStruct.comp f ((CategoryTheory.Presheaf.restrictedULiftYoneda A).map g)))
h =
CategoryTheory.CategoryStruct.comp ((CategoryTheory.Presheaf.restrictedULiftYonedaHomEquiv' A P E).symm f)
(CategoryTheory.CategoryStruct.comp
((CategoryTheory.Functor.const
(CategoryTheory.CostructuredArrow CategoryTheory.uliftYoneda.{max w v₂, v₁, u₁} P)).map
g)
h)
theorem CategoryTheory.Presheaf.restrictedULiftYonedaHomEquiv'_symm_app_naturality_left_assoc E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {ℰ : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} ℰ]
(A : CategoryTheory.Functor C ℰ) {P Q : CategoryTheory.Functor Cᵒᵖ (Type (max w v₁ v₂))} (f : P ⟶ Q) (E : ℰ)
(g : Q ⟶ (CategoryTheory.Presheaf.restrictedULiftYoneda A).obj E)
(p : CategoryTheory.CostructuredArrow CategoryTheory.uliftYoneda.{max w v₂, v₁, u₁} P) {Z : ℰ}
(h :
((CategoryTheory.Functor.const
(CategoryTheory.CostructuredArrow CategoryTheory.uliftYoneda.{max w v₂, v₁, u₁} P)).obj
E).obj
p ⟶
Z),
CategoryTheory.CategoryStruct.comp
(((CategoryTheory.Presheaf.restrictedULiftYonedaHomEquiv' A P E).symm
(CategoryTheory.CategoryStruct.comp f g)).app
p)
h =
CategoryTheory.CategoryStruct.comp
(((CategoryTheory.Presheaf.restrictedULiftYonedaHomEquiv' A Q E).symm g).app
((CategoryTheory.CostructuredArrow.map f).obj p))
h
theorem CategoryTheory.Presheaf.functorToRepresentables_map E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (P : CategoryTheory.Functor Cᵒᵖ (Type (max w v₁)))
{X Y : P.Elementsᵒᵖ} (f : X ⟶ Y),
(CategoryTheory.Presheaf.functorToRepresentables P).map f = CategoryTheory.uliftYoneda.{w, v₁, u₁}.map f.unop.hom.unop
theorem CategoryTheory.Presheaf.functorToRepresentables_obj E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (P : CategoryTheory.Functor Cᵒᵖ (Type (max w v₁)))
(X : P.Elementsᵒᵖ),
(CategoryTheory.Presheaf.functorToRepresentables P).obj X =
CategoryTheory.uliftYoneda.{w, v₁, u₁}.obj (Opposite.unop (Opposite.unop X).obj)
theorem CategoryTheory.Presheaf.coconeOfRepresentable_pt E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (P : CategoryTheory.Functor Cᵒᵖ (Type (max w v₁))),
(CategoryTheory.Presheaf.coconeOfRepresentable P).pt = P
theorem CategoryTheory.Presheaf.coconeOfRepresentable_ι_app E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (P : CategoryTheory.Functor Cᵒᵖ (Type (max w v₁)))
(x : P.Elementsᵒᵖ),
(CategoryTheory.Presheaf.coconeOfRepresentable P).ι.app x = CategoryTheory.uliftYonedaEquiv.symm (Opposite.unop x).val
theorem CategoryTheory.Presheaf.compULiftYonedaIsoULiftYonedaCompLan.coconeApp_naturality_assoc E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{F : CategoryTheory.Functor C D}
{G :
CategoryTheory.Functor (CategoryTheory.Functor Cᵒᵖ (Type (max w v₁ v₂)))
(CategoryTheory.Functor Dᵒᵖ (Type (max w v₁ v₂)))}
(φ : F.comp CategoryTheory.uliftYoneda.{max w v₁, v₂, u₂} ⟶ CategoryTheory.uliftYoneda.{max w v₂, v₁, u₁}.comp G)
{P : CategoryTheory.Functor Cᵒᵖ (Type (max w v₁ v₂))} {x y : P.Elements} (f : x ⟶ y)
{Z : CategoryTheory.Functor Cᵒᵖ (Type (max (max v₂ w) v₁))} (h : F.op.comp (G.obj P) ⟶ Z),
CategoryTheory.CategoryStruct.comp (CategoryTheory.uliftYoneda.{max v₂ w, v₁, u₁}.map f.hom.unop)
(CategoryTheory.CategoryStruct.comp (CategoryTheory.Presheaf.compULiftYonedaIsoULiftYonedaCompLan.coconeApp φ x)
h) =
CategoryTheory.CategoryStruct.comp (CategoryTheory.Presheaf.compULiftYonedaIsoULiftYonedaCompLan.coconeApp φ y) h
theorem CategoryTheory.Presheaf.compULiftYonedaIsoULiftYonedaCompLan.presheafHom_naturality_assoc E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{F : CategoryTheory.Functor C D}
{G :
CategoryTheory.Functor (CategoryTheory.Functor Cᵒᵖ (Type (max w v₁ v₂)))
(CategoryTheory.Functor Dᵒᵖ (Type (max w v₁ v₂)))}
(φ : F.comp CategoryTheory.uliftYoneda.{max w v₁, v₂, u₂} ⟶ CategoryTheory.uliftYoneda.{max w v₂, v₁, u₁}.comp G)
{P Q : CategoryTheory.Functor Cᵒᵖ (Type (max w v₁ v₂))} (f : P ⟶ Q)
{Z : CategoryTheory.Functor Cᵒᵖ (Type (max w v₁ v₂))} (h : F.op.comp (G.obj Q) ⟶ Z),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Presheaf.compULiftYonedaIsoULiftYonedaCompLan.presheafHom φ P)
(CategoryTheory.CategoryStruct.comp (F.op.whiskerLeft (G.map f)) h) =
CategoryTheory.CategoryStruct.comp f
(CategoryTheory.CategoryStruct.comp (CategoryTheory.Presheaf.compULiftYonedaIsoULiftYonedaCompLan.presheafHom φ Q)
h)
theorem CategoryTheory.Presheaf.compULiftYonedaIsoULiftYonedaCompLan.hom_ext_iff E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{F : CategoryTheory.Functor C D}
[inst_2 : ∀ (P : CategoryTheory.Functor Cᵒᵖ (Type (max w v₁ v₂))), F.op.HasLeftKanExtension P]
{Φ :
CategoryTheory.uliftYoneda.{max w v₂, v₁, u₁}.LeftExtension (F.comp CategoryTheory.uliftYoneda.{max w v₁, v₂, u₂})}
{f g :
CategoryTheory.Functor.LeftExtension.mk F.op.lan
(CategoryTheory.Presheaf.compULiftYonedaIsoULiftYonedaCompLan F).hom ⟶
Φ},
f = g ↔ True
theorem CategoryTheory.Presheaf.tautologicalCocone'_pt E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (P : CategoryTheory.Functor Cᵒᵖ (Type (max w v₁))),
(CategoryTheory.Presheaf.tautologicalCocone' P).pt = P
theorem CategoryTheory.Presheaf.tautologicalCocone'_ι_app E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (P : CategoryTheory.Functor Cᵒᵖ (Type (max w v₁)))
(X : CategoryTheory.CostructuredArrow CategoryTheory.uliftYoneda.{w, v₁, u₁} P),
(CategoryTheory.Presheaf.tautologicalCocone' P).ι.app X = X.hom
theorem CategoryTheory.Presheaf.tautologicalCocone_ι_app E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (P : CategoryTheory.Functor Cᵒᵖ (Type v₁))
(X : CategoryTheory.CostructuredArrow CategoryTheory.yoneda P),
(CategoryTheory.Presheaf.tautologicalCocone P).ι.app X = X.hom
theorem CategoryTheory.Presheaf.tautologicalCocone_pt E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (P : CategoryTheory.Functor Cᵒᵖ (Type v₁)),
(CategoryTheory.Presheaf.tautologicalCocone P).pt = P
theorem CategoryTheory.Functor.Elements.coconeπOpCompShrinkYonedaObj_pt E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] [inst_1 : CategoryTheory.LocallySmall.{w, v₁, u₁} C]
(F : CategoryTheory.Functor C (Type w)) (X : C),
(CategoryTheory.Functor.Elements.coconeπOpCompShrinkYonedaObj F X).pt = F.obj X
theorem CategoryTheory.Functor.Elements.coconeπOpCompShrinkYonedaObj_ι_app E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] [inst_1 : CategoryTheory.LocallySmall.{w, v₁, u₁} C]
(F : CategoryTheory.Functor C (Type w)) (X : C) (u : F.Elementsᵒᵖ),
(CategoryTheory.Functor.Elements.coconeπOpCompShrinkYonedaObj F X).ι.app u =
TypeCat.ofHom fun t ↦
(CategoryTheory.ConcreteCategory.hom (F.map (CategoryTheory.shrinkYonedaObjObjEquiv t))) (Opposite.unop u).val
theorem CategoryTheory.Functor.Elements.shrinkYoneda_map_app_coconeπOpCompShrinkYonedaObj_ι_app_assoc E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] [inst_1 : CategoryTheory.LocallySmall.{w, v₁, u₁} C]
(F : CategoryTheory.Functor C (Type w)) {X₁ X₂ : C} (f : X₁ ⟶ X₂) (u : F.Elements) {Z : Type w} (h : F.obj X₂ ⟶ Z),
CategoryTheory.CategoryStruct.comp ((CategoryTheory.shrinkYoneda.{w, v₁, u₁}.map f).app (Opposite.op u.obj))
(CategoryTheory.CategoryStruct.comp
(TypeCat.ofHom fun t ↦
(CategoryTheory.ConcreteCategory.hom (F.map (CategoryTheory.shrinkYonedaObjObjEquiv t))) u.val)
h) =
CategoryTheory.CategoryStruct.comp
(TypeCat.ofHom fun t ↦
(CategoryTheory.ConcreteCategory.hom (F.map (CategoryTheory.shrinkYonedaObjObjEquiv t))) u.val)
(CategoryTheory.CategoryStruct.comp (F.map f) h)
Deprecated aliases
| Name | New name | Since |
|---|---|---|
CategoryTheory.Functor.Elements.coconeπOpCompShrinkYonedaFlip | CategoryTheory.Functor.Elements.shrinkCoyonedaCocone | 2026-09-20 |
CategoryTheory.Functor.Elements.coconeπOpCompShrinkYonedaObj | 2026-09-20 | |
CategoryTheory.Functor.Elements.isColimitCoconeπOpCompShrinkYonedaFlip | CategoryTheory.Functor.Elements.isColimitShrinkCoyonedaCocone | 2026-09-20 |
CategoryTheory.Functor.Elements.isColimitCoconeπOpCompShrinkYonedaObj | CategoryTheory.Functor.Elements.isColimitShrinkCoyonedaCoconeObj | 2026-09-20 |
CategoryTheory.Functor.Elements.isInitialElementsMkShrinkYonedaObjObjEquivId | CategoryTheory.Functor.Elements.isInitialShrinkCoyonedaObj | 2026-09-20 |
CategoryTheory.Functor.Elements.shrinkYoneda_map_app_coconeπOpCompShrinkYonedaObj_ι_app | CategoryTheory.Functor.Elements.shrinkYoneda_map_app_shrinkCoyonedaCocone_ι_app_app | 2026-09-20 |
CategoryTheory.Presheaf.coconeOfRepresentable | 2026-08-17 | |
CategoryTheory.Presheaf.coconeOfRepresentable_naturality | 2026-08-17 | |
CategoryTheory.Presheaf.colimitOfRepresentable | CategoryTheory.denseAtUliftYoneda | 2026-08-17 |
CategoryTheory.Presheaf.compULiftYonedaIsoULiftYonedaCompLan.coconeApp | 2026-08-23 | |
CategoryTheory.Presheaf.compULiftYonedaIsoULiftYonedaCompLan.coconeApp_naturality | 2026-08-23 | |
CategoryTheory.Presheaf.compULiftYonedaIsoULiftYonedaCompLan.extensionHom | 2026-08-23 | |
CategoryTheory.Presheaf.compULiftYonedaIsoULiftYonedaCompLan.hom_ext | 2026-08-23 | |
CategoryTheory.Presheaf.compULiftYonedaIsoULiftYonedaCompLan.natTrans | 2026-08-23 | |
CategoryTheory.Presheaf.compULiftYonedaIsoULiftYonedaCompLan.natTrans_app_uliftYoneda_obj | 2026-08-23 | |
CategoryTheory.Presheaf.compULiftYonedaIsoULiftYonedaCompLan.presheafHom | 2026-09-20 | |
CategoryTheory.Presheaf.compULiftYonedaIsoULiftYonedaCompLan.presheafHom' | 2026-08-23 | |
CategoryTheory.Presheaf.compULiftYonedaIsoULiftYonedaCompLan.presheafHom_naturality | 2026-09-20 | |
CategoryTheory.Presheaf.compULiftYonedaIsoULiftYonedaCompLan.uliftYonedaEquiv_presheafHom_uliftYoneda_obj | 2026-09-20 | |
CategoryTheory.Presheaf.compULiftYonedaIsoULiftYonedaCompLan.uliftYonedaEquiv_ι_presheafHom | 2026-09-20 | |
CategoryTheory.Presheaf.functorToRepresentables | 2026-08-17 | |
CategoryTheory.Presheaf.isColimitTautologicalCocone | 2026-09-20 | |
CategoryTheory.Presheaf.isColimitTautologicalCocone' | 2026-09-20 | |
CategoryTheory.Presheaf.isExtensionAlongULiftYoneda | 2026-08-17 | |
CategoryTheory.Presheaf.isLeftKanExtension_of_preservesColimits | CategoryTheory.Presheaf.isLeftKanExtension_along_uliftYoneda_of_preservesColimits | 2026-08-18 |
CategoryTheory.Presheaf.restrictedULiftYonedaHomEquiv | 2026-08-27 | |
CategoryTheory.Presheaf.restrictedULiftYonedaHomEquiv' | 2026-08-17 | |
CategoryTheory.Presheaf.restrictedULiftYonedaHomEquiv'_symm_app_naturality_left | 2026-08-17 | |
CategoryTheory.Presheaf.restrictedULiftYonedaHomEquiv'_symm_naturality_right | 2026-08-17 | |
CategoryTheory.Presheaf.tautologicalCocone | 2026-09-20 | |
CategoryTheory.Presheaf.tautologicalCocone' | 2026-09-20 | |
CategoryTheory.Presheaf.uliftYonedaAdjunction | CategoryTheory.Presheaf.restrictedULiftYonedaAdjunction | 2026-08-17 |
CategoryTheory.Presheaf.uliftYonedaAdjunction_homEquiv_app | CategoryTheory.Presheaf.restrictedULiftYonedaAdjunction_homEquiv_app | 2026-08-17 |
CategoryTheory.Presheaf.uliftYonedaAdjunction_unit_app_app | CategoryTheory.Presheaf.restrictedULiftYonedaAdjunction_unit_app_app | 2026-08-17 |
CategoryTheory.Presheaf.uniqueExtensionAlongULiftYoneda | 2026-08-17 |