Artificial examples are a particularly useful device for exploring the corner cases of a mathematical definition. While our intuition allows us to explain the “common” scenarios, we sometimes do not have real-world examples that exercise corner cases. Furthermore, sometimes the corner cases behave precisely again our intuition, leading us to make incorrect assumptions about what a mathematical definition says.
In contrast, artificial examples allow us to create situations that are small enough to analyze directly using the definitions involved so that we can obtain a crisp, definitions-based understanding of what is going on. In short, we create small sets built from abstract values, e.g., $a$, $b$, and $c$, and then “run” our definitions on these sets and then observe the results. Ideally, the examples are constructed in such a way that we isolate our predicted behavior, so the example directly explains the situation. In programming, the analogy here is a minimally reproducing example or a “repro” that isolates buggy behavior in a program and is unlikely to produce other effects that might make analysis unnecessarily complicated.
For each of the following (intentionally vague) questions about the fundamental definitions of sets:
Is the following claim always true?
Claim: for any sets $S_1$ and $S_2$, $\vert S_1 \cup S_2 \vert = \vert S_1\vert + \vert S_2\vert $.
(Recall that $\vert S\vert$ is the size of $S$, i.e., the number of elements it contains.)
Artificial examples are also useful for gaining intuition about tricky definitions. Here is an example of such a definition:
Definition (Partition) A partition of a set $T$ is a pair of subsets, $S_1$ and $S_2$, of $T$ that obeys the following properties:
$S_1 \cup S_2 = T$.
In a previous reading exercise, we proved the left-to-right direction of De Morgan’s Law. Go ahead and prove the right-to-left direction to demonstrate equivalence of the two set expressions.
Claim $\overline{A} \cap \overline{B} \subseteq \overline{A \cup B}$.
Now let’s consider a proposition about this definition.
Claim (Pivots Determine Partitions) Let $a \in S$. Define $T_1, T_2 \subseteq \mathcal{P}(S)$ as follows:
$T_1$ and $T_2$ form a partition of $\mathcal{P}(S)$ where $a$ is its pivot.
Now, to prove this claim, we must show that for an arbitrary set $S$ and choice of pivot $a$ that:
(Note that our claim states that $T_1$ and $T_2$ are a partition for the power set of $S$, not necessarily $S$ itself.) We’ll focus on the second proposition for this lab. Recall that, as a set equality, the proposition really consists of two subset proofs due to double inclusion:
You will prove the left-to-right direction in the demonstration exercise for this week. As a warm-up for this, you will now prove the right-to-left direction to wrap up this lab!
Lemma (Left-to-right Direction) $𝒫(S) \subseteq T_1 \cup T_2$
This proof is a bit trickier than the other ones we’ve seen so far, primarily because of $\mathcal{P}(S)$. Here are some hints to help guide your proof development:
For this set inclusion proof, note that the only thing you can conclude from your initial premise that $X \in 𝒫(S)$ is that $X \subseteq S$. To make progress you need to perform case analysis on the fact that the pivot $a$ is either in $X$ or it is not in $X$. From there, you can choose which of $T_1$ or $T_2$ ought to be a member of and then proceed forward.
Note that since $X$ is a set, it’ll be difficult to reason about $X$’s relationship to $T_1$ and $T_2$. To work around this, recall the definition of subset: $X \subseteq Y \equiv \forall x \in X \ldotp x \in X \rightarrow x \in Y$. At this point in the proof you should consider an arbitrary $x \in X$ and try to show that $x$ is also in $T_1$ or $T_2$. This will then imply that $X$ is a subset of the appropriate partition since the $x$ was arbitrary!
Formally prove the following standard identities of sets. Recall that to prove a set equality, you must prove both directions of the equality.