# Natural transformation

__: Central object of study in category theory__

**Short description**In category theory, a branch of mathematics, a **natural transformation** provides a way of transforming one functor into another while respecting the internal structure (i.e., the composition of morphisms) of the categories involved. Hence, a natural transformation can be considered to be a "morphism of functors". Informally, the notion of a natural transformation states that a particular map between functors can be done consistently over an entire category.

Indeed, this intuition can be formalized to define so-called functor categories. Natural transformations are, after categories and functors, one of the most fundamental notions of category theory and consequently appear in the majority of its applications.

## Definition

If [math]\displaystyle{ F }[/math] and [math]\displaystyle{ G }[/math] are functors between the categories [math]\displaystyle{ C }[/math] and [math]\displaystyle{ D }[/math], then a **natural transformation** [math]\displaystyle{ \eta }[/math] from [math]\displaystyle{ F }[/math] to [math]\displaystyle{ G }[/math] is a family of morphisms that satisfies two requirements.

- The natural transformation must associate, to every object [math]\displaystyle{ X }[/math] in [math]\displaystyle{ C }[/math], a morphism [math]\displaystyle{ \eta_X : F(X) \to G(X) }[/math] between objects of [math]\displaystyle{ D }[/math]. The morphism [math]\displaystyle{ \eta_X }[/math] is called the
**component**of [math]\displaystyle{ \eta }[/math] at [math]\displaystyle{ X }[/math]. - Components must be such that for every morphism [math]\displaystyle{ f :X \to Y }[/math] in [math]\displaystyle{ C }[/math] we have:

- [math]\displaystyle{ \eta_Y \circ F(f) = G(f) \circ \eta_X }[/math]

The last equation can conveniently be expressed by the commutative diagram

If both [math]\displaystyle{ F }[/math] and [math]\displaystyle{ G }[/math] are contravariant, the vertical arrows in the right diagram are reversed. If [math]\displaystyle{ \eta }[/math] is a natural transformation from [math]\displaystyle{ F }[/math] to [math]\displaystyle{ G }[/math], we also write [math]\displaystyle{ \eta : F \to G }[/math] or [math]\displaystyle{ \eta : F \Rightarrow G }[/math]. This is also expressed by saying the family of morphisms [math]\displaystyle{ \eta_X: F(X) \to G(X) }[/math] is **natural** in [math]\displaystyle{ X }[/math].

If, for every object [math]\displaystyle{ X }[/math] in [math]\displaystyle{ C }[/math], the morphism [math]\displaystyle{ \eta_X }[/math] is an isomorphism in [math]\displaystyle{ D }[/math], then [math]\displaystyle{ \eta }[/math] is said to be a **natural isomorphism** (or sometimes **natural equivalence** or **isomorphism of functors**). Two functors [math]\displaystyle{ F }[/math] and [math]\displaystyle{ G }[/math] are called *naturally isomorphic* or simply *isomorphic* if there exists a natural isomorphism from [math]\displaystyle{ F }[/math] to [math]\displaystyle{ G }[/math].

An **infranatural transformation** [math]\displaystyle{ \eta }[/math] from [math]\displaystyle{ F }[/math] to [math]\displaystyle{ G }[/math] is simply a family of morphisms [math]\displaystyle{ \eta_X : F(X) \to G(X) }[/math], for all [math]\displaystyle{ X }[/math] in [math]\displaystyle{ C }[/math]. Thus a natural transformation is an infranatural transformation for which [math]\displaystyle{ \eta_Y \circ F(f) = G(f) \circ \eta_X }[/math] for every morphism [math]\displaystyle{ f : X \to Y }[/math]. The **naturalizer** of [math]\displaystyle{ \eta }[/math], nat[math]\displaystyle{ (\eta) }[/math], is the largest subcategory of [math]\displaystyle{ C }[/math] containing all the objects of [math]\displaystyle{ C }[/math] on which [math]\displaystyle{ \eta }[/math] restricts to a natural transformation.

## Examples

### Opposite group

Statements such as

- "Every group is naturally isomorphic to its opposite group"

