Alphabeta Math
DefinitionDefinition: Literature-sourcedProof: Not applicablejudge 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.

Compositions and weak compositions of a natural number into a fixed number of parts

Definition

Let n,m∈N.

The parts are ordered: k is a function on m, so (1,2) and (2,1) are different compositions of 3 into 2 parts.

Both sets are finite. Every k∈W(n,m) has ki≤n for each i, because a term of a sum of naturals is at most the sum (clause 4 of Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak)); so W(n,m) is a subset of the set of functions m→σ(n), which is finite by The set AB of functions B→A between finite sets is finite, with ∣AB∣=∣A∣∣B∣, and A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A applies. C(n,m) is a subset of W(n,m), hence finite too.

The case m=0, which is exactly where the next item's hypothesis lives. There is precisely one function 0→N, the empty function, and its sum is the empty sum, 0. Hence

∣W(0,0)∣=1,∣W(n,0)∣=0  for n≥1,

and the same two values for C, since the condition "every part is nonzero" is vacuous for the empty tuple. Saying this here is what lets For m≥1 the number of weak compositions of n into m parts is (n+m−1m−1), and the number of compositions is (n−1m−1) for n≥1 carry the hypothesis m≥1 honestly: at m=0 the count is not given by the formula, and the true value is recorded above.

Small values of m. ∣W(n,1)∣=1, the unique weak composition being k0=n; and ∣C(n,1)∣=1 for n≥1 while C(0,1)=∅.

Remarks

Depends on

Used by

Dependency tree · two levels

55 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