2-category
![]() | It has been suggested that Lax functor be merged into this article. (Discuss) Proposed since April 2025. |
In category theory, a strict 2-category is a category with "morphisms between morphisms", called 2-morphisms. A basic example is the category Cat of all (small) categories, where a 2-morphism is a natural transformation.
The concept of 2-category was first introduced by Charles Ehresmann in his work on enriched categories in 1965.[1] The more general concept of bicategory (or weak 2-category), where composition of morphisms is associative only up to a 2-isomorphism, was introduced in 1968 by Jean Bénabou.[2]
A (2, 1)-category is a 2-category where each 2-morphism is invertible.
Definition
[edit]A 2-category C consists of:
- A class of 0-cells (or objects) A, B, ....
- 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 object A there is a functor from the terminal category (with one object and one arrow) to that picks out the identity 1-cell idA on A and its identity 2-cell ididA. 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.
Bicategories may be considered as a weakening of the definition of 2-categories. A similar process for 3-categories leads to tricategories, and more generally to weak n-categories for n-categories.
Weak 2-category
[edit]Formally, a weak 2-category or bicategory B consists of:
- objects a, b, ... called 0-cells;
- morphisms f, g, ... with fixed source and target objects called 1-cells;
- "morphisms between morphisms" ρ, σ, ... with fixed source and target morphisms (which should have themselves the same source and the same target), called 2-cells;
with some more structure:
- given two objects a and b there is a category B(a, b) whose objects are the 1-cells and morphisms are the 2-cells. The composition in this category is called vertical composition;
- given three objects a, b and c, there is a bifunctor called horizontal composition.
The horizontal composition is required to be associative up to a natural isomorphism α between morphisms and . Some more coherence axioms, similar to those needed for monoidal categories, are moreover required to hold: a monoidal category is the same as a bicategory with one 0-cell.
Examples
[edit]The category Ord (of preordered sets) is a 2-category since preordered sets can easily be interpreted as categories.
Category of small categories
[edit]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.
Grpd
[edit]Like Cat, groupoids (categories where morphisms are invertible) form a 2-category, where a 2-morphism is a natural transformation. Often, one also considers Grpd where all 2-morphisms are invertible transformations. In the latter case, it is a (2, 1)-category.
Boolean monoidal category
[edit]Consider a simple monoidal category, such as the monoidal preorder Bool[5] based on the monoid M = ({T, F}, ∧, T). As a category this is presented with two objects {T, F} and single morphism g: F → T.
We can reinterpret this monoid as a bicategory with a single object x (one 0-cell); this construction is analogous to construction of a small category from a monoid. The objects {T, F} become morphisms, and the morphism g becomes a natural transformation (forming a functor category for the single hom-category B(x, x)).
Duskin nerve
[edit]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.[6] Then the following are equivalent: [7]
- is a (2, 1)-category; i.e., each 2-morphism is invertible.
- is a weak Kan complex.
The Duskin nerve is an instance of the homotopy coherent nerve.
2-functor
[edit]A 2-functor is a morphism between 2-categories.[8] They may be defined formally using enrichment by saying that a 2-category is exactly a Cat-enriched category and a 2-functor is a Cat-functor.[9]
Explicitly, if C and D are 2-categories then a 2-functor consists of
- a function , and
- for each pair of objects , a functor
such that each strictly preserves identity objects and they commute with horizontal composition in C and D.
See [10] for more details and for lax versions.
See also
[edit]- n-category
- 2-category at the nLab
- Doctrine (mathematics)
- pseudofunctor
- String diagram
- 2-Yoneda lemma
References
[edit]- ^ Charles Ehresmann, Catégories et structures, Dunod, Paris 1965.
- ^ Jean Bénabou, Introduction to bicategories, in Reports of the Midwest Category Seminar, Springer, Berlin, 1967, pp. 1--77.
- ^ "2-category in nLab". ncatlab.org. Retrieved 2023-02-20.
- ^ "vertical composition in nLab". ncatlab.org. Retrieved 2023-02-20.
- ^ Fong, Brendan; Spivak, David I. (2018-10-12). "Seven Sketches in Compositionality: An Invitation to Applied Category Theory". arXiv:1803.05316 [math.CT].
- ^ Khan 2023, Construction 1.5.1.
- ^ Khan 2023, Theorem 1.5.2.
- ^ Kelly, G. M.; Street, Ross (1974). "Review of the elements of 2-categories". In Kelly, Gregory M. (ed.). Category Seminar: Proceedings of the Sydney Category Theory Seminar, 1972/1973. Lecture Notes in Mathematics. Vol. 420. Springer. pp. 75–103. doi:10.1007/BFb0063101. ISBN 978-3-540-06966-9. MR 0357542.
- ^ G. M. Kelly. Basic concepts of enriched category theory. Reprints in Theory and Applications of Categories, (10), 2005.
- ^ 2-functor at the nLab
- J. Bénabou. "Introduction to bicategories, part I". In Reports of the Midwest Category Seminar, Lecture Notes in Mathematics 47, pages 1–77. Springer, 1967.
- Adeel A. Khan, A modern introduction to algebraic stacks, https://www.preschema.com/lecture-notes/2022-stacks/
- Generalised algebraic models, by Claudia Centazzo.
- Garth Warner: Fibrations and Sheaves, EPrint Collection, University of Washington (2012) [1]
- Laumon, Gérard; Moret-Bailly, Laurent (2000). Champs algébriques. Ergebnisse der Mathematik und ihrer Grenzgebiete. 3. Folge. A Series of Modern Surveys in Mathematics. Vol. 39. Berlin, New York: Springer-Verlag. doi:10.1007/978-3-540-24899-6. ISBN 978-3-540-65761-3. MR 1771927.
Further reading
[edit]- Bicategory at the nLab
External links
[edit]Media related to Strict 2-category at Wikimedia Commons