ArticleslgStudy

science

2-category

2-category is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand 2-category rather than just read about it. In short: In category theory in mathematics, a 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 between functors.

2-category — main illustration
2-category — illustration

Key takeaways

  • 2-category belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect 2-category to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of 2-category from memory before moving on to harder problems.

Reference excerpt

In category theory in mathematics, a 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 between functors. The concept of a strict 2-category was first introduced by Charles Ehresmann in his work on enriched categories in 1965. 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 1967 by Jean Bénabou. A (2, 1)-category is a 2-category where each 2-morphism is invertible.

Definitions

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 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 2Mor⁡(f,g) called the set of 2-cells from f to g, ordinary compositions: maps ∘:Hom⁡(b,c)×Hom⁡(a,b)→Hom⁡(a,c), vertical compositions: maps ∘:2Mor⁡(g,h)×2Mor⁡(f,g)→2Mor⁡(f,h), where f,g,h are in the same hom-set, horizontal compositions: maps ∗:2Mor⁡(u,v)×2Mor⁡(f,g)→2Mor⁡(u∘f,v∘g) for f,g:a→b and u,v:b→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 α:f⇒g for some f,g:a→b, the interchange law: (δ∗β)∘(γ∗α), when defined, is the same as (δ∘γ)∗(β∘α). 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 ∘1,∘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 Hom⁡(a,b) in V, compositions: morphisms Hom⁡(b,c)⊗Hom⁡(a,b)→Hom⁡(a,c) in V, identities: morphisms 1→Hom⁡(a,a) in V that are subject to the associativity and the unit axioms. In particular, if V=𝐒𝐞𝐭 is the category of sets with ⊗ cartesian product, then a category enriched over it is an ordinary category. If V=𝐂𝐚𝐭, the category of small categories with ⊗ product of categories, then a category enriched over it is exactly a strict 2-category. Indeed, 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

Category of small categories The archetypal 2-category is the category of small categories, with natural transformations serving as 2-morphisms. The objects (0-cells) are all small categories, and for objects a and b the hom-set Hom⁡(a,b) acquires a structure of a category as a functor category. A vertical composition is the composition of natural transformations. Similarly, given a monoidal category V, the category of (small) categories enriched over V is a 2-category. Also, if A is a category, then the comma category 𝐂𝐚𝐭↓A is a 2-category with natural transformations that map to the identity.

Grpd 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.

Ord The category Ord of preordered sets is a 2-category since each hom-set has a natural preordered structure; thus a category structure by f≤g⇔f(x)≤g(x) for each element x. More generally, the category of ordered objects in some category is a 2-category.

Boolean monoidal category Consider a simple monoidal category, such as the monoidal preorder Bool 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)).

… excerpt ends here. Continue reading the full article.

Illustrations

2-category illustration
2-category illustration
2-category illustration

Worked examples

Example 1 — a first encounter with 2-category

Start with the simplest possible case. Write down what 2-category claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to 2-category before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about 2-category ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of 2-category

In research
2-category appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses 2-category in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
2-category is common in secondary-school and first-year university syllabi. It links to neighbouring topics Higher category theory, so understanding it makes those chapters shorter.
In everyday life
Look for 2-category outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “2-category” →

How to study 2-category in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what 2-category means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain 2-category out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is 2-category in simple terms?

In category theory in mathematics, a 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 between functors.

Why does 2-category matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study 2-category?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on 2-category.

Tags

  • Higher category theory

Keep exploring