What is Category (mathematics)?

Information about Category (mathematics)

In mathematics, categories allow one to formalize notions involving abstract structure and processes that preserve structure. Categories appear in virtually every branch of modern mathematics and are a central unifying notion. The study of categories in their own right is known as category theory.

For more extensive motivational background and historical notes, see category theory and the list of category theory topics.

Definition

A category C consists of
  • a class ob(C) of objects:
  • a class hom(C) of morphisms. Each morphism f has a unique source object a and target object b where a and b are in ob(C). We write f: ab, and we say "f is a morphism from a to b". We write hom(a, b) (or homC(a, b)) to denote the hom-class of all morphisms from a to b. (Some authors write Mor(a, b).)
  • for every three objects a, b and c, a binary operation hom(a, b) × hom(b, c) → hom(a, c) called composition of morphisms; the composition of f : ab and g : bc is written as g o f or gf (Some authors write fg or f;g.)
such that the following axioms hold:
  • (associativity) if f : ab, g : bc and h : cd then h o (g o f) = (h o g) o f, and
  • (identity) for every object x, there exists a morphism 1x : xx called the identity morphism for x, such that for every morphism f : ab, we have 1b o f = f = f o 1a.
From these axioms, one can prove that there is exactly one identity morphism for every object. Some authors use a slight variation of the definition in which each object is identified with the corresponding identity morphism.

A small category is a category in which both ob(C) and hom(C) are actually sets and not proper classes. A category that is not small is said to be large. A locally small category is a category such that for all objects a and b, the hom-class hom(a, b) is a set, called a homset. Many important categories in mathematics (such as the category of sets), although not small, are at least locally small.

The morphisms of a category are sometimes called arrows due to the influence of commutative diagrams.

Examples

Each category is presented in terms of its objects, its morphisms, and its composition of morphisms.
  • The category Set of all sets together with functions between sets, where composition is the usual function composition. (The following are examples of concrete categories, obtained by adding some type of structure onto Set, and requiring that morphisms are functions that respect this added structure; the morphism composition is simply ordinary function composition.)
  • The category Ord of all preordered sets with monotonic functions
  • The category Mag consisting of all magmas with their homomorphisms
  • The category Med consisting of all medial magmas with their homomorphisms
  • The category Grp consisting of all groups with their group homomorphisms
  • The category Ab consisting of all abelian groups with their group homomorphisms
  • The category VectK of all vector spaces over the field K (which is held fixed) with their K-linear maps
  • The category Top of all topological spaces with continuous functions
  • The category Met of all metric spaces with short maps
  • The category Uni of all uniform spaces with uniformly continuous functions
  • The category Manp of all smooth, p-times differentiable manifolds.
  • The category Cat of all small categories with functors.
  • The category Rel of all sets, with relations as morphisms.
  • Any preordered set (P, ≤) forms a small category, where the objects are the members of P, the morphisms are arrows pointing from x to y when xy (The composition law is forced, because there is at most one morphism from any object to another.)
  • Any monoid forms a small category with a single object x. (Here, x is any fixed set.) The morphisms from x to x are precisely the elements of the monoid, and the categorical composition of morphisms is given by the monoid operation. The monoid demonstrates that morphisms need not be functions, as here, the only function from the singleton set x to x is a trivial function. One may view categories as generalizations of monoids; several definitions and theorems about monoids may be generalized for categories.
  • Any directed graph generates 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. This is called the free category generated by the graph.
  • If I is a set, the discrete category on I is the small category that has the elements of I as objects and only the identity morphisms as morphisms. Again, the composition law is forced.)
  • 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 Cop.
  • If C and D are categories, one can form the product category C × 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 : ab is called
  • a monomorphism (or monic) if fg1 = fg2 implies g1 = g2 for all morphisms g1, g2 : xa.
  • an epimorphism (or epic) if g1f = g2f implies g1 = g2 for all morphisms g1, g2 : bx.
  • a bimorphism if it is both a monomorphism and an epimorphism.
  • a retraction if it has a right inverse, i.e. if there exists a morphism g : ba with fg = 1b.
  • a section if it has a left inverse, i.e. if there exists a morphism g : ba with gf = 1a.
  • an isomorphism if it has an inverse, i.e. if there exists a morphism g : ba with fg = 1b and gf = 1a.
  • an endomorphism if a = b. The class of endomorphisms of a is denoted end(a).
  • an automorphism if f is both an endomorphism and an isomorphism. The class of automorphisms of a is denoted aut(a).
