Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-generatedprecheck 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 k-element set into an n-element set is nk‾

Statement

Let A and B be finite sets, n:=∣A∣ and k:=∣B∣, and write

Inj⁡(B,A):={ f:B→A : f is injective }.

Then Inj⁡(B,A) is finite and ∣Inj⁡(B,A)∣=nk‾ (The factorial n! and the falling factorial nk‾, defined by recursion in N).

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

Facts & Assumptions

Given: Finite sets A, B with n=∣A∣ and k=∣B∣. The truncated difference n−k is that of Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N.

[L2]

Cardinality (The cardinality ∣A∣ of a finite set): ∣X∣=0 exactly when X=∅; a bijection transports finiteness and cardinality; ∣m∣=m.

[L3]

The falling factorial (The factorial n! and the falling factorial nk‾, defined by recursion in N): n0‾=1, nσ(k)‾=nk‾⋅(n−k), and nk‾=0 for k>n.

[L5]

The sum rule (The sum rule: a finite disjoint union is finite with ∣A∪B∣=∣A∣+∣B∣ and ∣⋃i∈IAi∣=∑i∈I∣Ai∣, and a sum over a finite index set splits along a partition): ∣S∪T∣=∣S∣+∣T∣ for disjoint finite S, T; 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 ∑i∈Sc=∣S∣⋅c (The sum ∑i∈Sai over a finite index set, and its product form).

[L6]

Maps (Injection, surjection, bijection, Equinumerous sets, A≈B and A⪯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: x+1=y+1 implies x=y; if k+t=n then t=n−k; trichotomy (Addition is cancellative, Order on the natural numbers, Trichotomy of the order on N).

Proof

technique · induction
1.1

Base case k=0. Then B=∅, and the only function ∅→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)={∅} has cardinality 1=n0‾.

baseL2L3L6
1.2

Inductive hypothesis: fix k and assume that for all finite A, B′ with ∣A∣=n and ∣B′∣=k the set Inj⁡(B′,A) is finite with cardinality nk‾.

ih
1.3

Setting up the inductive step. Let ∣B∣=σ(k), so B≠∅; fix b∈B and put B′:=B∖{b}, which is finite with ∣B′∣=k by [L4], [L5] and cancellation, exactly as in the count of AB. Put T:={ (g,a):g∈Inj⁡(B′,A), a∈A∖g[B′] } and define Φ:Inj⁡(B,A)→T by Φ(f)=(f↾B′, f(b)); this lands in T because f↾B′ is injective and f(b)≠f(x) for x∈B′, so f(b)∉f[B′]. The map (g,a)↦g∪{(b,a)} is a two-sided inverse: the extension is injective precisely because a∉g[B′]. So Φ is a bijection. Finally Inj⁡(B′,A)⊆AB′ is finite by [L4].

L4L5L6L7construct
2.1

The case k>n. Then nk‾=0 by [L3], so the hypothesis of step 1.2 gives ∣Inj⁡(B′,A)∣=0, that is Inj⁡(B′,A)=∅; hence T=∅ and Inj⁡(B,A)=∅ by step 1.3, so its cardinality is 0. And σ(k)>n as well, so nσ(k)‾=0 by [L3]. Both sides are 0.

step 1.2step 1.3L2L3
2.2

The case k≤n. For each g∈Inj⁡(B′,A) the image g[B′] is a subset of A with ∣g[B′]∣=∣B′∣=k, since g is a bijection onto its image; and A is the disjoint union of g[B′] and A∖g[B′], so n=k+∣A∖g[B′]∣ by [L5] and therefore ∣A∖g[B′]∣=n−k by [L7]. Now T is the union of the pairwise disjoint sets {g}×(A∖g[B′]) indexed by g∈Inj⁡(B′,A), each of cardinality n−k because a↦(g,a) is a bijection; so [L5] gives ∣T∣=∑g(n−k)=∣Inj⁡(B′,A)∣⋅(n−k)=nk‾⋅(n−k)=nσ(k)‾, using the hypothesis of step 1.2 and [L3]. With step 1.3 this is ∣Inj⁡(B,A)∣.

step 1.2step 1.3L2L3L5L6L7
3.1

The two cases are exhaustive by trichotomy, so the statement holds at σ(k) whenever it holds at k; with step 1.1 it holds for every k, 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 · two levels

44 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources