ArticleslgStudy

mathematics

Category theory

Category theory is a mathematics 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 Category theory rather than just read about it. In short: Category theory is a general theory of mathematical structures and their relations. It was introduced by Samuel Eilenberg and Saunders Mac Lane in the mid-20th century in their foundational work on algebraic topology.

Category theory — main illustration
Category theory — illustration

Key takeaways

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

Reference excerpt

Category theory is a general theory of mathematical structures and their relations. It was introduced by Samuel Eilenberg and Saunders Mac Lane in the mid-20th century in their foundational work on algebraic topology. Category theory can be used in most areas of mathematics. In particular, many constructions of new mathematical objects from previous ones that appear similarly in several contexts are conveniently expressed and unified in terms of categories. Examples include quotient spaces, direct products, completion, and duality. Many areas of computer science also rely on category theory, such as functional programming and semantics. A category is formed by two sorts of objects: the objects of the category, and the morphisms, which relate two objects called the source and the target of the morphism. A morphism is often represented by an arrow from its source to its target (see the figure). Morphisms can be composed if the target of the first morphism equals the source of the second one. Morphism composition has similar properties as function composition (associativity and existence of an identity morphism for each object). Morphisms are often some sort of functions, but this is not always the case. For example, a monoid may be viewed as a category with a single object, whose morphisms are the elements of the monoid. The second fundamental concept of category theory is the concept of a functor, which plays the role of a morphism between two categories 𝒞1 and 𝒞2: it maps objects of 𝒞1 to objects of 𝒞2 and morphisms of 𝒞1 to morphisms of 𝒞2 in such a way that sources are mapped to sources, and targets are mapped to targets (or, in the case of a contravariant functor, sources are mapped to targets and vice-versa). A third fundamental concept is a natural transformation that may be viewed as a morphism of functors.

Categories, objects, and morphisms

Categories A category 𝒞 consists of the following three mathematical entities:

A class ob(𝒞), whose elements are called objects; A class hom(𝒞), whose elements are called morphisms or maps or arrows. Each morphism f has a source object a and target object b.The expression f:a→b would be verbally stated as "f is a morphism from a to b".The expression hom(a,b) – alternatively expressed as hom𝒞(a,b), mor(a,b), or 𝒞(a,b) – denotes the hom-class of all morphisms from a to b. A binary operation ∘, called composition of morphisms, such that for any three objects a, b, and c, we have∘:hom(b,c)×hom(a,b)→hom(a,c)The composition of f:a→b and g:b→c is written as g∘f or gf, governed by two axioms: Associativity: If f:a→b, g:b→c, and h:c→d then h∘(g∘f)=(h∘g)∘f Identity: For every object x, there exists a morphism 1x:x→x (also denoted as idx) called the identity morphism for x, such that for every morphism f:a→b, we have1b∘f=f=f∘1aFrom the axioms, it can be proved that there is exactly one identity morphism for every object.

Example A prototypical example of a category is Set, the category of sets and functions between them. The objects of Set are just sets, and a morphism from a set X to a set Y is a function f : X → Y. The category axioms are satisfied since every set has an identity function, and since composition of functions is associative.

Morphisms Relations among morphisms (such as fg = h) are often depicted using commutative diagrams, with "points" (corners) representing objects and "arrows" representing morphisms. Morphisms can have any of the following properties. A morphism f : a → b is:

a monomorphism (or monic) if f ∘ g1 = f ∘ g2 implies g1 = g2 for all morphisms g1, g2 : x → a. an epimorphism (or epic) if g1 ∘ f = g2 ∘ f implies g1 = g2 for all morphisms g1, g2 : b → x. a bimorphism if f is both epic and monic. an isomorphism if there exists a morphism g : b → a such that f ∘ g = 1b and g ∘ f = 1a. an endomorphism if a = b. end(a) denotes the class of endomorphisms of a. an automorphism if f is both an endomorphism and an isomorphism. aut(a) denotes the class of automorphisms of a. a retraction if a right inverse of f exists, i.e. if there exists a morphism g : b → a with f ∘ g = 1b. a section if a left inverse of f exists, i.e. if there exists a morphism g : b → a with g ∘ f = 1a. Every retraction is an epimorphism, and every section is a monomorphism. Furthermore, the following three statements are equivalent:

f is a monomorphism and a retraction; f is an epimorphism and a section; f is an isomorphism.

Functors

Functors are structure-preserving maps between categories. They can be thought of as morphisms in the category of all (small) categories. A (covariant) functor F from a category C to a category D, written F : C → D, consists of:

for each object x in C, an object F(x) in D; and for each morphism f : x → y in C, a morphism F(f) : F(x) → F(y) in D, such that the following two properties hold:

For every object x in C, F(1x) = 1F(x); For all morphisms f : x → y and g : y → z, F(g ∘ f) = F(g) ∘ F(f). A contravariant functor F: C → D is like a covariant functor, except that it "turns morphisms around" ("reverses all the arrows"). More specifically, every morphism f : x → y in C must be assigned to a morphism F(f) : F(y) → F(x) in D. In other words, a contravariant functor acts as a covariant functor from the opposite category Cop to D.

Natural transformations

A natural transformation is a relation between two functors. Functors often describe "natural constructions" and natural transformations then describe "natural homomorphisms" between two such constructions. Sometimes two quite different constructions yield "the same" result; this is expressed by a natural isomorphism between the two functors. If F and G are (covariant) functors between the categories C and D, then a natural transformation η from F to G associates to every object X in C a morphism ηX : F(X) → G(X) in D such that for every morphism f : X → Y in C, we have ηY ∘ F(f) = G(f) ∘ ηX; this means that the following diagram is commutative:

The two functors F and G are called naturally isomorphic if there exists a natural transformation from F to G such that ηX is an isomorphism for every object X in C.

Other concepts

Universal constructions, limits, and colimits

… excerpt ends here. Continue reading the full article.

Illustrations

Category theory: Schematic representation of three objects and three morphisms of a category, which form a commutative diagram
Schematic representation of three objects and three morphisms of a category, which form a commutative diagram
Category theory: Commutative diagram defining natural transformations
Commutative diagram defining natural transformations

Worked examples

Example 1 — a first encounter with Category theory

Start with the simplest possible case. Write down what Category theory claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, 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 Category theory 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 Category theory 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 Category theory

In research
Category theory appears in mathematics 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 Category theory 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
Category theory is common in secondary-school and first-year university syllabi. It links to neighbouring topics Category theory, Foundations of mathematics, Higher category theory, so understanding it makes those chapters shorter.
In everyday life
Look for Category theory 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 “Category theory” →

How to study Category theory in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Category theory 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 Category theory out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Category theory in simple terms?

Category theory is a general theory of mathematical structures and their relations. It was introduced by Samuel Eilenberg and Saunders Mac Lane in the mid-20th century in their foundational work on algebraic topology.

Why does Category theory matter?

Because it connects several mathematics 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 Category theory?

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 Category theory.

Tags

  • Category theory
  • Foundations of mathematics
  • Higher category theory

Keep exploring