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 surjections from a five-element set onto a three-element set counted by the sieve formula and by direct subtraction
Example
Take and , so and .
By the formula. The number of surjections from an -element set onto a -element set is , read in through gives
whose four terms are
| term | |||
|---|---|---|---|
so the count is .
By direct subtraction. Every function has an image , and the sets for partition the set of all functions . A function with image exactly is precisely a surjection , so the number of functions with image of size is times the number of surjections from a five-element set onto a -element set. Those numbers are for , since ; for , the constant function; and for , since a function into a two-element set fails to be onto exactly when it is one of the two constants. Hence
so , in agreement.
Facts & Assumptions
Given: , , the set of all functions , and the canonical natural (The canonical natural of a field).
for every finite (The set of functions between finite sets is finite, with , Exponentiation of natural numbers, , and its agreement with the integer power in , The cardinality of a finite set); and , , , , the last by clause (a) of Exponentiation of natural numbers, , and its agreement with the integer power in since .
If are finite with and , then (The number of surjections from an -element set onto a -element set is , read in through ).
The image partition: for put ; the sets for are pairwise disjoint subsets of with union , and is in bijection with by restriction of the codomain, so . If finite have , finite cardinality supplies a bijection , and is a bijection with inverse ; hence these surjection counts depend only on the codomain cardinality (Injection, surjection, bijection, A subset of a finite set is finite, with , and equality holds if and only if , The cardinality of a finite set).
The sum rule for a finite partition and the grouping of by cardinality, with (The sum rule: a finite disjoint union is finite with and , and a sum over a finite index set splits along a partition, clauses 2 and 3, The sum over a finite index set, and its product form, The set of -element subsets and the binomial coefficient ).
is additive, multiplicative and injective, and , (Laws of finite sums and products in , and , clauses 0 and 7, Integer powers , Ordered field).
Verification
The four terms of the formula. By [L2] and [L1] they are , , and , the signs coming from [L6].
The image partition is a partition, and the number of functions with image of size is times the number of surjections onto a fixed -element subset: [L4] gives equality of the surjection counts for all -element codomains, and there are such subsets by [L5].
The three easy image sizes. There is no surjection from the nonempty onto , so the contribution is ; there is exactly one surjection onto a one-element set, the constant, so the contribution is ; and a function from into a two-element set is non-surjective exactly when it is constant, so the number of surjections is by [L1] and the contribution is .
Summing the four terms of step 1.1 gives , so by [L3] and the injectivity of .
Summing the partition of step 1.2 gives by [L1] and [L5], hence .
The two computations agree, and each was carried out without reference to the other.
Remarks
-
The second route is not a rearrangement of the first. It partitions the functions by their image and uses the surjection counts onto smaller sets, which at sizes , and are established directly rather than by the formula. So the agreement is a genuine check on the formula at , .
-
The last term of the formula is and it is not decoration. At the factor is , which vanishes because ; at it would be instead, and that is the single point where the convention of Exponentiation of natural numbers, , and its agreement with the integer power in is load bearing for this formula.
Depends on
- The number of surjections from an $n$-element set onto a $k$-element set is $\sum_{i<k+1}(-1)^{i}\binom{k}{i}(k-i)^{n}$, read in $\mathbb{R}$ through $\iota$
- 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 canonical natural $\iota(n) = n \cdot 1_F$ of a field
- Integer powers $a^m$
- The cardinality $\lvert A\rvert$ of a finite set
- 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
- Injection, surjection, bijection
- 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$
- Laws of finite sums and products in $\mathbb{N}$, and $\iota\big(\sum_{k<n} a_k\big) = \sum_{k<n} \iota(a_k)$
- Ordered field
Used by
Nothing in the library uses this result yet.
Dependency tree · next 3 levels
Direct dependencies and their dependencies through the next three levels: 86 results over 29 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)
- Twelvefold way (Wikipedia) (standard reference, not scraped)
- Inclusion-exclusion principle (Wikipedia) (standard reference, not scraped)
- Algebraic Combinatorics Blueprint: Surjections (standard reference, not scraped)