Proof of the rule of sum
Builds on Cardinality of a finite setBijective functionDisjoint sets
Proof
We first treat two sets, and then argue by induction on .
- Let and . By the definition of cardinality, there are bijections and .
- Define by for and for .
- The map is surjective. An element of is for some . An element of is for some .
- The map is injective. Let . If , then , so because is injective.
- If , then , so because is injective.
- If , then and . This is impossible, because and are disjoint. The case is the same.
- So is a bijection, is finite, and .
- Now let be pairwise disjoint finite sets. For the union is empty and both sides are . For the formula holds.
- Suppose the formula holds for sets, and let be pairwise disjoint finite sets. Put .
- By the induction hypothesis, is finite and .
- The sets and are disjoint. Indeed, an element of both would lie in for some , and this set is empty.
- By steps 1 to 7, . This completes the induction.
Idea
Number the elements of first and then continue the numbering through the elements of . Because no element is in both sets, no element gets two numbers. So the numbers to count the union exactly once.
Reading path
To understand this page from the ground up, read these 23 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Cardinality of a finite set definition
- Element definition
- Proposition concept
- Set definition
- Conjunction definition
- Implication definition
- Predicate definition
- Empty set object
- Ordered pair definition
- Intersection definition
- Existential quantifier definition
- Universal quantifier definition
- Cartesian product definition
- Disjoint sets definition
- Subset definition
- Uniqueness quantifier definition
- Binary relation definition
- Function definition
- Codomain definition
- Injective function definition
- Surjective function definition
- Bijective function definition
- Proof of the rule of sum proof
Where this leads
104 pages build on this one.
- Stars and bars
- Recurrence for Bell numbers
- Dyck words are counted by Catalan numbers
- K5 and K3,3 are not planar
- Complement principle
- Formula for the number of derangements
- Fermat's theorem on sums of two squares
- Dirichlet's approximation theorem
- Sum of two squares theorem
- Number of compositions
- Number of edges of a complete graph
- Number of functions between finite sets
- Number of k-element subsets
- Generalized pigeonhole principle
- Addition rule for two events
- Recurrence for Stirling numbers of the second kind
- Inclusion–exclusion for two sets
- Recurrence for Stirling numbers of the first kind
- Number of subsets of a finite set
- Number of permutations
- A finite integral domain is a field
- Rule of sum
- Existence of nontrivial solutions of Pell's equation
- A subgroup whose index is the smallest prime divisor of the order is normal
- Inclusion–exclusion principle
- Infinite pigeonhole principle
- Bertrand's ballot theorem
- Pigeonhole principle
- Solutions of Pell's equation are powers of the fundamental solution
- Kuratowski's theorem
- Sperner's theorem
- Fundamental solution of Pell's equation
- Reduction modulo p test for irreducibility
- Lagrange's four-square theorem
- Cayley's formula
- Closed formula for Catalan numbers
- Z/pZ is a field for p prime
- Theorem on friends and strangers
- Order of the symmetric group
- Recurrence for derangements
- The group of units of Z/pZ is cyclic
- Irreducibility of the cyclotomic polynomials over the rationals
- Erdős–Szekeres theorem
- Order of the alternating group
- Rule of product
- A prime is a Gaussian prime if and only if it is 3 modulo 4
- Number of injections
- Gauss–Wantzel theorem
- Binary trees are counted by Catalan numbers
- Proof of the number of edges of a complete graph
- Proof of the recurrence for Stirling numbers of the second kind
- Proof of the Erdős–Szekeres theorem by the pigeonhole principle
- Proof of the sum of two squares theorem
- Proof of Sperner's theorem by Lubell's chain counting
- Proof of the number of k-element subsets by induction
- Proof of the formula for the number of derangements by inclusion–exclusion
- Proof of Fermat's theorem on sums of two squares by Thue's lemma
- Proof of Cayley's formula by Prüfer sequences
- Proof that K5 and K3,3 are not planar
- Proof of the order of the symmetric group
- Proof of the order of the alternating group
- Proof of the closed formula for Catalan numbers by the reflection principle
- Proof of the number of subsets of a finite set by indicator functions
- Proof that a finite integral domain is a field
- Dyck language
- Cyclotomic field
- Proof of the rule of product
- Proof of the number of compositions by partial sums
- Proof that a subgroup whose index is the smallest prime divisor of the order is normal
- Proof of the number of functions between finite sets
- Proof that Dyck words are counted by Catalan numbers, by first return decomposition
- Proof of the complement principle
- Proof of the pigeonhole principle
- Proof of the number of injections
- Coxeter's integral octonions
- Proof that the solutions of Pell's equation are powers of the fundamental solution
- Proof of the existence of nontrivial solutions of Pell's equation by Dirichlet approximation
- Proof that a prime is a Gaussian prime if and only if it is 3 modulo 4
- Proof of Bertrand's ballot theorem by reflection
- Proof of the recurrence for derangements by the image of the last point
- Proof that the group of units of Z/pZ is cyclic by counting elements of each order
- Proof of Lagrange's four-square theorem by descent
- Proof of the irreducibility of the cyclotomic polynomials by reduction modulo primes
- Kronecker's approximation theorem
- Proof of the inclusion–exclusion principle by counting each element
- Proof of stars and bars by a bijection with subsets
- Proof of the recurrence for Bell numbers by the block of the last element
- Number of functions that avoid a given set of values
- Proof of Dirichlet's approximation theorem by the pigeonhole principle
- Hurwitz quaternions
- Proof of the theorem on friends and strangers
- 24-cell
- Proof of the number of permutations by counting injections
- Chomsky–Schützenberger representation theorem
- Proof of the recurrence for Stirling numbers of the first kind
- No-three-in-line problem
- Proof of the Gauss–Wantzel theorem
- Proof of the generalized pigeonhole principle
- Number of strings of distinct letters
- Proof of the reduction modulo p test for irreducibility
- Proof that binary trees are counted by Catalan numbers
- Inclusion–exclusion formula for elements with none of the properties
- Proof of the infinite pigeonhole principle
- Limiting proportion of derangements
Further reading
About this page
| Tag | QAA80GMKNM |
|---|---|
| URI | m2://QAA80GMKNM |
| Kind | proof |
| Writing | W0 stub |
| MSC | 05A05 |
| Proves | Rule of sum |
| Uses | Cardinality of a finite set, Bijective function, Disjoint sets |
| Methods | Mathematical induction |
| 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)
- a source with a locator (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.