All Topics  
Natural transformation

 

   Email Print
   Bookmark   Link






 

Natural transformation



 
 
In category theory
Category theory

In mathematics, category theory deals in an abstract way with mathematical structures and relationships between them: it abstracts from set s and function s to objects linked in diagrams by morphisms or arrows....
, a branch of mathematics
Mathematics

Mathematics is the study of quantity, structure, space, change, and related topics of pattern and form. Mathematicians seek out patterns whether found in numbers, space, natural science, computers, imaginary abstractions, or elsewhere....
, a natural transformation provides a way of transforming one functor
Functor

In category theory, a branch of mathematics, a functor is a special type of mapping between categories. Functors can be thought of as morphisms in the category of small categories....
 into another while respecting the internal structure (i.e. the composition of morphism
Morphism

In mathematics, a morphism is an Abstraction derived from structure-preserving map between two mathematical structures.The study of morphisms and of the structures over which they are defined, is central to category theory....
s) 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
Functor category

In category theory, a branch of mathematics, the functors between two given categories can themselves be turned into a category; the morphisms in this functor category are natural transformations between functors....
. Natural transformations are, after categories and functors, one of the most basic notions of category theory
Category theory

In mathematics, category theory deals in an abstract way with mathematical structures and relationships between them: it abstracts from set s and function s to objects linked in diagrams by morphisms or arrows....
 and consequently appear in the majority of its applications.

i>F and G are functor
Functor

In category theory, a branch of mathematics, a functor is a special type of mapping between categories. Functors can be thought of as morphisms in the category of small categories....
s between the categories C and D, then a natural transformation ? from F to G associates to every object X in C a morphism
Morphism

In mathematics, a morphism is an Abstraction derived from structure-preserving map between two mathematical structures.The study of morphisms and of the structures over which they are defined, is central to category theory....
 ?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:

This equation can conveniently be expressed by the commutative diagram
Commutative diagram

In mathematics, and especially in category theory a commutative diagram is a diagram of objects, also known as vertices, and morphisms, also known as arrows or edges, such that when selecting two objects any directed path through the diagram leads to the same result by composition....


If both F and G are contravariant, the horizontal arrows in this diagram are reversed.






Discussion
Ask a question about 'Natural transformation'
Start a new discussion about 'Natural transformation'
Answer questions from other users
Full Discussion Forum



Encyclopedia


In category theory
Category theory

In mathematics, category theory deals in an abstract way with mathematical structures and relationships between them: it abstracts from set s and function s to objects linked in diagrams by morphisms or arrows....
, a branch of mathematics
Mathematics

Mathematics is the study of quantity, structure, space, change, and related topics of pattern and form. Mathematicians seek out patterns whether found in numbers, space, natural science, computers, imaginary abstractions, or elsewhere....
, a natural transformation provides a way of transforming one functor
Functor

In category theory, a branch of mathematics, a functor is a special type of mapping between categories. Functors can be thought of as morphisms in the category of small categories....
 into another while respecting the internal structure (i.e. the composition of morphism
Morphism

In mathematics, a morphism is an Abstraction derived from structure-preserving map between two mathematical structures.The study of morphisms and of the structures over which they are defined, is central to category theory....
s) 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
Functor category

In category theory, a branch of mathematics, the functors between two given categories can themselves be turned into a category; the morphisms in this functor category are natural transformations between functors....
. Natural transformations are, after categories and functors, one of the most basic notions of category theory
Category theory

In mathematics, category theory deals in an abstract way with mathematical structures and relationships between them: it abstracts from set s and function s to objects linked in diagrams by morphisms or arrows....
 and consequently appear in the majority of its applications.

Definition

If F and G are functor
Functor

In category theory, a branch of mathematics, a functor is a special type of mapping between categories. Functors can be thought of as morphisms in the category of small categories....
s between the categories C and D, then a natural transformation ? from F to G associates to every object X in C a morphism
Morphism

In mathematics, a morphism is an Abstraction derived from structure-preserving map between two mathematical structures.The study of morphisms and of the structures over which they are defined, is central to category theory....
 ?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:

