Representable Functors and the Yoneda Lemma
The Yoneda Lemma states that for any locally small category , a functor , and an object , there is a natural bijection . In words: natural transformations out of a representable functor are completely determined by a single element. It applies throughout category theory, algebraic geometry, homotopy theory, and type theory. Proved/named after Nobuo Yoneda (c. 1954, via a famous discussion with Mac Lane).
To know an object , it suffices to know the set of arrows into from every other object, together with how those sets transform under composition. The hom-functor packages exactly this data, and Yoneda says no information is lost: the functor remembers up to unique isomorphism. A natural transformation is "as good as" a single element of , because is a generic point that the transformation must send somewhere, and naturality forces everything else.
Formal Statement
Let be locally small (each is a set). For a fixed object , the covariant hom-functor is defined on objects and morphisms by
Derivation hint: post-composition by sends to ; functoriality follows from associativity of composition. Dually, the contravariant hom-functor sends and to precomposition .
A functor is representable if there exists an object and a natural isomorphism
Derivation hint: a natural isomorphism is a natural transformation with components that are bijections for every ; the pair is a <strong>representation</strong> of . A contravariant functor is representable if . The object is the representing object; by the universal element correspondence (below) a representation is equivalent to a universal element .
Let be locally small, a functor, and . Then the map
is a bijection, natural in both and . Derivation hint: is the component of the natural transformation at the object ; evaluating it on the identity morphism produces an element of . Naturality in and means commutes with the actions of morphisms and natural transformations .
The assignment defines a functor, the Yoneda embedding,
which is full and faithful: for all ,
Derivation hint: apply [3] to the contravariant version with evaluated at the representing object ; the universal element corresponding to a natural transformation is a morphism , giving the bijection.
Why It Holds / Derivation
We construct inverse to .
Step 1 — Define . Given , define a transformation with components
Derivation hint: induces ; apply it to the chosen element .
Step 2 — is natural. For we must show . Evaluating on :
Derivation hint: functoriality supplies the first equality; the definition of gives the last.
Step 3 — . Compute . Derivation hint: preserves identities, so .
Step 4 — . Let with . For any , naturality of at gives the commuting square
Derivation hint: write , then apply the naturality square to . Hence . Steps 3–4 show and are mutually inverse, proving the bijection. Naturality of in and is checked by chasing the analogous squares.
∎Japanese mathematician working in homological algebra (notably Yoneda Ext groups and the splice product of extensions). The lemma bearing his name emerged not from a published paper but from a 1954 conversation with Saunders Mac Lane in a Paris train station (the Gare du Nord), after which Mac Lane carried the idea back and popularized it. Yoneda's own contributions to the cohomology of groups and the long exact sequence machinery were substantial, but the lemma's deceptively simple statement made it the lens through which generations learned that objects live through their relationships.
Building Intuition
Think of as the probe "what can map out of ?". A natural transformation is a coherent rule assigning to every arrow out of an element of . But every arrow is just — it is the image of the identity under post-composition. So once you decide where goes (an element ), naturality forces everywhere. The identity is a generic element: a single seed from which the whole transformation grows. This is why "to specify a map of structured objects, give the image of one universal element" appears all over mathematics — the determinant as a map out of free modules, a group homomorphism out of a free group determined on generators, a continuous map out of a representable space. Representability turns abstract universal properties into concrete elements you can point at.
Worked Examples
Given: Let be the forgetful functor sending a group to its underlying set . We ask: is representable, and by which group?
Steps: 1. A representation needs with naturally. The free group on one generator is , and a homomorphism is uniquely determined by , with every element achievable. 2. Thus via ; check naturality: for , matches applied to . ✓ 3. By Yoneda, natural transformations correspond to elements of . The element gives the transformation ("raise to the th power"), which is indeed natural.
Answer:
Given: Let be the poset category , where has exactly one element if and is empty otherwise. Compute .
Steps: 1. By the (covariant) Yoneda Lemma applied with and :
2. Since , the set has exactly one element. 3. Sanity check directly: a transformation must send to an element of — only one choice — and then naturality fixes the rest. (Contrast: , since .)
Answer:
Common Misconceptions
Local smallness is not optional. The bijection presumes is a genuine set so that hom-functors land in . In a category that is not locally small, may not be definable as a -valued functor and the Yoneda statement fails to even type-check. Also note: the embedding is fully faithful but not surjective on objects — most presheaves are not representable, and a presheaf is representable iff its category of elements has a terminal object.
"Naturally isomorphic" "isomorphic in each component." Two functors can have for all (componentwise bijections) without being naturally isomorphic. The Yoneda isomorphism's force comes from naturality — the commuting squares — not mere cardinality matching. Forgetting naturality is the single most common error in applying the lemma.
Consider and let — but treat it naively as a set-valued assignment ignoring that automorphisms don't transform functorially along arbitrary homomorphisms. There is no functor with that is covariant in homomorphisms (a non-iso gives no induced map on automorphism groups), so asking whether " is representable" is ill-posed until one fixes the variance/functoriality. The lesson: representability questions require a bona fide functor first; many natural-looking assignments are not functorial at all, so Yoneda does not apply.
Connections
The Yoneda Lemma is the technical heart of Universal Properties: a universal element of is precisely a representation, and uniqueness up to unique isomorphism is the statement that representing objects are unique. It underlies Adjoint Functors — an adjunction is equivalent to natural isomorphisms , i.e. representability of certain hom-functors. It powers Limits and Colimits, since a limit of represents the functor , and Yoneda gives the uniqueness. Through the embedding it connects to Presheaves and Sheaves and the theory of Density and the Co-Yoneda Lemma, where every presheaf is a colimit of representables.
Real-World Applications
Historical Development
Subtleties & Limits
Size and largeness. For locally small but large categories, the presheaf category may itself fail to be locally small, and care with Grothendieck universes is needed; controlling these size issues (accessible/presentable categories, the small object argument) is a delicate ongoing concern in foundations. Higher Yoneda. Stating and proving the Yoneda Lemma for -categories required substantial machinery (simplicial/quasicategorical models); fully synthetic proofs in directed type theory and simplicial type theory are an active research frontier. Constructive and enriched versions. The enriched Yoneda Lemma (over a monoidal ) and its constructive content — when does representability hold without choice, and what is its computational meaning — remain areas of refinement, especially as proof assistants demand fully explicit witnesses.
See Also
Universal Properties · Adjoint Functors · Presheaves and Sheaves · Kan Extensions · Functor of Points · Brown Representability · Enriched Category Theory