Categories
Summary
A category consists of objects and morphisms with composition. This note covers the formal definition, elementary examples spanning mathematics, and the size distinctions (small, locally small, large) needed to avoid set-theoretic paradoxes.
Overview
Category theory begins with a single structure: the category. Rather than studying mathematical objects in isolation, category theory studies objects together with the maps between them. The insight is that maps (morphisms) carry as much—often more—information than the objects themselves.
Main Content
Definition 1.1.1: Category
A category consists of:
- A collection of objects
- For each , a collection of maps (morphisms, arrows) from to
- For each , a composition function , written
- For each , an identity map
satisfying:
- Associativity:
- Unit laws: and for all
Notation: Maps may also be written . Collections are called hom-sets (when they are sets).
Core Examples
| Category | Objects | Maps | Composition |
|---|---|---|---|
| Set | sets | functions | function composition |
| Grp | groups | group homomorphisms | homomorphism composition |
| Top | topological spaces | continuous maps | composition |
| Vect | -vector spaces | linear maps | composition |
| Ring | rings | ring homomorphisms | composition |
| Poset | elements of | unique map iff | transitivity |
| Discrete | elements of | only identity maps | trivial |
| Monoid | single object | elements of | multiplication in |
Example: A Monoid as a Category (BCT, Ch. 1.1)
Any monoid is a category with one object . Maps correspond to elements of , composition is multiplication, and the identity map is . A functor between one-object categories is exactly a monoid homomorphism.
Example: A Preorder as a Category (BCT, Ch. 1.1)
A preorder is a category where has exactly one element if and is empty otherwise. Composition encodes transitivity; identity maps encode reflexivity. Functors between preorder categories are exactly order-preserving maps.
Isomorphisms
Definition: Isomorphism
A map is an isomorphism if there exists such that and . We write and call and isomorphic.
The inverse is unique when it exists. In Set, isomorphisms are bijections; in Top, they are homeomorphisms; in Grp, they are group isomorphisms.
Opposite Category
Definition: Opposite Category
The opposite (or dual) category has the same objects as , with and composition reversed. A map in from to is a map in .
Duality is a powerful principle: any theorem about all categories has a dual theorem obtained by reversing all arrows.
Size: Small, Large, Locally Small
Definition: Size Distinctions (BCT, Ch. 3.1–3.2)
- A category is small if is a set (not a proper class) and each is a set.
- A category is locally small if each hom-collection is a set (but may be a proper class).
- Set, Grp, Top are locally small but not small.
- CAT (category of all categories) is not even locally small — the collection of functors between two large categories need not be a set.
Russell’s paradox prevents us from forming the category of all sets (or all categories) naively. The Yoneda lemma requires local smallness (so that representable functors land in Set).
Connections
- Functors (Functors) are the maps between categories — they must preserve composition and identities.
- Natural transformations (Natural Transformations) are maps between functors.
- Limits and colimits (General Limits) are defined purely in terms of the categorical structure.
- The opposite category construction underlies all duality in category theory; colimits are limits in the opposite category.
See Also
- Functors — Maps between categories
- Natural Transformations — Maps between functors
- Adjoint Functors — Special pairs of functors between categories
- General Limits — Universal cones