Let C be a category
such that each hom-class HomC(A,B) is a set (i.e. C is locally small). Fix an object
A∈C and a functor
F:C→Set.
Write the representable functor
hA:=HomC(A,−):C→Set,which is a representable functor
.
Statement (covariant Yoneda)
There is a natural bijection
Nat(hA,F)≅F(A),natural in both A and F, where Nat(−,−) denotes the set of natural transformations
.
Explicit correspondence
Given η∈Nat(hA,F), the corresponding element of F(A) is
ηA(idA)∈F(A),where idA is the identity morphism
of A.
Given x∈F(A), define a natural transformation ηx:hA⇒F by, for each object X,
ηXx:HomC(A,X)→F(X),f↦F(f)(x).Naturality follows from functoriality of F and composition
in C.
This bijection is in fact a natural isomorphism
between functors in A and F.
For a functor G:Cop→Set, there is a natural bijection
Nat(HomC(−,A),G)≅G(A).(Here HomC(−,A) is the usual contravariant representable.)
Examples
Subsets via the power set functor. Take C=Set, let A be a set, and let F=P be the power set functor X↦P(X).
The Yoneda lemma gives a bijection
Nat(Hom(A,−),P)≅P(A),so natural transformations correspond exactly to subsets S⊆A.
Concretely, S⊆A yields ηXS(f)=f(S)⊆X.
Picking an element of a group naturally. Take C=Grp, let A=G be a group, and let F=U:Grp→Set be the underlying-set functor.
Then
Nat(HomGrp(G,−),U)≅U(G),i.e. natural transformations correspond to elements g∈G.
The corresponding ηHg:Hom(G,H)→U(H) sends a homomorphism φ:G→H to φ(g)∈H.
Recovering maps into a fixed module. Let C=R-Mod and take F(X)=HomR(M,X) viewed as a set-valued functor (forgetting the abelian group structure).
Yoneda yields
Nat(HomR(A,−),HomR(M,−))≅HomR(M,A),so a natural way to turn maps A→X into maps M→X is the same as choosing a map M→A.
The Yoneda lemma implies that the Yoneda embedding
is fully faithful, and it is the basic tool for working with representable functors
.