abound in modern mathematics. We will now give the precise meaning of this statement as well as its proof. Consider the category [math]\displaystyle{ \textbf{Grp} }[/math] of all groups with group homomorphisms as morphisms. If [math]\displaystyle{ (G, *) }[/math] is a group, we define its opposite group [math]\displaystyle{ (G^\text{op}, {*}^\text{op}) }[/math] as follows: [math]\displaystyle{ G^\text{op} }[/math] is the same set as [math]\displaystyle{ G }[/math], and the operation [math]\displaystyle{ *^\text{op} }[/math] is defined by [math]\displaystyle{ a *^\text{op} b = b * a }[/math]. All multiplications in [math]\displaystyle{ G^{\text{op}} }[/math] are thus "turned around". Forming the opposite group becomes a (covariant) functor from [math]\displaystyle{ \textbf{Grp} }[/math] to [math]\displaystyle{ \textbf{Grp} }[/math] if we define [math]\displaystyle{ f^{\text{op}} = f }[/math] for any group homomorphism [math]\displaystyle{ f: G \to H }[/math]. Note that [math]\displaystyle{ f^\text{op} }[/math] is indeed a group homomorphism from [math]\displaystyle{ G^\text{op} }[/math] to [math]\displaystyle{ H^\text{op} }[/math]:

- [math]\displaystyle{ f^\text{op}(a *^\text{op} b) = f(b * a) = f(b) * f(a) = f^\text{op}(a) *^\text{op} f^\text{op}(b). }[/math]

The content of the above statement is:

- "The identity functor [math]\displaystyle{ \text{Id}_{\textbf{Grp}}: \textbf{Grp} \to \textbf{Grp} }[/math] is naturally isomorphic to the opposite functor [math]\displaystyle{ {\text{op}}: \textbf{Grp} \to \textbf{Grp} }[/math]"

To prove this, we need to provide isomorphisms [math]\displaystyle{ \eta_G: G \to G^{\text{op}} }[/math] for every group [math]\displaystyle{ G }[/math], such that the above diagram commutes. Set [math]\displaystyle{ \eta_G(a) = a^{-1} }[/math]. The formulas [math]\displaystyle{ (a * b)^{-1} = b^{-1}*a^{-1}= a^{-1}*^{\text{op}} b^{-1} }[/math] and [math]\displaystyle{ (a^{-1})^{-1} = a }[/math] show that [math]\displaystyle{ \eta_G }[/math] is a group homomorphism with inverse [math]\displaystyle{ \eta_{G^\text{op}} }[/math]. To prove the naturality, we start with a group homomorphism [math]\displaystyle{ f : G \to H }[/math] and show [math]\displaystyle{ \eta_H \circ f = f^{\text{op}} \circ \eta_G }[/math], i.e. [math]\displaystyle{ (f(a))^{-1} = f^\text{op}(a^{-1}) }[/math] for all [math]\displaystyle{ a }[/math] in [math]\displaystyle{ G }[/math]. This is true since [math]\displaystyle{ f^{\text{op}} = f }[/math] and every group homomorphism has the property [math]\displaystyle{ (f(a))^{-1} = f(a^{-1}) }[/math].

### Abelianization

Given a group [math]\displaystyle{ G }[/math], we can define its abelianization [math]\displaystyle{ G^{\text{ab}} = G/ }[/math] [math]\displaystyle{ [G,G] }[/math]. Let [math]\displaystyle{ \pi_G: G \to G^{\text{ab}} }[/math] denote the projection map onto the cosets of [math]\displaystyle{ [G,G] }[/math]. This homomorphism is "natural in [math]\displaystyle{ G }[/math]", i.e., it defines a natural transformation, which we now check. Let [math]\displaystyle{ H }[/math] be a group. For any homomorphism [math]\displaystyle{ f : G \to H }[/math], we have that [math]\displaystyle{ [G,G] }[/math] is contained in the kernel of [math]\displaystyle{ \pi_H \circ f }[/math], because any homomorphism into an abelian group kills the commutator subgroup. Then [math]\displaystyle{ \pi_H \circ f }[/math] factors through [math]\displaystyle{ G^{\text{ab}} }[/math] as [math]\displaystyle{ f^{\text{ab}} \circ \pi_G = \pi_H \circ f }[/math] for the unique homomorphism [math]\displaystyle{ f^{\text{ab}} : G^{\text{ab}} \to H^{\text{ab}} }[/math]. This makes [math]\displaystyle{ {\text{ab}} : \textbf{Grp} \to \textbf{Grp} }[/math] a functor and [math]\displaystyle{ \pi }[/math] a natural transformation, but not a natural isomorphism, from the identity functor to [math]\displaystyle{ \text{ab} }[/math].

### Hurewicz homomorphism

Functors and natural transformations abound in algebraic topology, with the Hurewicz homomorphisms serving as examples. For any pointed topological space [math]\displaystyle{ (X,x) }[/math] and positive integer [math]\displaystyle{ n }[/math] there exists a group homomorphism

- [math]\displaystyle{ h_n \colon \pi_n(X,x) \to H_n(X) }[/math]

