Skip to main content
KetQat

Appearance

Theorem · advanced

Yoneda lemma

Natural transformations from the functor represented by an object A to any set-valued functor F correspond exactly to elements of F(A); in particular an object is determined up to isomorphism by the morphisms into it from all other objects (or out of it).

Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

For every object AA of C\mathbf{C} the map

Nat(C(A,−), F)  ⟶  FA,α⟼αA(idA)\mathrm{Nat}\big(\mathbf{C}(A, -),\, F\big) \;\longrightarrow\; F A, \qquad \alpha \longmapsto \alpha_A(\mathrm{id}_A)

is a bijection. Its inverse sends x∈FAx \in F A to the transformation with components αBx(f)=(Ff)(x)\alpha^{x}_B(f) = (F f)(x) for f:A→Bf : A \to B. The bijection is natural in both AA and FF.

Taking F=C(A′,−)F = \mathbf{C}(A', -) shows that natural transformations C(A,−)⇒C(A′,−)\mathbf{C}(A, -) \Rightarrow \mathbf{C}(A', -) are exactly the maps "precompose with some g:A′→Ag : A' \to A", so A≅A′A \cong A' if and only if the functors C(A,−)\mathbf{C}(A, -) and C(A′,−)\mathbf{C}(A', -) are naturally isomorphic: an object is determined, up to unique isomorphism compatible with this identification, by how it maps to everything else. The dual statement uses C(−,A)\mathbf{C}(-, A). This is the principle behind specifying a quantum system by its operational behaviour — by all the ways it can be prepared or tested — rather than by its internal description. Statement and proof: section III.2 of Mac Lane.

Holds when

  • C\mathbf{C} is a locally small category (each C(A,B)\mathbf{C}(A, B) is a set) and F:C→SetF : \mathbf{C} \to \mathbf{Set} is a functor.

Proof

Proof of the Yoneda lemmaMachine-checked

Write hA=C(A,−)h^{A} = \mathbf{C}(A, -), so hAgh^{A} g is f↦g∘ff \mapsto g \circ f. Let Θ(α)=αA(idA)\Theta(\alpha) = \alpha_A(\mathrm{id}_A) and, for x∈FAx \in FA, Ψ(x)=αx\Psi(x) = \alpha^{x} with αBx(f)=(Ff)(x)\alpha^{x}_B(f) = (F f)(x).

Ψ(x)\Psi(x) is natural. For g:B→B′g : B \to B' and f:A→Bf : A \to B,

(αB′x∘hAg)(f)=F(g∘f)(x)=(Fg)((Ff)(x))=(Fg∘αBx)(f),\big(\alpha^{x}_{B'} \circ h^{A} g\big)(f) = F(g \circ f)(x) = (F g)\big((F f)(x)\big) = \big(F g \circ \alpha^{x}_{B}\big)(f),

using that FF preserves composition.

Θ∘Ψ=id\Theta \circ \Psi = \mathrm{id}. Θ(αx)=(FidA)(x)=x\Theta(\alpha^{x}) = (F \mathrm{id}_A)(x) = x, since FF preserves identities.

Ψ∘Θ=id\Psi \circ \Theta = \mathrm{id}. Let α\alpha be natural and x=αA(idA)x = \alpha_A(\mathrm{id}_A). For f:A→Bf : A \to B, naturality at ff applied to idA\mathrm{id}_A gives

αB(f)=αB(hAf (idA))=(Ff)(αA(idA))=(Ff)(x)=αBx(f),\alpha_B(f) = \alpha_B\big(h^{A} f\,(\mathrm{id}_A)\big) = (F f)\big(\alpha_A(\mathrm{id}_A)\big) = (F f)(x) = \alpha^{x}_B(f),

because hAf(idA)=f∘idA=fh^{A} f(\mathrm{id}_A) = f \circ \mathrm{id}_A = f. Hence α=αx\alpha = \alpha^{x}.

Corollary on objects. For F=hA′F = h^{A'}, the element of hA′A=C(A′,A)h^{A'}A = \mathbf{C}(A', A) corresponding to α\alpha is some g:A′→Ag : A' \to A, and αB(f)=f∘g\alpha_B(f) = f \circ g. Composition of such transformations corresponds to composition of the gg's in reverse order, and identity to identity, so a natural isomorphism hA≅hA′h^{A} \cong h^{A'} corresponds to mutually inverse morphisms between AA and A′A'.

Naturality of the bijection in AA and FF is a routine check of the same kind; see section III.2 of Mac Lane.

Stated in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Saunders Mac Lane (1978). Categories for the Working Mathematician. Springer New York (Graduate Texts in Mathematics 5). doi:10.1007/978-1-4757-4721-8

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Proof re-derived: alpha -> alpha_A(id_A) is inverse to x -> (f -> F(f)(x)) by naturality (alpha_B(f) = alpha_B(f o id_A) = F(f)(alpha_A(id_A))); naturality of the bijection; the corollary that transformations C(A,-) => C(A',-) are precompositions with g : A' -> A and hence A = A' iff the represented functors are isomorphic. Section III.2 of Mac Lane is the Yoneda lemma section (book not openly readable; Crossref metadata match). Standard textbook material, independently checked.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e

Current revision 5771355f3031b3d9. Source file knowledge/records/theorem/yoneda-lemma.md in the content repository (readable there once it is public).