Papers
Topics
Authors
Recent
Search
2000 character limit reached

Yoneda Lemma in Category Theory

Updated 25 April 2026
  • Yoneda Lemma is a foundational theorem in category theory that asserts an object is completely determined by its representable functor and the morphisms it encodes.
  • It establishes a natural bijection between transformations from a representable functor and the evaluations of any presheaf, providing a powerful method for classifying objects.
  • The lemma generalizes to enriched, higher, and bivariant contexts, underpinning advanced applications in topos theory, combinatorics, and abstract algebra.

The Yoneda lemma is a foundational result in category theory, generalizing smoothly to 2-categorical, enriched, internal, higher, and even bivariant contexts. It formalizes the principle that an object of a category is determined by its functor of points—specifically, the representable functor encoding its morphisms to or from other objects. The lemma asserts that every natural transformation from a representable functor to an arbitrary presheaf is uniquely determined by the image of the identity morphism, and this principle holds, mutatis mutandis, in a wide array of categorical frameworks, both classical and highly abstract.

1. Classical Yoneda Lemma and Generalization

Let C\mathcal{C} be a locally small (possibly large) category, and fix aOb(C)a\in \mathrm{Ob}(\mathcal{C}). The representable functor is

HomC(a,):CSet.\mathrm{Hom}_{\mathcal{C}}(a,-):\mathcal{C}\to \mathbf{Set}.

The Yoneda lemma asserts a bijection

Nat(HomC(a,),F)F(a)\mathrm{Nat}(\mathrm{Hom}_{\mathcal{C}}(a,-), F) \cong F(a)

natural in both aa and FF, where F:CSetF:\mathcal{C} \to \mathbf{Set} is any functor. The canonical correspondence sends a natural transformation η\eta to the element ηa(ida)\eta_a(\mathrm{id}_a), and, for xF(a)x\in F(a), defines the natural transformation aOb(C)a\in \mathrm{Ob}(\mathcal{C})0 for aOb(C)a\in \mathrm{Ob}(\mathcal{C})1.

This result generalizes in several ways:

  • Contravariant Presheaves: For aOb(C)a\in \mathrm{Ob}(\mathcal{C})2, the lemma states aOb(C)a\in \mathrm{Ob}(\mathcal{C})3.
  • Functoriality and Universal Properties: The Yoneda embedding aOb(C)a\in \mathrm{Ob}(\mathcal{C})4 is fully faithful, embedding aOb(C)a\in \mathrm{Ob}(\mathcal{C})5 as the full subcategory of representables (Dubuc, 2023).
  • Colimit and Limit Constructions: Extension of functors along the Yoneda embedding induces natural equivalences of functor categories, with pivotal consequences in the theory of cocompletion and morphisms of topoi (Dubuc, 2023).

2. Enriched, Monoidal, and Generalized Yoneda Lemmas

When categories are enriched, for instance over a monoidal category aOb(C)a\in \mathrm{Ob}(\mathcal{C})6, or more generally in the context of aOb(C)a\in \mathrm{Ob}(\mathcal{C})7-categories, the lemma requires substantial refinement. In a aOb(C)a\in \mathrm{Ob}(\mathcal{C})8-enriched category aOb(C)a\in \mathrm{Ob}(\mathcal{C})9, with HomC(a,):CSet.\mathrm{Hom}_{\mathcal{C}}(a,-):\mathcal{C}\to \mathbf{Set}.0 the category of HomC(a,):CSet.\mathrm{Hom}_{\mathcal{C}}(a,-):\mathcal{C}\to \mathbf{Set}.1-presheaves, the enriched Yoneda embedding is

HomC(a,):CSet.\mathrm{Hom}_{\mathcal{C}}(a,-):\mathcal{C}\to \mathbf{Set}.2

and the enriched Yoneda lemma asserts a natural isomorphism in HomC(a,):CSet.\mathrm{Hom}_{\mathcal{C}}(a,-):\mathcal{C}\to \mathbf{Set}.3:

HomC(a,):CSet.\mathrm{Hom}_{\mathcal{C}}(a,-):\mathcal{C}\to \mathbf{Set}.4