This equation can conveniently be expressed by the commutative diagram
Commutative diagram

In mathematics, and especially in category theory a commutative diagram is a diagram of objects, also known as vertices, and morphisms, also known as arrows or edges, such that when selecting two objects any directed path through the diagram leads to the same result by composition....


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 or ? : 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
Isomorphism

In abstract algebra, an isomorphism is a bijection map f such that both f and its inverse function f −1 are homomorphisms, i.e., structure-preserving mappings....
 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. The naturalizer of ?, nat(?), is the largest subcategory
Subcategory

In mathematics, a subcategory of a category C is a category S whose objects are objects in C and whose morphisms are morphisms in C with the same identities and composition of morphisms....
 of C containing all the objects of C on which ? restricts to a natural transformation.

Examples


A worked example


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 Grp of all group
Group (mathematics)

In mathematics, a group is an algebraic structure consisting of a set together with an Binary operation that combines any two of its element to form a third element....
s with group homomorphism
Group homomorphism

In mathematics, given two group and , a group homomorphism from to is a function h : G ? H such that for all u and v in G it holds that...
s as morphisms. If (G,*) is a group, we define its opposite group (Gop,*op) as follows: Gop is the same set as G, and the operation *op is defined by a*opb = b*a. All multiplications in Gop are thus "turned around". Forming the opposite
Opposite category

In category theory, a branch of mathematics, the opposite category or dual category Cop of a given category C is formed by reversing the morphisms, i.e....
 group becomes a (covariant!) functor from Grp to Grp if we define fop = f for any group homomorphism f: G ? H. Note that fop is indeed a group homomorphism from Gop to Hop:
fop(a*opb) = f(b*a) = f(b)*f(a) = fop(a)*opfop(b).
The content of the above statement is:
"The identity functor IdGrp : GrpGrp is naturally isomorphic to the opposite functor -op : GrpGrp."
To prove this, we need to provide isomorphisms ?G : G ? Gop for every group G, such that the above diagram commutes. Set ?G(a) = a-1. The formulas (ab)-1 = b-1 a-1 and (a-1)-1 = a show that ?G is a group homomorphism which is its own inverse. To prove the naturality, we start with a group homomorphism f : G ? H and show ?H o f = fop o ?G, i.e. (f(a))-1 = fop(a-1) for all a in G. This is true since fop = f and every group homomorphism has the property (f(a))-1 = f(a-1).

Further examples

If K is a field
Field (mathematics)

In abstract algebra, a field is an algebraic structure with notions of addition, subtraction, multiplication and division , satisfying certain axioms....
, then for every vector space
Vector space

File:Vector addition ans scaling.pngA vector space is a mathematical structure formed by a collection of vectors: objects that may be Vector addition together and Scalar multiplication by numbers, called scalar s in this context....
 V over K we have a "natural" injective linear map V ? V** from the vector space into its double dual
Dual space

In mathematics, any vector space, V, has a corresponding dual vector space consisting of all linear functionals on V. Dual vector spaces defined on finite-dimensional vector spaces can be used for defining tensors which are studied in tensor algebra....
. 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.

Every finite dimensional vector space is also isomorphic to its dual space. But 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
Bilinear form

In mathematics, a bilinear form on a vector space V is a bilinear mapping V ? V ? F, where F is the field of scalars....
, 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 transpose
Transpose

In linear algebra, the transpose of a matrix A is another matrix AT created by any one of the following equivalent actions:...
s of maps.)

Consider the category Ab of abelian group
Abelian group

An abelian group, also called a commutative group, is a group satisfying the requirement that the product of elements does not depend on their order ....
s and group homomorphisms. For all abelian groups X, Y and Z we have a group isomorphism
Hom(XY, Z) → Hom(X, Hom(Y, Z)).
These isomorphisms are "natural" in the sense that they define a natural transformation between the two involved functors Ab × Abop × Abop ? Ab.

Natural transformations arise frequently in conjunction with adjoint functors
Adjoint functors