from the [math]\displaystyle{ n }[/math]-th homotopy group of [math]\displaystyle{ (X,x) }[/math] to the [math]\displaystyle{ n }[/math]-th homology group of [math]\displaystyle{ X }[/math]. Both [math]\displaystyle{ \pi_n }[/math] and [math]\displaystyle{ H_n }[/math] are functors from the category **Top ^{*}** of pointed topological spaces to the category

**Grp**of groups, and [math]\displaystyle{ h_n }[/math] is a natural transformation from [math]\displaystyle{ \pi_n }[/math] to [math]\displaystyle{ H_n }[/math].

### Determinant

Given commutative rings [math]\displaystyle{ R }[/math] and [math]\displaystyle{ S }[/math] with a ring homomorphism [math]\displaystyle{ f : R \to S }[/math], the respective groups of invertible [math]\displaystyle{ n \times n }[/math] matrices [math]\displaystyle{ \text{GL}_n(R) }[/math] and [math]\displaystyle{ \text{GL}_n(S) }[/math] inherit a homomorphism which we denote by [math]\displaystyle{ \text{GL}_n(f) }[/math], obtained by applying [math]\displaystyle{ f }[/math] to each matrix entry. Similarly, [math]\displaystyle{ f }[/math] restricts to a group homomorphism [math]\displaystyle{ f^* : R^* \to S^* }[/math], where [math]\displaystyle{ R^* }[/math] denotes the group of units of [math]\displaystyle{ R }[/math]. In fact, [math]\displaystyle{ \text{GL}_n }[/math] and [math]\displaystyle{ * }[/math] are functors from the category of commutative rings [math]\displaystyle{ \textbf{CRing} }[/math] to [math]\displaystyle{ \textbf{Grp} }[/math]. The determinant on the group [math]\displaystyle{ \text{GL}_n(R) }[/math], denoted by [math]\displaystyle{ \text{det}_R }[/math], is a group homomorphism

- [math]\displaystyle{ \mbox{det}_R \colon \mbox{GL}_n(R) \to R^* }[/math]

which is natural in [math]\displaystyle{ R }[/math]: because the determinant is defined by the same formula for every ring, [math]\displaystyle{ f \circ \text{det}_R = \text{det}_S\circ \text{GL}_n(f) }[/math] holds. This makes the determinant a natural transformation from [math]\displaystyle{ \text{GL}_n }[/math] to [math]\displaystyle{ * }[/math].

### Double dual of a vector space

If [math]\displaystyle{ K }[/math] is a field, then for every vector space [math]\displaystyle{ V }[/math] over [math]\displaystyle{ K }[/math] we have a "natural" injective linear map [math]\displaystyle{ V \to V^{**} }[/math] from the vector space into its double dual. These maps are "natural" in the following sense: the double dual operation is a functor, and the maps are the components of a natural transformation from the identity functor to the double dual functor.

### Finite calculus

For every abelian group [math]\displaystyle{ G }[/math], the set [math]\displaystyle{ \text{Hom}_\textbf{Set}(\mathbb{Z}, U(G)) }[/math] of functions from the integers to the underlying set of [math]\displaystyle{ G }[/math] forms an abelian group [math]\displaystyle{ V_{\mathbb{Z}}(G) }[/math] under pointwise addition. (Here [math]\displaystyle{ U }[/math] is the standard forgetful functor [math]\displaystyle{ U:\textbf{Ab} \to \textbf{Set} }[/math].) Given an [math]\displaystyle{ \textbf{Ab} }[/math] morphism [math]\displaystyle{ \varphi: G \to G' }[/math], the map [math]\displaystyle{ V_\mathbb{Z}(\varphi): V_\mathbb{Z}(G) \to V_\mathbb{Z}(G') }[/math] given by left composing [math]\displaystyle{ \varphi }[/math] with the elements of the former is itself a homomorphism of abelian groups; in this way we obtain a functor [math]\displaystyle{ V_{\mathbb{Z}}: \textbf{Ab} \to \textbf{Ab} }[/math]. The finite difference operator [math]\displaystyle{ \Delta_G }[/math] taking each function [math]\displaystyle{ f: \mathbb{Z} \to U(G) }[/math] to [math]\displaystyle{ \Delta(f): n \mapsto f(n+ 1) - f(n) }[/math] is a map from [math]\displaystyle{ V_{\mathbb{Z}}(G) }[/math] to itself, and the collection [math]\displaystyle{ \Delta }[/math] of such maps gives a natural transformation [math]\displaystyle{ \Delta: V_\mathbb{Z} \to V_\mathbb{Z} }[/math].

### Tensor-hom adjunction

