advanced34 min studyLesson 536 in Mathematics

Limits, colimits, and comma categories

Organize compatible diagrams with universal cones and compute finite pullbacks and pushouts.

On this page

What you’ll understand

  • Orient limit cones and colimit cocones correctly.
  • Compute a finite pullback and a finite pushout with their universal maps.
  • Write the object and morphism data of a comma category.

A diagram is a functor, so its arrows carry equations as well as its objects carrying data. A limit collects compatible data coming from a common source; a colimit glues compatible data into a common target. These constructions include products and equalizers, but also handle networks with more intricate shapes. Comma categories turn the associated compatibility conditions into objects and morphisms of a new category, making the universal object a terminal or initial object there.

Cones point into the diagram

Let D:J→CD:J\to\mathcal C be a diagram with small indexing category JJ. A cone with vertex TT consists of maps λj:T→D(j)\lambda_j:T\to D(j) satisfying D(a)λj=λkD(a)\lambda_j=\lambda_k for every arrow a:j→ka:j\to k. A limit is a terminal object in the category of such cones. Thus each competing cone has a unique map from its vertex into the limit vertex that recovers every leg. The direction of this mediating map is part of the definition.

In Set, a limit is the subset of the product of all the diagram's sets consisting of compatible tuples. The equations imposed by diagram arrows explain why a pullback is usually smaller than the unrestricted product. Smallness of the index allows these set constructions, and Set has all small limits. This is not a statement that every category has all limits, or that a proper-class-indexed product can automatically be treated as a set.

D(a)∘λj=λk,C(T,lim⁡D)≅Cone⁡(T,D).D(a)\circ\lambda_j=\lambda_k,\qquad \mathcal C(T,\lim D)\cong\operatorname{Cone}(T,D).
A map into the limit is equivalent to a compatible family of maps from the same source.↔ Scroll wide equations horizontally.

Cocones point out of the diagram

A cocone consists of maps ιj:D(j)→Q\iota_j:D(j)\to Q such that ιkD(a)=ιj\iota_kD(a)=\iota_j. A colimit is initial among cocones: every other cocone receives one uniquely determined map from QQ. In Set, begin with the tagged disjoint union of diagram elements and impose the equivalence relation generated by all arrow identifications. This quotient ensures that compatible functions on the original pieces descend to a well-defined function on the glued object.

A pushout illustrates the distinction between gluing and intersecting. It starts with a span whose two legs share a source, then identifies the two images of every source element. A pullback instead starts with arrows sharing a target and keeps pairs with equal images. The words are dual, but their set formulas are different. Unique mediating maps prove their universal properties; counting surviving elements is only a useful check of the chosen construction.

ιk∘D(a)=ιj,C(colim⁡D,T)≅Cocone⁡(D,T).\iota_k\circ D(a)=\iota_j,\qquad \mathcal C(\operatorname{colim}D,T)\cong\operatorname{Cocone}(D,T).
The mediating map for a colimit leaves the colimit and enters the competing cocone vertex.↔ Scroll wide equations horizontally.

Comma categories record the compatibility equation

