Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-generatedSession-authored (Fable 5 assisted)precheck passjudge pass (z-ai/glm-5.2)audited 2026-07-29
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 injections from a kk-element set into an nn-element set is nkn^{\underline{k}}

Statement

Let AA and BB be finite sets, n:=An := \lvert A\rvert and k:=Bk := \lvert B\rvert, and write

Inj(B,A):={f:BA : f is injective}.\operatorname{Inj}(B,A) := \{\, f : B \to A \ :\ f \text{ is injective} \,\}.

Then Inj(B,A)\operatorname{Inj}(B,A) is finite and Inj(B,A)=nk\lvert\operatorname{Inj}(B,A)\rvert = n^{\underline{k}} (The factorial n!n! and the falling factorial nkn^{\underline{k}}, defined by recursion in N\mathbb{N}).

The two boundary readings are part of the statement. At k=0k = 0 there is exactly one injection, the empty function, and n0=1n^{\underline{0}} = 1. For k>nk > n there is none, and nk=0n^{\underline{k}} = 0.

Facts & Assumptions

Given: Finite sets AA, BB with n=An = \lvert A\rvert and k=Bk = \lvert B\rvert. The truncated difference nkn-k is that of Finite sums and finite products of natural numbers, k<nak\sum_{k<n} a_k and k<nak\prod_{k<n} a_k in N\mathbb{N}.

[L2]

Cardinality (The cardinality A\lvert A\rvert of a finite set): X=0\lvert X\rvert = 0 exactly when X=X = \varnothing; a bijection transports finiteness and cardinality; m=m\lvert m\rvert = m.

[L3]

The falling factorial (The factorial n!n! and the falling factorial nkn^{\underline{k}}, defined by recursion in N\mathbb{N}): n0=1n^{\underline{0}} = 1, nσ(k)=nk(nk)n^{\underline{\sigma(k)}} = n^{\underline{k}}\cdot(n-k), and nk=0n^{\underline{k}} = 0 for k>nk > n.

[L5]

The sum rule (The sum rule: a finite disjoint union is finite with AB=A+B\lvert A \cup B\rvert = \lvert A\rvert + \lvert B\rvert and iIAi=iIAi\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): ST=S+T\lvert S \cup T\rvert = \lvert S\rvert + \lvert T\rvert for disjoint finite SS, TT; and a pairwise disjoint family of finite sets indexed by a finite set has finite union with cardinality the sum of the cardinalities. Together with iSc=Sc\sum_{i \in S} c = \lvert S\rvert \cdot c (The sum iSai\sum_{i \in S} a_i over a finite index set, and its product form).

[L6]

Maps (Injection, surjection, bijection, Equinumerous sets, ABA \approx B and ABA \preceq B): a map with a two-sided inverse is a bijection; the restriction of an injection is an injection; an injection is a bijection onto its image.

[L7]

Order and cancellation in N\mathbb{N}: x+1=y+1x + 1 = y + 1 implies x=yx = y; if k+t=nk + t = n then t=nkt = n-k; trichotomy (Addition is cancellative, Order on the natural numbers, Trichotomy of the order on N\mathbb{N}).

Proof

technique · induction
1.1

Base case k=0k = 0. Then B=B = \varnothing, and the only function A\varnothing \to A is the empty function, which is injective because injectivity is a condition on pairs of points of the domain and there are none. So Inj(B,A)={}\operatorname{Inj}(B,A) = \{\varnothing\} has cardinality 1=n01 = n^{\underline{0}}.

baseL2L3L6
1.2

Inductive hypothesis: fix kk and assume that for all finite AA, BB' with A=n\lvert A\rvert = n and B=k\lvert B'\rvert = k the set Inj(B,A)\operatorname{Inj}(B',A) is finite with cardinality nkn^{\underline{k}}.

ih
1.3

Setting up the inductive step. Let B=σ(k)\lvert B\rvert = \sigma(k), so BB \ne \varnothing; fix bBb \in B and put B:=B{b}B' := B \setminus \{b\}, which is finite with B=k\lvert B'\rvert = k by [L4], [L5] and cancellation, exactly as in the count of ABA^{B}. Put T:={(g,a):gInj(B,A), aAg[B]}T := \{\,(g,a) : g \in \operatorname{Inj}(B',A),\ a \in A \setminus g[B']\,\} and define Φ:Inj(B,A)T\Phi : \operatorname{Inj}(B,A) \to T by Φ(f)=(fB,f(b))\Phi(f) = (f\restriction B',\, f(b)); this lands in TT because fBf \restriction B' is injective and f(b)f(x)f(b) \ne f(x) for xBx \in B', so f(b)f[B]f(b) \notin f[B']. The map (g,a)g{(b,a)}(g,a) \mapsto g \cup \{(b,a)\} is a two-sided inverse: the extension is injective precisely because ag[B]a \notin g[B']. So Φ\Phi is a bijection. Finally Inj(B,A)AB\operatorname{Inj}(B',A) \subseteq A^{B'} is finite by [L4].

L4L5L6L7construct
2.1

The case k>nk > n. Then nk=0n^{\underline{k}} = 0 by [L3], so the hypothesis of step 1.2 gives Inj(B,A)=0\lvert\operatorname{Inj}(B',A)\rvert = 0, that is Inj(B,A)=\operatorname{Inj}(B',A) = \varnothing; hence T=T = \varnothing and Inj(B,A)=\operatorname{Inj}(B,A) = \varnothing by step 1.3, so its cardinality is 00. And σ(k)>n\sigma(k) > n as well, so nσ(k)=0n^{\underline{\sigma(k)}} = 0 by [L3]. Both sides are 00.

step 1.2step 1.3L2L3
2.2

The case knk \le n. For each gInj(B,A)g \in \operatorname{Inj}(B',A) the image g[B]g[B'] is a subset of AA with g[B]=B=k\lvert g[B']\rvert = \lvert B'\rvert = k, since gg is a bijection onto its image; and AA is the disjoint union of g[B]g[B'] and Ag[B]A \setminus g[B'], so n=k+Ag[B]n = k + \lvert A \setminus g[B']\rvert by [L5] and therefore Ag[B]=nk\lvert A \setminus g[B']\rvert = n-k by [L7]. Now TT is the union of the pairwise disjoint sets {g}×(Ag[B])\{g\} \times (A \setminus g[B']) indexed by gInj(B,A)g \in \operatorname{Inj}(B',A), each of cardinality nkn-k because a(g,a)a \mapsto (g,a) is a bijection; so [L5] gives T=g(nk)=Inj(B,A)(nk)=nk(nk)=nσ(k)\lvert T\rvert = \sum_{g}(n-k) = \lvert\operatorname{Inj}(B',A)\rvert\cdot(n-k) = n^{\underline{k}}\cdot(n-k) = n^{\underline{\sigma(k)}}, using the hypothesis of step 1.2 and [L3]. With step 1.3 this is Inj(B,A)\lvert\operatorname{Inj}(B,A)\rvert.

step 1.2step 1.3L2L3L5L6L7
3.1

The two cases are exhaustive by trichotomy, so the statement holds at σ(k)\sigma(k) whenever it holds at kk; with step 1.1 it holds for every kk, and the two boundary readings are step 1.1 and step 2.1.

step 1.1step 2.1step 2.2L1L7discharge-induction

Remarks

Depends on

Used by

Dependency tree · next 3 levels

Direct dependencies and their dependencies through the next three levels: 74 results over 25 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