---
title: Yoneda Lemma in Category Theory
url: https://www.emergentmind.com/topics/yoneda-lemma
type: topic
---

# Yoneda Lemma in Category Theory

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 $\mathcal{C}$ be a locally small (possibly large) category, and fix $a\in \mathrm{Ob}(\mathcal{C})$. The representable functor is 
$$
\mathrm{Hom}_{\mathcal{C}}(a,-):\mathcal{C}\to \mathbf{Set}.
$$
The Yoneda lemma asserts a bijection
$$
\mathrm{Nat}(\mathrm{Hom}_{\mathcal{C}}(a,-), F) \cong F(a)
$$
natural in both $a$ and $F$, where $F:\mathcal{C} \to \mathbf{Set}$ is any functor. The canonical correspondence sends a natural transformation $\eta$ to the element $\eta_a(\mathrm{id}_a)$, and, for $x\in F(a)$, defines the natural transformation $\theta^x_Y(f) = F(f)(x)$ for $f:Y\to a$.

This result generalizes in several ways:

- **Contravariant Presheaves:** For $F:\mathcal{C}^{op}\to \mathbf{Set}$, the lemma states $\mathrm{Nat}(\mathrm{Hom}_{\mathcal{C}}(-,a), F)\cong F(a)$.
- **Functoriality and Universal Properties:** The Yoneda embedding $y:\mathcal{C}\to [\mathcal{C}^{op},\mathbf{Set}]$ is fully faithful, embedding $\mathcal{C}$ as the full subcategory of representables [2312.04716].
- **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 [2312.04716].

## 2. Enriched, Monoidal, and Generalized Yoneda Lemmas

When categories are enriched, for instance over a monoidal category $V$, or more generally in the context of $\infty$-categories, the lemma requires substantial refinement. In a $V$-enriched category $A$, with $[A^{op},V]$ the category of $V$-presheaves, the enriched Yoneda embedding is
$$
Y\colon A \longrightarrow [A^{op},V], \qquad Y(a)(x) = \mathrm{Hom}_A(x,a),
$$
and the enriched Yoneda lemma asserts a natural isomorphism in $V$:
$$
\mathrm{Hom}_{[A^{op},V]}(Y(a), F) \cong F(a)
$$
for any $F\in [A^{op},V]$ [1511.00857]. This holds even when $V$ is not closed or symmetric monoidal, provided colimits exist and tensoring by fixed elements preserves colimits as required.

- **Examples:** For $V=\mathrm{Ab}$ (the category of abelian groups), the lemma recovers the classical situation for additive functors; for $V=[0,\infty]$ (with monoidal structure $(+,0)$), it describes metric spaces and nonexpansive functions [1511.00857, 2305.18463].
- **Monoidal-Valued Yoneda:** For closed symmetric monoidal categories $M$, the Yoneda lemma translates to isomorphisms
  $$
  \mathrm{map}_{M^I}(h_i, M) \cong M(i)
  $$
  for $M\in M^I$, where $h_i$ is the $M$-valued representable [2410.07766].
- **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 [2305.18463].

## 3. Yoneda Lemma for Higher Categories and Toposes

### (a) ∞-Categories and Complete Segal Spaces

