115. Counting with set operations
Almost every operation associated with set theory has a corresponding combinatorial principle or counting technique applicable to finite sets associated with it. Some of these are obvious, others are more subtle. The first example has to do with inclusion:
115.1 Theorem
If $A$ and $B$ are finite sets and $A \subseteq B$ , then $|A| \leq |B|$.
(We told you some of the principles were obvious!)
115.1.1 Exercise Show that if $A$ and $B$ are finite then $|A\cap B| \leq |A|$.
There is a principle for powersets, too.
115.2 Theorem
If a set $A$ has $n$ elements then $\mathcal{P}A$ has $2^{n}$ elements.
Proof The easiest proof of this theorem uses the Principle of Multiplication of Choices (Theorem 114.2). If $A$ has $n$ elements and you want to describe a subset of $A$, you may go through the $n$ elements of $A$ one by one and say whether each one is in the subset. There are two choices (yes or no) for each element and $n$ elements, so the Principle of Multiplication of Choices says that you can make $2^{n}$ choices altogether.
115.2.1 Remark As is the case with any counting technique based on the Principle of Multiplication of Choices, it is also possible to prove Theorem 115.2 by a direct argument using induction. (Recall that the Principle of Multiplication of Choices was proved by induction.)
115.2.2 Worked Exercise How many subsets with an even number of elements does a set with $n$ elements have? Explain your answer.
Answer A set $S$ with $n$ elements has $2^{n-1}$ subsets with an even number of elements. Proof: To give a subset $A$ of $S$, for each element of $S$ except the last one you must choose whether that element is in $A$. That requires $2^{n-1}$ independent choices. You have no choice concerning the last element: if at that point the subset has an odd number of elements so far, you must include the last one, and if it has an even number so far, you must not include the last one.
115.2.3 Exercise Let $S$ be an $n$-element set. How many elements do the following sets have?
a) The set of nonempty subsets of $S$.
b) The set of singleton subsets of $S$.
c) The set of subsets of the powerset of $S$. (Answer on page 249.)
The following theorem can be proved using Multiplication of Choices.
115.3 Theorem
If $A$ and $B$ are finite, then $|A\times B| =|A||B|$.
115.3.1 Exercise If $A$ has $m$ elements and $B$ has $n$ elements, how many elements do each of these sets have?
a) $A\times A$
b) $\mathcal{P} (A\times A)$
c) $\mathcal{P} (A\times B)$
115.3.2 Exercise Prove Theorem 115.1.
115.3.3 Exercise Prove Theorem 115.3.
115.3.4 Exercise Suppose $A$ has $m$ elements and $B$ has $n$ elements.
a) Prove that $MAX (m,n )\leq |A\cup B| \leq m +n$.
b) Prove that $0\leq |A\cap B| \leq MIN (m,n)$.
c) Prove that the symbols ‘$\leq$’ in (a) and (b) cannot be replaced by ‘$<$’.
115.3.5 Exercise Let $A$ be a finite set and $F\colon A \to B$ a function. Prove that $|\Gamma(F )| =|A|$.
Pages 176–178 of the book (PDF).