Every retraction is an epimorphism. Every section is a monomorphism. The following three statements are equivalent:
  • f is a monomorphism and a retraction;
  • f is an epimorphism and a section;
  • f is an isomorphism.
Relations among morphisms (such as fg = h) can most conveniently be represented with commutative diagrams, where the objects are represented as points and the morphisms as arrows.

Types of categories

  • In many categories, the hom-sets hom(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 complete if all limits exist in it. The categories of sets, abelian groups and topological spaces are complete.
  • 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 a 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 groupoid is a category in which every morphism is an isomorphism. Groupoids are generalizations of groups, group actions and equivalence relations.

References

  • Adámek, Jiří, Herrlich, Horst, & Strecker, George E. (1990). Abstract and Concrete Categories. Originally publ. John Wiley & Sons. ISBN 0-471-60922-6. (now free on-line edition)
  • Asperti, Andrea, & Longo, Giuseppe (1991). Categories, Types and Structures. Originally publ. M.I.T. Press.
  • Barr, Michael, & Wells, Charles (2002). Toposes, Triples and Theories. (revised and corrected free online version of Grundlehren der mathematischen Wissenschaften (278). Springer-Verlag,1983)
  • Borceux, Francis (1994). Handbook of Categorical Algebra.. Vols. 50-52 of Encyclopedia of Mathematics and its Applications. Cambridge: Cambridge University Press.
  • Lawvere, William, & Schanuel, Steve. (1997). Conceptual Mathematics: A First Introduction to Categories. Cambridge: Cambridge University Press.
  • Mac Lane, Saunders (1998). Categories for the Working Mathematician (2nd ed.). Graduate Texts in Mathematics 5. Springer. ISBN 0-387-98403-8.
  • Jean-Pierre Marquis, "Category Theory" in Stanford Encyclopedia of Philosophy, 2006

External links

Mathematics (colloquially, maths or math) is the body of knowledge centered on such concepts as quantity, structure, space, and change, and also the academic discipline that studies them. Benjamin Peirce called it "the science that draws necessary conclusions".
..... Read more.
In mathematics, category theory deals in an abstract way with mathematical structures and relationships between them. Categories now appear in most branches of mathematics and in some areas of theoretical computer science and mathematical physics, and have been a unifying notion.
..... Read more.
In mathematics, category theory deals in an abstract way with mathematical structures and relationships between them. Categories now appear in most branches of mathematics and in some areas of theoretical computer science and mathematical physics, and have been a unifying notion.
..... Read more.
This is a list of category theory topics, by Wikipedia page.

Specific categories

  • Category of sets
  • Concrete category
  • Category of vector spaces
  • Category of graded vector spaces

..... Read more.
In set theory and its applications throughout mathematics, a class is a collection of sets (or sometimes other mathematical objects) that can be unambiguously defined by a property that all its members share.
..... Read more.
In mathematics, a morphism is an abstraction of a structure-preserving mapping between two mathematical structures.

The most common example occurs when the process is a function or map which preserves the structure in some sense.
..... Read more.
SET may stand for:
  • Sanlih Entertainment Television, a television channel in Taiwan
  • Secure electronic transaction, a protocol used for credit card processing,

..... Read more.
In mathematics, especially the many applications of category theory, a commutative diagram is a diagram of objects and morphisms such that, when picking two objects, one can follow any path through the diagram and obtain the same result by composition.
..... Read more.
In mathematics, the category of sets, denoted as Set, is the category whose objects are all sets and whose morphisms are all functions. It is the most basic and the most commonly used category in mathematics.
..... Read more.
SET may stand for:
  • Sanlih Entertainment Television, a television channel in Taiwan
  • Secure electronic transaction, a protocol used for credit card processing,

..... Read more.
function expresses dependence between two quantities, one of which is given (the independent variable, argument of the function, or its "input") and the other produced (the dependent variable, value of the function, or "output").
..... Read more.
In mathematics, a concrete category is a category in which, roughly speaking, all objects are sets possibly carrying some additional structure, all morphisms are functions between those sets, and the composition of morphisms is the composition of functions.
..... Read more.
The category Ord has preordered sets as objects and monotonic functions as morphisms. This is a category because the composition of two monotonic functions preserves monotonicity.

The monomorphisms in Ord are the injective monotonic functions.
..... Read more.
In mathematics, especially in order theory, preorders are binary relations that satisfy certain conditions. For example, all partial orders and equivalence relations are preorders. The name quasiorder is also common for preorders.
..... Read more.
monotonic function (or monotone function) is a function which preserves the given order. This concept first arose in calculus, and was later generalized to the more abstract setting of order theory.
..... Read more.
In mathematics, the category of magmas (see category, magma for definitions), denoted by Mag, has as objects sets with a binary operation, and morphisms given by homomorphisms of operations (in the universal algebra sense).
..... Read more.
In mathematics, particularly in abstract algebra, a magma (or groupoid) is a basic kind of algebraic structure. Specifically, a magma consists of a set M equipped with a single binary operation M × MM.
..... Read more.
In abstract algebra, a homomorphism is a structure-preserving map between two algebraic structures (such as groups, rings, or vector spaces).
..... Read more.
In mathematics, the medial category Med, that is, the category of medial magmas has as objects sets with a medial binary operation, and morphisms given by homomorphisms of operations (in the universal algebra sense).
..... Read more.
medial magma (or medial groupoid) is a set with a binary operation which satisfies the identity

, or more simply,


using the convention that juxtaposition has higher precedence.
..... Read more.
In abstract algebra, a homomorphism is a structure-preserving map between two algebraic structures (such as groups, rings, or vector spaces).
..... Read more.
In mathematics, the category Grp has the class of all groups for objects and group homomorphisms for morphisms. As such, it is a concrete category. The study of this category is known as group theory.
..... Read more.
group is a set with a binary operation that satisfies certain axioms, detailed below. For example, the set of integers with addition is a group. The branch of mathematics which studies groups is called group theory.
..... Read more.
In mathematics, given two groups (G, *) and (H, ·), a group homomorphism from (G, *) to (H, ·) is a function h : GH such that for all u and v in G it holds that

..... Read more.
In mathematics, the category Ab has the abelian groups as objects and group homomorphisms as morphisms. This is the prototype of an abelian category.

The monomorphisms in Ab
..... Read more.
In mathematics, an abelian group, also called a commutative group, is a group (G, * ) with the additional property that the group operation * is commutative, so that for all a and b in G, a * b = b * a.
..... Read more.
In mathematics, given two groups (G, *) and (H, ·), a group homomorphism from (G, *) to (H, ·) is a function h : GH such that for all u and v in G it holds that

..... Read more.
In mathematics, a vector space (or linear space) is a collection of objects (called vectors) that, informally speaking, may be scaled and added. More formally, a vector space is a set on which two operations, called (vector) addition and (scalar) multiplication, are
..... Read more.
field is an algebraic structure in which the operations of addition, subtraction, multiplication and division (except division by zero) may be performed, and the same rules hold which are familiar from the arithmetic of ordinary numbers.
..... Read more.
In mathematics, a linear map (also called a linear transformation or linear operator) is a function between two vector spaces that preserves the operations of vector addition and scalar multiplication.
..... Read more.