Definition
Let C be a locally small category
. The Yoneda embedding is the functor
y:C⟶SetCopdefined as follows:
On objects A∈C, set
y(A)=HomC(−,A):Cop→Set.This is a representable functor
(a representable presheaf).
On a morphism f:A→B, define a natural transformation
y(f):HomC(−,A)⇒HomC(−,B)by postcomposition:
y(f)X:HomC(X,A)→HomC(X,B),(h:X→A)↦f∘h.
Here Cop is the opposite category
and SetCop is the functor category of presheaves on C.
Fundamental property (fully faithful)
By the Yoneda lemma
, the functor y is fully faithful: for all objects A,B∈C,
HomC(A,B)≅Nat(HomC(−,A),HomC(−,B)).Equivalently, C identifies with a full subcategory
of SetCop whose objects are precisely the representables.
Examples
Example (Set)
For a set A, y(A) is the presheaf
X⟼HomSet(X,A),the set of functions X→A. A map A→B induces a natural transformation by postcomposition.
Example (Posets)
Let (P,≤) be a partial order
regarded as a category (one morphism x→y iff x≤y).
Then for a∈P, the presheaf y(a) sends x to a singleton set if x≤a, and to the empty set otherwise. Thus y(a) encodes the principal down-set {x∣x≤a}.
Example (Grp)
For a group G, y(G) is the presheaf
H⟼HomGrp(H,G),the set of group homomorphisms into G. A group homomorphism G→G′ induces a natural transformation by postcomposition.