For $(\infty,1)$-categories presented as, for example, complete Segal spaces or quasi-categories [1401.5656, 1506.05500], the Yoneda lemma is formulated in terms of mapping spaces:
$$
\mathrm{Map}_{\mathrm{Fun}(\mathcal{C}^{op},\mathcal{S})}(y(a), F) \simeq F(a)
$$
for any functor $F:\mathcal{C}^{op}\to \mathcal{S}$, where $\mathcal{S}$ is the $\infty$-category of spaces (homotopy types). Equivalence here is in the $\infty$-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 [1401.5656].
- **Internal ∞-Topos and Elementary Higher Topos:** For an elementary higher topos $\mathcal{E}$, internally locally cartesian closed, with a universe $U$ classifying morphisms, the Yoneda embedding takes $X\mapsto U^X$. The lemma asserts that
  $$
  y_X: X \to U^X
  $$
  is an embedding (i.e., monomorphism), and for every $Z\in\mathcal{E}$,
  $$
  \mathrm{Map}_{\mathcal{E}}(Z,X) \simeq \mathrm{Map}_{\mathcal{E}}(Z\times X, U) \simeq \mathrm{Map}_{\mathcal{E}}(Z, U^X)
  $$
  [1809.01736]. Corollaries include recovery of the classical Yoneda lemma for toposes of sheaves and connections to univalence for $(-1)$-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 [2309.08340]. 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 $\infty$-topos $\mathcal{X}$, internal Yoneda formulations use complete Segal objects (internal $\infty$-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:
$$
\mathrm{Map}_{\hat{\mathcal{C}}}(y(c), F) \simeq F(c)
$$
in the slice $\mathcal{X}/A$ [2103.17141].

## 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 $\underline{X}: \mathcal{C}^{op} \to \mathrm{Grpd}$ and any stack $\mathcal{Y}$,
$$
\mathrm{Hom}_{\mathrm{PreStk}}(\underline{X}, \mathcal{Y}) \simeq \mathcal{Y}(X)
$$
[2202.06628]. 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 $\widehat{x}$ in a double category $C$ and every presheaf $X : C^{op}\to\mathbb{C}\mathrm{at}$,
$$
\mathrm{Ps}(C^{op}, \mathbb{C}\mathrm{at})(C(-,\widehat{x}), X) \cong X\widehat{x}
$$
as categories [2402.10640].

### (b) $(\infty,2)$-Category Theory and Bivariant Lemmas

In the context of $(\infty,2)$-categories, the Yoneda embedding assembles into a unique $(\infty,2)$-natural transformation, determined by its value at the terminal $\infty$-category [2405.08799]. 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 $S_D$ of "wrong way" morphisms, the representable correspondence functor corepresents bivariant theories subject to base change and adjunction [2005.10496]. There is a universal property: any bivariant functor $H$ on $D$ extends uniquely to a 2-functor out of the correspondence category $\operatorname{Corr}_D$.

## 5. Refinements, Finiteness, and Applications

The classical lemma is refined in settings with finiteness constraints. If $\mathcal{C}$ 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 $a$ from the function $h_a(c) = |\mathrm{Hom}_{\mathcal{C}}(a, c)|$ alone, rather than the full functor [2506.01501]. This has direct implications for isomorphism problems in combinatorial (graph), group, and ring theory:
- **Groups:** Finite groups $G,H$ are isomorphic iff $c\mapsto|\mathrm{Hom}(G,c)| = |\mathrm{Hom}(H,c)|$ for all finite $c$.
- **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 $C\to\mathrm{Sh}(C)$—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 [2312.04716]. 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           | $\mathrm{Nat}(h_a, F) \cong F(a)$         | [2312.04716]     |
| Enriched            | $\mathrm{Hom}([A^{op},V])(Y(a), F) \cong F(a)$ (in $V$) | [1511.00857]     |
| $\infty$-Category   | $\mathrm{Map}_{PSh}(y(a), F) \simeq F(a)$ | [1401.5656], [1809.01736] |
| Double/2-Cat        | $\mathrm{Ps}(C^{op},\mathbb{C}\mathrm{at})(C(-,x), X) \cong Xx$ | [2402.10640], [2202.06628] |
| Bivariant           | $\mathrm{Biv}_D(\operatorname{Corr}_D(x,-), F) \simeq F(x)$ | [2005.10496]     |
| Finiteness profile  | $|\mathrm{Hom}(a,-)|=|\mathrm{Hom}(b,-)| \implies a\cong b$ | [2506.01501]     |

## References
- [1506.05500] Fibrations and Yoneda's lemma in an $\infty$-cosmos
- [1511.00857] Enriched Yoneda Lemma
- [1401.5656] Yoneda lemma for complete Segal spaces
- [1809.01736] Yoneda Lemma for Elementary Higher Toposes
- [2202.06628] Notes on Moduli theory, Stacks and 2-Yoneda's Lemma
- [2312.04716] From Yoneda to Topoi morphisms
- [2402.10640] Yoneda lemma and representation theorem for double categories
- [2410.07766] Lemme de Yoneda pour les foncteurs à valeurs monoidales
- [2005.10496] A bivariant Yoneda lemma and $(\infty,2)$-categories of correspondences
- [2309.08340] Formalizing the $\infty$-Categorical Yoneda Lemma
- [2506.01501] Refining Yoneda Lemma under Finiteness Constrains and Applications

The Yoneda lemma's reach into model-independent higher category theory, enriched and monoidal contexts, internal $\infty$-topoi, and its combinatorial and algebraic refinements, cements its position as the organizing principle in abstract category theory and its applications across mathematics.

Source: https://www.emergentmind.com/topics/yoneda-lemma