Category theory Created 2026-09-24 Updated 2026-10-13
Category theory studies mathematical structures through the morphisms between them. A category specifies which objects of a category and arrows are allowed; a functor translates these objects and arrows into another category; a natural transformation compares two such translations coherently. For example, the category of groups records both groups and group homomorphisms, so it remembers which maps respect multiplication.
The usefulness appears in constructions we already know. A Cartesian product combines two sets, while a direct product of groups combines two groups. Both satisfy the same universal property of a categorical product: any pair of maps into the factors comes from exactly one map into the product. This gives a reusable way to construct maps and establish isomorphisms, without depending on a particular choice of coordinates or element labels. In a partially ordered set regarded as a category, the corresponding categorical product is a greatest lower bound. The shared definition exposes a connection between pairing data and finding the best common bound.
Start with the computed examples under category, functor, natural transformation, and product in a category. Their arrow equations are practical tests: do both routes in a commutative diagram produce the same result? Later, the same language organizes tensor products, adjunctions, and the fundamental group of a topological space. Emily Riehl's textbook develops these basic notions before using them to compare constructions across different subjects. [ref]
In their 1945 paper, Samuel Eilenberg and Saunders Mac Lane set out the notions of category, functor, and natural transformation. The introduction uses the relation between a vector space and its dual space to ask which comparisons are natural, setting up a precise language for compatibility with maps. [ref]
https://people.math.osu.edu/cogdell.1/6112-Eilenberg&MacLane-www.pdf. Eilenberg and Mac Lane, General Theory of Natural Equivalences, introduction and sections 1–3
Saunders Mac Lane at left and Samuel Eilenberg at right at a 1992 category theory meeting; photograph by SixWingedSeraph, CC BY-SA 4.0
. Source. For a deterministic binary operation on an abstract data type, let be its specified operation on abstract values and the implementation on concrete states. For every permitted valid input pair , require bothThe first condition preserves the representation invariant. The second makes a commutative diagram: either execute and then apply the abstraction function, or apply the abstraction function to both inputs and then execute the abstract operation ; both paths reach the same value. These conditions state functional correctness of a completed operation; termination is an additional obligation for algorithm correctness.[ref]
8.3 Module Documentation. Sections 8.3.3, Commutative Diagrams, and 8.3.4, Representation Invariants: matching abstract results and preservation of valid representations
For addition in the unreduced rational representation, chooseFor example, represents , precisely the sum of and . The short correctness argument uses nonzero denominators: and imply , preserving the representation invariant, and
Correct rational addition makes both paths agree; an invariant-preserving incorrect operation gives a different value
. Details. Now consider an incorrect implementation that uses addition on the numerators and multiplication on the denominators:It preserves the representation invariant for every valid input pair because its denominator is still . Yet represents , not the specified sum . Even perfect checks of the representation invariant before and after this call would miss the error: the result is a legal representation of the wrong rational number.
The incorrect operation also exposes an accidental dependence on representation. Replace by the equivalent state while keeping . The correct operation gives , still representing ; the incorrect operation gives , representing instead of its previous . A correct addition must yield the same abstract result for equivalent inputs, although its concrete outputs may differ. This is why checks against the formal specification should compare abstract values, including unreduced representations and representations with a negative denominator, rather than demand identical stored pairs.
The calculation assumes exact integers. An implementation with bounded storage must additionally specify how it handles products and sums outside its supported range; the mathematical argument alone does not establish its functional correctness. The bounded queue with encapsulation illustrates the corresponding need to account for returned status values and failed operations, alongside the abstract state transition.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 20 2 i Solution Created 2026-10-03 Updated 2026-10-14
Name the upper objects and the lower objects , so the morphisms are , , , , , , and . The commutative diagram gives and .
Take and with . The right pullback in a category gives a unique with and . The left pullback in a category then gives a unique with and . It follows that , giving the required factorization through the outside rectangle. Any other factorization has the same middle morphism by uniqueness in the right pullback in a category, and therefore is the same by uniqueness in the left pullback in a category. The outside rectangle is a pullback.
Past exam of the mathematics course of the University of Cambridge 2004 iii Paper 22 2 Solution Created 2026-10-03 Updated 2026-10-14
Put and let be the cone vertex. Specify the convention away from the Witt case: first take intersection cohomology to mean the hypercohomology of the intersection complex , normalized in degree zero on the regular stratum. The lower middle perversity at the vertex is . The standard local cone calculation for this convention saysand restriction to is the identity below the cutoff. Here this can also be read directly from the construction , with : punctured conical neighbourhoods retract onto , and the truncation discards the degrees above .
Define relative intersection cohomology as the hypercohomology of the homotopy fibre of restriction, namely . Restricting to the pair gives a map to the corresponding ordinary relative cohomology, since . The induced map of exact triangles gives the requested commutative diagram:Both rows are long exact cohomology sequences of a pair. Commutativity includes the connecting homomorphisms, because they arise from the same map of restriction cones, with a common sign convention. The relative vertical maps are isomorphisms: excision removes the common conical neighbourhood, leaving precisely the manifold pair outside it, where is constant. Also the collar retracts onto , so .
The only possible nonmanifold stratum is , with link of dimension . Since intersection homology of a manifold is ordinary homology, the exact necessary and sufficient condition isThe equivalence with the defining follows from the universal coefficient theorem for cohomology over . In the Witt case the cone restriction is an isomorphism through degree , since both degree- groups are zero. Comparing the two exact rows, or applying the Five lemma to each five-term segment, gives for . For , both and vanish, so the top row identifies the absolute group with the relative one. HenceWithout the Witt hypothesis, comparison still gives for . At degree the upper row readsThe lower row identifies the quotient by with the image of the relative-to-absolute map. In higher degrees both cone terms vanish. Thus the full lower-middle Deligne answer isFor clarity, if is instead defined as the linear dual of the lower-middle intersection chains of question 1, it corresponds to the complementary upper middle perversity Deligne sheaf. Its cone group retains as well. The same diagram then givesEquivalently the exceptional group is . These conventions agree under the stated Witt condition, explaining why that condition removes the ambiguity.
Take the solid torus , whose boundary is the two-dimensional torus . Its ordinary cohomology is , zero otherwise; Poincare duality for a manifold with boundary gives and all other relative groups zero. The lower-middle Deligne formula givesThus degrees one and two have different dimensions, so there can be no three-dimensional Poincare duality. In the dual-lower-chain convention the dimensions are , which likewise fail duality. Both computations exhibit the obstruction .
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 122 2 a Solution Created 2026-10-03 Updated 2026-10-06
An opmonoidal functor consists of a functor, a natural transformationand a morphism . These maps need not be invertible. If are the respective associators and unitors, its axioms areThe first equation has domain and codomain , which fixes the direction of every arrow. This is also called a colax monoidal functor.
An opmonoidal natural transformation between opmonoidal functors is a natural transformation satisfyingIt respects both the tensor and unit comparison maps. These are commutative diagrams and a unit commutative diagram; the arrow directions are opposite to those for a lax monoidal functor.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 122 6 a Solution Created 2026-10-03 Updated 2026-10-06
Because the direction of a lax monoidal functor compares the target tensor with the image of the source tensor, the given maps have the correct direction. They need not be invertible unless a strong monoidal functor is intended.
Their associativity condition is the following commutative diagram, with the associators of the two structures labelled explicitly:The two unit conditions, since , are the unit commutative diagramsTogether with the assumed naturality, these are exactly the axioms for the requested monoidal structure. There are no further coherence conditions.
The faithful strict monoidal functor allows all three diagrams to be checked after applying it. Both tensor structures then have the same underlying tensor and constraints in . In particular, the unit conditions are equivalent toThe associativity square becomes the displayed diagram with every tensor replaced by , both associators by , and every by . Faithfulness reflects equality of the two resulting composites. One should not identify itself with an identity in : its domain and codomain can be distinct objects with the same image under . Intrinsically it is , and similarly on the right.
Past exam of the mathematics course of the University of Cambridge 2022 ii Paper 2 21I Solution Created 2026-09-23 Updated 2026-10-03
The Snake lemma associates to a commutative diagram with exact rows an exact sequenceFor , apply it degree by degree to the short exact sequence of chain complexesThe resulting connecting maps splice the kernels modulo boundaries into the Mayer--Vietoris sequence
Now let satisfy the stated simplicial pseudomanifold conditions. In an -cycle, cancellation at a common -face determines the coefficient of either incident -simplex from the other, up to the orientation sign. Connectivity through such faces therefore determines every top-simplex coefficient from one integer. If the signs are globally compatible, their oriented sum is a cycle and generates ; if they are inconsistent, that integer must be zero and .
Let be the resulting fundamental class, represented by . Since the intersection has dimension below , split uniquely
into top chains in and . Thenand the Mayer--Vietoris boundary isIt is nonzero exactly when both and contain top-dimensional simplices; if one side contains none, the fundamental cycle already lies in the other side, while if both do, connectedness forces a nonempty interface and its oriented boundary represents a nonzero class.
into top chains in and . Thenand the Mayer--Vietoris boundary isIt is nonzero exactly when both and contain top-dimensional simplices; if one side contains none, the fundamental cycle already lies in the other side, while if both do, connectedness forces a nonempty interface and its oriented boundary represents a nonzero class.
Finally take , , and
. The preceding boundaryis a nonzero map between copies of and sends the fundamental class to the oriented boundary torus, hence is an isomorphism. Exactness then givesThe next part of the sequence isSince , it follows that
. The degree-zero sequence makes connected. Therefore
. The preceding boundaryis a nonzero map between copies of and sends the fundamental class to the oriented boundary torus, hence is an isomorphism. Exactness then givesThe next part of the sequence isSince , it follows that
. The degree-zero sequence makes connected. Therefore
Past exam of the mathematics course of the University of Cambridge 2026 iii Paper 101 1 c ii Solution Created 2026-09-24 Updated 2026-09-25
Write the nonsplit short exact sequenceFor an endomorphism , the composite vanishes because . Hence restricts to an endomorphism of and induces an endomorphism of , giving a commutative diagram of short exact sequences.
Because and are brick modules, each of is either zero or an isomorphism. If both are isomorphisms, the short five lemma makes an isomorphism. If both vanish, factors successively through and through , hence through a map ; this map is zero, so .
The mixed cases would split the sequence. If is invertible and , then , so for some ; the identity makes a retraction of . If and is invertible, then , so ; the identity makes a section of . Both contradict nonsplitting. Thus every endomorphism of is zero or invertible, and is a brick.
Pullback pasting lemma 2026-10-14
In a commutative diagram consisting of two horizontally adjacent squares, if both squares are pullbacks in a category, their outside rectangle is a pullback in a category. If the right square and the outside rectangle are pullbacks in a category, the left square is a pullback in a category. To prove the first assertion, factor a compatible pair of morphisms first through the right square and then through the left square. For the second assertion, factor through the rectangle and use uniqueness in the right square to recover the prescribed middle morphism. Each factorization is unique by the same universal properties.

