Functors
Before functoriality, people lived in caves.
Definition
Maps between categories are called functors. Briefly, a functor between categories consists of maps of objects and arrows that preserve the categorical structure. In more detail:
Suppose
- For each object
, an object - For each arrow
in , an arrow in
with the following properties:
- (identity preservation) For every object
, one has - (compatibility with composition) For every pair of composable arrows
in , we must have
The second property above is sometimes called functoriality.
You might wonder why functors between categories aren't simply called morphisms or arrows. Two reasons: 1) the name "functor" is too cool to lose; and 2) the existence of natural transformations places functors into a position outside of conventional categorical structure. (More on this later!)
You may run across the terms "covariant functor" or "contravariant functor." Both are holdovers from the early days of category theory, when the foundations were still being established. Back then, many of the inspiring examples in algebraic geometry and algebraic topology involved functor-like maps that reversed the directions of arrows. We will even see examples of this in both module theory (see here) and category theory (see Universal Properties III - Yoneda's Lemma). In other words, we'll see maps between categories that send an arrow
Since such maps between categories arose naturally and behaved well in all other respects, they were called originally called contravariant functors. By contrast, our usual (direction-preserving) maps were called covariant functors.[1] Note that a contravariant functor "reverses" composition, i.e., satisfies
The more modern view has reverted to simply "functors" and has incorporated the contravariant functors via the notion of opposite categories: a contravariant functor
Examples
...every sufficiently good analogy is yearning to become a functor.
The power set functor(s)
One of the first constructions you usually see in set theory is that of the power set. Indeed, it is usually part of the very axioms of set theory. This construction is the object map of a functor. The power set functor
- Objects: To each set
we assign its power set , i.e., the set of all subsets of - Arrows: To each set map
, we assign the set map defined by sending a subset to its image .
You should verify for yourself that these maps satisfy the properties of a functor.
There is also a "contravariant" power set functor that is defined identically on objects, but associates to each set map
Forgetful functors
A functor that simply "forgets" some or all of the structure of an algebraic object is commonly called a forgetful (or underlying) functor[2]. For example, the forgetful functor
(We're using the letter
Below are some other common forgetful functors:
A fair question. For now the answer is simply "Let's wait and see." Soon we will see that many (all?) constructions and "universal properties" depend crucially on the category in which one is working. As such, being able to be incredibly specific about which category is being considered will often prove critically important.
Remember me not
Are there functors inverse to "forgetting"? Sadly, we will see that the answer to that question is generally no: that which is forgotten cannot be remembered. However, we will also see that there is a type of functor which can be regarded as complementary to forgetting (later to be codified in the idea of an adjoint).
For example, there is a functor
Note that these two functors are decidedly not inverses. For instance, even if
Abelianization
Suppose
- The subgroup
is normal in - The quotient group
is abelian - Any group morphism
carries commutators to commutators, hence the subgroup to the subgroup - Every group morphism
to an abelian group factors uniquely through the projection - The assignment
is the object function of a functor , called the abelianization functor (or sometimes factor-commutator functor). It is common to write for the quotient group , in which case this functor is denoted .
The abelianization functor is adjoint to the forgetful functor
A non-functor
Although nearly every common construction in algebra is the object function of a functor, there are a few notable exceptions. One such is the assignment to each group
The fact that the center construction is not functorial is a big hint that we're probably thinking about it "incorrectly." For a bit of insight into what is "really" going on, see here.
General linear group
For each commutative ring
Unit groups
This example is closely related to the previous. For each ring
Examples in topology
Singular homology in a given dimension
Similarly, the assignment of a homotopy group
Families of objects in a category
Suppose
For example, the set of objects of
In general, we have a (natural) bijection
This allows us to interchangeably think of families of objects in a given category
Suggested next notes
Natural transformations
Universal Properties I - Inspiring Examples