This section is about the laws that union, intersection, difference, and complement obey.
For all sets and ,
, and
.
These are called the commutativity properties for intersection and union. These results might seem obvious, but we will write out the proofs carefully because the method of using logical equivalences will be applied to more complex set identities later.
By definition,
Theorem 1.5.1 tells us that for any two WFFs and , the formulas and are logically equivalent: one is true if and only if the other is true. So
is true if and only if
is true. This shows that for any we have if and only if , so by definition of set equality, .
The argument for is the same, except that we use the logical equivalence . ∎
What this proof shows is that if you have a set defined in set builder notation using a logical formula
then it is equal to any other set defined using a logically equivalent formula.
For all sets , , we have
and
.
This is the associativity property for and .
Like the proof of the last theorem, these equalities follow from the associativity properties for and we saw in Theorem 1.5.1. ∎
Associativity tells us means there’s no ambiguity in writing
without any brackets to indicate which union or intersection should be done first. Compare this with
There’s no need for brackets because it doesn’t matter whether you do 1+2 first then add 3, or whether you add 1 to the result of 2 + 3. On the other hand or require either brackets or a convention on which operation to do first. Similarly is different to in general, so the brackets here are obligatory, and is different to .
Because we defined unions and intersections using logical conditions on set elements, they should obey laws that come from the results we proved about and .
For any sets , ,
and
.
Consider the first of these identities. The left hand side consists of all things such that
(2.2) |
The right hand side consists of all things such that
(2.3) |
By Theorem 1.6.1, for any WFFs we have . Thus any makes (2.2) true if and only if it makes (2.3) true. So belongs to the first set if and only if it belongs to the second, therefore the two sets are equal.
The second identity can be proved similarly. ∎