up:: Category
A functor is essentially a “translation” of what happens inside a category into another category .
Given categories , a functor is a morphism which preserves their structure:
- All objects in are mapped to objects in
- All morphisms in are mapped to morphisms in
- The functor acts as a Homomorphism of sorts, preserving the algebraic composition of morphisms:
Properties
Functors can either be covariant or Contravariant, depending on whether its action “flips” morphisms in the target category or not.
Examples
- A Group Homomorphism between Groups can be seen as a functor between their respective single-element categories
- Group Actions can be seen as functors from a groupoid with a single element onto another category
References
Drawing
%%