This section explores how we can apply the equivalences of logical statements to the set properties we explored in Section 1.2. It is no coincidence that those set properties look nearly identical to the logical equivalences! Instead of using Venn Diagrams, in this section we’ll use equivalences to verify statements about sets.
Subsection
Definition2.2.1.Set operations defined via logic.
Let \(A \and B\) be sets.
Subset: \(A \subseteq B \iff (x \in A) \to (x \in B)\)
Union: \(x \in A \cup B \iff x \in A \lor x \in B\)
Intersection: \(x \in A \cap B \iff x \in A \land x \in B\)
Complement: \(x \in A \setminus B \iff x \in A \land x \not\in B\)
Equality: \(A = B\) if and only if \(A \subseteq B\) and \(B \subseteq A\text{.}\)
Now that we have formally defined set properties in terms of our logical operations, we can now use our logical equivalences to formally prove statements about sets. We’ll start with this basic statement we first introduced as Theorem 1.2.7
Example2.2.2.
Prove that if \(S\) is any set:
\(\displaystyle \emptyset \subseteq S\)
\(\displaystyle S \subseteq S\)
Solution.
The logical statement we’re trying to prove is \((x \in \emptyset) \to (x \in S)\)
Assume that \(x \in \emptyset\text{.}\) This is false, since nothing is in the empty set. That means that the conditional statement \((x \in \emptyset) \to (x\in S)\) is vacuously true, since the conditional \(F \to p\) is always true. Thus \(\emptyset \subseteq S\text{.}\)
The logical statement we’re trying to prove is \((x \in S) \to (x\in S)\)
Assume that \(x \in S\text{.}\) Then \(x \in S\) is trivially true. Thus \(S \subseteq S\text{.}\)
In the next example and the exercises, as you work through each proof, begin by picking one side of the equation, and writing out the logical statement according to Definition 2.2.1. Then ask yourself what logical equivalence 2.1.5 (De Morgan’s Law? Associativity? Commutitivity? Distribution?), you could apply.
We’ll prove the first via an “if and only if” argument:
\begin{align*}
x\in A \cup \emptyset \amp \iff x \in A \lor x\in \emptyset\\
\amp \iff x\in A \lor F\\
\amp \iff x\in A
\end{align*}
thus \(A \cup \emptyset = A\text{.}\)
As noted above, take it one line at a time. As you review the example and check your solutions to exercises below, make sure that you understand each line. How did we get from the previous line to this one? Once you understand, move to the next. Don’t be afraid to take it slow!
ExercisesExercises
Let \(A, B, \and C\) be sets. Prove the following identities:
1.
Prove \(A \cup (B \cup C) = (A \cup B) \cup C\)
Solution.
Assume \(x\in A \cup (B \cup C)\text{,}\) then:
\begin{align*}
x\in A \cup (B \cup C) \amp\equiv (x \in A) \lor (x \in B \cup C)\\
\amp\equiv (x \in A) \lor ((x \in B) \lor (x \in C))\\
\amp\equiv x \in A \lor x \in B \lor x \in C\\
\amp\equiv (x \in A \lor x \in B) \lor x \in C\\
\amp\equiv (x \in A \cup B) \lor x \in C\\
\amp\equiv x \in (\in A \cup B) \cup C
\end{align*}
and so \(A \cup (B\cup C) = (A \cup B) \cup C\text{.}\)
2.
Prove \(\overline{\overline{A}} = A\)
Solution.
Assume \(x \in \overline{\overline{A}}\) then we have
\begin{align*}
x \in \overline{\overline{A}} \amp \equiv \neg(x \in \overline{A})\\
\amp \equiv \neg(\neg (x \in A))\\
\amp \equiv x \in A
\end{align*}
and so \(\overline{\overline{A}} = A\text{.}\)
3.
Prove \(A \cup (B \cap C) = (A \cup B) \cap (A \cup C)\)
Solution.
Here we convert the expression of sets into a logical statement and apply the distributive law for logical statements.
Assume that \(x \in A \cup (B\cap C)\text{,}\) then:
\begin{align*}
x \in A \cup (B \cap C) \amp \equiv x \in A \lor (x \in B \cap C) \\
\amp \equiv x \in A \lor (x\in B \land x \in C)\\
\amp \equiv (x \in A \lor x\in B) \land (x \in A \lor \in C)\\
\amp \equiv (x \in A \cup B) \land (x \in A \cup C)\\
\amp \equiv x \in (A \cup B) \cap (A \cup C)
\end{align*}
and therefore \(A \cup (B \cap C) = (A \cup B) \cap (A \cup C)\text{.}\)