Consider the category [math]\displaystyle{ \textbf{Ab} }[/math] of abelian groups and group homomorphisms. For all abelian groups [math]\displaystyle{ X }[/math], [math]\displaystyle{ Y }[/math] and [math]\displaystyle{ Z }[/math] we have a group isomorphism

- [math]\displaystyle{ \text{Hom}(X \otimes Y, Z) \to \text{Hom}(X, \text{Hom}(Y, Z)) }[/math].

These isomorphisms are "natural" in the sense that they define a natural transformation between the two involved functors [math]\displaystyle{ \textbf{Ab}^{\text{op}} \times \textbf{Ab}^{\text{op}} \times \textbf{Ab} \to \textbf{Ab} }[/math]. (Here "op" is the opposite category of [math]\displaystyle{ \textbf{Ab} }[/math], not to be confused with the trivial opposite group functor on [math]\displaystyle{ \textbf{Ab} }[/math] !)

This is formally the tensor-hom adjunction, and is an archetypal example of a pair of adjoint functors. Natural transformations arise frequently in conjunction with adjoint functors, and indeed, adjoint functors are defined by a certain natural isomorphism. Additionally, every pair of adjoint functors comes equipped with two natural transformations (generally not isomorphisms) called the *unit* and *counit*.

## Unnatural isomorphism

The notion of a natural transformation is categorical, and states (informally) that a particular map between functors can be done consistently over an entire category. Informally, a particular map (esp. an isomorphism) between individual objects (not entire categories) is referred to as a "natural isomorphism", meaning implicitly that it is actually defined on the entire category, and defines a natural transformation of functors; formalizing this intuition was a motivating factor in the development of category theory. Conversely, a particular map between particular objects may be called an **unnatural isomorphism** (or "this isomorphism is not natural") if the map cannot be extended to a natural transformation on the entire category. Given an object [math]\displaystyle{ X, }[/math] a functor [math]\displaystyle{ G }[/math] (taking for simplicity the first functor to be the identity) and an isomorphism [math]\displaystyle{ \eta\colon X \to G(X), }[/math] proof of unnaturality is most easily shown by giving an automorphism [math]\displaystyle{ A\colon X \to X }[/math] that does not commute with this isomorphism (so [math]\displaystyle{ \eta \circ A \neq G(A) \circ \eta }[/math]). More strongly, if one wishes to prove that [math]\displaystyle{ X }[/math] and [math]\displaystyle{ G(X) }[/math] are not naturally isomorphic, without reference to a particular isomorphism, this requires showing that for *any* isomorphism [math]\displaystyle{ \eta }[/math], there is some [math]\displaystyle{ A }[/math] with which it does not commute; in some cases a single automorphism [math]\displaystyle{ A }[/math] works for all candidate isomorphisms [math]\displaystyle{ \eta }[/math] while in other cases one must show how to construct a different [math]\displaystyle{ A_\eta }[/math] for each isomorphism. The maps of the category play a crucial role – any infranatural transform is natural if the only maps are the identity map, for instance.

This is similar (but more categorical) to concepts in group theory or module theory, where a given decomposition of an object into a direct sum is "not natural", or rather "not unique", as automorphisms exist that do not preserve the direct sum decomposition – see Structure theorem for finitely generated modules over a principal ideal domain § Uniqueness for example.

Some authors distinguish notationally, using [math]\displaystyle{ \cong }[/math] for a natural isomorphism and [math]\displaystyle{ \approx }[/math] for an unnatural isomorphism, reserving [math]\displaystyle{ = }[/math] for equality (usually equality of maps).

### Example: fundamental group of torus

As an example of the distinction between the functorial statement and individual objects, consider homotopy groups of a product space, specifically the fundamental group of the torus.

The homotopy groups of a product space are naturally the product of the homotopy groups of the components, [math]\displaystyle{ \pi_n((X,x_0) \times (Y,y_0)) \cong \pi_n((X,x_0)) \times \pi_n((Y,y_0)), }[/math] with the isomorphism given by projection onto the two factors, fundamentally because maps into a product space are exactly products of maps into the components – this is a functorial statement.

However, the torus (which is abstractly a product of two circles) has fundamental group isomorphic to [math]\displaystyle{ Z^2 }[/math], but the splitting [math]\displaystyle{ \pi_1(T,t_0) \approx \mathbf{Z} \times \mathbf{Z} }[/math] is not natural. Note the use of [math]\displaystyle{ \approx }[/math], [math]\displaystyle{ \cong }[/math], and [math]\displaystyle{ = }[/math]:^{[lower-alpha 1]}

- [math]\displaystyle{ \pi_1(T,t_0) \approx \pi_1(S^1,x_0) \times \pi_1(S^1,y_0) \cong \mathbf{Z} \times \mathbf{Z} = \mathbf{Z}^2. }[/math]

