Math 2.0

Combinatorics Proof

Proof of the rule of product

Builds on Cardinality of a finite setCartesian productBijective functionRule of sumComposition of injections is injectiveComposition of surjections is surjective

Proof

We split the Cartesian product into disjoint copies of AA, and then argue by induction on kk.

  1. Let m=∣A∣m = |A| and n=∣B∣n = |B|. By the definition of cardinality, there are bijections f:{1,…,m}→Af : \set{1, \dots, m} \to A and g:{1,…,n}→Bg : \set{1, \dots, n} \to B. Write bj=g(j)b_j = g(j).
  2. If n=0n = 0, then BB is empty, so A×BA \times B is empty and ∣A×B∣=0=m⋅0|A \times B| = 0 = m \cdot 0.
  3. Let n≥1n \ge 1. Every pair (a,b)∈A×B(a, b) \in A \times B has b=bjb = b_j for exactly one jj. So A×BA \times B is the union of the sets A×{bj}A \times \set{b_j} for j=1,…,nj = 1, \dots, n.
  4. These sets are pairwise disjoint, because bj≠bj′b_j \ne b_{j'} for j≠j′j \ne j', as gg is injective.
  5. For each jj, the map i↦(f(i),bj)i \mapsto (f(i), b_j) from {1,…,m}\set{1, \dots, m} to A×{bj}A \times \set{b_j} is a bijection, because ff is a bijection. So ∣A×{bj}∣=m|A \times \set{b_j}| = m.
  6. By the rule of sum, A×BA \times B is finite and ∣A×B∣=m+⋯+m=nm=∣A∣⋅∣B∣|A \times B| = m + \dots + m = n m = |A| \cdot |B|, with nn terms.
  7. Now let A1,…,AkA_1, \dots, A_k be finite sets, with k≥1k \ge 1. For k=1k = 1 the claim ∣A1∣=∣A1∣|A_1| = |A_1| holds.
  8. Suppose the claim holds for kk sets. Put P=A1×⋯×AkP = A_1 \times \dots \times A_k. By hypothesis PP is finite and ∣P∣=∣A1∣⋯∣Ak∣|P| = |A_1| \cdots |A_k|.
  9. The map ϕ:P×Ak+1→A1×⋯×Ak+1\phi : P \times A_{k+1} \to A_1 \times \dots \times A_{k+1} with ϕ((a1,…,ak),ak+1)=(a1,…,ak+1)\phi((a_1, \dots, a_k), a_{k+1}) = (a_1, \dots, a_{k+1}) is a bijection. Its inverse regroups the entries.
  10. By steps 1 to 6, there is a bijection h:{1,…,N}→P×Ak+1h : \set{1, \dots, N} \to P \times A_{k+1} with N=∣P∣⋅∣Ak+1∣N = |P| \cdot |A_{k+1}|.
  11. A composite of bijections is a bijection, since injections compose and surjections compose. So ϕ∘h\phi \circ h is a bijection from {1,…,N}\set{1, \dots, N} to A1×⋯×Ak+1A_1 \times \dots \times A_{k+1}.
  12. Hence ∣A1×⋯×Ak+1∣=N=∣A1∣⋯∣Ak∣⋅∣Ak+1∣|A_1 \times \dots \times A_{k+1}| = N = |A_1| \cdots |A_k| \cdot |A_{k+1}|. This completes the induction.

Idea

The pairs with a fixed second entry bb form a copy of AA. There are ∣B∣|B| such copies and they do not overlap, so the rule of sum adds ∣A∣|A| to itself ∣B∣|B| times. Longer products are built one factor at a time.

Reading path

To understand this page from the ground up, read these 30 pages in order. The foundations come first. The path takes the proofs Proof that a composition of injections is injective, Proof that a composition of surjections is surjective, Proof of the rule of sum.

Show the path as a graph
Cardinality of a finite set, definition, no evidence levelCardinality of a fini…definitionElement, definition, no evidence levelElementdefinitionProposition, concept, no evidence levelPropositionconceptSet, definition, no evidence levelSetdefinitionConjunction, definition, no evidence levelConjunctiondefinitionImplication, definition, no evidence levelImplicationdefinitionPredicate, definition, no evidence levelPredicatedefinitionEmpty set, object, no evidence levelEmpty setobjectOrdered pair, definition, no evidence levelOrdered pairdefinitionIntersection, definition, no evidence levelIntersectiondefinitionExistential quantifier, definition, no evidence levelExistential quantifierdefinitionUniversal quantifier, definition, no evidence levelUniversal quantifierdefinitionCartesian product, definition, no evidence levelCartesian productdefinitionDisjoint sets, definition, no evidence levelDisjoint setsdefinitionSubset, definition, no evidence levelSubsetdefinitionUniqueness quantifier, definition, no evidence levelUniqueness quantifierdefinitionBinary relation, definition, no evidence levelBinary relationdefinitionFunction, definition, no evidence levelFunctiondefinitionCodomain, definition, no evidence levelCodomaindefinitionFunction composition, definition, no evidence levelFunction compositiondefinitionInjective function, definition, no evidence levelInjective functiondefinitionSurjective function, definition, no evidence levelSurjective functiondefinitionProof that a composition of injections is injective, proof, no evidence levelProof that a composit…proofProof that a composition of surjections is surjective, proof, no evidence levelProof that a composit…proofBijective function, definition, no evidence levelBijective functiondefinitionComposition of injections is injective, statement, no evidence levelComposition of inject…statementComposition of surjections is surjective, statement, no evidence levelComposition of surjec…statementProof of the rule of sum, proof, no evidence levelProof of the rule of …proofRule of sum, statement, no evidence levelRule of sumstatementProof of the rule of product, proof, no evidence levelProof of the rule of …proof
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Cardinality of a finite set definition
  2. Element definition
  3. Proposition concept
  4. Set definition
  5. Conjunction definition
  6. Implication definition
  7. Predicate definition
  8. Empty set object
  9. Ordered pair definition
  10. Intersection definition
  11. Existential quantifier definition
  12. Universal quantifier definition
  13. Cartesian product definition
  14. Disjoint sets definition
  15. Subset definition
  16. Uniqueness quantifier definition
  17. Binary relation definition
  18. Function definition
  19. Codomain definition
  20. Function composition definition
  21. Injective function definition
  22. Surjective function definition
  23. Proof that a composition of injections is injective proof
  24. Proof that a composition of surjections is surjective proof
  25. Bijective function definition
  26. Composition of injections is injective statement
  27. Composition of surjections is surjective statement
  28. Proof of the rule of sum proof
  29. Rule of sum statement
  30. Proof of the rule of product proof

Where this leads

20 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Rule_of_product, lead section
About this page
TagBM452N6A98
URIm2://BM452N6A98
Kindproof
WritingW0 stub
MSC05A05
ProvesRule of product
UsesCardinality of a finite set, Cartesian product, Bijective function, Rule of sum, Composition of injections is injective, Composition of surjections is surjective
MethodsMathematical induction
Changed4 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.