Math 2.0

Combinatorics Proof

Proof of the number of injections

Builds on Cardinality of a finite setInjective functionFalling factorialRestriction of a functionBijective functionComplement principleRule of sumBijection principle

Proof

Fix BB with ∣B∣=n|B| = n. For a set AA, let I(A)I(A) be the set of injective functions from AA to BB. We argue by induction on k=∣A∣k = |A| that I(A)I(A) is finite with (n)k(n)_k elements.

  1. Let k=0k = 0. Then A=∅A = \varnothing, and the empty function is the only function from AA to BB. It is injective. So ∣I(A)∣=1=(n)0|I(A)| = 1 = (n)_0.
  2. Suppose the claim holds for all sets with kk elements. Let ∣A∣=k+1|A| = k + 1, with a bijection f:{1,…,k+1}→Af : \set{1, \dots, k+1} \to A.
  3. Put a=f(k+1)a = f(k+1) and A′=A∖{a}A' = A \setminus \set{a}. The restriction of ff to {1,…,k}\set{1, \dots, k} is a bijection onto A′A', so ∣A′∣=k|A'| = k.
  4. By the induction hypothesis, I(A′)I(A') has N=(n)kN = (n)_k elements. Here (n)k(n)_k is the falling factorial.
  5. For φ∈I(A)\varphi \in I(A), the restriction φ∣A′\varphi|_{A'} is injective, so it lies in I(A′)I(A'). For ψ∈I(A′)\psi \in I(A'), let EψE_\psi be the set of φ∈I(A)\varphi \in I(A) with φ∣A′=ψ\varphi|_{A'} = \psi.
  6. Each φ∈I(A)\varphi \in I(A) lies in exactly one set EψE_\psi, namely for ψ=φ∣A′\psi = \varphi|_{A'}. So the sets EψE_\psi are pairwise disjoint, and their union is I(A)I(A).
  7. Fix ψ∈I(A′)\psi \in I(A') and let C=ψ(A′)C = \psi(A'). The map ψ\psi is a bijection from A′A' onto CC. Composing a numbering of A′A' with ψ\psi numbers CC, so ∣C∣=k|C| = k, as in the bijection principle.
  8. By the complement principle, B∖CB \setminus C is finite with n−kn - k elements. In particular k≤nk \le n.
  9. For φ∈Eψ\varphi \in E_\psi, we have φ(a)∉C\varphi(a) \notin C. Otherwise φ(a)=ψ(x)=φ(x)\varphi(a) = \psi(x) = \varphi(x) for some x∈A′x \in A', against injectivity, since x≠ax \ne a.
  10. Conversely, for b∈B∖Cb \in B \setminus C, extend ψ\psi by a↦ba \mapsto b. The result is injective, because ψ\psi is injective and bb is not a value of ψ\psi.
  11. So φ↦φ(a)\varphi \mapsto \varphi(a) is a bijection from EψE_\psi to B∖CB \setminus C, with the extension of step 10 as inverse. Composing a numbering of B∖CB \setminus C with this inverse shows ∣Eψ∣=n−k|E_\psi| = n - k.
  12. If N=0N = 0, then I(A′)I(A') is empty, so by step 6 the set I(A)I(A) is empty. Also (n)k+1=(n)k(n−k)=0(n)_{k+1} = (n)_k (n - k) = 0.
  13. If N≥1N \ge 1, the rule of sum applied to the NN sets EψE_\psi gives ∣I(A)∣=N(n−k)=(n)k(n−k)|I(A)| = N (n - k) = (n)_k (n - k).
  14. By the definition of the falling factorial, (n)k(n−k)=(n)k+1(n)_k (n - k) = (n)_{k+1}. So ∣I(A)∣=(n)k+1|I(A)| = (n)_{k+1}, and the induction is complete.

Idea

Build an injection one point at a time. The new point may go to any element of BB that is not already used, and exactly kk are used. So each step multiplies the count by the number of unused values, which gives the falling factorial.

Reading path

To understand this page from the ground up, read these 41 pages in order. The foundations come first. The path takes the proofs 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 that a composition of surjections is surjective, Proof of the rule of sum, Proof of the bijection principle.

  1. Cardinality of a finite set definition
  2. Element definition
  3. Falling factorial definition
  4. Proposition concept
  5. Set definition
  6. Conjunction definition
  7. Implication definition
  8. Predicate definition
  9. Empty set object
  10. Ordered pair definition
  11. Intersection definition
  12. Existential quantifier definition
  13. Universal quantifier definition
  14. Cartesian product definition
  15. Disjoint sets definition
  16. Subset definition
  17. Uniqueness quantifier definition
  18. Binary relation definition
  19. Function definition
  20. Codomain definition
  21. Function composition definition
  22. Identity function definition
  23. Injective function definition
  24. Restriction of a function definition
  25. Surjective function definition
  26. Left inverse definition
  27. Right inverse definition
  28. Proof that a composition of injections is injective proof
  29. Proof that a composition of surjections is surjective proof
  30. Bijective function definition
  31. Composition of injections is injective statement
  32. Composition of surjections is surjective statement
  33. Proof of the rule of sum proof
  34. Proof that a function is bijective iff it has a two-sided inverse proof
  35. Rule of sum statement
  36. Bijective iff it has a two-sided inverse statement
  37. Proof of the complement principle proof
  38. Proof of the bijection principle proof
  39. Complement principle statement
  40. Bijection principle statement
  41. Proof of the number of injections proof

Where this leads

15 pages build on this one.

Further reading

  1. Web https://proofwiki.org/wiki/Cardinality_of_Set_of_Injections
About this page
TagE1TQVD7TVM
URIm2://E1TQVD7TVM
Kindproof
WritingW0 stub
MSC05A05
ProvesNumber of injections
UsesCardinality of a finite set, Injective function, Falling factorial, Restriction of a function, Bijective function, Complement principle, Rule of sum, Bijection principle
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)
  • 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.