Sets and Mathematical Proofs: A Primer

13Unions

Given two sets X and Y, their union is the set containing those objects which belong to at least one of them. We write it XY. So the inclusion criterion for XY is xX or xY. Where intersection asks for both, union asks for at least one. (Note that we use “or” in the inclusive sense: if x belongs to both X and Y, then we say it is true that “xX or xY”.)

Definition 9 (Union). XY = {x : xX or xY}, where the “or” is inclusive.

XY
Figure 7. The union XY.

For example, {7, 8, 9} ∪ {8, 9, 10} = {7, 8, 9, 10}. In Figure 7, XY is the shaded region: everything inside either circle, the overlap included.

Where intersection only ever made a set smaller, union only ever makes it bigger.

Proposition 15 (each set is a subset of the union). For any sets X and Y, XXY and YXY.

Suppose xX. Then we immediately have xX or xY; hence x satisfies the inclusion criterion for XY; hence xXY. Since x was chosen arbitrarily, it follows that XXY.

The proof that YXY is exactly analogous.

The remaining facts about union are the mirror images of the ones we proved about intersection in Section 12, with “or” in place of “and”. Rather than prove them for you, I will let you do them yourself. Each one can be done by the method of demonstrating equivalent inclusion criteria, and in each case the fact about logic you need is the one about “or” corresponding to the fact about “and” we used before.

Proposition 16 (union commutes). For any sets X and Y, XY = YX.

Proposition 17 (union is associative). For any sets X, Y and Z, (XY) ∪ Z = X ∪ (YZ).

From now on, we can write XYZ with no brackets, and we can ignore the difference between XY and YX, exactly as we did for intersection. The next two propositions are the analogues of Propositions 12 (intersecting a set with itself) and 13 (intersecting with the empty set).

Proposition 18 (uniting a set with itself). For any set X, XX = X.

Proposition 19 (uniting with the empty set). For any set X, X ∪ ∅ = X.

Proposition 20 (union respects inclusion). For any sets X, Y and Z, if XY, then XZYZ.

Now for something which has no analogue among the propositions about intersection. Proposition 15 (each set is a subset of the union) tells us that XY is big enough to contain both X and Y. The next proposition tells us that it is no bigger than it has to be: any set which contains both X and Y already contains their union.

Proposition 21 (the union is the smallest set containing both). For any sets X, Y and Z, if XZ and YZ, then XYZ.

XYZ
Figure 8. Proposition 21 (the union is the smallest set containing both): if Z contains both X and Y, it contains the whole shaded region.

Suppose that XZ and YZ. Let xXY. It follows that either (i) xX, or (ii) xY.

Case (i): since xX and XZ, we have xZ.

Case (ii): since xY and YZ, we have xZ.

Hence xZ, from which we conclude that XYZ.

That proof needed a move we had not used before. To show that an arbitrary element of XY lies in Z, we only know that it lies in X or in Y, and not which. So we take the two cases in turn and show that the conclusion follows in each of them. Since one case or the other must hold, the conclusion follows either way. This is called proof by cases, and it is what disjunctions generally demand of us. (If you have taken logic, you may recognise this as an informal version of the disjunction elimination inference rule.)

Finally, union gives us another way of saying that one set is a subset of another, just as intersection did in Proposition 14 (inclusion via intersection).

Proposition 22 (inclusion via union). For any sets X and Y, XY if and only if XY = Y.

XY
Figure 9. Proposition 22 (inclusion via union): when X lies inside Y, the shaded region XY is all of Y.

We again prove both sides of the biconditional.

(i) Left to right: suppose that XY. We want to show that XY = Y. We have YXY immediately from Proposition 15 (each set is a subset of the union). Further, if xXY then by the definition of union we have either (a) xX or (b) xY. In case (a), since XY we have xY. In case (b), of course we also have xY. Hence xY either way, and so we conclude that XYY. By Proposition 1 (double inclusion) it follows that XY = Y.

(ii) Right to left: suppose that XY = Y. We want to show that XY. Proposition 15 (each set is a subset of the union) implies that XXY, hence by substitution of identicals (that is, XY = Y) we have XY.