For functors F:A→CF:\mathcal A\to\mathcal C and G:B→CG:\mathcal B\to\mathcal C, an object of (F↓G)(F\downarrow G) is a triple (a,b,α)(a,b,\alpha) with α:F(a)→G(b)\alpha:F(a)\to G(b). A morphism to (a′,b′,α′)(a',b',\alpha') is a pair r:a→a′r:a\to a', s:b→b′s:b\to b' satisfying G(s)α=α′F(r)G(s)\alpha=\alpha'F(r). Composition is componentwise, and the equation remains true by functoriality. The downward-arrow notation must be read together with this explicit typing.

The slice category C↓X\mathcal C\downarrow X has arrows into XX as objects and has the identity of XX as a terminal object. The coslice X↓CX\downarrow\mathcal C reverses that arrangement and has the identity as initial. More generally, let Δ:C→CJ\Delta:\mathcal C\to\mathcal C^J be the constant-diagram functor and regard DD as a functor from the terminal category into CJ\mathcal C^J. Then cones form (Δ↓D)(\Delta\downarrow D) and cocones form (D↓Δ)(D\downarrow\Delta). This recovers both universal-object directions systematically.

G(s)∘α=α′∘F(r),α:F(a)→G(b).G(s)\circ\alpha=\alpha'\circ F(r),\qquad \alpha:F(a)\to G(b).
The defining comma-square equation makes a pair of arrows into a morphism.↔ Scroll wide equations horizontally.

Pull back two finite classification maps

Let X={a,b,c}X=\{a,b,c\} map to {0,1}\{0,1\} by values (0,0,1)(0,0,1), and let Y={r,s,t}Y=\{r,s,t\} map there by (0,1,1)(0,1,1). Compute their pullback. Factor the compatible maps from T={p,q}T=\{p,q\} whose X-values are (a,c)(a,c) and Y-values are (r,t)(r,t).

  1. Pairs over zero are (a,r)(a,r) and (b,r)(b,r). Pairs over one are (c,s)(c,s) and (c,t)(c,t). These four pairs, with coordinate projections, form the candidate pullback; all other pairs have unequal images.

  2. The unique mediating map sends p to (a,r)(a,r) and q to (c,t)(c,t). Its projections recover both given maps. Any other map with these projections would have the same two coordinates at each point and hence be identical.

  3. For a two-point test set, choosing any one of the four compatible pairs at each point gives sixteen compatible pairs of functions. Unrestricted pairs of functions into X and Y number eighty-one, so the compatibility condition is a genuine restriction.

∣X×{0,1}Y∣=2⋅1+1⋅2=4,∣Set(T,X×{0,1}Y)∣=42=16.|X\times_{\{0,1\}}Y|=2\cdot1+1\cdot2=4,\qquad |\mathbf{Set}(T,X\times_{\{0,1\}}Y)|=4^2=16.
The fiberwise product count matches the explicit list of compatible pairs.↔ Scroll wide equations horizontally.
The result

The pullback has four points, and every compatible pair of maps from the two-point test set factors uniquely through one of sixteen maps.

Explore the model

Interactive lab

Interactive lab · modular

A quotient by generated identifications

Pause and Reset, then set modulus to 6 and additive step to 2. Predict the orbit {0,2,4}; its translate by one is {1,3,5}. These are the two classes in the coequalizer of identity and the shift r↦r+2 on six residues. For a fresh comparison, Pause and Reset, then set modulus to 6 and step to 1; all residues form one class. A control change preserves the clock. The instrument follows one orbit, while the quotient's factorization property is proved separately.

A quotient by generated identificationsAddition modulo m starts at zero: rₙ = na mod m. Playback advances two additions per second. The orbit has period m/gcd(m,a), including period one for a = 0. This is not a cryptographic security test or a primality algorithm. Current readings: Residue r0: 0; Orbit period · m/gcd(m,a): 12; Distinct residues visited: 1 of 12. All parameters are adjustable with the labeled controls below.Repeated addition modulo 12: the current residue is 0, and the orbit period is 12.01234567891011+ 5mod 12An additive orbitn = 0rₙ = 0Period = 12Cycle starts at 0:0 → 5 → 10 → 3 →8 → 1 → 6 → 11 →4 → 9 → 2 → 7 → 0Exact residues · two additions per second
Additive orbitCurrent residue / next edge
Residue r0
0
Orbit period · m/gcd(m,a)
12
Distinct residues visited
1 of 12
t = 0 s

Addition modulo m starts at zero: rₙ = na mod m. Playback advances two additions per second. The orbit has period m/gcd(m,a), including period one for a = 0. This is not a cryptographic security test or a primality algorithm. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forA colimit quotient closes the required identifications under equivalence, rather than merely listing pairs to identify.

Check your understanding

What is the universal direction for a limit cone with vertex L?

Try it yourself

Form the pushout in Set of X←A→YX\leftarrow A\to Y, where X={x0,x1}X=\{x_0,x_1\}, Y={y0,y1,y2}Y=\{y_0,y_1,y_2\}, and AA is a singleton sent to x0x_0 and y0y_0. Count its points and its maps to a three-element set.

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

Start with five tagged elements and impose exactly the identification forced by the singleton. For the mapping count, the images of the identified pair must agree.

Compare with the solution

The quotient has four classes: the common class of x0,y0x_0,y_0, and the separate classes of x1,y1,y2x_1,y_1,y_2. It has 34=813^4=81 maps to a three-element target. Compatible pairs of maps from X and Y also number 81: choose one shared value for x0,y0x_0,y_0, then choose the three remaining values independently. Such a pair descends uniquely to the quotient.

Take it with you

  • A limit is terminal among cones whose legs enter the diagram.
  • A colimit is initial among cocones whose legs leave the diagram.
  • Comma categories encode structured arrows and their commuting compatibility squares.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.