Copyright © Philip M. Parker, INSEAD. Terms of Use.

(From Wikipedia, the free Encyclopedia)
Category theory is a mathematical theory that deals in an abstract way with mathematical structures and relationships between them. It is half-jokingly known as "abstract nonsense".
See list of category theory topics for a breakdown of Wikipedia pages.
As a matter of history, the category concept was introduced in algebraic topology, as an important part of the transition from homology (an intuitive and geometric concept) to homology theory, an axiomatic approach. It has been claimed, for example by or on behalf of Ulam, that comparable ideas were current in the later 1930s in the Polish school.
The subsequent development of the theory was powered first by the computational needs of homological algebra; and then the axiomatic needs of algebraic geometry, the field most resistant to the Russell-Whitehead view of united foundations. General theory - an updated universal algebra with many new features allowing for semantic flexibility and higher-order logic - came later.
Broadly-based foundational applications of category theory are contentious; but they have been worked out in quite some detail, as a commentary on or basis for constructive mathematics. One can say, in particular, that axiomatic set theory still hasn't been replaced by the category-theoretic commentary on it, in the everyday usage of mathematicians. The idea of bringing category theory into earlier, undergraduate teaching (signified by the difference between the Birkhoff- Mac Lane and later Mac Lane-Birkhoff abstract algebra texts) has hit noticeable opposition.
Categorical logic is now a well-defined field based on type theory for intuitionistic logics, with application to the theory of functional programming and domain theory, all in a setting of a cartesian closed category as non-syntactic description of a lambda calculus. The use of category theory language, at the very least, allows one to clarify what exactly these related areas have in common.
Introduction
A category attempts to capture the essence of a class of related mathematical objects, for instance the class of groups. Instead of focusing on the individual objects (groups) as has been done traditionally, the morphisms, i.e. the structure preserving maps between these objects, are emphasized. In the example of groups, these are the group homomorphisms. Then it becomes possible to relate different categories by functors, generalizations of functions which associate to every object of one category an object of another category and to every morphism in the first category a morphism in the second. Very commonly, certain "natural constructions", such as the fundamental group of a topological space, can be expressed as functors. Furthermore, different such constructions are often "naturally related" which leads to the concept of natural transformation, a way to "map" one functor to another.
Historically, the clarification of certain natural transformations occurring in algebraic topology served as the motivation to define functors and categories. Early on, the theory was applied in homological algebra and algebraic geometry; it is now also used in various other branches of mathematics. Special categories called topoi can even serve as an alternative to set theory as the foundation of mathematics. Category theory is also used in a foundational way in functional programming, for example to discuss the idea of typed lambda calculus in terms of cartesian closed categories.
Categories
Definition
A category consists of:
such that the following axioms hold:
- a class of things called objects.
- for every two objects A and B a set Mor(A,B) of things called morphisms from A to B. If f is in Mor(A,B), we write f : A -> B.
- for every three objects A, B and C a binary operation Mor(A,B) x Mor(B,C) -> Mor(A,C) called composition of morphisms. The composition of f : A -> B and g : B -> C is written as g o f or gf. (Some authors write it as fg.)
From these axioms, one can prove that there is exactly one identity morphism for every object.
- (associativity) if f : A -> B, g : B -> C and h : C -> D then h o (g o f) = (h o g) o f, and
- (identity) for every object X there exists a morphism idX : X -> X called the identity morphism for X, such that for every morphism f : A -> B we have idB o f = f = f o idA
If the class of objects is actually a set, the category is said to be small. Many important categories are not small.
Examples
Each category is presented in terms of its objects and its morphisms.
- The category Grp consisting of all groups together with their group homomorphisms.
- The category VectK of all vector spaces over the field K together with their K-linear maps.
- The category Set of all sets together with functions between sets.
- The category Top of all topological spaces with continuous functions.
- Any partially ordered set (P, ≤) forms a small category, where the objects are the members of P, and the morphisms are arrows pointing from x to y precisely when x ≤ y.
- Any monoid forms a small category with a single object x, and where every element of the monoid is a morphism from x to x (the monoid operation yields the categorical composition of morphisms). In fact, one may view categories as generalizations of monoids; several definitions and theorems about monoids may be generalized for categories.
- Any directed graph can be considered as a small category: the objects are the vertices of the graph and the morphisms are the paths in the graph. Composition of morphisms is concatenation of paths.
- If I is a set, the discrete category on I is the small category which has the elements of I as objects and only the identity morphisms as morphisms.
- Any category C can itself be considered as a new category in a different way: the objects are the same as those in the original category but the arrows are those of the original category reversed. This is called the dual or opposite category and is denoted by Cop.
- If C and D are categories, one can form the product category C x D: the objects are pairs consisting of one object from C and one from D, and the morphisms are also pairs, consisting of one morphism in C and one in D. Such pairs can be composed componentwise.
Types of morphisms
A morphism f : A -> B is called a
- monomorphism if fg1 = fg2 implies g1 = g2 for all morphisms g1, g2 : X -> A.
- epimorphism if g1f = g2f implies g1 = g2 for all morphisms g1, g2 : B -> X.
- isomorphism if there exists a morphism g : B -> A with fg = idB and gf = idA.
- automorphism if f is an isomorphism and A = B.
- endomorphism if A = B.
Special objects
An object A of the category C is called
- initial, if for every object B there is a unique morphism A -> B. For example, the empty set is an initial object in the category of sets.
- terminal, if for every object B there is a unique morphism B -> A. For example, every singleton (set with one element) is a terminal object in the category of sets.
Functors
Functors are structure-preserving maps between categories.
Definition
A (covariant) functor F from the category C to the category D
such that the following two properties hold:
- associates to each object X in C an object F(X) in D;
- associates to each morphism f:X->Y a morphism F(f):F(X)->F(Y)
A contravariant functor F from C to D is a functor that "turns morphisms around" (i.e. if f:X->Y is a morphism in C, then F(f):F(Y)->F(X)); the quickest way to define a contravariant functor is as a covariant functor between Cop and D.
- F(idX) = idF(X) for every object X in C.
- F(g o f) = F(g) o F(f) for all morphisms f : X -> Y and g : Y -> Z.
An important consequence of the functor axioms is this: if f is an isomorphism in C, then F(f) is an isomorphism in D.
Examples
Dual vectorspace: an example of a contravariant functor from the category of all real vector spaces to the category of all real vector spaces is given by assigning to every vector space its dual space and to every linear map its dual or transpose.
Algebra of continuous functions: a contravariant functor from the category of topological spaces (with continuous maps as morphisms) to the category of real associative algebras is given by assigning to every topological space X the algebra C(X) of all real-valued continuous functions on that space. Every continuous map f : X -> Y induces an algebra homomorphism C(f) : C(Y) -> C(X) by the rule C(f)(φ) = φ o f for every φ in C(Y).
Homomorphism groups: to every pair A, B of abelian groups and can assign the abelian group Hom(A,B) consisting of all group homomorphisms from A to B. This is a functor which is contravariant in the first and covariant in the second argument, i.e. it is a functor Abop x Ab -> Ab (where Ab denotes the category of abelian groups with group homomorphisms). If f : A1 -> A2 and g : B1 -> B2 are morphisms in Ab, then the group homomorphism Hom(f,g) : Hom(A2,B1) -> Hom(A1,B2) is given by φ |-> g o φ o f.
Forgetful functors: the functor F : Ring -> Ab which maps a ring to its underlying abelian additive group. Morphisms in Ring (ring homomorphisms) become morphisms in Ab (abelian group homomorphisms).
Tensor products: If C denotes the category of vectorspaces over a fixed field, with linear maps as morphisms, then the tensor product V
W defines a functor C x C -> C which is covariant in both arguments.
Lie algebras: Assigning to every real (complex) Lie group its real (complex) Lie algebra defines a functor.
Fundamental group: Consider the category of topological spaces with distinguished points. The objects are pairs (X,x), where X is a topological space and x is an element of X. A morphism from (X,x) to (Y,y) is given by a continuous map f : X -> Y with f(x) = y.
For every topological space with distinguished point (X,x), we will define a fundamental group. This is going to be a functor from the category of topological spaces with distinguished points to the category of groups.
Let f be a continuous function from the unit interval [0,1] into X so that f(0) = f(1) = x. (Equivalently, f is a continuous map from the unit circle in the complex plane so that f(1) = x.) We call such a function a loop in X. If f and g are loops in X, we can glue them together by defining h(t) = f(2t) when t is in [0,0.5] and h(t) = g(2(t - 0.5)) when t is in [0.5,1]. It is easy to check that h is again a loop. If there is a continuous map F(x,t) from [0,1] × [0,1] to X so that f(t) = F(0,t) is a loop and g(t) = F(1,t) is also a loop then f and g are said to be equivalent. It can be checked that this defines an equivalence relation. Our composition rule survives this process. Now, in addition, we can see that we have an identity element e(t) = x (a constant map) and further that every loop has an inverse. Indeed, if f(t) is a loop then f(1 - t) is its inverse. The set of equivalence classes of loops thus forms a group (the fundamental group of X). One may check that the map from the category of topological spaces with a distinguished point to the category of groups is functorial: a topological (homo/iso)morphism will naturally correspond to a group (homo/iso)morphism.
Universal constructions: Functors are often defined by universal properties; examples are the tensor product discussed above, the direct sum and direct product of groups or vector spaces, construction of free groups and modules, direct and inverse limits. The concepts of limit and colimit generalize several of the above. Universal constructions often give rise to pairs of adjoint functors.
Pre-Sheaves: If X is a topological space, then the open sets in X can be considered as the objects of a category CX; there is a morphism from U to V if and only if U is a subset of V. In itself, this category is not very exciting, but the functors from CXop into other categories, the so-called pre-sheaves on X, are interesting. For instance, by assigning to every open set U the associative algebra of real-valued continuous functions on U, one obtains a pre-sheaf of algebras on X.
This motivating example is generalized by considering pre-sheaves on arbitrary categories: a pre-sheaf on C is a functor defined on Cop. The Yoneda lemma explains that often a category C can be extended by considering a category of pre-sheaves on C.
Category of small categories: The category Cat has the small categories as objects, and the functors between them as morphisms.
Further concepts and results
The definitions of categories and functors provide only the very basics of categorical algebra. Additional important topics are listed below. Although there are strong interrelations between all of these topics, the given order can be considered as a guideline for further reading.
- Natural transformations: While functors provide a way to pass from one category to another, natural transformations provide a similar relation between functors.
- The Yoneda lemma is one of the most famous basic results of category theory.
- Limits and colimits: To introduce "unique constructions", such as products (of sets, of topologies, of partial orders, ...), into the theory, limits and colimits are needed.
- Adjoint functors: A functor can be left (or right) adjoint to another functor that maps in the opposite direction. However, when compared to classical relationsships of structure-preserving mappings (such as being inverse to each other), the concept of adjunction of functors appears quite abstract and general. Yet it turns out that it is a highly useful tool that has relations to many other important concepts, for example to the construction of limits.
- Equivalence of categories: In order to obtain a meaningful criterion when two categories can be considered similar, it is necessary to find a notion that is more general than the classical concept of an isomorphism. Equivalences of categories are also closely related to dualities of categories.
- Commutative diagrams: Since category theory usually deals with objects and arrows, it is convenient to express identities in this setting by diagramms.
Additional properties of categories
- In many categories, the morphism sets Mor(A,B) are not just sets but actually abelian groups, and the composition of morphisms is compatible with these group structures, i.e. is bilinear. Such a category is called preadditive. If furthermore the category has all finite products and coproducts, it is called an additive category. If all morphisms have a kernel and a cokernel, and all epimorphism are cokernels and all monomorphisms are kernels, then we speak of an abelian category. A typical example of an abelian category is the category of abelian groups.
- A category is called cartesian closed if it has finite direct products and a morphism defined on a finite product can always be represented by a morphism defined on just one of the factors.
- A topos is certain type of cartesian closed category in which all of mathematics can be formulated (just like classically all of mathematics is formulated in the category of sets). A topos can also be used to represent a logical theory.
- A category is called complete if all limits in it exist. The categories of sets, abelian groups and topological spaces are complete.
- A groupoid is a category in which every morphism is an isomorphism. Groupoids are generalizations of groups, group actions and equivalence relations.
Historical notes
Categories, functors and natural transformations were introduced by Eilenberg and Mac Lane in 1945. Initially, the notions were applied in topology, especially algebraic topology, later also in homological algebra and algebraic geometry.
Literature
- William Lawvere and Steve Schanuel, Conceptual Mathematics: A First Introduction to Categories, Cambridge University Press, Cambridge, 1997.
- Saunders Mac Lane (1998): Categories for the Working Mathematician, Graduate Texts in Mathematics 5, Springer; ISBN 0-387-98403-8
- Francis Borceux. Handbook of Categorical Algebra, volumes 50-52 of Encyclopedia of Mathematics and its Applications. Cambridge University Press, 1994.
Source: adapted by the editor from Wikipedia, the free encyclopedia under a copyleft GNU Free Documentation License (GFDL) from the article "Category theory."
(From Wikipedia, the free Encyclopedia)
A category is given by two pieces of data: a class of objects and, for any two objects X and Y, a set of morphisms from X to Y. Morphisms are often depicted as arrows between those objects. In the case of a concrete category, X and Y are sets of some kind and a morphism f is a function from X to Y satisfying some condition; this example supplies the notation f: X -> Y. But not every category is concrete, so these aren't the only types of morphisms.Some examples of morphisms are homomorphisms from the categories studied in universal algebra (such as those of groups, rings, and so on), continuous functions between topological spaces, elements of a group when the group is thought of a special kind of category, paths in a single topological space (which form a groupoid), functors between categories, and many more.
Variants and subclasses of morphism:
An epimorphism with a one-sided inverse is called a split epimorphism.
- Every object X in every category has an identity morphism idX which acts as an identity under the operation of composition.
- If f: X -> Y and g: Y -> X satisfy f o g = idY, then f is a retraction and g is a section.
- If f is both a retraction and a section, then it is an isomorphism. In this case, the objects X and Y should be thought of as completely equivalent for purposes of the category C.
- A morphism f: X -> X is an endomorphism of X.
- An endomorphism that is also an isomorphism is an automorphism.
- Suppose that whenever g: Y -> Z and h: Y -> Z and g o f = h o f, it always turns out that g = h. Then f is an epimorphism. Every retraction must be an epimorphism. It's also called an epi or an epic.
An monomorphism with a one-sided inverse is called a split monomorphism.
- Suppose that whenever g: W -> X and h: W -> X and f o g = f o h, it always turns out that g = h. Then f is a monomorphism. Every section must be a monomorphism. It's also called a mono or a monic.
- If f is both an epimorphism and a monomorphism, then f is a bimorphism. Note that not every bimorphism is an isomorphism! However, any morphism that is both an epimorphism and a section, or both a monomorphism and a retraction, must be an isomorphism.
- A homeomorphism is simply an isomorphism in the category of topological spaces.
- A diffeomorphism is simply an isomorphism in the category of differentiable manifolds.
Source: adapted by the editor from Wikipedia, the free encyclopedia under a copyleft GNU Free Documentation License (GFDL) from the article "Morphism."
| 1. Bibliography |
Copyright © Philip M. Parker, INSEAD. Terms of Use.