Limits, colimits, and comma categories
Organize compatible diagrams with universal cones and compute finite pullbacks and pushouts.
On this page
The question for today
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 be a diagram with small indexing category . A cone with vertex consists of maps satisfying for every arrow . 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.
Cocones point out of the diagram
A cocone consists of maps such that . A colimit is initial among cocones: every other cocone receives one uniquely determined map from . 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.
Comma categories record the compatibility equation
For functors and , an object of is a triple with . A morphism to is a pair , satisfying . 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 has arrows into as objects and has the identity of as a terminal object. The coslice reverses that arrangement and has the identity as initial. More generally, let be the constant-diagram functor and regard as a functor from the terminal category into . Then cones form and cocones form . This recovers both universal-object directions systematically.
Work it through
Pull back two finite classification maps
Let map to by values , and let map there by . Compute their pullback. Factor the compatible maps from whose X-values are and Y-values are .
Pairs over zero are and . Pairs over one are and . These four pairs, with coordinate projections, form the candidate pullback; all other pairs have unequal images.
The unique mediating map sends p to and q to . 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.
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.
The pullback has four points, and every compatible pair of maps from the two-point test set factors uniquely through one of sixteen maps.
The living notebook
Explore the model
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.
- Residue r0
- 0
- Orbit period · m/gcd(m,a)
- 12
- Distinct residues visited
- 1 of 12
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.
Pause & reason
Check your understanding
Your turn
Try it yourself
Form the pushout in Set of , where , , and is a singleton sent to and . 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 , and the separate classes of . It has maps to a three-element target. Compatible pairs of maps from X and Y also number 81: choose one shared value for , then choose the three remaining values independently. Such a pair descends uniquely to the quotient.
Keep the idea
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.