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". Indeed this intuition can be formalized to define so called functor categories. Natural transformations are, after categories and functors, one of the most basic notions of categorical algebra and consequently appear in the majority of its applications.
If F and G are covariant functors between the categories C and D, then a natural transformation η from F to G associates to every object X in C a morphism ηX : F(X) → G(X) in D called the component of η at X, such that for every morphism f : X → Y in C we have ηY O F(f) = G(f) O ηX. This equation can conveniently be expressed by the commutative diagram
If both F and G are contravariant, the horizontal arrows in this diagram are reversed. If η is a natural transformation from F to G, we also write η : F → G. This is also expressed by saying the family of morphisms ηX : F(X) → G(X) is natural in X.
If, for every object X in C, the morphism ηX is an isomorphism in D, then η is said to be a natural isomorphism (or sometimes natural equivalence or isomorphism of functors). Two functors F and G are called naturally isomorphic or simply isomorphic if there exists a natural isomorphism from F to G.
An infranatural transformation η from F to G is simply a family of morphisms ηX: F(X) → G(X). Thus a natural transformation is an infranatural transformation for which ηY O F(f) = G(f) O ηX for every morphism f : X → Y. Clearly every natural transformation is an infranatural tranformation. The naturalizer of η, nat(η), is the largest subcategory of C containing all the objects of C on which η restricts to a natural transformation.
Statements like
If K is a field, then for every vector space V over K we have a "natural" injective linear map V → V** 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 form a natural transformation from the identity functor to the double dual functor.
As a counterexample, every finite dimensional vector space is isomorphic to its dual space. This isomorphism relies on an arbitrary choice of basis, and is not natural, though there is an infranatural transformation. More generally, any vector spaces with the same dimensionality are isomorphic, but not naturally so. (Note however that if the space has a nondegenerate bilinear form, then there is a natural isomorphism between the space and its dual. Here the space is viewed as an object in the category of vector spaces and transposes of maps.)
Consider the category Ab of abelian groups and group homomorphisms. For all abelian groups X, Y and Z we have a group isomorphism
Natural transformations arise frequently in conjunction with adjoint functors. Indeed, adjoint functors are defined by a certain natural isomorphism. Additionally, every pair of adjoint functors come equipped with two natural transformations (generally not isomorphisms) called the unit and counit.
If η : F → G and ε : G → H are natural transformations between functors F,G:C → D, then we can compose them to get a natural transformation εη : F → H. This is done componentwise: (εη)X = εXηX. This "vertical composition" of natural transformation is associative and has an identity, and allows one to consider the collection of all functors C → D itself as a category (see below under Functor categories).
Natural transformations also have a "horizontal composition". If η:F → G is a natural transformation between functors F,G:C → D and ε: J → K is a natural transformation between functors J,K:D → E, then the composition of functors allows a composition of natural transformations η ˆ ε: JF → KG. This operation is also associative with identity, and the identity coincides with that for vertical composition. The two operations are related by an identity which exchanges vertical composition with horizontal composition.
A natural transformation η : F → G is a natural isomorphism if and only if there exists a natural transformation ε : G → F such that ηε = 1G and εη = 1F (where 1F : F → F is the natural transformation assigning to every object X the identity morphism on F(X)).
If η : F → G is a natural transformation between functors F,G:C → D, and H : D → E is another functor, then we can form the natural transformation Hη : HF → HG by defining (Hη)X = H(ηX). If on the other hand K : B → C is a functor, the natural transformation ηK : FK → GK is defined by (ηK)X = ηK(X).
If C is any category and I is a small category, we can form the functor category CI having as objects all functors from I to C and as morphisms the natural transformations between those functors. This is especially useful if I arises from a directed graph. For instance, if I is the category of the directed graph • → •, then CI has as objects the morphisms of C, and a morphism between φ : U → V and ψ : X → Y in CI is a pair of morphisms f : U → X and g : V → Y in C such that the "square commutes", i.e. ψ f = g φ.
More generally, one can build the 2-category Cat whose
Main article: Yoneda lemma
If X is an object of the category C, then the assignment Y HomC(X, Y) defines a covariant functor FX : C → Set. This functor is called representable (more generally, a representable functor is any functor naturally isomorphic to this functor for an appropriate choice of X). The natural transformations from a representable functor to an arbitrary functor F : C → Set are completely known and easy to describe; this is the content of the Yoneda lemma.
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." 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, and those of the singular theory, would be isomorphic. 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.
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Natural transformation".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world