Skip to main content
KetQat

Appearance

Proof · advanced

Proof of the Yoneda lemma

Naturality forces every component of a transformation out of a Hom functor to be determined by where the identity morphism goes; conversely any element defines a natural family by applying the functor to morphisms.

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.

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.

Proves

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 checked line by line against the companion theorem: naturality of alpha^x via functoriality, Theta o Psi = id via F(id) = id, Psi o Theta = id via naturality applied to id_A, and the corollary that transformations h^A => h^A' are precomposition with g: A' -> A (contravariant in composition). Standard material (Mac Lane, Categories for the Working Mathematician, section III.2 is the Yoneda lemma section; book not openly readable); independent derivation used.

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 f74a2e52c69d2059. Source file knowledge/records/proof/yoneda-lemma.md in the content repository (readable there once it is public).