For all objects A and B, a category . The objects of this category are called 1-cells and its morphisms are called 2-cells; the composition in this category is usually written or and called vertical composition or composition along a 1-cell.
For any objectA there is a functor from the terminalcategory (with one object and one arrow) to that picks out the identity 1-cellidA on A and its identity 2-cellididA. In practice these two are often denoted simply by A.
For all objects A, B and C, there is a functor , called horizontal composition or composition along a 0-cell, which is associative and admits[clarification needed] the identity 1 and 2-cells of idA as identities. Here, associativity for means that horizontally composing twice to is independent of which of the two and are composed first. The composition symbol is often omitted, the horizontal composite of 2-cells and being written simply as .
The 0-cells, 1-cells, and 2-cells terminology is replaced by 0-morphisms, 1-morphisms, and 2-morphisms in some sources[3] (see also Higher category theory).
The notion of 2-category differs from the more general notion of a bicategory in that composition of 1-cells (horizontal composition) is required to be strictly associative, whereas in a bicategory it needs only be associative up to a 2-isomorphism. The axioms of a 2-category are consequences of their definition as Cat-enriched categories:
Vertical composition is associative and unital, the units being the identity 2-cells idf.
Horizontal composition is also (strictly) associative and unital, the units being the identity 2-cells ididA on the identity 1-cells idA.
The interchange law holds; i.e. it is true that for composable 2-cells
The interchange law follows from the fact that is a functor between hom categories. It 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.
Examples
The category Ord (of preordered sets) is a 2-category since preordered sets can easily be interpreted as categories.
Category of small categories
The archetypal 2-category is the category of small categories, with natural transformations serving as 2-morphisms; typically 2-morphisms are given by Greek letters (such as above) for this reason.
The objects (0-cells) are all small categories, and for all objects A and B the category is a functor category. In this context, vertical composition is[4] the composition of natural transformations.
Duskin nerve
The Duskin nerve of a 2-category C is a simplicial set where each n-simplex is determined by the following data: n objects , morphisms and 2-morphisms that are subject to the (obvious) compatibility conditions.[5] Then the following are equivalent: [6]
is a (2, 1)-category; i.e., each 2-morphism is invertible.
This page is based on this Wikipedia article Text is available under the CC BY-SA 4.0 license; additional terms may apply. Images, videos and audio are available under their respective licenses.