Proof of the inclusion–exclusion principle by counting each element
Builds on Rule of sumNumber of k-element subsetsAlternating sum of binomial coefficientsDouble counting
Proof
We count how often each element is counted on the right side, a form of double counting.
- Let be finite sets, and let . Then is the union of the pairwise disjoint sets . Each is a subset of the finite set , so the rule of sum shows that is finite.
- Let be the set of nonempty subsets . For , let . Then .
- For and , let if , and otherwise.
- For each , the set is the disjoint union of the singletons with . So the rule of sum gives .
- Let be the right side of the statement. By step 4, and by exchanging two finite sums,
- Fix . Let and . Since , is nonempty, so .
- For , we have exactly when for all , that is, when .
- So is the sum of over the nonempty subsets of .
- By the number of -element subsets, has subsets with elements. Grouping the subsets by size gives
- Since , the alternating sum of binomial coefficients gives .
- The term with there is . So , and by step 9, .
- By steps 5 and 11, . This is the claimed formula .
Idea
Expand each as a sum over its elements and collect the contributions of one element . If lies in exactly of the sets, the signs add up to , which is because . So every element of the union is counted exactly once.
Reading path
To understand this page from the ground up, read these 56 pages in order. The foundations come first. The path takes the proofs Proof of the number of k-element subsets by induction, Proof that a composition of injections is injective, Proof that a function is bijective iff it has a two-sided inverse, Proof of the complement principle, Proof of Pascal's rule from the recursive definition, Proof that a composition of surjections is surjective, Proof of the alternating sum of binomial coefficients from the binomial theorem, Proof of the factorial formula for binomial coefficients by induction, Proof of the binomial theorem by induction, Proof of the rule of sum, Proof of the bijection principle.
- Binomial coefficient definition
- Cardinality of a finite set definition
- Combination definition
- Double counting concept
- Element definition
- Factorial definition
- Group concept
- Proposition concept
- Proof of Pascal's rule from the recursive definition proof
- Set definition
- Ring definition
- Conjunction definition
- Implication definition
- Predicate definition
- Pascal's rule statement
- Empty set object
- Ordered pair definition
- Commutative ring definition
- Intersection definition
- Existential quantifier definition
- Universal quantifier definition
- Proof of the factorial formula for binomial coefficients by induction proof
- Cartesian product definition
- Disjoint sets definition
- Subset definition
- Uniqueness quantifier definition
- Factorial formula for binomial coefficients statement
- Binary relation definition
- Proof of the binomial theorem by induction proof
- Function definition
- Binomial theorem statement
- Codomain definition
- Function composition definition
- Identity function definition
- Injective function definition
- Proof of the alternating sum of binomial coefficients from the binomial theorem proof
- Surjective function definition
- Left inverse definition
- Right inverse definition
- Proof that a composition of injections is injective proof
- Alternating sum of binomial coefficients statement
- Proof that a composition of surjections is surjective proof
- Bijective function definition
- Composition of injections is injective statement
- Composition of surjections is surjective statement
- Proof of the rule of sum proof
- Proof that a function is bijective iff it has a two-sided inverse proof
- Rule of sum statement
- Bijective iff it has a two-sided inverse statement
- Proof of the complement principle proof
- Proof of the bijection principle proof
- Complement principle statement
- Bijection principle statement
- Proof of the number of k-element subsets by induction proof
- Number of k-element subsets statement
- Proof of the inclusion–exclusion principle by counting each element proof
Where this leads
5 pages build on this one.
Further reading
- Web https://en.wikipedia.org/wiki/Inclusion–exclusion_principle, Proof of main statement
About this page
| Tag | JFVZP694ST |
|---|---|
| URI | m2://JFVZP694ST |
| Kind | proof |
| Writing | W0 stub |
| MSC | 05A05 |
| Proves | Inclusion–exclusion principle |
| Uses | Rule of sum, Number of k-element subsets, Alternating sum of binomial coefficients, Double counting |
| Changed | 4 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.