This abstract isomorphism with a product is not natural, as some isomorphisms of [math]\displaystyle{ T }[/math] do not preserve the product: the self-homeomorphism of [math]\displaystyle{ T }[/math] (thought of as the quotient space [math]\displaystyle{ R^2/\mathbb{Z}^2 }[/math]) given by [math]\displaystyle{ \left(\begin{smallmatrix}1 & 1\\0 & 1\end{smallmatrix}\right) }[/math] (geometrically a Dehn twist about one of the generating curves) acts as this matrix on [math]\displaystyle{ \mathbb{Z}^2 }[/math] (it's in the general linear group [math]\displaystyle{ \text{GL}(\mathbb{Z}, 2) }[/math] of invertible integer matrices), which does not preserve the decomposition as a product because it is not diagonal. However, if one is given the torus as a product [math]\displaystyle{ (T,t_0) = (S^1,x_0) \times (S^1,y_0) }[/math] – equivalently, given a decomposition of the space – then the splitting of the group follows from the general statement earlier. In categorical terms, the relevant category (preserving the structure of a product space) is "maps of product spaces, namely a pair of maps between the respective components".

Naturality is a categorical notion, and requires being very precise about exactly what data is given – the torus as a space that happens to be a product (in the category of spaces and continuous maps) is different from the torus presented as a product (in the category of products of two spaces and continuous maps between the respective components).

### Example: dual of a finite-dimensional vector space

Every finite-dimensional vector space is isomorphic to its dual space, but there may be many different isomorphisms between the two spaces. There is in general no natural isomorphism between a finite-dimensional vector space and its dual space.^{[1]} However, related categories (with additional structure and restrictions on the maps) do have a natural isomorphism, as described below.

The dual space of a finite-dimensional vector space is again a finite-dimensional vector space of the same dimension, and these are thus isomorphic, since dimension is the only invariant of finite-dimensional vector spaces over a given field. However, in the absence of additional constraints (such as a requirement that maps preserve the chosen basis), the map from a space to its dual is not unique, and thus such an isomorphism requires a choice, and is "not natural". On the category of finite-dimensional vector spaces and linear maps, one can define an infranatural isomorphism from vector spaces to their dual by choosing an isomorphism for each space (say, by choosing a basis for every vector space and taking the corresponding isomorphism), but this will not define a natural transformation. Intuitively this is because it required a choice, rigorously because *any* such choice of isomorphisms will not commute with, say, the zero map; see (Mac Lane Birkhoff) for detailed discussion.

Starting from finite-dimensional vector spaces (as objects) and the identity and dual functors, one can define a natural isomorphism, but this requires first adding additional structure, then restricting the maps from "all linear maps" to "linear maps that respect this structure". Explicitly, for each vector space, require that it comes with the data of an isomorphism to its dual, [math]\displaystyle{ \eta_V\colon V \to V^* }[/math]. In other words, take as objects vector spaces with a nondegenerate bilinear form [math]\displaystyle{ b_V\colon V \times V \to K }[/math]. This defines an infranatural isomorphism (isomorphism for each object). One then restricts the maps to only those maps [math]\displaystyle{ T\colon V \to U }[/math] that commute with the isomorphisms: [math]\displaystyle{ T^*(\eta_{U}(T(v))) = \eta_{V}(v) }[/math] or in other words, preserve the bilinear form: [math]\displaystyle{ b_{U}(T(v),T(w))=b_V(v,w) }[/math]. (These maps define the *naturalizer* of the isomorphisms.) The resulting category, with objects finite-dimensional vector spaces with a nondegenerate bilinear form, and maps linear transforms that respect the bilinear form, by construction has a natural isomorphism from the identity to the dual (each space has an isomorphism to its dual, and the maps in the category are required to commute). Viewed in this light, this construction (add transforms for each object, restrict maps to commute with these) is completely general, and does not depend on any particular properties of vector spaces.

In this category (finite-dimensional vector spaces with a nondegenerate bilinear form, maps linear transforms that respect the bilinear form), the dual of a map between vector spaces can be identified as a transpose. Often for reasons of geometric interest this is specialized to a subcategory, by requiring that the nondegenerate bilinear forms have additional properties, such as being symmetric (orthogonal matrices), symmetric and positive definite (inner product space), symmetric sesquilinear (Hermitian spaces), skew-symmetric and totally isotropic (symplectic vector space), etc. – in all these categories a vector space is naturally identified with its dual, by the nondegenerate bilinear form.

## Operations with natural transformations

### Vertical composition

If [math]\displaystyle{ \eta : F \Rightarrow G }[/math] and [math]\displaystyle{ \epsilon: G \Rightarrow H }[/math] are natural transformations between functors [math]\displaystyle{ F, G, H: C \to D }[/math], then we can compose them to get a natural transformation [math]\displaystyle{ \epsilon \circ \eta: F \Rightarrow H }[/math]. This is done componentwise:

- [math]\displaystyle{ (\epsilon \circ \eta)_X = \epsilon_X \circ \eta_X }[/math].

This vertical composition of natural transformations is associative and has an identity, and allows one to consider the collection of all functors [math]\displaystyle{ C \to D }[/math] itself as a category (see below under Functor categories).
The identity natural transformation [math]\displaystyle{ \mathrm{id}_F }[/math] on functor [math]\displaystyle{ F }[/math] has components [math]\displaystyle{ (\mathrm{id}_F)_X = \mathrm{id}_{F(X)} }[/math].^{[2]}

- For [math]\displaystyle{ \eta : F \Rightarrow G }[/math], [math]\displaystyle{ \mathrm{id}_G \circ \eta = \eta = \eta \circ \mathrm{id}_F }[/math].

### Horizontal composition

If [math]\displaystyle{ \eta: F \Rightarrow G }[/math] is a natural transformation between functors [math]\displaystyle{ F, G: C \to D }[/math] and [math]\displaystyle{ \epsilon: J \Rightarrow K }[/math] is a natural transformation between functors [math]\displaystyle{ J, K: D \to E }[/math], then the composition of functors allows a composition of natural transformations [math]\displaystyle{ \epsilon * \eta: J \circ F \Rightarrow K \circ G }[/math] with components

- [math]\displaystyle{ (\epsilon * \eta)_X = \epsilon_{G(X)} \circ J(\eta_X) = K(\eta_X) \circ \epsilon_{F(X)} }[/math].

By using whiskering (see below), we can write

- [math]\displaystyle{ (\epsilon * \eta)_X = (\epsilon G)_X \circ (J \eta)_X = (K \eta)_X \circ (\epsilon F)_X }[/math],

hence

- [math]\displaystyle{ \epsilon * \eta = \epsilon G \circ J \eta = K \eta \circ \epsilon F }[/math].

This horizontal composition of natural transformations is also associative with identity. This identity is the identity natural transformation on the identity functor, i.e., the natural transformation that associate to each object its identity morphism: for object [math]\displaystyle{ X }[/math] in category [math]\displaystyle{ C }[/math], [math]\displaystyle{ (\mathrm{id}_{\mathrm{id}_C})_X = \mathrm{id}_{\mathrm{id}_C(X)} = \mathrm{id}_X }[/math].

- For [math]\displaystyle{ \eta: F \Rightarrow G }[/math] with [math]\displaystyle{ F, G: C \to D }[/math], [math]\displaystyle{ \mathrm{id}_{\mathrm{id}_D} * \eta = \eta = \eta * \mathrm{id}_{\mathrm{id}_C} }[/math].

As identity functors [math]\displaystyle{ \mathrm{id}_C }[/math] and [math]\displaystyle{ \mathrm{id}_D }[/math] are functors, the identity for horizontal composition is also the identity for vertical composition, but not vice versa.^{[3]}

### Whiskering

Whiskering is an external binary operation between a functor and a natural transformation.^{[4]}^{[5]}

If [math]\displaystyle{ \eta: F \Rightarrow G }[/math] is a natural transformation between functors [math]\displaystyle{ F, G: C \to D }[/math], and [math]\displaystyle{ H: D \to E }[/math] is another functor, then we can form the natural transformation [math]\displaystyle{ H \eta: H \circ F \Rightarrow H \circ G }[/math] by defining

- [math]\displaystyle{ (H \eta)_X = H(\eta_X) }[/math].

If on the other hand [math]\displaystyle{ K: B \to C }[/math] is a functor, the natural transformation [math]\displaystyle{ \eta K: F \circ K \Rightarrow G \circ K }[/math] is defined by

- [math]\displaystyle{ (\eta K)_X = \eta_{K(X)} }[/math].

It's also an horizontal composition where one of the natural transformations is the identity natural transformation:

- [math]\displaystyle{ H \eta = \mathrm{id}_H * \eta }[/math] and [math]\displaystyle{ \eta K = \eta * \mathrm{id}_K }[/math].

Note that [math]\displaystyle{ \mathrm{id}_H }[/math] (resp. [math]\displaystyle{ \mathrm{id}_K }[/math]) is generally not the left (resp. right) identity of horizontal composition [math]\displaystyle{ * }[/math] ([math]\displaystyle{ H \eta \neq \eta }[/math] and [math]\displaystyle{ \eta K \neq \eta }[/math] in general), except if [math]\displaystyle{ H }[/math] (resp. [math]\displaystyle{ K }[/math]) is the identity functor of the category [math]\displaystyle{ D }[/math] (resp. [math]\displaystyle{ C }[/math]).

### Interchange law

The two operations are related by an identity which exchanges vertical composition with horizontal composition: if we have four natural transformations [math]\displaystyle{ \alpha, \alpha', \beta, \beta' }[/math] as shown on the image to the right, then the following identity holds:

- [math]\displaystyle{ (\beta' \circ \alpha') * (\beta \circ \alpha) = (\beta' * \beta) \circ (\alpha' * \alpha) }[/math].

Vertical and horizontal compositions are also linked through identity natural transformations:

- for [math]\displaystyle{ F: C \to D }[/math] and [math]\displaystyle{ G: D \to E }[/math], [math]\displaystyle{ \mathrm{id}_G * \mathrm{id}_F = \mathrm{id}_{G \circ F} }[/math].
^{[6]}

As whiskering is horizontal composition with an identity, the interchange law gives immediately the compact formulas of horizontal composition of [math]\displaystyle{ \eta: F \Rightarrow G }[/math] and [math]\displaystyle{ \epsilon: J \Rightarrow K }[/math] without having to analyze components and the commutative diagram:

- [math]\displaystyle{ \begin{align} \epsilon * \eta & = (\epsilon \circ \mathrm{id}_J) * (\mathrm{id}_G \circ \eta) = (\epsilon * \mathrm{id}_G) \circ (\mathrm{id}_J * \eta) = \epsilon G \circ J \eta \\ & = (\mathrm{id}_K \circ \epsilon) * (\eta \circ \mathrm{id}_F) = (\mathrm{id}_K * \eta) \circ (\epsilon * \mathrm{id}_F) = K \eta \circ \epsilon F \end{align} }[/math].

## Functor categories

If [math]\displaystyle{ C }[/math] is any category and [math]\displaystyle{ I }[/math] is a small category, we can form the functor category [math]\displaystyle{ C^I }[/math] having as objects all functors from [math]\displaystyle{ I }[/math] to [math]\displaystyle{ C }[/math] and as morphisms the natural transformations between those functors. This forms a category since for any functor [math]\displaystyle{ F }[/math] there is an identity natural transformation [math]\displaystyle{ 1_F: F \to F }[/math] (which assigns to every object [math]\displaystyle{ X }[/math] the identity morphism on [math]\displaystyle{ F(X) }[/math]) and the composition of two natural transformations (the "vertical composition" above) is again a natural transformation.

The isomorphisms in [math]\displaystyle{ C^I }[/math] are precisely the natural isomorphisms. That is, a natural transformation [math]\displaystyle{ \eta: F \to G }[/math] is a natural isomorphism if and only if there exists a natural transformation [math]\displaystyle{ \epsilon: G \to F }[/math] such that [math]\displaystyle{ \eta\epsilon = 1_G }[/math] and [math]\displaystyle{ \epsilon\eta = 1_F }[/math].

The functor category [math]\displaystyle{ C^I }[/math] is especially useful if [math]\displaystyle{ I }[/math] arises from a directed graph. For instance, if [math]\displaystyle{ I }[/math] is the category of the directed graph • → •, then [math]\displaystyle{ C^I }[/math] has as objects the morphisms of [math]\displaystyle{ C }[/math], and a morphism between [math]\displaystyle{ \phi: U \to V }[/math] and [math]\displaystyle{ \psi: X \to Y }[/math] in [math]\displaystyle{ C^I }[/math] is a pair of morphisms [math]\displaystyle{ f: U \to X }[/math] and [math]\displaystyle{ g: V \to Y }[/math] in [math]\displaystyle{ C }[/math] such that the "square commutes", i.e. [math]\displaystyle{ \psi \circ f = g \circ \phi }[/math].

More generally, one can build the 2-category [math]\displaystyle{ \textbf{Cat} }[/math] whose

- 0-cells (objects) are the small categories,
- 1-cells (arrows) between two objects [math]\displaystyle{ C }[/math] and [math]\displaystyle{ D }[/math] are the functors from [math]\displaystyle{ C }[/math] to [math]\displaystyle{ D }[/math],
- 2-cells between two 1-cells (functors) [math]\displaystyle{ F:C\to D }[/math] and [math]\displaystyle{ G:C\to D }[/math] are the natural transformations from [math]\displaystyle{ F }[/math] to [math]\displaystyle{ G }[/math].

The horizontal and vertical compositions are the compositions between natural transformations described previously. A functor category [math]\displaystyle{ C^I }[/math] is then simply a hom-category in this category (smallness issues aside).

### More examples

Every limit and colimit provides an example for a simple natural transformation, as a cone amounts to a natural transformation with the diagonal functor as domain. Indeed, if limits and colimits are defined directly in terms of their universal property, they are universal morphisms in a functor category.

## Yoneda lemma

If [math]\displaystyle{ X }[/math] is an object of a locally small category [math]\displaystyle{ C }[/math], then the assignment [math]\displaystyle{ Y \mapsto \text{Hom}_{C}(X, Y) }[/math] defines a covariant functor [math]\displaystyle{ F_X: C \to \textbf{Set} }[/math]. This functor is called *representable* (more generally, a representable functor is any functor naturally isomorphic to this functor for an appropriate choice of [math]\displaystyle{ X }[/math]). The natural transformations from a representable functor to an arbitrary functor [math]\displaystyle{ F: C \to \textbf{Set} }[/math] are completely known and easy to describe; this is the content of the Yoneda lemma.

## Historical notes

Saunders Mac Lane, one of the founders of category theory, is said to have remarked, "I didn't invent categories to study functors; I invented them to study natural transformations."^{[7]} Just as the study of groups is not complete without a study of homomorphisms, so the study of categories is not complete without the study of functors. The reason for Mac Lane's comment is that the study of functors is itself not complete without the study of natural transformations.

The context of Mac Lane's remark was the axiomatic theory of homology. Different ways of constructing homology could be shown to coincide: for example in the case of a simplicial complex the groups defined directly would be isomorphic to those of the singular theory. What cannot easily be expressed without the language of natural transformations is how homology groups are compatible with morphisms between objects, and how two equivalent homology theories not only have the same homology groups, but also the same morphisms between those groups.

## See also

## Notes

- ↑
**Z**^{n}could be defined as the*n*-fold product of**Z**, or as the product of**Z**^{n − 1}and**Z**, which are subtly different sets (though they can be naturally identified, which would be notated as ≅). Here we've fixed a definition, and in any case they coincide for*n*= 2.

## References

- ↑ (Mac Lane Birkhoff)
- ↑ "Identity natural transformation in nLab". https://ncatlab.org/nlab/show/identity+natural+transformation.
- ↑ "Natural Transformations". 7 April 2015. https://bartoszmilewski.com/2015/04/07/natural-transformations/.
- ↑ "Definition:Whiskering - ProofWiki". https://proofwiki.org/wiki/Definition:Whiskering.
- ↑ "Whiskering in nLab". https://ncatlab.org/nlab/show/whiskering.
- ↑ https://arxiv.org/pdf/1612.09375v1.pdf, p. 38
- ↑ (Mac Lane 1998)

- Mac Lane, Saunders (1998),
*Categories for the Working Mathematician*, Graduate Texts in Mathematics**5**(2nd ed.), Springer-Verlag, p. 16, ISBN 0-387-98403-8 - Mac Lane, Saunders; Birkhoff, Garrett (1999),
*Algebra*(3rd ed.), AMS Chelsea Publishing, ISBN 0-8218-1646-2. - Awodey, Steve (2010).
*Category theory*. Oxford New York: Oxford University Press. p. 156. ISBN 978-0199237180. https://archive.org/details/categorytheoryse00awod. - Lane, Saunders (1992).
*Sheaves in geometry and logic : a first introduction to topos theory*. New York: Springer-Verlag. p. 13. ISBN 0387977104. https://archive.org/details/sheavesgeometryl00macl_937.

## External links

- nLab, a wiki project on mathematics, physics and philosophy with emphasis on the
*n*-categorical point of view - André Joyal, CatLab, a wiki project dedicated to the exposition of categorical mathematics
- Hillman, Chris (2001). "A Categorical Primer": formal introduction to category theory.
- J. Adamek, H. Herrlich, G. Strecker, Abstract and Concrete Categories-The Joy of Cats
- Stanford Encyclopedia of Philosophy: "Category Theory"—by Jean-Pierre Marquis. Extensive bibliography.
- List of academic conferences on category theory
- Baez, John, 1996,"The Tale of
*n*-categories." An informal introduction to higher categories. - WildCats is a category theory package for Mathematica. Manipulation and visualization of objects, morphisms, categories, functors, natural transformations, universal properties.
- The catsters, a YouTube channel about category theory.
- Video archive of recorded talks relevant to categories, logic and the foundations of physics.
- Interactive Web page which generates examples of categorical constructions in the category of finite sets.

Original source: https://en.wikipedia.org/wiki/Natural transformation.
Read more |