Colimit of representables #
This file constructs an adjunction yonedaAdjunction
between (Cᵒᵖ ⥤ Type u)
and ℰ
given a
functor A : C ⥤ ℰ
, where the right adjoint sends (E : ℰ)
to c ↦ (A.obj c ⟶ E)
(provided ℰ
has colimits).
This adjunction is used to show that every presheaf is a colimit of representables. This result is also known as the density theorem, the co-Yoneda lemma and the Ninja Yoneda lemma.
Further, the left adjoint colimitAdj.extendAlongYoneda : (Cᵒᵖ ⥤ Type u) ⥤ ℰ
satisfies
yoneda ⋙ L ≅ A
, that is, an extension of A : C ⥤ ℰ
to (Cᵒᵖ ⥤ Type u) ⥤ ℰ
through
yoneda : C ⥤ Cᵒᵖ ⥤ Type u
. It is the left Kan extension of A
along the yoneda embedding,
sometimes known as the Yoneda extension, as proved in extendAlongYonedaIsoKan
.
uniqueExtensionAlongYoneda
shows extendAlongYoneda
is unique amongst cocontinuous functors
with this property, establishing the presheaf category as the free cocompletion of a small category.
We also give a direct pedestrian proof that every presheaf is a colimit of representables. This
version of the proof is valid for any category C
, even if it is not small.
Tags #
colimit, representable, presheaf, free cocompletion
References #
- [S. MacLane, I. Moerdijk, Sheaves in Geometry and Logic][MM92]
- https://ncatlab.org/nlab/show/Yoneda+extension
The functor taking (E : ℰ) (c : Cᵒᵖ)
to the homset (A.obj C ⟶ E)
. It is shown in L_adjunction
that this functor has a left adjoint (provided E
has colimits) given by taking colimits over
categories of elements.
In the case where ℰ = Cᵒᵖ ⥤ Type u
and A = yoneda
, this functor is isomorphic to the identity.
Defined as in [MM92], Chapter I, Section 5, Theorem 2.
Equations
- CategoryTheory.ColimitAdj.restrictedYoneda A = CategoryTheory.Functor.comp CategoryTheory.yoneda ((CategoryTheory.whiskeringLeft Cᵒᵖ ℰᵒᵖ (Type u₁)).toPrefunctor.obj A.op)
Instances For
The functor restrictedYoneda
is isomorphic to the identity functor when evaluated at the yoneda
embedding.
Equations
- One or more equations did not get rendered due to their size.
Instances For
(Implementation). The equivalence of homsets which helps construct the left adjoint to
colimitAdj.restrictedYoneda
.
It is shown in restrictYonedaHomEquivNatural
that this is a natural bijection.
Equations
- One or more equations did not get rendered due to their size.
Instances For
(Implementation). Show that the bijection in restrictYonedaHomEquiv
is natural (on the right).
The left adjoint to the functor restrictedYoneda
(shown in yonedaAdjunction
). It is also an
extension of A
along the yoneda embedding (shown in isExtensionAlongYoneda
), in particular
it is the left Kan extension of A
through the yoneda embedding.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Show extendAlongYoneda
is left adjoint to restrictedYoneda
.
The construction of [MM92], Chapter I, Section 5, Theorem 2.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The initial object in the category of elements for a representable functor. In isInitial
it is
shown that this is initial.
Equations
- CategoryTheory.ColimitAdj.Elements.initial A = { fst := Opposite.op A, snd := CategoryTheory.CategoryStruct.id (Opposite.op A).unop }
Instances For
Show that Elements.initial A
is initial in the category of elements for the yoneda
functor.
Equations
- One or more equations did not get rendered due to their size.
Instances For
extendAlongYoneda A
is an extension of A
to the presheaf category along the yoneda embedding.
uniqueExtensionAlongYoneda
shows it is unique among functors preserving colimits with this
property (up to isomorphism).
The first part of [MM92], Chapter I, Section 5, Corollary 4.
See Property 1 of
Equations
- One or more equations did not get rendered due to their size.
Instances For
See Property 2 of https://ncatlab.org/nlab/show/Yoneda+extension#properties.
Equations
- One or more equations did not get rendered due to their size.
Show that the images of X
after extendAlongYoneda
and Lan yoneda
are indeed isomorphic.
This follows from CategoryTheory.CategoryOfElements.costructuredArrowYonedaEquivalence
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Verify that extendAlongYoneda
is indeed the left Kan extension along the yoneda embedding.
Equations
Instances For
extending F ⋙ yoneda
along the yoneda embedding is isomorphic to Lan F.op
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
F ⋙ yoneda
is naturally isomorphic to yoneda ⋙ Lan F.op
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Since extendAlongYoneda A
is adjoint to restrictedYoneda A
, if we use A = yoneda
then restrictedYoneda A
is isomorphic to the identity, and so extendAlongYoneda A
is as well.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A functor to the presheaf category in which everything in the image is representable (witnessed
by the fact that it factors through the yoneda embedding).
coconeOfRepresentable
gives a cocone for this functor which is a colimit and has point P
.
Equations
- CategoryTheory.functorToRepresentables P = CategoryTheory.Functor.comp (CategoryTheory.CategoryOfElements.π P).leftOp CategoryTheory.yoneda
Instances For
This is a cocone with point P
for the functor functorToRepresentables P
. It is shown in
colimitOfRepresentable P
that this cocone is a colimit: that is, we have exhibited an arbitrary
presheaf P
as a colimit of representables.
The construction of [MM92], Chapter I, Section 5, Corollary 3.
Equations
- One or more equations did not get rendered due to their size.
Instances For
An explicit formula for the legs of the cocone coconeOfRepresentable
.
The legs of the cocone coconeOfRepresentable
are natural in the choice of presheaf.
The cocone with point P
given by coconeOfRepresentable
is a colimit:
that is, we have exhibited an arbitrary presheaf P
as a colimit of representables.
The result of [MM92], Chapter I, Section 5, Corollary 3.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Given two functors L₁ and L₂ which preserve colimits, if they agree when restricted to the representable presheaves then they agree everywhere.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Show that extendAlongYoneda
is the unique colimit-preserving functor which extends A
to
the presheaf category.
The second part of [MM92], Chapter I, Section 5, Corollary 4. See Property 3 of https://ncatlab.org/nlab/show/Yoneda+extension#properties.
Equations
- One or more equations did not get rendered due to their size.
Instances For
If L
preserves colimits and ℰ
has them, then it is a left adjoint. This is a special case of
isLeftAdjointOfPreservesColimits
used to prove that.
Equations
- One or more equations did not get rendered due to their size.
Instances For
If L
preserves colimits and ℰ
has them, then it is a left adjoint. Note this is a (partial)
converse to leftAdjointPreservesColimits
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
For a presheaf P
, consider the forgetful functor from the category of representable
presheaves over P
to the category of presheaves. There is a tautological cocone over this
functor whose leg for a natural transformation V ⟶ P
with V
representable is just that
natural transformation.
Equations
- CategoryTheory.tautologicalCocone P = { pt := P, ι := CategoryTheory.NatTrans.mk fun (X : CategoryTheory.CostructuredArrow CategoryTheory.yoneda P) => X.hom }
Instances For
The tautological cocone with point P
is a colimit cocone, exhibiting P
as a colimit of
representables.
Equations
- One or more equations did not get rendered due to their size.