In the category Set a ‘pushout’ is a quotient of the disjoint union of two sets. Given a diagram of sets and functions like this:
the ‘pushout’ of this diagram is the set obtained by taking the disjoint union and identifying with if there exists such that and (and all identifications that follow to keep equality an equivalence relation).
This construction comes up, for example, when is the intersection of the sets and , and and are the obvious inclusions. Then the pushout is just the union of and .
Note that there are maps , such that and respectively. These maps make this square commute:
In fact, the pushout is the universal solution to finding a commutative square like this. In other words, given any commutative square
there is a unique function such that
and
Since this universal property expresses the concept of pushout purely arrow-theoretically, we can formulate it in any category. It is, in fact, a simple special case of a colimit.
A pushout is a colimit of a diagram like this:
Such a diagram is called a span. If the colimit exists, we obtain a commutative square
and the object is also called the pushout. It has the universal property already described above in the special case of the category .
Note that the concept of pushout is dual to the concept of pullback: that is, a pushout in is the same as a pullback in .