61 CategoriesTag 6001
In the tree of ModernMath: ModernMath › 18-XX Category theory; homological algebra › 18Axx General theory of categories and functors › 18A05 Definitions and generalizations in theory of categories, the subject of its primary MSC2020 code; its secondary code 18A20 Epimorphisms, monomorphisms, special classes of morphisms, null morphisms is a cross-reference. Show it in the tree and the cross-reference graph.
Source of this section: latex/entries/18-category-theory/01-categories.tex (history, edit) and myst/18-category-theory/01-categories.md (history, edit). To propose a change, see how to contribute.
A category consists of objects and of morphisms between them, with an associative composition that has identities. Groups and homomorphisms, topological spaces and continuous maps, modules over a ring and linear maps form categories, and so do a single group, a partially ordered set or the matrices over a ring, whose morphisms are not maps at all. Reversing all the morphisms of a category gives its opposite category, so that every notion and every theorem of category theory has a dual.
A category \(\mathcal{C}\) consists of a collection of objects, a collection of morphisms, each with a specified domain and codomain (one writes \(f\colon X\to Y\) for a morphism with domain \(X\) and codomain \(Y\)), an identity morphism \(1_X\colon X\to X\) for each object \(X\), and for each pair of morphisms \(f\colon X\to Y\) and \(g\colon Y\to Z\) a composite \(gf=g\circ f\colon X\to Z\), such that \(1_Yf=f=f1_X\) for every \(f\colon X\to Y\) and \(h(gf)=(hg)f\) whenever the composites are defined [ 229 , Definition 1.1.1 ] . The collection of morphisms from \(X\) to \(Y\) is written \(\mathcal{C}(X,Y)\) or \(\mathrm{Hom}(X,Y)\) [ 229 , (1.1.8) ] . A category is small if its morphisms form a set, and locally small if each \(\mathcal{C}(X,Y)\) is a set [ 229 , Definitions 1.1.6 and 1.1.7 ] . A subcategory \(\mathcal{D}\) of \(\mathcal{C}\) is given by a subcollection of the objects and of the morphisms that contains the domain, the codomain and the identities of its objects and morphisms and is closed under composition; it is full if \(\mathcal{D}(X,Y)=\mathcal{C}(X,Y)\) for all objects \(X,Y\) of \(\mathcal{D}\) [ 229 , p. 8 and Remark 1.5.8 ] .
The sets and the functions between them form a category \(\mathbf{Set}\); so do topological spaces and continuous maps (\(\mathbf{Top}\)), groups and homomorphisms (\(\mathbf{Grp}\)), unital rings and unital homomorphisms, and the left modules over a ring \(R\) and their homomorphisms (\(R\text{-}\mathbf{Mod}\), written \(\mathbf{Ab}\) when \(R=\mathbb {Z}\)) [ 229 , Example 1.1.3 ] . None of these is small; all are locally small [ 229 , p. 7 ] .
For a unital ring \(R\) there is a category whose objects are the positive integers and whose morphisms \(n\to m\) are the \(m\times n\) matrices over \(R\), composed by matrix multiplication. A monoid, in particular a group \(G\), is a category \(BG\) with one object whose morphisms are the elements of \(G\). A preordered set \((P,\leq )\) is a category with exactly one morphism \(x\to y\) when \(x\leq y\) and none otherwise [ 229 , Example 1.1.4 ] .
The small categories and the functors between them (Definition 62.1) form a category \(\mathbf{Cat}\) [ 229 , p. 20 ] .
The objects of \(\mathbf{Set}\) do not form a set, which is why Definition 61.1 speaks of collections. Eilenberg and Mac Lane regarded the concept of a category as “essentially an auxiliary one”, needed only so that every functor has a definite class as domain and range, and left the reader free to choose a foundation [ 74 , § 6, pp. 246–247 ] . A common choice is to work with Grothendieck universes, as in [ 11 , Expos é I, § § 0–1 ] ; Riehl takes the existence of a sequence of inaccessible cardinals as one way of doing so [ 229 , Remark 1.1.5 and footnote 13 ] . In the entries on category theory, the size conditions that matter are stated explicitly: smallness of the categories that index diagrams, and local smallness of the categories in which representable functors are formed.
The opposite \(\mathcal{C}^{\mathrm{op}}\) of a category \(\mathcal{C}\) has the same objects and a morphism \(f^{\mathrm{op}}\colon Y\to X\) for each morphism \(f\colon X\to Y\) of \(\mathcal{C}\), with \(g^{\mathrm{op}}f^{\mathrm{op}} =(fg)^{\mathrm{op}}\) [ 229 , Definition 1.2.1 ] . The axioms of a category are self-dual, so every theorem about all categories, applied to the opposite categories, gives a dual theorem, in which the direction of every morphism is reversed [ 229 , pp. 9–10 ] . For instance, the opposite of a group, viewed as a category \(BG\), is the category \(B(G^{\mathrm{op}})\) of the opposite group [ 229 , Example 1.2.2 ] .
A morphism \(f\colon X\to Y\) is an isomorphism if there is a morphism \(g\colon Y\to X\) with \(gf=1_X\) and \(fg=1_Y\); then \(X\) and \(Y\) are isomorphic, \(X\cong Y\). An isomorphism from an object to itself is an automorphism, and a groupoid is a category in which every morphism is an isomorphism [ 229 , Definitions 1.1.9 and 1.1.11 ] . The morphism \(f\) is a monomorphism (or is monic) if \(fh=fk\) implies \(h=k\) for all morphisms \(h,k\colon W\to X\), and an epimorphism (or epic) if \(hf=kf\) implies \(h=k\) for all \(h,k\colon Y\to Z\); these notions are dual to each other [ 229 , Definition 1.2.7 ] . If \(rs=1_X\) for morphisms \(s\colon X\to Y\) and \(r\colon Y\to X\), then \(s\) is a split monomorphism (a section of \(r\)) and \(r\) is a split epimorphism (a retraction of \(s\)) [ 229 , Example 1.2.9 ] .
In any category:
a morphism \(f\colon X\to Y\) is an isomorphism if and only if, for every object \(W\), composition with \(f\) is a bijection \(\mathcal{C}(W,X)\to \mathcal{C}(W,Y)\), if and only if, for every object \(Z\), composition with \(f\) is a bijection \(\mathcal{C}(Y,Z)\to \mathcal{C}(X,Z)\) [ 229 , Lemma 1.2.3 ] ;
split monomorphisms are monic and split epimorphisms are epic; in particular every isomorphism is monic and epic [ 229 , Examples 1.2.9 and 1.2.10 ] ;
composites of monomorphisms are monomorphisms, and if \(gf\) is monic then \(f\) is monic; dually, composites of epimorphisms are epimorphisms, and if \(gf\) is epic then \(g\) is epic [ 229 , Lemma 1.2.11 ] .
For (1), if \(f\) has an inverse \(g\) then composition with \(g\) inverts composition with \(f\). Conversely, if \(f_*\colon \mathcal{C}(Y,X)\to \mathcal{C}(Y,Y)\) is bijective there is \(g\colon Y\to X\) with \(fg=1_Y\); then \(f(gf)=f=f1_X\), and injectivity of \(f_*\colon \mathcal{C}(X,X)\to \mathcal{C}(X,Y)\) gives \(gf=1_X\). The second equivalence is the first one in \(\mathcal{C}^{\mathrm{op}}\) [ 229 , proof of Lemma 1.2.3 ] . For (2), if \(rs=1_X\) and \(sh=sk\), then \(h=rsh=rsk=k\), and dually. For (3), if \(f\) and \(g\) are monic and \(gfh=gfk\), then \(fh=fk\) and \(h=k\); if \(gf\) is monic and \(fh=fk\), then \(gfh=gfk\) and \(h=k\). The statements about epimorphisms are dual.
In \(\mathbf{Set}\) the monomorphisms are the injections, the epimorphisms are the surjections and the isomorphisms are the bijections [ 229 , Examples 1.1.10 and 1.2.8 ] . A morphism that is monic and epic need not be an isomorphism: the inclusion \(\mathbb {Z}\to \mathbb {Q}\) is monic and epic in the category of unital rings, but there is no ring homomorphism \(\mathbb {Q}\to \mathbb {Z}\) [ 229 , Example 1.2.10 ] . In the category of topological spaces the isomorphisms are the homeomorphisms, which is more than being a continuous bijection [ 229 , Example 1.1.10 ] . A similar example among topological groups, the inclusion of the discrete group \(\mathbb {Q}\) in \(\mathbb {R}\), is in Example 107.2.
An object \(I\) is initial if for every object \(X\) there is exactly one morphism \(I\to X\), and terminal if for every object \(X\) there is exactly one morphism \(X\to I\) [ 229 , Definition 1.6.14 ] . A zero object is an object that is both initial and terminal; in a category with a zero object \(0\), a morphism is a zero morphism if it factors through \(0\), and there is exactly one zero morphism \(0\colon X\to Y\) between any two objects [ 31 , Definitions 1.1.1 and 1.1.2 and Proposition 1.1.3 ] .
The empty set is initial and a one-point set is terminal in \(\mathbf{Set}\) and in \(\mathbf{Top}\); the trivial group and the zero module are zero objects of \(\mathbf{Grp}\) and of \(R\text{-}\mathbf{Mod}\); \(\mathbb {Z}\) is initial and the zero ring is terminal among unital rings; and the category of fields has neither an initial nor a terminal object, since there are no homomorphisms between fields of different characteristic [ 229 , Example 1.6.15 ] . Any two initial objects, and any two terminal objects, are isomorphic by a unique isomorphism (Corollary 65.6).