In mathematics, adjoint functors are pairs of functors which stand in a particular relationship with one another, called an adjunction. The relationship of adjunction is ubiquitous in mathematics, as it rigorously reflects the intuitive notions of optimization and efficiency....
. 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.

Operations with natural transformations

If ? : F ? G and e : G ? H are natural transformations between functors F,G,H:C ? D, then we can compose them to get a natural transformation e? : F ? H. This is done componentwise: (e?)X = eX?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 e : J ? K is a natural transformation between functors J, K:D ? E, then the composition of functors allows a composition of natural transformations ?e : 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.

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

If on the other hand K : B ? C is a functor, the natural transformation ?K : FK ? GK is defined by

Functor categories


If C is any category and I is a small category, we can form the functor category
Functor category

In category theory, a branch of mathematics, the functors between two given categories can themselves be turned into a category; the morphisms in this functor category are natural transformations between functors....
 CI having as objects all functors from I to C and as morphisms the natural transformations between those functors. This forms a category since for any functor F there is an identity natural transformation 1F : F ? F (which assigns to every object X the identity morphism on F(X)) and the composition of two natural transformations (the "vertical composition" above) is again a natural transformation.

The isomorphism
Isomorphism

In abstract algebra, an isomorphism is a bijection map f such that both f and its inverse function f −1 are homomorphisms, i.e., structure-preserving mappings....
s in CI are precisely the natural isomorphisms. That is, a natural transformation ? : F ? G is a natural isomorphism if and only if there exists a natural transformation e : G ? F such that ?e = 1G and e? = 1F.

The functor category CI is especially useful if I arises from a directed graph
Directed graph

A directed graph or digraph is a pair G= of:* a Set V, whose element are called vertices or nodes,* a set A of ordered pairs of vertices, called arcs, directed edges, or arrows....
. For instance, if I is the category of the directed graph • ? •, then CI has as objects the morphisms of C, and a morphism between f : 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 f.

More generally, one can build the 2-category
2-category

In category theory, a 2-category is a category with "morphisms between morphisms"; that is, where each morphism itself carries the structure of a category....
 Cat whose
  • 0-cells (objects) are the small categories,
  • 1-cells (arrows) between two objects and are the functors from to ,
  • 2-cells between two 1-cells (functors) and are the natural transformations from to .
The horizontal and vertical compositions are the compositions between natural transformations described previously. A functor category is then simply a hom-category in this category (smallness issues aside).

Yoneda lemma


If X is an object of a locally small category C, then the assignment Y HomC(X, Y) defines a covariant functor FX : C ? Set. This functor is called representable
Representable functor

In mathematics, especially in category theory, a representable functor is a functor of a special form from an arbitrary category into the category of sets....
 (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
Yoneda lemma

In mathematics, specifically in category theory, the Yoneda lemma is an abstract result on functors of the type morphisms into a fixed object....
.

Historical notes

Saunders Mac Lane
Saunders Mac Lane

Saunders Mac Lane was an United States mathematician who cofounded category theory with Samuel Eilenberg....
, 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
Group (mathematics)

In mathematics, a group is an algebraic structure consisting of a set together with an Binary operation that combines any two of its element to form a third element....
 is not complete without a study of homomorphisms
Group homomorphism

In mathematics, given two group and , a group homomorphism from to is a function h : G ? H such that for all u and v in G it holds that...
, so the study of categories is not complete without the study of functor
Functor

In category theory, a branch of mathematics, a functor is a special type of mapping between categories. Functors can be thought of as morphisms in the category of small categories....
s. 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
Homology (mathematics)

In mathematics , homology is a certain general procedure to associate a sequence of abelian groups or module with a given mathematical object such as a topological space or a group ....
. Different ways of constructing homology could be shown to coincide: for example in the case of a simplicial complex
Simplicial complex

In mathematics, a simplicial complex is a topological space of a particular kind, constructed by "gluing together" Point s, line segments, triangles, and their n-dimensional counterparts ....
 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.