Limits, Colimits, and Kan Extensions
Limits and colimits are the universal cones and cocones over diagrams in a category, unifying products, equalizers, pullbacks, coproducts, coequalizers, and pushouts. Kan extensions are the most general universal construction in category theory — left and right adjoints to restriction along a functor — and "all concepts are Kan extensions" (Mac Lane). Applies across algebra, topology, logic, and theoretical computer science. Formalized by Daniel Kan (1958), Grothendieck, and the Yoneda school in the mid-20th century.
A universal property says an object is determined up to unique isomorphism by how it maps to or from everything else. Limits collect a diagram into a single object via a terminal cone; colimits via an initial cocone. Kan extensions are the universal way to "transport" a functor along another functor, and they reduce to limits/colimits computed pointwise via (co)comma categories. The slogan "all concepts are Kan extensions" reflects that representability, adjunctions, and (co)limits are all instances of one construction.
Formal Statement
Let (the index or shape category) be small and a category. A diagram of shape is a functor . For an object , write for the constant diagram sending every object to and every morphism to . A cone over with apex is a natural transformation , i.e. a family of morphisms such that for every in ,
Derivation hint: Naturality of on the morphism gives the square; the side is the identity, collapsing it to a triangle. A cocone under with nadir is dually a natural transformation , with components satisfying .
A limit of is a cone that is terminal among cones: for any cone there is a unique with for all . We write or . Equivalently, the limit represents the cone functor:
naturally in . Derivation hint: Yoneda — a representing object for the functor is precisely a terminal cone; the universal element is the limiting cone . A colimit is the initial cocone, with the dual representation
Derivation hint: Dualize [2] by reversing every arrow and passing to ; a colimit in is a limit in .
Let and be functors. The left Kan extension of along , written , is a functor equipped with a natural transformation that is initial: for any there is a unique with . Equivalently, is left adjoint to restriction :
Derivation hint: The defining universal property is exactly the unit/counit description of the adjunction ; is the unit. The right Kan extension is right adjoint to , with terminal and
Derivation hint: Right adjoint to ; dual of [4]. Both adjoints exist when has enough (co)limits, by the pointwise formula below.
Suppose is small and is cocomplete (resp. complete). Then (resp. ) exists and is computed pointwise by a colimit (resp. limit) over a comma category:
Derivation hint: The comma category has objects ; the colimit glues the values weighted by all maps into . Verify the universal property [4] by Fubini for colimits / coend manipulation.
Derivation hint: Dual to [6] using the comma category of objects ; this is a limit in . These admit the elegant (co)end expressions, valid in -enriched or general -enriched contexts:
Derivation hint: is the -fold copower and the -fold power; the coend over replaces the comma-category colimit by a tensor weighted with the hom-set . The Fubini theorem for ends justifies rewriting [6] as a coend.
Let be the terminal category and the unique functor. For a diagram ,
Derivation hint: The comma category (resp. ), so [6]–[7] collapse to a colimit/limit over all of . This is the precise sense in which (co)limits are Kan extensions.
Why It Holds / Derivation
We verify [4] using the pointwise definition [6]. Fix .
Step 1 — Components. Define , with colimit injections . Functoriality in comes from postcomposition for , inducing .
Step 2 — The unit. For , the object lives in , giving . Naturality of follows from compatibility of injections.
Step 3 — From to . Given , define on the cocone by
Derivation hint: The right-hand side is a cocone under the diagram (check compatibility using naturality of and functoriality of ); the universal property of the colimit produces the unique .
Step 4 — Triangle identity. Setting in [10] gives , i.e. .
Step 5 — Uniqueness. Any with must satisfy [10] on every injection (decompose through and naturality), and a map out of a colimit is determined by its restriction to the cocone. Hence . This establishes the bijection [4], natural in .
∎Apply [5] with , , . A functor is just an object , and . Thus
Derivation hint: First iso is Yoneda in ; second is the adjunction [5]; the last equality unfolds . Comparing with the limit representation [2], represents the same functor , hence is canonically . The colimit case is dual via [4].
∎Born Daniel Kan in Amsterdam, he survived WWII and emigrated to Israel, completing his doctorate under Samuel Eilenberg's influence. In his 1958 paper "Adjoint Functors" (Trans. AMS) he simultaneously introduced adjoint functors and the extension functors now bearing his name. Kan's instinct was profoundly homotopical: he developed simplicial methods, the Kan condition on simplicial sets (fibrant objects), Kan loop groups, and was a central architect of modern homotopy theory at MIT. The Kan extension was his tool for transporting homotopy-theoretic structure between categories; Mac Lane later elevated the slogan "all concepts are Kan extensions" to a guiding principle of Categories for the Working Mathematician (1971). Kan's combination of abstract categorical machinery with concrete homotopy computation set the template for the field.
Building Intuition
Think of a diagram as a system of compatible constraints. A cone over is a candidate "solution" mapping consistently into every constraint; the limit is the most efficient solution — every other solution factors uniquely through it. For products this is "carry all coordinates at once"; for equalizers it is "the largest subobject on which two maps agree"; for pullbacks it is "matched pairs." Dually, the colimit is the most economical gluing: a coproduct is disjoint union, a coequalizer identifies as little as forced, a pushout glues two objects along a shared piece. For Kan extensions, picture as a "change of base." You know on and want a functor on the larger . The left Kan extension is the freest extension — it builds by gluing all the data that maps into via (a colimit). The right Kan extension is the cofreest — it assembles for all maps out of (a limit). The comma categories and are precisely "everything in that sees from below / from above."
If you think of as a spacetime lattice and as a field configuration assigning data to each site, the limit is a global section consistent with all local restriction maps — like a solution to gauge constraints. Colimits are coarse-grainings: gluing local field data along overlaps (a pushout) is precisely how one builds a manifold from charts or a fiber bundle by clutching. Kan extension is the categorical version of induced and coinduced representations in physics: extend a symmetry from a subgroup to — induction is a left Kan extension, coinduction a right Kan extension along .
```svg
```
Worked Examples
Given. Let , , , with maps , , and , . The shape is the cospan .
Steps. 1. The pullback is the limit, computed as — a set of matched pairs. 2. Enumerate: since ; likewise; since . No others: forces , forces . 3. Projections , form the limiting cone, and the square commutes: .
Answer.
Given. Let be the discrete category on one object , the two-object discrete category , sending , and with , . Target is cocomplete.
Steps. 1. Use the pointwise formula [6]: . 2. At : comma category has one object since the only map is the identity (discrete). Colimit over a one-object discrete category is just . So , size . 3. At : has objects , but discrete means no morphism . The comma category is empty; colimit over the empty diagram is the initial object .
Answer.
This is the categorical "extension by zero" — left Kan extension along an inclusion fills the new spot with the initial object.
Common Misconceptions
Functors do not automatically preserve (co)limits. A functor preserves limits iff it maps limiting cones to limiting cones; this is a theorem to verify, not a definition. Key fact: right adjoints preserve limits (RAPL) and left adjoints preserve colimits (LAPC), but the converses fail without further hypotheses (need a solution-set condition — Freyd's Adjoint Functor Theorem). The forgetful functor preserves limits (it has a left adjoint, the free group functor) but does not preserve colimits: the coproduct of groups is the free product, whose underlying set is not the disjoint union.
Kan extensions need not be "pointwise." The pointwise formulas [6]–[7] require to have the relevant (co)limits. A Kan extension defined only by the universal property [4]/[5] may exist without being computable pointwise (in enriched or higher-categorical settings the distinction is genuine). In ordinary -categories with (co)complete the two coincide, but never assume the comma-category formula holds by default.
Limits need not exist. In the category of fields, the product of and does not exist: any field receiving maps to both would need characteristic simultaneously and , which is impossible since there is no field of mixed characteristic, and has no terminal object. Thus the empty diagram (whose limit is the terminal object) already fails, and binary products fail too. Completeness is a strong condition, not automatic.
Connections
Limits and colimits are the load-bearing structure beneath nearly all of category theory. They are special weighted limits in the Enriched Category Theory sense, and the (co)end formulas [8] live there naturally. Via the Yoneda Lemma, every presheaf is canonically a colimit of representables (the density theorem), which is itself a Kan extension statement: the identity functor on presheaves is . The relation exhibits restriction as having both adjoints, tying directly to Adjoint Functors. The pointwise formula is the categorical avatar of the Coend Calculus, and in homotopical settings these become homotopy (co)limits and derived Kan extensions, the foundation of Model Categories and -category theory.
Real-World Applications
Historical Development
Subtleties & Limits
The passage from ordinary to higher-categorical Kan extensions is subtle and still actively developed. Pointwise formulas in -categories require homotopy colimits over -comma categories, and ensuring functoriality/coherence is technically demanding (handled via straightening–unstraightening or via -cosmoi). Beyond , fully lax and oplax Kan extensions, and Kan extensions in double categories and bicategories, lack a uniformly clean theory; existence and pointwise-computability can fail or split into inequivalent notions. Open programmatic questions include the right framework for derived Kan extensions in motivic and condensed mathematics, and effective/computable presentations of Kan extensions for use in proof assistants and database theory where size and decidability obstructions (solution-set conditions, accessibility) become practically binding.
See Also
Adjoint Functors · Yoneda Lemma · Comma Categories · Coend Calculus · Enriched Category Theory · Monads and Algebras · Topos Theory · Higher Category Theory