A strict 2-category By definition, a strict 2-category
C consists of the data: • a
class of 0-
cells, • for each pairs of 0-cells a, b, a set \operatorname{Hom}(a, b) called the set of 1-
cells from a to b, • for each pairs of 1-cells f, g in the same hom-set, a set \operatorname{2Mor}(f, g) called the set of 2-
cells from f to g, •
ordinary compositions: maps \circ : \operatorname{Hom}(b, c) \times \operatorname{Hom}(a, b) \to \operatorname{Hom}(a, c), •
vertical compositions: maps \circ : \operatorname{2Mor}(g, h)\times \operatorname{2Mor}(f, g) \to \operatorname{2Mor}(f, h), where f, g, h are in the same hom-set, •
horizontal compositions: maps * : \operatorname{2Mor}(u, v) \times \operatorname{2Mor}(f, g) \to \operatorname{2Mor}(u \circ f, v \circ g) for f, g : a \to b and u, v : b \to c that are subject to the following conditions • the 0-cells with 1-cells between them form a category under ordinary composition, • for each 0-cells a and b, the 1-cells from a to b with 2-cells between them form a category under vertical composition, • the 0-cells with 2-cells between 1-cells between them form a category under horizontal composition; namely, an object is a 0-cell and the hom-set from a to b is the set of all 2-cells of the form \alpha : f \Rightarrow g for some f, g : a \to b, • the
interchange law: (\delta * \beta) \circ (\gamma * \alpha), when defined, is the same as (\delta \circ \gamma) * (\beta \circ \alpha). The
0-cells,
1-cells, and
2-cells terminology is replaced by
0-morphisms,
1-morphisms, and
2-morphisms in some sources (see also
Higher category theory). Vertical compositions and horizontal compositions are also written as \circ_1, \circ_0. The interchange law can be drawn as a
pasting diagram as follows: Here the left-hand diagram denotes the vertical composition of horizontal composites, the right-hand diagram denotes the horizontal composition of vertical composites, and the diagram in the centre is the customary representation of both. The
2-cell are drawn with double arrows ⇒, the
1-cell with single arrows →, and the
0-cell with points. Since the definition, as can be seen, is not short, in practice, it is more common to use some generalization of category theory such as higher category theory (see below) or enriched category theory to define a strict 2-category. The notion of strict 2-category differs from the more general notion of a weak 2-category defined below in that composition of 1-cells (horizontal composition) is required to be strictly associative, whereas in the weak version, it needs only be associative up to a
coherent 2-isomorphism.
As a category enriched over Cat Given a
monoidal category V, a category
C enriched over
V is an abstract version of a category; namely, it consists of the data • a class of
objects, • for each pair of objects a, b, a
hom-object \operatorname{Hom}(a, b) in V, •
compositions: morphisms \operatorname{Hom}(b, c) \otimes \operatorname{Hom}(a, b) \to \operatorname{Hom}(a, c) in V, •
identities: morphisms 1 \to \operatorname{Hom}(a, a) in V that are subject to the associativity and the unit axioms. In particular, if V = \textbf{Set} is the category of sets with \otimes cartesian product, then a category enriched over it is an ordinary category. If V = \textbf{Cat}, the category of small categories with \otimes
product of categories, then a category enriched over it is exactly a strict 2-category. Indeed, \operatorname{Hom}(a, b) has a structure of a category; so it gives the 2-cells and vertical compositions. Also, each composition is a functor; in particular, it sends 2-cells to 2-cells and that gives the horizontal compositions. The interchange law is a consequence of the functoriality of the compositions. A similar process for 3-categories leads to
tricategories, and more generally to
weak n-categories for
n-categories, although such an inductive approach is not necessarily common today.
A weak 2-category A weak 2-category or a bicategory can be defined exactly the same way a strict 2-category is defined except that the horizontal composition is required to be associative up to a
coherent isomorphism. The coherent condition here is similar to those needed for
monoidal categories; thus, for example, a monoidal category is the same as a weak 2-category with one 0-cell. In higher category theory, if
C is an
∞-category (a
weak Kan complex) whose structure is determined only by 0-simplexes, 1-simplexes and 2-simplexes, then it is a weak (2, 1)-category; i.e., a weak 2-category in which every 2-morphism is invertible. So, a weak 2-category is an
(∞, 2)-category whose structure is determined only by 0, 1, 2-simplexes. == Examples ==