Fiveable

🔢Category Theory Unit 13 Review

QR code for Category Theory practice questions

13.1 Representable functors and the Yoneda embedding

13.1 Representable functors and the Yoneda embedding

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
🔢Category Theory
Unit & Topic Study Guides

Representable functors are a powerful tool in category theory, connecting abstract categories to concrete sets. They're like translators, turning complex categorical structures into more familiar set-based ones.

The Yoneda embedding takes this idea further, showing how any category can be viewed as a category of set-valued functors. This perspective reveals hidden structures and relationships within categories, making it a cornerstone of advanced category theory.

Representable Functors

Examples of representable functors

  • The forgetful functor U:GrpSetU: \mathbf{Grp} \to \mathbf{Set} is represented by the group Z\mathbb{Z}
    • UU maps each group to its underlying set and each group homomorphism to its underlying function
    • For any group GG, there is a natural isomorphism between HomGrp(Z,G)\text{Hom}_{\mathbf{Grp}}(\mathbb{Z}, G) and UGUG, given by mapping a group homomorphism f:ZGf: \mathbb{Z} \to G to the element f(1)f(1) in GG
  • The functor HomVectk(,k):VectkopSet\text{Hom}_{\mathbf{Vect}_k}(-, k): \mathbf{Vect}_k^{op} \to \mathbf{Set} is represented by the field kk as a vector space over itself
    • This functor maps each vector space to the set of linear maps from that space to kk
    • For any vector space VV, there is a natural isomorphism between HomVectk(V,k)\text{Hom}_{\mathbf{Vect}_k}(V, k) and HomVectk(k,V)\text{Hom}_{\mathbf{Vect}_k}(k, V), given by the transpose of a linear map
  • For any object AA in a locally small category C\mathcal{C}, the hom-functor HomC(,A):CopSet\text{Hom}_{\mathcal{C}}(-, A): \mathcal{C}^{op} \to \mathbf{Set} is representable by definition
    • This functor maps each object XX to the set HomC(X,A)\text{Hom}_{\mathcal{C}}(X, A) and each morphism f:XYf: X \to Y to the function HomC(f,A):HomC(Y,A)HomC(X,A)\text{Hom}_{\mathcal{C}}(f, A): \text{Hom}_{\mathcal{C}}(Y, A) \to \text{Hom}_{\mathcal{C}}(X, A) given by precomposition with ff
    • The identity natural transformation on HomC(,A)\text{Hom}_{\mathcal{C}}(-, A) witnesses its representability by AA
Examples of representable functors, May | 2014 | Bartosz Milewski's Programming Cafe

Yoneda Embedding

Examples of representable functors, Adjoint functors - Wikipedia

Construction of Yoneda embedding

  • The Yoneda embedding is a functor Y:C[Cop,Set]\mathcal{Y}: \mathcal{C} \to [\mathcal{C}^{op}, \mathbf{Set}] for a locally small category C\mathcal{C}
    1. For each object AA in C\mathcal{C}, Y(A)\mathcal{Y}(A) is defined as the hom-functor HomC(,A):CopSet\text{Hom}_{\mathcal{C}}(-, A): \mathcal{C}^{op} \to \mathbf{Set}
      • This functor maps each object XX to the set HomC(X,A)\text{Hom}_{\mathcal{C}}(X, A) and each morphism f:XYf: X \to Y to the function HomC(f,A):HomC(Y,A)HomC(X,A)\text{Hom}_{\mathcal{C}}(f, A): \text{Hom}_{\mathcal{C}}(Y, A) \to \text{Hom}_{\mathcal{C}}(X, A) given by precomposition with ff
    2. For each morphism f:ABf: A \to B in C\mathcal{C}, Y(f)\mathcal{Y}(f) is defined as the natural transformation HomC(,A)HomC(,B)\text{Hom}_{\mathcal{C}}(-, A) \to \text{Hom}_{\mathcal{C}}(-, B) given by post-composition with ff
      • For each object XX in C\mathcal{C}, the component of Y(f)\mathcal{Y}(f) at XX is the function HomC(X,f):HomC(X,A)HomC(X,B)\text{Hom}_{\mathcal{C}}(X, f): \text{Hom}_{\mathcal{C}}(X, A) \to \text{Hom}_{\mathcal{C}}(X, B) given by post-composition with ff

