4.3 Proving two sets are equal
You may have previously used Venn diagrams to indicate that two sets are equal. While they can be useful for your understanding of what is going on, these do not constitute stringent proofs in themselves.
The most common method to directly prove that two sets and are equal to each other is to first show that and then show that . If both of these are true, we must have .
Exercise 4.25.
Why does showing that both and mean that we necessarily have ?
Solution (please try for yourself before looking)
If then for every element , .
Moreover, if , then every also has .
As every element of is therefore in and vice versa, then .
To show one set is a subset of another set , we can take a general element of and show that it must also belong to . This is the strategy we use in the next proof.
Theorem 4.26 (De Morgan’s Laws).
Let and be two sets, then
-
a)
,
-
b)
.
Proof (of Theorem 4.26 a)).
To prove , we first show that and then show that .
Let . Then, by definition of the complement, . As is not an element of or , then we must have that and . Equivalently, and so belongs to an intersection of two sets and i.e. . Hence, we’ve shown that any element is also an element of so .
To show , consider an element . Then
| by definition of intersection | ||||
| by definition of complement | ||||
| by definition of union | ||||
We have therefore shown that . As we have also seen that , then we must have .
In the proof above, the argument that is written in a different style to the argument that . Both styles are valid but we would usually stick to one style throughout the same proof.
If we look at this proof carefully, we notice that the equivalence of the statements within it actually reduce the proof to the following (much shorter) argument:
Proof.
Observe that
| by definition of intersection | ||||
| by definition of complement | ||||
| by definition of union | ||||
Hence, and thus, and . Therefore, .
Exercise 4.27.
Using the proof of part a) as a guide, prove part b) of Theorem 4.26.
Note that the order in which we show one set is a subset of the other doesn’t matter: we could swap the second and third paragraph in the previous proof and it would remain logically consistent.
Exercise 4.28.
Consider the following sets
Prove that .
Solution (please try for yourself before looking)
We first show . Let be an arbitrary element of so for some .
If is even then there is some such that . Moreover, is also even and . This means is divisible by 4 so and, more generally, .
If is odd, then for some , and . The product of two odd numbers is itself odd so we have and .
In either case, meaning .
We next prove the inclusion . Let be any element of .
If , then for some and we can write this as a difference of two squares: . Therefore .
If , then is a multiple of 4 so for some . Consider . As we can write as the difference of two squares, then we again have .
In either case, meaning .
Overall, we have shown both and so can conclude that .