Yoneda lemma
Natural transformations from a representable functor correspond to elements of the target functor.
Let be a category such that each hom-class is a set (i.e. is locally small). Fix an object and a functor .
Write the representable functor
which is a representable functor.
Statement (covariant Yoneda)
There is a natural bijection
natural in both and , where denotes the set of natural transformations.
Explicit correspondence
- Given , the corresponding element of is where is the identity morphism of .
- Given , define a natural transformation by, for each object , Naturality follows from functoriality of and composition in .
This bijection is in fact a natural isomorphism between functors in and .
Contravariant form
For a functor , there is a natural bijection
(Here is the usual contravariant representable.)
Examples
- Subsets via the power set functor. Take , let be a set, and let be the power set functor . The Yoneda lemma gives a bijection so natural transformations correspond exactly to subsets . Concretely, yields .
- Picking an element of a group naturally. Take , let be a group, and let be the underlying-set functor. Then i.e. natural transformations correspond to elements . The corresponding sends a homomorphism to .
- Recovering maps into a fixed module. Let and take viewed as a set-valued functor (forgetting the abelian group structure). Yoneda yields so a natural way to turn maps into maps is the same as choosing a map .