principle of inclusion-exclusion, proof of
The proof is by induction. Consider a single set A1. Then the principle of inclusion-exclusion states that |A1|=|A1|, which is trivially true.
Now consider a collection of exactly two sets A1 and A2. We know that
A∪B=(A∖B)∪(B∖A)∪(A∩B) |
Furthermore, the three sets on the right-hand side of that equation must be disjoint. Therefore, by the addition principle, we have
|A∪B| | = | |A∖B|+|B∖A|+|A∩B| | ||
= | |A∖B|+|A∩B|+|B∖A|+|A∩B|-|A∩B| | |||
= | |A|+|B|-|A∩B| |
So the principle of inclusion-exclusion holds for any two sets.
Now consider a collection of N>2 finite sets A1,A2,…AN. We assume that the principle of inclusion-exclusion holds for any collection of M sets where 1≤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:
N⋃i=1Ai=(N-1⋃i=1Ai)∪AN |
By the principle of inclusion-exclusion for two sets, we have
|N⋃i=1Ai|=|N-1⋃i=1Ai|+|AN|-|(N-1⋃i=1Ai)∩AN| |
Now, let Ik be the collection of all k-fold intersections of A1,A2,…AN-1, and let I′k be the collection of all k-fold intersections of A1,A2,…AN that include AN. Note that AN is included in every member of I′k and in no member of Ik, so the two sets do not duplicate one another.
We then have
|N⋃i=1Ai|=N∑j=1((-1)(j+1)∑S∈Ij|S|)+|AN|-|(N-1⋃i=1Ai)∩AN| |
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
|N⋃i=1Ai|=N∑j=1((-1)(j+1)∑S∈Ij|S|)+|AN|-|N-1⋃i=1(Ai∩AN)| |
Note, however, that
(Ax∩AN)∪(Ay∩AN)=(Ax∩Ay∩AN) |
Hence we may again apply the principle of inclusion-exclusion for N-1 sets, revealing that
|N⋃i=1Ai| | = | N-1∑j=1((-1)(j+1)∑S∈Ij|S|)+|AN|-N-1∑j=1((-1)(j+1)∑S∈Ij|S∩AN|) | ||
= | N-1∑j=1((-1)(j+1)∑S∈Ij|S|)+|AN|-N-1∑j=1((-1)(j+1)∑S∈I′j+1|S|) | |||
= | N-1∑j=1((-1)(j+1)∑S∈Ij|S|)+|AN|-N∑j=2((-1)(j)∑S∈I′j|S|) | |||
= | N-1∑j=1((-1)(j+1)∑S∈Ij|S|)+|AN|+N∑j=2((-1)(j+1)∑S∈I′j|S|) |
The second sum does not include I′1. Note, however, that I′1={AN}, so we have
|N⋃i=1Ai| | = | N-1∑j=1((-1)(j+1)∑S∈Ij|S|)+N∑j=1((-1)(j+1)∑S∈I′j|S|) | ||
= | N-1∑j=1[(-1)(j+1)(∑S∈Ij|S|+∑S∈I′j|S|)]+(-1)N+1|N⋂i=1Ai| |
Combining the two sums yields the principle of inclusion-exclusion for N sets.
Title | principle of inclusion-exclusion, proof of |
---|---|
Canonical name | PrincipleOfInclusionexclusionProofOf |
Date of creation | 2013-03-22 12:33:27 |
Last modified on | 2013-03-22 12:33:27 |
Owner | mps (409) |
Last modified by | mps (409) |
Numerical id | 6 |
Author | mps (409) |
Entry type | Proof |
Classification | msc 05A99 |