Set Inclusion and Equality
A basic question we can ask about sets is whether one element is contained in a set. For example:
Claim: If
This claim posits that if an arbitrary element of the intersection of
To formally prove this claim, we will work from our initial assumption that
Proof. We suppose that
Alternatively, we can present the same proof using a two-column style where each row consists of a fact on the left-hand side and a rule on the right-hand side that justifies how the fact is derivable from the fact on the previous row.
— [assumption] — [def. ]
(Note: using Markdown, we can’t reliably create two columns, so for the purposes of presentation, we separate columns with a em-dash (---
).)
Note that supposing that we have an arbitrary
Our natural deduction rules tells us that to prove this logical proposition, we:
- Assume an arbitrary
by the left-∀ rule. - Assume that
by the left-→ rule. - Go on to prove that
.
This is precisely how our proofs above proceeded! In our prose-based proof, we explicated this reasoning although did not cite natural deduction rules justifying the reasoning. At this higher level of proof, we don’t cite rules of logic although we know that our reasoning is backed by them. Our symbolic, two-column proof avoids this verbiage, leaving the introductory steps of reasoning implicit so that we can focus on the important parts of the proof: the step-by-step manipulation of sets.
In practice, because we will prove membership of an arbitrary element of a set, we will usually state our claims in terms of subset relationships. For example, here is a similar claim and proof to our original one, but utilizing subset notation instead:
Claim:
Proof: Let
Proving Set Inclusion Claims
In summary, when proving that a set
- Assume that we have an arbitrary element
of the set . - Give a proof that shows how we can logically reason step-by-step from this initial assumption to our final goal.
- End our proof by showing that
is an element of , thereby proving our claim.
In logic, this is called forwards reasoning because we are reasoning from our assumptions and axioms to our final goal. This contrasts with our program correctness and natural deduction proofs where we tended to work from our initial goal and generate new assumptions and refined goals from it, a process called backwards reasoning. Note that both forms of reasoning—from assumptions or from our goal—are valid and can be intermixed in a single proof. Ultimately, whether we operate in a forwards or backwards manner in our proofs is a function of context: the domain of the proof and the particular proof state that we are in.
As with all proofs, our proofs in set theory consist of assumptions and a goal. Our assumptions take on various forms:
- Element inclusion, e.g.,
. - Subsets, e.g.,
. - Equality, e.g.,
or .
Like propositional logic, how we reason about our different set operations depends on whether the operation appears in an assumption (something we already know) or a goal (something we are trying to prove). As an assumption:
- If we know
then is in either or . - If we know
then is in both and . - If we know that
then is in and not in . - If we know that
then we know is not in . - If we know that
then we know that where and . - If we know that
then we know that .
All of these rules of inference follow directly from our formal definitions for our operations. Likewise, if these operations instead appear as our goal:
- If we must show
then we must show is in either or . - If we must show
then we must show that is in both and . - If we must show
then we must show that is in and not in . - If we must show
then we must show is not in . - If we must show
then we must show that , , and . - If we must show
then we show that .
To show these different rules in action, consider the following claim and proof over a more complicated subset relationship:
Claim:
Proof: Let
- If
, then by the definition of , and by the definition of , . - If
, then by the definition of , and by the definition of , .
Note several things with this proof:
- When we know that an element a member of a union, we can perform case analysis to refine which set that element comes from.
- When we show that an element is in a Cartesian product, we must show that it is a pair and that each of the pair’s components come from the appropriate sets. Because the justification for these parts may not all come from the previous line of the proof, we state which of the lines these justifications come from.
Equality Proofs
Recall that we defined set equality in terms of subsets:
Thus, to prove that two sets are equal, we need to perform two subset proofs, one in each direction. In the previous section, we proved that
Claim:
Proof: Let
—[assumption]. Consider whether or . Suppose . —[assumption]. , , —[defn (×)]. —[defn ()]. —[defn (×)].
Now suppose
. —[assumption]. , , —[defn (×)]. —[defn ()]. —[defn (×)].
We call such equality proofs double-inclusion proofs. Double-inclusion or proving “both sides” of the equality is a powerful, alternative technique for showing that two objects are equal. While it is the primary way we show the equality of sets, we can also apply it to other “equality-like” operations. For example:
- To show that two logical propositions are equivalent,
, we can show and . - To show that two numbers are equivalent,
, we can show and .
Empty Sets and Contradiction Proof
Our proof techniques for set inclusion runs into a snag when we consider the empty set. For example, consider the following claim:
Claim:
Intuitively,
Claim:
Proof. There is no such
Recall that the definition of subset says that
In the other direction, we become stuck with our standard proof machinery:
Claim:
Proof. We assume that
We begin the proof by assuming
Because of this, we need an alternative proof strategy to prove set emptiness—that a set is equivalent to the empty set. Recall when we discussed propositional logic, we introduced the notion of a proof by contradiction. To prove that a proposition
- We assume
is provable. - We then show how this assumption allows us to prove a contradiction, i.e.,
or for some proposition . - Because we cannot logically conclude a contradiction holds and our proof proceeds logically, the only thing that could have caused the contradiction was our initial assumption that
holds. Therefore, must not hold and so must hold.
We will apply the technique of proof by contradiction to set emptiness proofs where we show that some set
- First assume for the sake of contradiction that
. - Then we will show a contradiction. In the context of set theory, this usually means showing that some element
(not necessarily ) is both in a set and not in a set, e.g., . - From this contradiction, we can conclude that our assumption that
is false and thus for all and thus .
Let us use this proof technique to show that our claim above holds directly without the use of subsets.
Claim:
Proof. We prove this claim by assuming that some
—[assumption] —[defn ()] —[defn ]
Exercise: Prove the left-to-right direction of DeMorgan’s Law:
Claim: