The Stacks project, tag 002U, at revision a04446e (28 July 2026). Official page: stacks.math.columbia.edu/tag/002U
Limits and colimits in the category of sets
Not only do limits and colimits exist in \(\textit{Sets}\) but they are also easy to describe. Namely, let \(M : \mathcal{I} \to \textit{Sets}\), \(i \mapsto M_i\) be a diagram of sets. Denote \(I = \Ob(\mathcal{I})\). The limit is described as \[\lim_\mathcal{I} M = \{ (m_i)_{i\in I} \in \prod\nolimits_{i\in I} M_i \mid \forall \phi : i \to i' \text{ in }\mathcal{I}, M(\phi)(m_i) = m_{i'} \}.\] So we think of an element of the limit as a compatible system of elements of all the sets \(M_i\).
On the other hand, the colimit is \[\colim_\mathcal{I} M = (\coprod\nolimits_{i\in I} M_i)/\sim\] where the equivalence relation \(\sim\) is the equivalence relation generated by setting \(m_i \sim m_{i'}\) if \(m_i \in M_i\), \(m_{i'} \in M_{i'}\) and \(M(\phi)(m_i) = m_{i'}\) for some \(\phi : i \to i'\). In other words, \(m_i \in M_i\) and \(m_{i'} \in M_{i'}\) are equivalent if there are a chain of morphisms in \(\mathcal{I}\) \[\xymatrix{ & i_1 \ar[ld] \ar[rd] & & i_3 \ar[ld] & & i_{2n-1} \ar[rd] & \\ i = i_0 & & i_2 & & \ldots & & i_{2n} = i' }\] and elements \(m_{i_j} \in M_{i_j}\) mapping to each other under the maps \(M_{i_{2k-1}} \to M_{i_{2k-2}}\) and \(M_{i_{2k-1}} \to M_{i_{2k}}\) induced from the maps in \(\mathcal{I}\) above.
This is not a very pleasant type of object to work with. But if the diagram is filtered then it is much easier to describe. We will explain this in Section 4.19.