Yoneda, representability, and density — the depth
Anchor (Master): Mac Lane 1998 Categories for the Working Mathematician 2e (Springer GTM 5) Ch. III §1-2 and Ch. X §4-7 (the Yoneda lemma, ends and coends, the density/co-Yoneda form); Kelly 1982 Basic Concepts of Enriched Category Theory (Cambridge LNM 64) Ch. 2-3 (the enriched Yoneda lemma and weighted colimits); Street 1980 'Fibrations in bicategories' (the bicategorical Yoneda)
Intuition Beginner
An object is fixed in place by the web of arrows tying it to every other object. Two objects that relate to everything else in exactly the same way are the same object, renamed. This slogan, that an object is determined completely by its relationships to all others, is the single idea on which the whole chapter rests. This third unit gathers its consequences into one place and pushes them further.
The two earlier units built the machinery in pieces. The first defined a representable functor as the rule recording arrows into a fixed object, and a universal element as the identity arrow seen as a seed. The second proved the Yoneda lemma, the precise statement that this seed names every comparison, and deduced that the Yoneda embedding loses no information. Here we weld those results together and watch one fact do all the work.
Two deeper outcomes are the goal. First, the same lemma that pins an object down also lets us rebuild any measurement on objects out of the address books of single objects glued together, a statement called density. Second, the whole story survives unchanged when the sets of arrows are replaced by richer structures such as spaces or categories, the enriched and two-dimensional forms. Both follow the original lemma by direct argument.
Visual Beginner
Picture the address book of one fixed object: a one-element loop at the center, the identity, and around it a bundle of arrows arriving from every other object. The center is the seed; the bundles are its portrait. Density says every measurement, however intricate, is a patchwork of such portraits stitched along the arrows of the category.
| direction | what it says | where it lands in this unit |
|---|---|---|
| read the book inward | the seed names every comparison | the Yoneda lemma, full faithfulness |
| read the book outward | every measurement is glued portraits | density and the co-Yoneda form |
| replace sets by spaces or categories | the argument is unchanged | enriched and 2-categorical Yoneda |
The picture unifies the chapter. Reading the address book inward gives the embedding, full and faithful. Reading it outward gives density, the rebuilding of any measurement from portraits. The seed at the center, the identity arrow, governs both directions, and the same picture still reads correctly when the bundles become richer objects.
Worked example Beginner
Work in the walking-arrow category . It has two objects, written and , and exactly one arrow besides the two do-nothing identity arrows. Composition is forced: any arrow followed by an identity is itself.
Step 1. Build the address book of object , the rule recording arrows into . At object there is one arrow into , namely . At object there is one arrow into , the identity on . So the address book holds a one-element set at each object.
Step 2. Track how the arrow reshuffles the book. Pre-composing with turns an arrow into at object into an arrow into at object : the identity on is sent to . This is naturality at work, the arrow inducing the function compose-with- between the two one-element sets.
Step 3. Apply the slogan. A comparison from this address book to any other measurement is fixed by where it sends the identity on . If the measurement gives a four-element set at object , there are four comparisons, one per element. The address book is so rigid that one choice names a whole comparison.
What this tells us: in a category with just two objects and one arrow, the address book of already determines every comparison out of it. The same rigidity, scaled up, is what makes the embedding full and faithful and what makes density hold for every category.
Check your understanding Beginner
Formal definition Intermediate+
Throughout is a locally small category, is its presheaf category, and is the Yoneda embedding sending to the contravariant hom-functor and to post-composition , in the notation of 41.04.02. A presheaf is representable when it is naturally isomorphic to some ; the covariant hom-functor is the representable on . These definitions are recalled from 41.04.01, where a representation was shown to be the same data as a universal element , and as an initial object of the category of elements [Riehl 2016].
The two foundational facts, proved in 41.04.02, are restated here as the load-bearing input. The Yoneda lemma is the bijection
natural in the presheaf and the object , with inverse , . Specialising yields , which is the statement that is full and faithful. These two facts are the sole ingredients of every theorem below, and the present unit assembles their deeper consequences. The notation for the embedding, for the presheaf category, for the category of elements, for a coend, and for a symmetric monoidal closed base is recorded in _meta/NOTATION.md.
Definition (density). The Yoneda embedding is dense (or adequate) when every presheaf is the canonical colimit of the composite
with colimiting cocone at . Equivalently, by the standard rewriting of a colimit over a category of elements as a coend, , where denotes the -indexed copower (coproduct of copies of ); this coend form is the co-Yoneda lemma or ninja-Yoneda identity [Mac Lane 1998]. Density is the outward-reading half of the Yoneda lemma: where full faithfulness reads the address book inward, density reads it outward, rebuilding an arbitrary from the representables it contains.
Definition (enriched setting). Let be a symmetric monoidal closed category, so that the internal hom is right adjoint to . A -category has hom-objects in place of hom-sets, together with composition and unit morphisms in satisfying the usual associativity and unit axioms. The enriched presheaf category has -functors as objects and -natural transformations as morphisms, and the enriched Yoneda embedding sends to regarded as a -functor. Taking recovers the ordinary definitions; taking gives the 2-categorical setting, and the additive one [Kelly 1982].
Counterexamples to common slips Intermediate+
Density is a colimit, not a limit, of representables. Every presheaf is a colimit of representables indexed by its own category of elements; the dual statement with limits fails. A coproduct of two representables is already a presheaf that is not a finite limit of representables, so reversing the variance breaks the theorem.
Full and faithful does not mean essentially surjective. The Yoneda embedding lands inside on the representables, a tiny full subcategory; most presheaves are not representable. Density repairs this asymmetry by exhibiting the non-representables as colimits of representables, not as representables themselves.
The universal element is the Yoneda image of the identity, not an arbitrary choice. Re-reading when is invertible gives the universal element of
41.04.01; the two units describe one datum in two vocabularies, and conflating "the representing object is unique" with "the representation is unique on the nose" forgets that the isomorphism is itself part of the data.
Key theorem with proof Intermediate+
The signature result is that full faithfulness of the embedding, the density theorem, and the co-Yoneda identity all flow from the single Yoneda bijection, so the three theorems of the chapter are one fact read in three directions.
Theorem (the Yoneda cycle). Let be locally small. From the Yoneda lemma, namely the natural bijection , , there follow both: (a) the embedding is full and faithful; (b) density, that every presheaf is the colimit , equivalently .
Conversely (b) specialises at a representable to give back (a), and (a) together with the existence of the Yoneda inverse recovers the lemma. So the three are equivalent formulations of one piece of structure [Mac Lane 1998].
Proof. (Lemma (a).) Take in the Yoneda bijection. Then , and the inverse sends to the natural transformation with -component , that is, to . Hence the function , , is a bijection, which is precisely full faithfulness of .
((a) (b) is not the route taken; the lemma gives (b) directly.) Define the cocone , where is the Yoneda inverse and . For a morphism in , that is with , the cocone condition holds because both sides are transformations with the same Yoneda image: evaluating at gives .
To see the cocone is colimiting, test it against an arbitrary presheaf and cocone . By Yoneda each is the element , and the cocone condition on translates to whenever . Define by ; the displayed condition is exactly naturality of , and by evaluating at . Any mediating is forced, since . So , and rewriting the colimit over as a coend gives .
((b) (a).) Specialise density to the representable . The category of elements has a terminal object , so the colimit collapses: with the colimiting cocone given by post-composition. Reading the cocone at this terminal object recovers the bijection , which is (a). The equivalence of the three formulations is the Yoneda cycle.
Bridge. The cycle builds toward the entire colimit-based viewpoint of category theory and appears again in 41.06.02, where the free-cocompletion universal property is recognised as the pointwise left Kan extension , and in 41.05.02, where Lawvere theories and monadic adjunctions are built from presheaf-style free constructions. The foundational reason one lemma does all this work is that the Yoneda inverse reconstructs every component from a single value , so a comparison and a value are the same thing; this is exactly the mechanism that makes the address book rigid enough to be full and faithful and rich enough to be dense, and putting these together, the bridge is that full faithfulness and density are the inward and outward readings of one bijection, so representability in 41.04.01, the lemma in 41.04.02, and the constructions of 41.03.01 all reduce to evaluating a natural transformation at an identity arrow.
Exercises Intermediate+
Advanced results Master
Theorem (the free cocompletion). For any locally small the presheaf category is the free colimit-completion of : it is cocomplete, and for every cocomplete category , restriction along is an equivalence between cocontinuous functors and arbitrary functors [Mac Lane-Moerdijk 1992]. The equivalence sends to with , the density coend with replaced by ; on a representable the category of elements has a terminal object, so and the unit of the universal property holds. Density is thus the local statement of which free cocompletion is the global one: every presheaf is rebuilt from representables, so a colimit-preserving functor is fixed by where it sends the representables, and conversely any choice on representables extends uniquely. A full proof is Proposition 2 below.
Theorem (the enriched Yoneda lemma). Let be a symmetric monoidal closed category and a -category. For every -functor and every object there is a -natural isomorphism
in , the enriched Yoneda lemma [Kelly 1982]. The bijection on underlying elements (maps ) is the ordinary one: a -natural transformation is determined by the image of . The enriched embedding is full and faithful in the enriched sense, and enriched density holds: every -presheaf is a weighted colimit of enriched representables. Taking recovers the entire chapter verbatim, so the ordinary theory is the -enriched case of a uniform statement; taking yields the 2-categorical Yoneda below.
Theorem (the 2-categorical and bicategorical Yoneda). For a 2-category and a 2-functor , the category of 2-natural transformations is isomorphic to : this is the 2-Yoneda lemma, the instance of the enriched lemma. At the level of bicategories, Street's bicategorical Yoneda states that the bicategory of pseudofunctors , pseudonatural transformations, and modifications is locally equivalent to on the representables, and every pseudofunctor is a bicategorical colimit of representables [Street 1980]. This bicategorical form is what identifies fibrations with pseudofunctors through the Grothendieck construction and underlies the indexed reading of the category of elements; the ordinary Yoneda lemma is its truncation to the 1-categorical case.
Theorem (universal properties as natural isomorphisms of hom-functors). A universal property in the sense of 41.04.01 is equivalently an isomorphism in between a presheaf and a representable. Concretely, a limit of is a representing object for the cone functor , that is, an isomorphism ; dually a colimit is a representation of the covariant cocone functor on . Free constructions are the covariant side: the free group on a set is a representing object for , equivalently a natural isomorphism , which is the hom-set adjunction of 41.03.01. Thus every universal property is the assertion that some presheaf is representable, and the Yoneda lemma is what turns that assertion into a computable bijection.
Theorem (free constructions via left Kan extensions). Density makes every free construction a left Kan extension. The free cocompletion is ; the free finite-limit completion is the same construction on followed by finite-limit closure; the free monoid on an object of a monoidal category, the free -module on a set, and the free group are each of an inclusion along a Yoneda-type embedding, computed by the coend of 41.06.02. This is why the left Kan extension formulas of 41.06.02 subsume the constructions of 41.05.02: a left adjoint is a left Kan extension of the identity along its right adjoint, and a free algebra functor is a left Kan extension of the generators along the forgetful functor. The co-Yoneda identity is the special case in which the extension reproduces its input.
Synthesis. Putting these together, the Yoneda lemma is the single fact from which full faithfulness, density, the free cocompletion, the enriched lemma, and the bicategorical lemma all descend. The foundational reason one bijection does all of this is that the inverse reconstructs an entire transformation from one value, so the address book is simultaneously rigid enough to be full and faithful and rich enough to be dense, and this is exactly the content of the Yoneda cycle proved above. Reading the bijection in -enriched form generalises it to spaces, categories, and abelian groups without change of argument, so the -enriched theory of 41.04.01 and 41.04.02 is the base case of a uniform statement; reading it two-dimensionally gives Street's bicategorical Yoneda, which is dual throughout to the covariant, co-Yoneda side. The central insight is that density makes the free cocompletion, so every cocontinuous functor is a left Kan extension of its restriction to representables and the bridge is that adjunctions 41.03.01, monads 41.05.01, and Kan extensions 41.06.02 are each an instance of extending along , which is why all of category theory reduces to evaluating a natural transformation at an identity arrow.
Full proof set Master
Proposition 1 (co-Yoneda identity, full proof). For every presheaf the canonical map with -component sending is a natural isomorphism.
Proof. The candidate is well-defined on the coend quotient because the two identifications agree: for , an element identified with on one side and traced through on the other both map to ; concretely is invariant since agrees with after the -quotient, which is the coend relation. Naturality in holds because is a functor. Define the inverse by . Then , so . For the other composite, an element in the -summand is equal in the coend to via the morphism in , so fixes every representative, hence . Therefore is a natural isomorphism and .
Proposition 2 (free cocompletion universal property, full proof). Let be cocomplete and a functor. Then defines a cocontinuous functor with , and any cocontinuous with satisfies .
Proof. The assignment is functorial: a natural transformation induces a map sending , hence a map between the colimits defining and , and this preserves identities and composition by the functoriality of colimits. For a representable, has terminal object , so the colimit collapses: , giving the unit isomorphism . Cocontinuity: a colimit of presheaves is computed pointwise, and re-indexing the categories of elements shows is the appropriate colimit of the ; since colimits commute with colimits in , . For uniqueness, if is cocontinuous with , then by density , naturally in , so . Hence restriction along is an equivalence between cocontinuous functors and functors .
Proposition 3 (the Yoneda embedding preserves limits and reflects isomorphisms). The functor preserves every limit that exists in , and reflects isomorphisms: if is an isomorphism of presheaves then is an isomorphism in .
Proof. For limits, let . Since limits in are pointwise, , and preserves limits because a cone over with apex is a compatible family uniquely factoring through , giving naturally in . So . For reflection, suppose is an isomorphism. Since is full, the inverse for some . Then , and faithfulness gives ; symmetrically . Hence is an isomorphism with inverse . A full and faithful functor always reflects isomorphisms by this argument.
Proposition 4 (the enriched Yoneda bijection). For a symmetric monoidal closed , a -category , a -functor , and , the map on underlying sets sending a -natural transformation to is a bijection, natural in and .
Proof. A -natural transformation is, in particular, a family of -morphisms satisfying the -naturality condition that for all a certain square built from composition and commutes. The composite records the image of the identity. Conversely, given , define as the composite , where the last map is the -action on the hom-object, the enriched analogue of . The -naturality of follows from the associativity of the -action and the composition coherence of . The two constructions are mutually inverse: evaluated via the unit recovers by the enriched naturality of at the identity, and by the unit coherence. Hence the map on underlying elements is a bijection, and the -naturality in and is the enriched analogue of the ordinary naturality square, transported along the closed structure of . For with this reduces verbatim to the ordinary Yoneda lemma.
Connections Master
The Yoneda lemma and the embedding
41.04.02. The sibling unit states and proves the Yoneda lemma and the full faithfulness of as its central results; the present unit takes those as input and establishes the Yoneda cycle — that the lemma, full faithfulness, density, and the co-Yoneda identity are one fact in four directions — and pushes into the enriched, 2-categorical, and free-cocompletion consequences. Propositions 1-2 below are the deeper forms of the density and free-cocompletion statements sketched in41.04.02.Representable functors and universal elements
41.04.01. The representability theorem of41.04.01identifies a representation, a universal element, and a terminal object of the category of elements. The present unit reads that theorem through the Yoneda embedding: a universal property is the assertion that a presheaf is representable, and the cycle proved here is what turns that assertion into the computable bijection .Limits and universal cones
41.02.01. A limit is a representing object for the cone functor, equivalently an isomorphism in , and Proposition 3 shows preserves the limits of41.02.01because each does. Density is the complementary theorem that does not preserve colimits but instead freely adjoins them, making the universal home of formal colimits over the limits of41.02.01.Adjunctions as representability
41.03.01,41.03.03. A left adjoint to is a choice of representation of for every , with the universal elements assembling into the unit of the adjunction; the unit-counit calculus of41.03.03is the two-dimensional shadow of the Yoneda bijection applied componentwise. The free-construction theorem above restates this as: a left adjoint is a left Kan extension of the identity along its right adjoint, computed by the density coend.Monads and algebraic free constructions
41.05.01,41.05.02. Every adjunction generates the monad of41.05.01, and the free-algebra functor of41.05.02is the left Kan extension of the generators along the forgetful functor, the same coend formula that gives free cocompletion. Lawvere theories are presheaf-style free constructions on a skeleton, so the density theorem governs their completion to categories of algebras.Ends, coends, and Kan extensions
41.06.01,41.06.02. The co-Yoneda identity is given its full calculus in41.06.01, where the Fubini and continuity rules make the formula computational, and the free-cocompletion extension is the leading example of the pointwise Kan extensions of41.06.02. The Yoneda cycle proved here is the lemma from which those general formulas descend by replacing with an arbitrary weight.The functor of points in algebraic geometry
04.02.01. The geometric unit04.02.01develops the reading under which a scheme is its representable presheaf and moduli problems are functors to be proved representable; the density theorem here is what allows arbitrary presheaves to be handled as colimits of representables even when not themselves representable, the entry point to algebraic stacks where representability fails.
Historical & philosophical context Master
The bijection at the heart of this unit is attributed to Nobuo Yoneda from a 1954 conversation at the Gare du Nord in Paris, reported by Saunders Mac Lane, and entered the literature through Yoneda's paper on the homology theory of modules [Yoneda 1954]. Mac Lane's Categories for the Working Mathematician (1971; 2nd ed. 1998) fixed the lemma, the embedding, and the observation that an object is determined up to isomorphism by the functor it represents as the central results of Chapter III [Mac Lane 1998]; the coend form, often called the co-Yoneda or ninja-Yoneda identity, is developed there in Chapter X alongside the ends-and-coends calculus that makes density computational.
The density theorem and the free-cocompletion reading of presheaves were systematised in topos theory: Mac Lane and Moerdijk's Sheaves in Geometry and Logic (1992) presents every presheaf as a colimit of representables in its first chapter and uses it to build the sheafification adjunction [Mac Lane-Moerdijk 1992]. The enriched and weighted-colimit forms are due to Max Kelly, whose Basic Concepts of Enriched Category Theory (1982) gives the -enriched Yoneda lemma and the density theorem for -presheaves as the uniform backbone of enriched theory [Kelly 1982]. The bicategorical refinement — the Yoneda lemma for bicategories, under which every pseudofunctor is a bicategorical colimit of representables — is due to Ross Street, appearing in his work on fibrations in bicategories [Street 1980], and is the formal setting that identifies fibrations with pseudofunctors. Grothendieck's functor-of-points philosophy, in which a geometric object is the functor it represents on all test objects [Grothendieck 1960], is the geometric avatar of the same slogan: the address book of a scheme is its complete portrait, and density is what licenses the passage from representable functors to arbitrary moduli functors and on to stacks.
Bibliography Master
@article{Yoneda1954depth,
author = {Yoneda, Nobuo},
title = {On the homology theory of modules},
journal = {Journal of the Faculty of Science, University of Tokyo, Section I},
volume = {7},
year = {1954},
pages = {193--227}
}
@book{MacLane1998depth,
author = {Mac Lane, Saunders},
title = {Categories for the Working Mathematician},
edition = {2},
publisher = {Springer},
series = {Graduate Texts in Mathematics 5},
year = {1998}
}
@book{Riehl2016depth,
author = {Riehl, Emily},
title = {Category Theory in Context},
publisher = {Dover},
year = {2016}
}
@book{Kelly1982depth,
author = {Kelly, Gregory M.},
title = {Basic Concepts of Enriched Category Theory},
publisher = {Cambridge University Press},
series = {London Mathematical Society Lecture Note Series 64},
year = {1982},
note = {Reprinted as Theory and Applications of Categories, No. 10, 2005}
}
@book{MacLaneMoerdijk1992depth,
author = {Mac Lane, Saunders and Moerdijk, Ieke},
title = {Sheaves in Geometry and Logic: A First Introduction to Topos Theory},
publisher = {Springer},
series = {Universitext},
year = {1992}
}
@incollection{Street1980depth,
author = {Street, Ross},
title = {Fibrations in bicategories},
booktitle = {Cahiers de topologie et géométrie différentielle catégoriques},
volume = {21},
year = {1980},
pages = {111--160}
}
@incollection{Grothendieck1961depth,
author = {Grothendieck, Alexander},
title = {Techniques de construction et théorèmes d'existence en géométrie algébrique IV: Les schémas de Hilbert},
booktitle = {Séminaire Bourbaki},
volume = {6, Exp. 221},
publisher = {Société Mathématique de France},
year = {1961},
pages = {249--276}
}
@book{Awodey2010depth,
author = {Awodey, Steve},
title = {Category Theory},
edition = {2},
publisher = {Oxford University Press},
series = {Oxford Logic Guides 52},
year = {2010}
}