for any HomC(a,):CSet.\mathrm{Hom}_{\mathcal{C}}(a,-):\mathcal{C}\to \mathbf{Set}.5 (Hinich, 2015). This holds even when HomC(a,):CSet.\mathrm{Hom}_{\mathcal{C}}(a,-):\mathcal{C}\to \mathbf{Set}.6 is not closed or symmetric monoidal, provided colimits exist and tensoring by fixed elements preserves colimits as required.

  • Examples: For HomC(a,):CSet.\mathrm{Hom}_{\mathcal{C}}(a,-):\mathcal{C}\to \mathbf{Set}.7 (the category of abelian groups), the lemma recovers the classical situation for additive functors; for HomC(a,):CSet.\mathrm{Hom}_{\mathcal{C}}(a,-):\mathcal{C}\to \mathbf{Set}.8 (with monoidal structure HomC(a,):CSet.\mathrm{Hom}_{\mathcal{C}}(a,-):\mathcal{C}\to \mathbf{Set}.9), it describes metric spaces and nonexpansive functions (Hinich, 2015, Valiukevičius, 2023).
  • Monoidal-Valued Yoneda: For closed symmetric monoidal categories Nat(HomC(a,),F)F(a)\mathrm{Nat}(\mathrm{Hom}_{\mathcal{C}}(a,-), F) \cong F(a)0, the Yoneda lemma translates to isomorphisms

Nat(HomC(a,),F)F(a)\mathrm{Nat}(\mathrm{Hom}_{\mathcal{C}}(a,-), F) \cong F(a)1

for Nat(HomC(a,),F)F(a)\mathrm{Nat}(\mathrm{Hom}_{\mathcal{C}}(a,-), F) \cong F(a)2, where Nat(HomC(a,),F)F(a)\mathrm{Nat}(\mathrm{Hom}_{\mathcal{C}}(a,-), F) \cong F(a)3 is the Nat(HomC(a,),F)F(a)\mathrm{Nat}(\mathrm{Hom}_{\mathcal{C}}(a,-), F) \cong F(a)4-valued representable (Kadhi, 2024).

  • Generalized Graphs/Metric Spaces: In the context of enriched graphs or Lawvere metric spaces, the Yoneda lemma compares isomorphism classes of continuous transforms to evaluations at points (Valiukevičius, 2023).

3. Yoneda Lemma for Higher Categories and Toposes

(a) ∞-Categories and Complete Segal Spaces

For Nat(HomC(a,),F)F(a)\mathrm{Nat}(\mathrm{Hom}_{\mathcal{C}}(a,-), F) \cong F(a)5-categories presented as, for example, complete Segal spaces or quasi-categories (Kazhdan et al., 2014, Riehl et al., 2015), the Yoneda lemma is formulated in terms of mapping spaces:

Nat(HomC(a,),F)F(a)\mathrm{Nat}(\mathrm{Hom}_{\mathcal{C}}(a,-), F) \cong F(a)6

for any functor Nat(HomC(a,),F)F(a)\mathrm{Nat}(\mathrm{Hom}_{\mathcal{C}}(a,-), F) \cong F(a)7, where Nat(HomC(a,),F)F(a)\mathrm{Nat}(\mathrm{Hom}_{\mathcal{C}}(a,-), F) \cong F(a)8 is the Nat(HomC(a,),F)F(a)\mathrm{Nat}(\mathrm{Hom}_{\mathcal{C}}(a,-), F) \cong F(a)9-category of spaces (homotopy types). Equivalence here is in the aa0-categorical sense (i.e., weak homotopy equivalence of Kan complexes).

  • Complete Segal Spaces: The Yoneda embedding is constructed via the twisted arrow Segal space; the essential image consists of those simplicial presheaves that are representable (Kazhdan et al., 2014).
  • Internal ∞-Topos and Elementary Higher Topos: For an elementary higher topos aa1, internally locally cartesian closed, with a universe aa2 classifying morphisms, the Yoneda embedding takes aa3. The lemma asserts that

aa4

is an embedding (i.e., monomorphism), and for every aa5,

aa6

(Rasekh, 2018). Corollaries include recovery of the classical Yoneda lemma for toposes of sheaves and connections to univalence for aa7-types.

(b) Synthetic and Formalized Approaches

Synthetic approaches via homotopy type theory, as implemented in proof assistant frameworks such as Rzk, treat the Yoneda lemma without explicit reference to particular models, using Rezk-completion and horn-filling/univalence to encode naturality and functoriality (Kudasov et al., 2023). In this context, functoriality becomes judgmentally automatic, and the lemmas are phrased at the level of types and contractibility rather than sets or spaces.

(c) Internal and Differential Contexts

