PlanetMath (more info)
 Math for the people, by the people. Sponsor PlanetMath
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Owner confidence rating: High Entry average rating: No information on entry rating
[parent] proof of principle of inclusion-exclusion (Proof)

The proof is by induction. Consider a single set $A_1$ Then the principle of inclusion-exclusion states that $|A_1| = |A_1|$ which is trivially true.

Now consider a collection of exactly two sets $A_1$ and $A_2$ We know that $$A \cup B = (A \setminus B) \cup (B \setminus A) \cup (A \cap B)$$ Furthermore, the three sets on the right-hand side of that equation must be disjoint. Therefore, by the addition principle, we have \begin{eqnarray*} |A \cup B| &=& |A \setminus B| + |B \setminus A| + |A \cap B| \\ &=& |A \setminus B | + |A \cap B| + |B \setminus A| + |A \cap B| - |A \cap B| \\ &=& |A| + |B| - |A \cap B| \\ \end{eqnarray*} So the principle of inclusion-exclusion holds for any two sets.

Now consider a collection of $N > 2$ finite sets $A_1, A_2, \dots A_N$ We assume that the principle of inclusion-exclusion holds for any collection of $M$ sets where $1 \leq M < N$ Because the union of sets is associative, we may break up the union of all sets in the collection into a union of two sets: $$\bigcup_{i=1}^N A_i = \left( \bigcup_{i=1}^{N-1} A_i \right ) \cup A_N$$

By the principle of inclusion-exclusion for two sets, we have $$\left | \bigcup_{i=1}^N A_i \right | = \left | \bigcup_{i=1}^{N-1} A_i \right| + |A_N| - \left|\left( \bigcup_{i=1}^{N-1} A_i \right ) \cap A_N \right|$$

Now, let $I_k$ be the collection of all $k$ fold intersections of $A_1, A_2, \dots A_{N-1}$ and let $I'_k$ be the collection of all $k$ fold intersections of $A_1, A_2, \dots A_N$ that include $A_N$ Note that $A_N$ is included in every member of $I'_k$ and in no member of $I_k$ so the two sets do not duplicate one another.

We then have $$\left | \bigcup_{i=1}^N A_i \right | = \sum_{j=1}^N \left( (-1)^{(j+1)} \sum_{S\in I_j} |S| \right ) + |A_N| - \left|\left( \bigcup_{i=1}^{N-1} A_i \right ) \cap A_N \right|$$ by the principle of inclusion-exclusion for a collection of $N-1$ sets. Then, we may distribute set intersection over set union to find that $$\left | \bigcup_{i=1}^N A_i \right | = \sum_{j=1}^N \left( (-1)^{(j+1)} \sum_{S\in I_j} |S| \right ) + |A_N| - \left| \bigcup_{i=1}^{N-1} (A_i \cap A_N) \right |$$ Note, however, that $$(A_x \cap A_N) \cup (A_y \cap A_N) = (A_x \cap A_y \cap A_N)$$ Hence we may again apply the principle of inclusion-exclusion for $N-1$ sets, revealing that \begin{eqnarray*} \left | \bigcup_{i=1}^N A_i \right | &=& \sum_{j=1}^{N-1} \left( (-1)^{(j+1)} \sum_{S\in I_j} |S| \right ) + |A_N| - \sum_{j=1}^{N-1} \left( (-1)^{(j+1)} \sum_{S\in I_j} |S \cap A_N| \right ) \\ &=& \sum_{j=1}^{N-1} \left( (-1)^{(j+1)} \sum_{S\in I_j} |S| \right ) + |A_N| - \sum_{j=1}^{N-1} \left( (-1)^{(j+1)} \sum_{S\in I'_{j+1}} |S| \right ) \\ &=& \sum_{j=1}^{N-1} \left( (-1)^{(j+1)} \sum_{S\in I_j} |S| \right ) + |A_N| - \sum_{j=2}^{N} \left( (-1)^{(j)} \sum_{S\in I'_{j}} |S| \right ) \\ &=& \sum_{j=1}^{N-1} \left( (-1)^{(j+1)} \sum_{S\in I_j} |S| \right ) + |A_N| + \sum_{j=2}^{N} \left( (-1)^{(j+1)} \sum_{S\in I'_{j}} |S| \right ) \\ \end{eqnarray*} The second sum does not include $I'_1$ Note, however, that $I'_1 = \{ A_N \}$ so we have \begin{eqnarray*} \left | \bigcup_{i=1}^N A_i \right | &=& \sum_{j=1}^{N-1} \left( (-1)^{(j+1)} \sum_{S\in I_j} |S| \right ) + \sum_{j=1}^{N} \left( (-1)^{(j+1)} \sum_{S\in I'_{j}} |S| \right ) \\ &=& \sum_{j=1}^{N-1} \left[ (-1)^{(j+1)} \left( \sum_{S\in I_j} |S| + \sum_{S\in I'_{j}} |S| \right ) \right] +(-1)^{N+1}\left | \bigcap_{i=1}^N A_i\right | \\ \end{eqnarray*} Combining the two sums yields the principle of inclusion-exclusion for $N$ sets.




Anyone with an account can edit this entry. Please help improve it!

"proof of principle of inclusion-exclusion" is owned by mps. [ full author list (2) | owner history (1) ]
(view preamble | get metadata)

View style:


This object's parent.
Log in to rate this entry.
(view current ratings)

Cross-references: sum, intersections, associative, union, finite sets, addition, disjoint, equation, side, collection, principle of inclusion-exclusion, induction, proof

This is version 3 of proof of principle of inclusion-exclusion, born on 2002-03-28, modified 2005-12-31.
Object id is 2804, canonical name is PrincipleOfInclusionExclusionProof.
Accessed 11948 times total.

Classification:
AMS MSC05A99 (Combinatorics :: Enumerative combinatorics :: Miscellaneous)

Pending Errata and Addenda
None.
[ View all 1 ]
Discussion
Style: Expand: Order:
forum policy

No messages.

Interact
post | correct | update request | add example | add (any)