Full faithfulness of Yoneda embedding

  • To prove that the Yoneda embedding is fully faithful, we need to show that for any objects AA and BB in C\mathcal{C}, the function YA,B:HomC(A,B)Hom[Cop,Set](YA,YB)\mathcal{Y}_{A,B}: \text{Hom}_{\mathcal{C}}(A, B) \to \text{Hom}_{[\mathcal{C}^{op}, \mathbf{Set}]}(\mathcal{Y}A, \mathcal{Y}B) is a bijection
    1. Injectivity: If YA,B(f)=YA,B(g)\mathcal{Y}_{A,B}(f) = \mathcal{Y}_{A,B}(g) for morphisms f,g:ABf, g: A \to B, then f=gf = g by the Yoneda lemma
      • The Yoneda lemma states that for any natural transformation α:HomC(,A)HomC(,B)\alpha: \text{Hom}_{\mathcal{C}}(-, A) \to \text{Hom}_{\mathcal{C}}(-, B), there exists a unique morphism h:ABh: A \to B such that α=YA,B(h)\alpha = \mathcal{Y}_{A,B}(h), given by h=αA(1A)h = \alpha_A(1_A)
      • If YA,B(f)=YA,B(g)\mathcal{Y}_{A,B}(f) = \mathcal{Y}_{A,B}(g), then f=YA,B(f)A(1A)=YA,B(g)A(1A)=gf = \mathcal{Y}_{A,B}(f)_A(1_A) = \mathcal{Y}_{A,B}(g)_A(1_A) = g
    2. Surjectivity: For any natural transformation α:HomC(,A)HomC(,B)\alpha: \text{Hom}_{\mathcal{C}}(-, A) \to \text{Hom}_{\mathcal{C}}(-, B), there exists a unique morphism f:ABf: A \to B such that α=YA,B(f)\alpha = \mathcal{Y}_{A,B}(f), given by f=αA(1A)f = \alpha_A(1_A)
      • This follows directly from the Yoneda lemma, as stated above

Representable functors vs Yoneda embedding

  • The Yoneda embedding establishes a connection between representable functors and the category [Cop,Set][\mathcal{C}^{op}, \mathbf{Set}]
    • Every representable functor F:CopSetF: \mathcal{C}^{op} \to \mathbf{Set} is naturally isomorphic to YA\mathcal{Y}A for some object AA in C\mathcal{C}
      • If FF is represented by AA, then there is a natural isomorphism α:FYA\alpha: F \to \mathcal{Y}A given by αX(x)=ϕX(x)\alpha_X(x) = \phi_X(x) for each object XX, where ϕ:FHomC(,A)\phi: F \to \text{Hom}_{\mathcal{C}}(-, A) is the natural isomorphism witnessing the representability of FF
    • Conversely, every functor in the image of the Yoneda embedding is representable
      • For any object AA in C\mathcal{C}, the functor YA=HomC(,A)\mathcal{Y}A = \text{Hom}_{\mathcal{C}}(-, A) is representable by AA, as witnessed by the identity natural transformation on YA\mathcal{Y}A
  • The Yoneda lemma states that for any functor F:CopSetF: \mathcal{C}^{op} \to \mathbf{Set} and object AA in C\mathcal{C}, there is a natural isomorphism Hom[Cop,Set](YA,F)FA\text{Hom}_{[\mathcal{C}^{op}, \mathbf{Set}]}(\mathcal{Y}A, F) \cong FA
    • This isomorphism is given by evaluating a natural transformation α:YAF\alpha: \mathcal{Y}A \to F at the identity morphism of AA, i.e., mapping α\alpha to αA(1A)\alpha_A(1_A)
    • The inverse of this isomorphism maps an element xFAx \in FA to the natural transformation α:YAF\alpha: \mathcal{Y}A \to F defined by αX(f)=Ff(x)\alpha_X(f) = Ff(x) for each object XX and morphism f:XAf: X \to A
    • The Yoneda lemma implies that the Yoneda embedding is fully faithful, as shown earlier
    • It also implies that representable functors are fully determined by their representing objects, since if FF is represented by AA, then FYAF \cong \mathcal{Y}A and AA can be recovered (up to isomorphism) as the image of 1A1_A under the isomorphism Hom[Cop,Set](YA,F)FA\text{Hom}_{[\mathcal{C}^{op}, \mathbf{Set}]}(\mathcal{Y}A, F) \cong FA