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:C→D and G:D→E to create a new functor G∘F:C→E
- (G∘F)(A)=G(F(A)) applies the functors sequentially to objects A in C (F first, then G)
- (G∘F)(f)=G(F(f)) applies the functors sequentially to morphisms f in C (F first, then G)
- Functor composition is associative, meaning (H∘G)∘F=H∘(G∘F) for functors F:C→D, G:D→E, and H:E→F
- ((H∘G)∘F)(A)=(H∘G)(F(A))=H(G(F(A)))=H((G∘F)(A))=(H∘(G∘F))(A) for objects A in C
- ((H∘G)∘F)(f)=(H∘G)(F(f))=H(G(F(f)))=H((G∘F)(f))=(H∘(G∘F))(f) for morphisms f in C
Identity functors and composition
- The identity functor 1C:C→C maps objects and morphisms in a category C to themselves
- 1C(A)=A for objects A in C
- 1C(f)=f for morphisms f in C
- Identity functors serve as identity elements under functor composition
- For any functor F:C→D, F∘1C=F and 1D∘F=F
- (F∘1C)(A)=F(1C(A))=F(A) and (1D∘F)(A)=1D(F(A))=F(A) for objects A in C
- (F∘1C)(f)=F(1C(f))=F(f) and (1D∘F)(f)=1D(F(f))=F(f) for morphisms f in C
Functor composition and identities
- Functor composition respects identity functors
- For functors F:C→D and G:D→E, G∘1D∘F=G∘F
- (G∘1D∘F)(A)=G(1D(F(A)))=G(F(A))=(G∘F)(A) for objects A in C
- (G∘1D∘F)(f)=G(1D(F(f)))=G(F(f))=(G∘F)(f) for morphisms f in 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 and Set)
- The forgetful functor U:Grp→Set maps a group to its underlying set and a group homomorphism to its underlying function
- The free functor F:Set→Grp maps a set to the free group generated by that set and a function to the induced group homomorphism
- U∘F:Set→Set maps a set to the underlying set of its free group
- F∘U:Grp→Grp maps a group to the free group generated by its underlying set
- Composing power set and distribution functors (Set)
- The power set functor P:Set→Set maps a set to its power set and a function to the induced function between power sets
- The distribution functor D:Set→Set maps a set to the set of distributions (finite additive measures) on that set and a function to the induced function between distributions
- D∘P:Set→Set maps a set to the set of distributions on its power set
- P∘D:Set→Set maps a set to the power set of its set of distributions