20.1 Basic set theory notions
Definition 20.1.1
The core definition in set theory is as to whether or not something is a member of a set or not. We write if is a member of a set and if not.
Example 20.1.1
If we consider then but .
Definition 20.1.2
We say that is a subset of (written ) if and only if every member of is also a member of . In logic-y notation, this is
Definition 20.1.3
We say that two sets and are equal (written ) if and only they contain the same elements.
We can write this in logic symbols as
Theorem 20.1.1
Two sets and are equal if and only if and .
Example 20.1.2
Prove that
(20.3) |
Note: this requires a bit of knowledge of some of the basics of logic.
We start by applying a standard technique; to prove an implication we assume that the antecedent (aka \sayleft-hand side) is true, and prove that therefore the right-hand side must also be true.
Therefore, we assume that the left-hand side is true, and will try to show that therefore . We can do this by showing that and .
To show that , let be arbitrary. In this case we can show this
(20.4) | ||||
(20.5) | ||||
(20.6) | ||||
(20.7) | ||||
(20.8) | ||||
(20.9) | ||||
(20.10) | ||||
(20.11) | ||||
(20.12) |
Note that the other direction follows by symmetry; if we swap and in the above proof, then the statement is still true and thus (under the assumptions set out).
20.1.1 Some example set theory proofs
Example 20.1.3
Prove that .
To prove this statement we must show that , that is, for every value of , this value of is in the left-hand side set if and only if (read: exactly when) it is in the right-hand side set.
(20.13) |
We can then apply De Morgan’s laws here, which tell us that (read: \sayx is not in and ) is equivalent to or 11 1 Don’t forget that is the negation of . Therefore, our statement is true if and only if
(20.14) |
Now, it is important not to forget that logical and distributes over logical or, i.e. this is equivalent to
(20.15) |
Then we know that this is equivalent to (by applying the definitions)
(20.16) |
Then, after applying the definition of set union, we know that the previous is true if and only if
(20.17) |
which is what we wanted to prove.