Universal property of the disjoint union

https://arbital.com/p/disjoint_union_universal_property

by Patrick Stevens Sep 11 2016 updated Oct 23 2016

Just as the empty set may be described by a universal property, so too may the disjoint union of sets.


[summary: The Disjoint union of sets may be described by a Universal property which is very similar to that of the universal property of the product. Specifically, the disjoint union of sets A and B is a set denoted AB together with maps iA:AAB and iB:BAB, such that for every set X and every pair of maps fA:AX and fB:BX, there is a unique map γ:ABX such that γiA=fA and γiB=fB.]

[summary(Technical): The Disjoint union of sets may be described as the [-coproduct] in the category of sets. Specifically, the disjoint union of sets A and B is a set denoted AB together with maps iA:AAB and iB:BAB, such that for every set X and every pair of maps fA:AX and fB:BX, there is a unique map γ:ABX such that γiA=fA and γiB=fB.]

Where could we start if we were looking for a nice "easy" Universal property describing the union of sets?

The first thing to notice is that universal properties only identify objects up to Isomorphism, but there's a sense in which the union is not Well-defined Up to isomorphism: it is possible to find sets A and B, and sets A and B, with A isomorphic to A and B isomorphic to B, but where AB is not isomorphic to AB. %%note: In this case, when we're talking about sets, an isomorphism is just a bijection.%%

%%hidden(The union is not well-defined up to isomorphism in this sense): Consider A={1} and B={1}. Then the union AB is equal to {1}.

On the other hand, consider X={1} and Y={2}. Then the union XY={1,2}.

So by replacing A with the isomorphic X, and B with the isomorphic Y, we have obtained {1,2} which is not isomorphic to {1}=AB. %%

So it's not obvious whether the union could even in principle be defined by a universal property.%%note: Actually [union_universal_property it is possible].%%

But we can make our job easier by taking the next best thing: the disjoint union AB, which is well-defined up to isomorphism in the above sense: the definition of AB is constructed so that even if A and B overlap, the intersection still doesn't get treated any differently.

Before reading this, you should make sure you grasp the Disjoint union of sets well enough to know the difference between the two sets {2,3,5}{2,6,7} and {2,3,5}{2,6,7}.

%%hidden(Brief recap of the definition): Given sets A and B, we define their disjoint union to be AB=AB, where A={(a,1):aA} and B={(b,2):bB}. That is, "tag each element of A with the label 1, and tag each element of B with the label 2; then take the union of the tagged sets". %%

The important fact about the disjoint union here is that if AA and BB, then ABAB. This is the fact that makes the disjoint union a fairly accessible idea to bring under the umbrella of category theory, and it also means we are justified in using a convention that simplifies a lot of the notation: we will assume from now on that A and B are disjoint. (Since we only care about them up to isomorphism, this is fine to do: we can replace A and B with some disjoint pair of sets of the same size if necessary, to ensure that they are disjoint.)

[toc:]

Universal property of disjoint union

How can we look at the disjoint union solely in terms of the maps to and from it? First of all, how can we look at the disjoint union at all in terms of those maps?

There are certainly two maps AAB and BAB: namely, the [inclusion_map inclusions] iA:aa and iB:bb. But that's not enough to pin down the disjoint union precisely, because those maps exist not just to AB but also to any superset of AB. %%note: If this is not obvious, stop and think for a couple of minutes about the case A={1}, B={2}, AB={1,2}, and the superset {1,2,3} of AB.%% So we need to find some way to limit ourselves to AB.

The key limiting fact about the disjoint union is that any map from the disjoint union can be expressed in terms of two other maps (one from A and one from B), and vice versa. The following discussion shows us how.

The reason this pins down the disjoint union exactly (up to isomorphism) is because the disjoint union is the only set which leaves us with no choice about how we construct f from α and β:

The property

One who is well-versed in category theory and universal properties would be able to take the above discussion and condense it into the following statement, which is the universal property of the disjoint union:

Given sets A and B, we define the disjoint union to be the following collection of three objects: A set labelled  ABiA:AABiB:BAB with the requirement that for every set X and every pair of maps fA:AX and fB:BX, there is a unique map f:ABX such that fiA=fA and fiB=fB.

[comment: Imgur was down when I made this picture, so I'm hosting it instead.] Disjoint union universal property

Aside: relation to the product

Recall the Universal property of the product:

Given objects A and B, we define the product to be the following collection of three objects, if it exists: A×BπA:A×BAπB:A×BB with the requirement that for every object X and every pair of maps fA:XA,fB:XB, there is a unique map f:XA×B such that πAf=fA and πBf=fB.

Notice that this is just the same as the universal property of the disjoint union, but we have reversed the domain and codomain of every function, and we have correspondingly reversed any function compositions. This shows us that the product and the disjoint union are, in some sense, "two sides of the same coin". If you remember the Universal property of the empty set, we saw that the empty set's universal property also had a "flip side", and this flipped property characterises the one-element sets. So in the same sense, the empty set and the one-point sets are "two sides of the same coin". This is an instance of the concept of [duality_category_theory duality], and it turns up all over the place.

Examples

{1} ⊔ {2}

Let's think about the very first example that came from the top of the page: the disjoint union of A={1} and B={2}. (This is, of course, {1,2}, but we'll try and tie the universal property point of view in with the elements point of view.)

