Fiveable

🔢Category Theory Unit 4 Review

QR code for Category Theory practice questions

4.2 Functor composition and identity functors

4.2 Functor composition and identity functors

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

Functor composition and identity functors are key concepts in category theory. They allow us to combine and simplify complex relationships between categories, creating new functors that preserve structure and behavior.

These ideas build on the basics of functors, showing how they can be combined and manipulated. Understanding composition and identity functors is crucial for grasping more advanced category theory concepts and their applications in mathematics and computer science.

Functor Composition and Identity Functors

Composition of functors

  • Functor composition combines two functors F:CDF: \mathcal{C} \to \mathcal{D} and G:DEG: \mathcal{D} \to \mathcal{E} to create a new functor GF:CEG \circ F: \mathcal{C} \to \mathcal{E}
    • (GF)(A)=G(F(A))(G \circ F)(A) = G(F(A)) applies the functors sequentially to objects AA in C\mathcal{C} (FF first, then GG)
    • (GF)(f)=G(F(f))(G \circ F)(f) = G(F(f)) applies the functors sequentially to morphisms ff in C\mathcal{C} (FF first, then GG)
  • Functor composition is associative, meaning (HG)F=H(GF)(H \circ G) \circ F = H \circ (G \circ F) for functors F:CDF: \mathcal{C} \to \mathcal{D}, G:DEG: \mathcal{D} \to \mathcal{E}, and H:EFH: \mathcal{E} \to \mathcal{F}
    • ((HG)F)(A)=(HG)(F(A))=H(G(F(A)))=H((GF)(A))=(H(GF))(A)((H \circ G) \circ F)(A) = (H \circ G)(F(A)) = H(G(F(A))) = H((G \circ F)(A)) = (H \circ (G \circ F))(A) for objects AA in C\mathcal{C}
    • ((HG)F)(f)=(HG)(F(f))=H(G(F(f)))=H((GF)(f))=(H(GF))(f)((H \circ G) \circ F)(f) = (H \circ G)(F(f)) = H(G(F(f))) = H((G \circ F)(f)) = (H \circ (G \circ F))(f) for morphisms ff in C\mathcal{C}
Composition of functors, Function (mathematics) - Wikipedia

Identity functors and composition

  • The identity functor 1C:CC1_{\mathcal{C}}: \mathcal{C} \to \mathcal{C} maps objects and morphisms in a category C\mathcal{C} to themselves
    • 1C(A)=A1_{\mathcal{C}}(A) = A for objects AA in C\mathcal{C}
    • 1C(f)=f1_{\mathcal{C}}(f) = f for morphisms ff in C\mathcal{C}
  • Identity functors serve as identity elements under functor composition
    • For any functor F:CDF: \mathcal{C} \to \mathcal{D}, F1C=FF \circ 1_{\mathcal{C}} = F and 1DF=F1_{\mathcal{D}} \circ F = F
      • (F1C)(A)=F(1C(A))=F(A)(F \circ 1_{\mathcal{C}})(A) = F(1_{\mathcal{C}}(A)) = F(A) and (1DF)(A)=1D(F(A))=F(A)(1_{\mathcal{D}} \circ F)(A) = 1_{\mathcal{D}}(F(A)) = F(A) for objects AA in C\mathcal{C}
      • (F1C)(f)=F(1C(f))=F(f)(F \circ 1_{\mathcal{C}})(f) = F(1_{\mathcal{C}}(f)) = F(f) and (1DF)(f)=1D(F(f))=F(f)(1_{\mathcal{D}} \circ F)(f) = 1_{\mathcal{D}}(F(f)) = F(f) for morphisms ff in C\mathcal{C}
Composition of functors, CS695 - Notes from 10/5

Functor composition and identities

  • Functor composition respects identity functors
    • For functors F:CDF: \mathcal{C} \to \mathcal{D} and G:DEG: \mathcal{D} \to \mathcal{E}, G1DF=GFG \circ 1_{\mathcal{D}} \circ F = G \circ F
      • (G1DF)(A)=G(1D(F(A)))=G(F(A))=(GF)(A)(G \circ 1_{\mathcal{D}} \circ F)(A) = G(1_{\mathcal{D}}(F(A))) = G(F(A)) = (G \circ F)(A) for objects AA in C\mathcal{C}
      • (G1DF)(f)=G(1D(F(f)))=G(F(f))=(GF)(f)(G \circ 1_{\mathcal{D}} \circ F)(f) = G(1_{\mathcal{D}}(F(f))) = G(F(f)) = (G \circ F)(f) for morphisms ff in C\mathcal{C}
  • This property ensures that composing with an identity functor does not change the overall behavior of the composition

Examples of functor composition

  • Composing forgetful and free functors (Grp\mathbf{Grp} and Set\mathbf{Set})
    • The forgetful functor U:GrpSetU: \mathbf{Grp} \to \mathbf{Set} maps a group to its underlying set and a group homomorphism to its underlying function
    • The free functor F:SetGrpF: \mathbf{Set} \to \mathbf{Grp} maps a set to the free group generated by that set and a function to the induced group homomorphism
    • UF:SetSetU \circ F: \mathbf{Set} \to \mathbf{Set} maps a set to the underlying set of its free group
    • FU:GrpGrpF \circ U: \mathbf{Grp} \to \mathbf{Grp} maps a group to the free group generated by its underlying set
  • Composing power set and distribution functors (Set\mathbf{Set})
    • The power set functor P:SetSet\mathcal{P}: \mathbf{Set} \to \mathbf{Set} maps a set to its power set and a function to the induced function between power sets
    • The distribution functor D:SetSetD: \mathbf{Set} \to \mathbf{Set} maps a set to the set of distributions (finite additive measures) on that set and a function to the induced function between distributions
    • DP:SetSetD \circ \mathcal{P}: \mathbf{Set} \to \mathbf{Set} maps a set to the set of distributions on its power set
    • PD:SetSet\mathcal{P} \circ D: \mathbf{Set} \to \mathbf{Set} maps a set to the power set of its set of distributions