Alphabeta Math
DefinitionDefinition: Literature-sourcedProof: Not applicableSession-authored (Fable 5 assisted)judge 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,mNn, m \in \mathbb{N}.

The parts are ordered: kk is a function on mm, so (1,2)(1,2) and (2,1)(2,1) are different compositions of 33 into 22 parts.

Both sets are finite. Every kW(n,m)k \in \mathcal{W}(n,m) has kink_i \le n for each ii, because a term of a sum of naturals is at most the sum (clause 4 of Laws of finite sums and products in N\mathbb{N}, and ι(k<nak)=k<nι(ak)\iota\big(\sum_{k<n} a_k\big) = \sum_{k<n} \iota(a_k)); so W(n,m)\mathcal{W}(n,m) is a subset of the set of functions mσ(n)m \to \sigma(n), which is finite by The set ABA^{B} of functions BAB \to A between finite sets is finite, with AB=AB\lvert A^{B}\rvert = \lvert A\rvert^{\lvert B\rvert}, and A subset of a finite set is finite, with BA\lvert B\rvert \le \lvert A\rvert, and equality holds if and only if B=AB = A applies. C(n,m)\mathcal{C}(n,m) is a subset of W(n,m)\mathcal{W}(n,m), hence finite too.

The case m=0m = 0, which is exactly where the next item's hypothesis lives. There is precisely one function 0N0 \to \mathbb{N}, the empty function, and its sum is the empty sum, 00. Hence

W(0,0)=1,W(n,0)=0  for n1,\lvert\mathcal{W}(0,0)\rvert = 1, \qquad \lvert\mathcal{W}(n,0)\rvert = 0 \ \text{ for } n \ge 1,

and the same two values for C\mathcal{C}, since the condition "every part is nonzero" is vacuous for the empty tuple. Saying this here is what lets For m1m \ge 1 the number of weak compositions of nn into mm parts is (n+m1m1)\binom{n+m-1}{m-1}, and the number of compositions is (n1m1)\binom{n-1}{m-1} for n1n \ge 1 carry the hypothesis m1m \ge 1 honestly: at m=0m = 0 the count is not given by the formula, and the true value is recorded above.

Small values of mm. W(n,1)=1\lvert\mathcal{W}(n,1)\rvert = 1, the unique weak composition being k0=nk_0 = n; and C(n,1)=1\lvert\mathcal{C}(n,1)\rvert = 1 for n1n \ge 1 while C(0,1)=\mathcal{C}(0,1) = \varnothing.

Remarks

Depends on

Used by

Dependency tree · next 3 levels

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