| ID | 33bb089b-4ab6-4454-8a6b-c9272b5cf007 |
|---|---|
| DeertopiaVisibility | public |
| ROAM_ALIASES | "Naturality condition" |
Natural transformation
As EilenbergβMac Lane first observed, βcategoryβ has been defined in order to define βfunctorβ and βfunctorβ has been defined in order to define βnatural transformation.β
In category theory, a natural transformation defines a mapping between functors.
Definition
The notion of a mapping between parallel mappings should remind you of homotopies except for the fact that natural transformations are not generally invertible [cite:@riehl2017category]. A natural transformations is invertible iff it is comprised solely of isomorphisms, in which case it is called a natural isomorphism.
A natural transformation between homogeneous functors is a family of mappings such that, for any , is a -morphism . These morphisms are called the components of the natural transformation. Further, it is required that for any -morphism , the naturality condition commutes.
When defining a specific natural transformation, it is usually most convenient to say "the arrows are natural," meaning that each arrow defines a component of the natural transformation.[cite:@riehl2017category]
Examples
Power set inclusions
There is a natural transformation from the identity functor to the covariant power set functor whose components are inclusions carrying each element to the singleton . The naturality condition specialises to and does indeed commute.
Natural transformations between actions
For a group , an action is defined by a functor associated with some object equipped with a left action of . Since hosts only a single object, a natural transformation between two actions consists of just one morphism . The lone morphism is said to be -equivalent, meaning that the diagram commutes.
Categorification of the natural numbers
This example constructs a categorification of the natural numbers and uses natural isomorphisms to describe laws of arithmetic.
Given sets and , let denote their cartesian product, let denote their disjoint union, and let denote the set of functions . The relation between these operations are defined by the following natural isomorphisms:
Distributivity of over , defined between a pair of functors :
Distributivity of exponentiation over , defined between functors :
Products of powers, defined between functors :
Curry/uncurry isomorphism, defined between functors :
Notice how each variable appearing as an exponent is contravariant. This is because the map is a contravariant functor β namely, the two-sided represented functor.
We can reverse this "categorification" to understand the concept's meaning. We can decategorify by restricting the featured natural isomorphisms to , the category of finite sets and bijections between them, and rewritng the isomorphisms in terms of natural numbers , , and in place of the sets [cite:@riehl2017category].
Natural transformations between hom-functors
| ID | 47e08ece-75d0-4879-9b98-9f1d6087687e |
|---|---|
| DeertopiaVisibility | public |
| ROAM_EXCLUDE | t |
A natural transformation between hom-functors arises for any two morphisms , in a locally-small category .[cite:@riehl2017category] Post-composition by and pre-composition by define functions between hom-sets as in where denotes a function , and similar is the case of . The various instantiations of are then natural and define .
It is important to remember that our notation suggests that is "polymorphic" in a sense.
Notation
Riehl and Wikipedia always use to denote a natural transformation.[cite:@riehl2017category] However, one could justify usage of just as functors share notation with morphisms: natural transformations are morphisms in the functor category, just as functors are morphisms in the category of (small) categories.
Composition
Interestingly, natural transformations have not one, but two notions of composition. The former, vertical composition, takes natural transformations and and gives a single transformation . Orthogonally, horizontal composition inputs natural transformations and and spits out a transformation .
Vertical composition of natural transformations
Vertical composition is what one typically thinks of when they hear "composition."
Given natural transformations and , their vertical composition is a natural transformation defined by the concatenation of 's and 's naturality conditions:[cite:@enwiki:1294050027] Vertical composition is associative and has identity per the natural transformation \id{F} : F \naturalto F ParseError: Function "\id" is not trusted at position 1: \̲i̲d̲{F} : F \natura⦠whose components are identity morphisms. This paves way for its use in the definition of the functor category, the category of functors and natural transformations between them.
Horizontal composition of natural transformations
Given natural transformations and , their horizontal composition is defined by first transforming the 'outside,' then transforming the 'inside:'[cite:@enwiki:1294050027]