How should one go about proving the following with induction?
$$ \left| \bigcup_{i \in I} A_i \right| = \sum_{J \subseteq I} (-1)^{|J|+1} \left|\bigcap_{i \in J} A_i \right| $$
I is just a finite set, and $A_i$ is just any set within it.
|
How should one go about proving the following with induction? $$ \left| \bigcup_{i \in I} A_i \right| = \sum_{J \subseteq I} (-1)^{|J|+1} \left|\bigcap_{i \in J} A_i \right| $$ I is just a finite set, and $A_i$ is just any set within it. |
|||||||||||||
|
|
First prove the result for $\# \mathrm I = 2$. Then do the induction by splitting like this $$ \# (\cup_{i = 1}^n \mathrm A_i\cup \mathrm A_{n+1})$$ |
|||
|
|
|
The formula is slightly incorrect: it’s important to require that the sets $J$ appearing in the summation be non-empty, so the formula should read $$\left| \bigcup_{i \in I} A_i \right| = \sum_{\varnothing\ne J \subseteq I} (-1)^{|J|+1} \left|\bigcap_{i \in J} A_i \right|\;.\tag{1}$$ For a proof by induction on $|I|$, start with the trivial verification that $(1)$ holds when $|I|=1$. Then assume that it holds for $|I|=n$ for some $n\ge 1$, let $\mathscr{A}=\{A_i:i\in I\}$ be a family of $n+1$ sets, and show that $(1)$ holds for $\mathscr{A}$. The natural way to approach this is to fix some $i_0\in I$ and let $I_0=I\setminus\{i_0\}$, so that $|I_0|=n$, and you can apply the induction hypothesis to $\{A_i:i\in I_0\}$. You’ll have $$\left|\bigcup_{i\in I}A_i\right|=\left|A_{i_0}\cup\bigcup_{i\in I_0}A_i\right|\;,\tag{2}$$ and you know from the induction hypothesis that $$\left| \bigcup_{i \in I_0} A_i \right| = \sum_{\varnothing\ne J \subseteq I_0} (-1)^{|J|+1} \left|\bigcap_{i \in J} A_i \right|\;.$$ If you knew that the $|I|=2$ case of $(1)$ was true, you could apply it to $(2)$ to get $$\begin{align*} \left|\bigcup_{i\in I}A_i\right|&=|A_{i_0}|+\left| \bigcup_{i \in I_0} A_i \right|-\left|A_{i_0}\cap\bigcup_{i \in I_0} A_i \right|\\\\ &=|A_{i_0}|+\left| \bigcup_{i \in I_0} A_i \right|-\left|\bigcup_{i\in I_0}(A_{i_0}\cap A_i)\right|\;, \end{align*}\tag{3}$$ and you can now apply the induction hypothesis to each of the last two terms, since $|I_0|=n$. You’ll still have a little work to do to combine the sums and see that you really do get $$\sum_{\varnothing\ne J \subseteq I} (-1)^{|J|+1} \left|\bigcap_{i \in J} A_i \right|\;,$$ and of course you still have to prove that $(1)$ holds when $|I|=2$ in order to use that to get $(3)$. It’s entirely possible to prove $(1)$ without using induction. Indeed, one can give a rather shorter proof. I’ve included one below, spoiler-protected; mouse-over to see it.
|
|||
|
|