33. Union and intersection

33.1 Definition: union

For any sets $A$ and $B$, the union $A\cup B$ of $A$ and $B$ is defined by

$$A\cup B =\{x\mid x\in A\vee x\in B\} \tag{33.1}$$

33.2 Definition: intersection

For any sets $A$ and $B$, intersection $A\cap B$ is defined by

$$A\cap B =\{x\mid x\in A\wedge x\in B\} \tag{33.2}$$

33.2.1 Example Let $A =\{ 1, 2\}$ and $B =\{ 2, 3, 4\}$. Then $A\cup B =\{ 1, 2, 3, 4\}$ and $A\cap B =\{ 2\}$. If $C =\{ 3, 4, 5\}$, then $A\cap C =\emptyset$.

33.2.2 Exercise What are $\{ 1, 2, 3\}\cup \{ 2, 3, 4, 5\}$ and $\{ 1, 2, 3\}\cap \{ 2, 3, 4, 5\}$? (Answer on page 244.)

33.2.3 Exercise What are $\mathrm{N}\cup\mathrm{Z}$ and $\mathrm{N}\cap\mathrm{Z}$? (Answer on page 244.)

33.2.4 Remark Union and intersection mirror the logical connectives ‘$\vee$’ and ‘$\wedge$’ of section 14. The connection is by means of the extensions of the predicates involved. The extension of $P \vee Q$ is the union of the extensions of $P$ and of $Q$, and the extension of $P \wedge Q$ is the intersection of the extensions of $P$ and of $Q$.

33.2.5 Example Let $S$ be a set of poker chips, each of which is a single color, either red, green or blue. Let $R, G, B$ be respectively the sets of red, green and blue chips. Then $R\cup B$ is the set of chips which are either red or blue; the ‘$\cup$’ symbol mirrors the “or”. And $R\cap B =\emptyset$, since it is false that a chip can be both red and blue.

33.2.6 Warning Although union corresponds with “$\vee$”, the set $R\cup B$ of the preceding example could also be described as “the set of red chips and blue chips”!

33.2.7 Exercise Prove that for any sets $A$ and $B, A\cap B \subseteq A\cup B$. (Answer on page 244.)

33.2.8 Exercise Prove that for any sets $A$ and $B, A\cap B \subseteq A$ and $A \subseteq A\cup B$.

33.3 Definition: disjoint

If $A$ and $B$ are sets and $A\cap B =\emptyset$ then $A$ and $B$ are said to be disjoint.

33.3.1 Exercise Name three different subsets of $\mathrm{Z}$ that are disjoint from $\mathrm{N}$. (Answer on page 244.)

33.3.2 Exercise If $A$ and $B$ are disjoint, must $\mathcal{P} (A)$ and $\mathcal{P} (B)$ be disjoint?

Page 47 of the book (PDF).