How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced — the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted — a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated — a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
The number of surjections from an -element set onto a -element set is , read in through
Statement
Let and be finite sets, and , and write
(Injection, surjection, bijection). Then is finite and, in ,
where is the canonical natural (The canonical natural of a field), is the -valued power of Exponentiation of natural numbers, , and its agreement with the integer power in , and is the truncated difference of Finite sums and finite products of natural numbers, and in , which is the ordinary one throughout the range of the sum.
All three degenerate readings are part of the statement, and each is computed rather than stipulated.
- and . There is exactly one function , the empty function, and it is a surjection, so the count is . The sum has the single term , and is the base clause of Exponentiation of natural numbers, , and its agreement with the integer power in , so the sum is too.
- and . No function is a surjection, so the count is ; and every factor is , so the sum is the full alternating row sum , which is because (, and for , clause 2).
- and . There is no function from a nonempty set to , so the count is ; and the sum has the single term , which is because (Exponentiation of natural numbers, , and its agreement with the integer power in , clause (a)).
Facts & Assumptions
Given: Finite sets and with and ; the set of all functions ; and, for , the set of functions missing the value .
is finite with . This is The set of functions between finite sets is finite, with with its taken to be and its taken to be , so that its is the set of functions and its formula reads (Exponentiation of natural numbers, , and its agreement with the integer power in ).
is a family of subsets of the finite set indexed by the finite set , hence a sieve family with ambient set , and its intersections for satisfy (A finite family of subsets of a finite set , the intersections for , and the convention , A subset of a finite set is finite, with , and equality holds if and only if , The cardinality of a finite set).
is a surjection exactly when , that is exactly when there is no with (Injection, surjection, bijection). Hence , and it is finite as a subset of (A subset of a finite set is finite, with , and equality holds if and only if ).
For a finite sieve family in with , the complementary identity is (Inclusion and exclusion: , together with the complementary form counting the elements in none of the , clause 2).
For : , so (The sum rule: a finite disjoint union is finite with and , and a sum over a finite index set splits along a partition, clause 1, and the truncated difference of Finite sums and finite products of natural numbers, and in ).
Partition of a power set by cardinality: the sets for are pairwise disjoint with union , since a subset of has exactly one cardinality and it is at most ; and (A subset of a finite set is finite, with , and equality holds if and only if , clause 2, The set of -element subsets and the binomial coefficient , for finite ).
Splitting a sum along a partition of its index set (The sum rule: a finite disjoint union is finite with and , and a sum over a finite index set splits along a partition, clause 3); a constant real summand and the bridge (The sum over a finite index set, and its product form, clauses (a) and (c)); and the real finite sum itself (Finite sums and finite products, by recursion).
is injective and (Laws of finite sums and products in , and , clause 7, Integer powers ).
Proof
The ambient set. Put ; it is finite with by [L1].
The sieve family. For the set of functions missing is a subset of , and by [L3] a function is a surjection exactly when ; so is the complement of the union of the sieve family inside .
The intersections are function sets. For every , : for , says that misses every , that is that takes all its values in ; and for both sides are , the left by the stipulation of [L2]. Hence by [L1] applied to and by [L5].
The sieve. Applying [L4] to the family of step 1.2 and substituting step 1.3, .
Grouping the subsets of by size. Splitting the last sum along the partition of [L6] and using the constant clause of [L7] on each block, where the summand depends on only through , gives .
Combining steps 2.1 and 3.1 gives , and is finite by [L3]; since is injective, the identity determines the count in .
Remarks
-
The convention is load bearing exactly once, at and , where the formula returns and the truth is that the empty function is a surjection onto the empty set. It is not a convenience: it is the base clause of the recursion defining natural exponentiation, and changing it would make the formula false at that single point.
-
Why the family is indexed by and not by . The sieve removes the functions that miss a value, and there is one condition per element of the codomain. This is also why the alternating sum runs to and not to .
-
The count is a natural number. The identity is stated in because it carries signs, and is injective, so it pins down the natural number exactly.
Depends on
- Inclusion and exclusion: $\iota\lvert\bigcup_{i \in I} A_i\rvert = \sum_{\varnothing \ne J \subseteq I}(-1)^{\lvert J\rvert + 1}\,\iota\lvert A_J\rvert$, together with the complementary form counting the elements in none of the $A_i$
- A finite family $(A_i)_{i \in I}$ of subsets of a finite set $X$, the intersections $A_J$ for $J \subseteq I$, and the convention $A_\varnothing = X$
- The set $A^{B}$ of functions $B \to A$ between finite sets is finite, with $\lvert A^{B}\rvert = \lvert A\rvert^{\lvert B\rvert}$
- Exponentiation of natural numbers, $m^{n}$, and its agreement with the integer power in $\mathbb{R}$
- The set $[A]^{k}$ of $k$-element subsets and the binomial coefficient $\binom{n}{k} := \lvert [n]^{k}\rvert$
- The sum rule: a finite disjoint union is finite with $\lvert A \cup B\rvert = \lvert A\rvert + \lvert B\rvert$ and $\lvert\bigcup_{i \in I} A_i\rvert = \sum_{i \in I}\lvert A_i\rvert$, and a sum over a finite index set splits along a partition
- The sum $\sum_{i \in S} a_i$ over a finite index set, and its product form
- The canonical natural $\iota(n) = n \cdot 1_F$ of a field
- Integer powers $a^m$
- Laws of finite sums and products in $\mathbb{N}$, and $\iota\big(\sum_{k<n} a_k\big) = \sum_{k<n} \iota(a_k)$
- The cardinality $\lvert A\rvert$ of a finite set
- A subset of a finite set is finite, with $\lvert B\rvert \le \lvert A\rvert$, and equality holds if and only if $B = A$
- Injection, surjection, bijection
- Finite sums and finite products, by recursion
- $\lvert\mathcal{P}(A)\rvert = 2^{\lvert A\rvert}$ for finite $A$
- Finite sums and finite products of natural numbers, $\sum_{k<n} a_k$ and $\prod_{k<n} a_k$ in $\mathbb{N}$
- $\sum_{k<n+1}\binom{n}{k} = 2^{n}$, and $\sum_{k<n+1}(-1)^{k}\iota\!\binom{n}{k} = 0$ for $n \ge 1$
Used by
Dependency tree · next 3 levels
Direct dependencies and their dependencies through the next three levels: 89 results over 32 levels. An arrow runs from a result to what uses it, and this result sits at the bottom with a heavier outline. Click the chart to enlarge it.
Sources
- Surjective function (Wikipedia) (standard reference, not scraped)
- Inclusion-exclusion principle (Wikipedia) (standard reference, not scraped)
- Twelvefold way (Wikipedia) (standard reference, not scraped)
- Algebraic Combinatorics Blueprint: Surjections (standard reference, not scraped)