In an arbitrary aa8-topos aa9, internal Yoneda formulations use complete Segal objects (internal FF0-categories), the Grothendieck construction for left fibrations, and the universal property of the (internal) category of groupoids. The Yoneda embedding is defined by transposing the internal mapping bifunctor, yielding the equivalence:

FF1

in the slice FF2 (Martini, 2021).

4. Higher and Bivariant Generalizations

(a) 2-Yoneda Lemma and Double Categories

In a 2-category, the Yoneda lemma upgrades from sets to groupoids: for a representable prestack FF3 and any stack FF4,

FF5

(Berktav, 2022). The objects on the left are pseudo-natural transformations, and the equivalence is that of groupoids. This yields fully faithful 2-Yoneda embeddings and is central to the theory of moduli stacks.

Double categories and lax double presheaves further enhance the lemma, showing that for every object FF6 in a double category FF7 and every presheaf FF8,

FF9

as categories (Fröhlich et al., 2024).

(b) F:CSetF:\mathcal{C} \to \mathbf{Set}0-Category Theory and Bivariant Lemmas

In the context of F:CSetF:\mathcal{C} \to \mathbf{Set}1-categories, the Yoneda embedding assembles into a unique F:CSetF:\mathcal{C} \to \mathbf{Set}2-natural transformation, determined by its value at the terminal F:CSetF:\mathcal{C} \to \mathbf{Set}3-category (Ben-Moshe, 2024). The lemma is integral to the universal property of presheaf constructions and extends to the full machinery of symmetric monoidal adjunctions.

Bivariant Yoneda paradigms, particularly in categories of correspondences, assert that, for a class F:CSetF:\mathcal{C} \to \mathbf{Set}4 of "wrong way" morphisms, the representable correspondence functor corepresents bivariant theories subject to base change and adjunction (Macpherson, 2020). There is a universal property: any bivariant functor F:CSetF:\mathcal{C} \to \mathbf{Set}5 on F:CSetF:\mathcal{C} \to \mathbf{Set}6 extends uniquely to a 2-functor out of the correspondence category F:CSetF:\mathcal{C} \to \mathbf{Set}7.

5. Refinements, Finiteness, and Applications

The classical lemma is refined in settings with finiteness constraints. If F:CSetF:\mathcal{C} \to \mathbf{Set}8 is locally finite with unique (epi, mono) factorization and all objects have finite epimorphic and monomorphic size, one can recover the isomorphism type of an object F:CSetF:\mathcal{C} \to \mathbf{Set}9 from the function η\eta0 alone, rather than the full functor (Ceres et al., 2 Jun 2025). This has direct implications for isomorphism problems in combinatorial (graph), group, and ring theory:

  • Groups: Finite groups η\eta1 are isomorphic iff η\eta2 for all finite η\eta3.
  • Graphs: Lovász's theorem on graph homomorphism profiles is subsumed by this refinement.
  • Finite-dimensional algebras: Isomorphism types in categories of finite-dimensional commutative algebras over a field can be determined by such "hom-cardinality profiles".

6. Universal Constructions, Topos Morphisms, and Sheaf Theory

Repeated application of the Yoneda lemma underpins much of modern topos theory and the machinery underlying site morphisms, universal geometric morphisms, and functor extension. The canonical functor η\eta4—the Yoneda embedding composed with sheafification—classifies site morphisms, and cocontinuous (left exact) functors from the category of sheaves correspond to site morphisms via cocontinuous extension (Dubuc, 2023). Flatness and left exactness of functors are similarly characterized via the Yoneda–colimit machinery.

7. Schematic Summary Table

Setting/Theory Key Statement/Equivalence Reference
Classical η\eta5 (Dubuc, 2023)
Enriched η\eta6 (in η\eta7) (Hinich, 2015)
η\eta8-Category η\eta9 (Kazhdan et al., 2014, Rasekh, 2018)
Double/2-Cat ηa(ida)\eta_a(\mathrm{id}_a)0 (Fröhlich et al., 2024, Berktav, 2022)
Bivariant ηa(ida)\eta_a(\mathrm{id}_a)1 (Macpherson, 2020)
Finiteness profile ηa(ida)\eta_a(\mathrm{id}_a)2 (Ceres et al., 2 Jun 2025)

References

The Yoneda lemma's reach into model-independent higher category theory, enriched and monoidal contexts, internal ηa(ida)\eta_a(\mathrm{id}_a)6-topoi, and its combinatorial and algebraic refinements, cements its position as the organizing principle in abstract category theory and its applications across mathematics.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Yoneda Lemma.