Proof of the number of functions between finite sets
Builds on Cardinality of a finite setFunctionRestriction of a functionBijective functionRule of productBijection principleComposition of injections is injectiveComposition of surjections is surjective
Proof
Fix with . We argue by induction on that is finite with elements.
- Let . Then . A function from to has the empty graph, so there is exactly one. Thus .
- Suppose the claim holds for all sets with elements. Let , with a bijection .
- Put and . The restriction of to is a bijection onto . So .
- Define by , where is the restriction of to .
- Define as follows. For and , let send each to and send to .
- This defines a function on , because each element of is either in or equal to , and not both.
- The maps are mutually inverse. Indeed, agrees with on and at , and .
- By the induction hypothesis, . By the rule of product, is finite with elements.
- The map is a bijection onto . Composing it with a numbering of gives a bijection from to .
- A composite of bijections is a bijection, since injections compose and surjections compose. So , as the bijection principle also states. This completes the induction.
Idea
A function on is the same as a function on minus one point, together with the value at that point. So adding one point to the domain multiplies the count by , the number of possible values. Starting from the single empty function, we get .
Reading path
To understand this page from the ground up, read these 40 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 rule of product, Proof that a composition of surjections is surjective, Proof of the rule of sum, Proof of the bijection principle.
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
- Function composition definition
- Identity function definition
- Injective function definition
- Restriction of a function definition
- Surjective function definition
- Left inverse definition
- Right inverse definition
- Proof that a composition of injections is injective proof
- 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 rule of product proof
- Proof of the bijection principle proof
- Rule of product statement
- Bijection principle statement
- Proof of the number of functions between finite sets proof
Where this leads
8 pages build on this one.
- Number of compositions
- Number of functions between finite sets
- Number of subsets of a finite set
- Cayley's formula
- Proof of Cayley's formula by Prüfer sequences
- Proof of the number of subsets of a finite set by indicator functions
- Proof of the number of compositions by partial sums
- Number of functions that avoid a given set of values
Further reading
About this page
| Tag | CRRWPKG6KN |
|---|---|
| URI | m2://CRRWPKG6KN |
| Kind | proof |
| Writing | W0 stub |
| MSC | 05A05 |
| Proves | Number of functions between finite sets |
| Uses | Cardinality of a finite set, Function, Restriction of a function, Bijective function, Rule of product, Bijection principle, Composition of injections is injective, Composition of surjections is surjective |
| 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.