The definition becomes:

The disjoint union of {1} and {2} is the following collection of three objects: A set labelled {1}{2}iA:{1}{1}{2}iB:{2}{1}{2} with the requirement that for every set X and every pair of maps fA:{1}X and fB:{2}X, there is a unique map f:ABX such that fiA=fA and fiB=fB.

This is still long and complicated, but remember from when we discussed the product that a map fA:{1}X is precisely picking out a single element of X: namely fA(1). To every element of X, there is exactly one such map; and for every map {1}X, there is exactly one element of X it picks out. (Of course, the same reasoning goes through with B as well: fB is just picking out an element of X, too.)

Also, iA and iB are just picking out single elements of AB, though we are currently pretending that we don't know what AB is yet.

So we can rewrite this talk of maps in terms of elements, to make it easier for us to understand this definition in the specific case that A and B have just one element each:

The disjoint union of {1} and {2} is the following collection of three objects: A set labelled  {1}{2}An element iA of {1}{2}An element iB of {1}{2} with the requirement that for every set X and every pair of elements xX and yX, there is a unique map f:ABX such that f(iA)=x and f(iB)=y.

From this, we can see that iA and iB can't be the same, because f acts differently on them (if we take X={x,y} where xy, for instance). But also if there were any z in {1}{2} other than iA and iB, then for any attempt at our unique f:ABX, we would be able to make a different f by just changing where z is sent to.

So AB is precisely the set {iA,iB}; and this has determined it up to isomorphism as "the set with two elements".

Aside: Cardinality

Notice that the disjoint union of "the set with one element" and "the set with one element" yields "the set with two elements". It's actually true for general finite sets that the disjoint union of "the set with m elements" with "the set with n elements" yields "the set with m+n elements"; a few minutes' thought should be enough to convince you of this, but it is an excellent exercise for you to do this from the category-theoretic universal properties viewpoint as well as from the (much easier) elements viewpoint. We will touch on this connection between "disjoint union" and "addition" a bit more later.

The empty set

What is the disjoint union of the Empty set with itself? (Of course, it's just the empty set, but let's pretend we don't know that.) The advantage of this example is that we already know a lot about the Universal property of the empty set, so it's a good testing ground to see if we can do this without thinking about elements at all.

Recall that the empty set is defined as follows:

The empty set is the unique set such that for every set X, there is precisely one function X.

The disjoint union of with itself would be defined as follows (where I've stuck to using A and B in certain places, because otherwise the whole thing just fills up with the symbol):

The following collection of three objects: A set labelled  ABiA:ABiB:AB with the requirement that for every set X and every pair of maps fA:X and fB:X, there is a unique map f:ABX such that fiA=fA and fiB=fB.

Now, since we know that for every set X there is a unique map !X:X %%note: In general, the exclamation mark ! is used for a uniquely-defined map.%%, we can replace our talk of fA and fB by just the same !X:

The following collection of three objects: A set labelled  ABiA:ABiB:AB with the requirement that for every set X, there is a unique map f:ABX such that fiA=(!X) and fiB=(!X).

Moreover, we know that iA and iB are also uniquely defined, because there is only one map AB (no matter what AB might end up being); so we can remove them from the definition because they're forced to exist anyway. They're both just !AB.

The set AB with the requirement that for every set X, there is a unique map f:ABX such that f(!AB)=(!X).

A diagram is in order.

Universal property of the disjoint union of the empty set with itself

The universal property is precisely saying that for every set X, there is a unique map f:ABX such that f(!AB) is the map !X:X.

But since !X is the only map from X, we have f(!AB)=(!X) whatever f is. Indeed, f(!AB) is a map from X, and !X is the only such map. So we can drop that condition from the requirements, because it automatically holds!

Therefore the disjoint union is:

The set AB with the requirement that for every set X, there is a unique map f:ABX.

Do you recognise that definition? It's just the universal property of the empty set!

So AB is the empty set in this example.

More general concept

We saw earlier that the disjoint union is characterised by the "reverse" (or "[duality_category_theory dual]") of the universal property of the product. In a more general category, we say that something which satisfies this property is a [-coproduct]. %%note: Prepending "co" to something means "reverse the maps".%%

In general, the coproduct of objects A and B is written not as AB (which is specific to the category of sets), but as A+B. Among other things, the coproduct unifies the ideas of addition of integers, [least_upper_bound least upper bounds] in posets, disjoint union of sets, Least common multiple of naturals, Direct sum of vector spaces, and [-free_product] of groups; all of these are coproducts in their respective categories.