The Yoneda Embedding and Its Uses
Three corollaries turn the Yoneda lemma into working machinery. A representation of a presheaf is the same thing as a universal element; the Yoneda embedding of a category into its presheaf category is full and faithful; and two objects are isomorphic exactly when their representables are.
╌╌╌╌
The Yoneda lemma is a statement about one hom-set at a time: natural transformations correspond to elements of . Its force appears when the correspondence is applied systematically — to the question of when is representable, to the functor that sends each object to its representable presheaf, and to the question of when two objects are isomorphic. Each application is a short corollary, and the three together are among the most-used tools in the subject.1
Throughout, is locally small, is the representable presheaf at , and an arrow decorated with denotes an isomorphism.
Representations as universal elements
A representation of a presheaf is an object with a natural isomorphism . By Yoneda, is determined by the element ; the corollary below characterizes which elements arise from isomorphisms.
Such a is called a universal element of ; pairs with are called elements of the presheaf , and is the element every other one factors through uniquely.
The shape for every there is a unique map making it work
is the
pattern of a
universal property.
The corollary says representability is a universal property in disguise, and
conversely: every universal property can be phrased as the representability of a
suitable set-valued functor. The covariant dual reads the same way, with
, , and the unique map going
.
Free vector spaces. Fix a set and consider
, the functor of
functions from into the underlying set.
Two familiar statements about
:2
- Hom-set form. There is a vector space with naturally in ; that is, , so is representable.
- Element form. There is a vector space and a function such that every function factors as for a unique linear map . That is, is a universal element.
The first looks weaker: it asserts only an isomorphism of functors, while the
second exhibits a specific insertion-of-generators map through which
everything factors. The corollary says the two are equivalent: every natural
isomorphism arises from a
universal element by , and the word natural
in the hom-set
form already encodes all the explicit detail of the element form.
Adjunction units. The same dictionary applies to any adjunction . For fixed , the functor is representable by , and its universal element is the unit component — equivalently, is an initial object of the comma category . The three descriptions of an adjunction (hom-set bijection, unit/counit, universal arrows) are three phrasings of one representability statement; the details are in the adjunctions module.
Non-uniqueness of the isomorphism. Representing objects are unique up to isomorphism (below), but representations are not unique on the nose. The forgetful functor has universal element : for every group and there is a unique homomorphism with . But is also universal, and the two induced isomorphisms are different. Universal elements correspond one-to-one with representations, so has exactly as many representations by as has generators: two.
The Yoneda embedding is full and faithful
The second corollary applies the lemma with itself a representable.
Informally: a map of presheaves is the same thing as a map in .
A full and faithful functor deserves the name embedding: by fullness and faithfulness, is equivalent to the full subcategory of whose objects are the representable presheaves. Every category, however oddly presented, sits inside a category of set-valued functors — a category with excellent properties (all limits and colimits, computed pointwise) that itself may lack.
Full subcategories are the well-behaved ones: for objects in a full subcategory,
map
and isomorphism
mean the same whether computed inside or outside. The
lemma that transports these notions is worth recording.
The practical reading of fullness, in Barr & Wells' phrasing: to construct an
arrow , it is enough to construct a natural transformation
— that is, to give for each object a function
, a variable element of for each variable element of ,
naturally in . This is among the most used
techniques in the subject: many arrows (diagonal maps, evaluation maps, canonical
comparisons) are easiest to define on generalized elements, and Yoneda guarantees
a unique actual arrow inducing the definition.3
Isomorphism of representables
The third corollary is the slogan an object is determined by the maps into it.
Functors preserve isomorphism automatically, so the content is the direction
: if
naturally in , then
. Reading as viewed from ,
two objects
that look the same from every viewpoint, compatibly, are the same.
The naturality requirement does real work. In , isolated isomorphisms of hom-sets carry only partial information:
- always holds (both are one-element sets) and says nothing;
- says the underlying sets of and are isomorphic, but the group structures could still differ;
- for all primes says and have the same number of elements of each prime order.
None of these alone forces ; the corollary applies only when the isomorphisms hold for all and cohere naturally. The category is unusual in this respect: , so one shape of generalized element (shape ) already determines a set. In a general category no single shape suffices, and the corollary compensates by quantifying over all of them.
Uniqueness of representing objects and of adjoints. If a functor is
isomorphic to both and , then , so
: representing objects are unique up to isomorphism. This licenses
the
in definitions by universal property. The tensor product is a case in
point: there is, up to isomorphism, at most one vector space with
naturally in , so
the tensor product is well defined. Uniqueness of
adjoints follows the same way: if
and are both left adjoint to , then
for each , so , and the isomorphisms are natural in , giving .
| Corollary | Statement | Typical use |
|---|---|---|
| Universal elements | representation of universal element | recognize universal properties as representability |
| Yoneda embedding | is full and faithful | build arrows from natural maps of hom-functors |
| Isomorphism of representables | uniqueness of universal constructions and adjoints |
Cayley's theorem as a special case
The Yoneda embedding generalizes Cayley's theorem from group theory, a point Barr & Wells make explicit.4 Cayley's theorem: every group embeds in the symmetric group on its underlying set, via .
View as a one-object category. A set-valued functor on it is a -set, and
the single representable functor is the regular representation: the underlying set of acted on by multiplication. The
Yoneda embedding sends the one object of to and each arrow
to the natural transformation multiply by .
Faithfulness says distinct
group elements give distinct permutations of ; functoriality says
composition is preserved. That is precisely an injective homomorphism from
into the group of permutations of its underlying set — Cayley's theorem, with
Yoneda's fullness added for free: every -equivariant automorphism of the
regular representation is multiplication by a group element.
The one-object case displays the general mechanism in miniature. An arbitrary category has many objects, so instead of one regular representation there is one representable presheaf per object, and instead of a permutation group there is the presheaf category; but the embedding works for the same reason, with the identity arrow playing the role of the group identity in Cayley's proof.
Presheaves as generalized objects
The embedding invites a change of attitude: identify with
and regard arbitrary presheaves as generalized objects of
. A presheaf assigns to each object a set of
-shaped figures,
exactly as assigns the -shaped
generalized elements
of ; the difference is only that need not be realized by an actual object.
The presheaf category is then a completion of : it has all limits
and colimits even when has few, and sits inside it
fully faithfully. In
a later module this
is sharpened: every presheaf is a colimit of representables, roughly as every
positive integer is a product of primes, making
the free cocompletion of
.
Hom-functors record the maps out of and into each object; the Yoneda lemma says a natural map out of a representable is a single element; and its corollaries say the passage from objects to representables loses nothing, so an object may be studied, or even defined, by its maps in.
Footnotes
- Leinster, Basic Category Theory, §4.3 — Consequences of the Yoneda lemma: Corollaries 4.3.2 (representation universal element), 4.3.7 (the embedding is full and faithful), and 4.3.10 (isomorphism of representables), with Lemma 4.3.8 on full and faithful functors. ↩
- Leinster, Basic Category Theory, §4.3, Examples 4.3.4–4.3.6 — the free vector space in hom-set and element form, adjunction units as universal elements, and the two universal elements of the forgetful functor on groups. ↩
- Barr & Wells, Category Theory for Computing Science, §4.5.4–4.5.5 — every natural transformation of hom-functors is composition with a unique arrow, and the technique of defining an arrow by its action on variable elements. ↩
- Barr & Wells, Category Theory for Computing Science, §4.5 —
representable functors are a generalization of the regular representation, and the Yoneda embedding is a generalization of Cayley's Theorem.
↩
╌╌ END ╌╌