Alphabeta Math
ExampleConstruction: AI-generatedVerification: 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 1515 weak compositions of 44 into 33 parts, listed and matched against stars and bars

Example

Take n=4n = 4 and m=3m = 3. The weak compositions of 44 into 33 parts (Compositions and weak compositions of a natural number into a fixed number of parts) are the triples (k0,k1,k2)(k_0,k_1,k_2) of naturals with k0+k1+k2=4k_0+k_1+k_2 = 4. Listed in decreasing lexicographic order they are

(4,0,0)(3,1,0)(3,0,1)(2,2,0)(2,1,1)(2,0,2)(1,3,0)(1,2,1)(1,1,2)(1,0,3)(0,4,0)(0,3,1)(0,2,2)(0,1,3)(0,0,4)\begin{array}{lllll} (4,0,0) & (3,1,0) & (3,0,1) & (2,2,0) & (2,1,1) \\ (2,0,2) & (1,3,0) & (1,2,1) & (1,1,2) & (1,0,3) \\ (0,4,0) & (0,3,1) & (0,2,2) & (0,1,3) & (0,0,4) \end{array}

fifteen in all, matching (n+m1m1)=(62)=15\binom{n+m-1}{m-1} = \binom{6}{2} = 15 from 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. Of these, three have every part nonzero, namely (2,1,1)(2,1,1), (1,2,1)(1,2,1) and (1,1,2)(1,1,2), matching (n1m1)=(32)=3\binom{n-1}{m-1} = \binom{3}{2} = 3.

Facts & Assumptions

Given: n=4n = 4, m=3m = 3, so M:=m1=2M := m-1 = 2 and n+M=6n+M = 6; the sets W(4,3)\mathcal{W}(4,3) and C(4,3)\mathcal{C}(4,3) of Compositions and weak compositions of a natural number into a fixed number of parts; and 2!=22! = 2, 4!=244! = 24, 6!=7206! = 720, 3!=63! = 6 (The factorial n!n! and the falling factorial nkn^{\underline{k}}, defined by recursion in N\mathbb{N}).

[L1]

For m1m \ge 1, W(n,m)=(n+m1m1)\lvert\mathcal{W}(n,m)\rvert = \binom{n+m-1}{m-1}, and the map kS(k):={(j<σ(i)kj)+i:i<M}k \mapsto S(k) := \{\,(\sum_{j<\sigma(i)}k_j) + i : i < M\,\} is a bijection onto the set of MM-element subsets of n+Mn+M (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).

[L2]

Verification

technique · direct
1.1

The list above is exhaustive and has no repetitions: it is organised by the value of k0k_0, which runs over 4,3,2,1,04, 3, 2, 1, 0, and for each k0k_0 the pair (k1,k2)(k_1,k_2) runs over all solutions of k1+k2=4k0k_1+k_2 = 4-k_0, of which there are 5k05-k_0, namely (4k0,0),(3k0,1),,(0,4k0)(4-k_0,0), (3-k_0,1), \dots, (0,4-k_0). The block sizes are therefore 1,2,3,4,51, 2, 3, 4, 5, and 1+2+3+4+5=151+2+3+4+5 = 15.

givenL4
2.1

The formula agrees. By [L3] with n=6n = 6, k=2k = 2: (62)2!4!=6!\binom{6}{2}\cdot 2!\cdot 4! = 6!, that is (62)224=720\binom{6}{2}\cdot 2 \cdot 24 = 720, so (62)48=720\binom{6}{2}\cdot 48 = 720 and (62)=15\binom{6}{2} = 15. By [L1] with n=4n = 4, m=3m = 3 this is W(4,3)\lvert\mathcal{W}(4,3)\rvert, matching step 1.1.

step 1.1L1L3
2.2

The bijection of [L1] made concrete. Here M=2M = 2, so S(k)={k0, k0+k1+1}S(k) = \{k_0,\ k_0+k_1+1\}, a two-element subset of 6={0,1,2,3,4,5}6 = \{0,1,2,3,4,5\}. For (4,0,0)(4,0,0): S={4, 5}S = \{4,\ 5\}. For (2,1,1)(2,1,1): S={2, 4}S = \{2,\ 4\}. For (1,2,1)(1,2,1): S={1, 4}S = \{1,\ 4\}. For (0,0,4)(0,0,4): S={0, 1}S = \{0,\ 1\}. Each is indeed a 22-element subset of 66, and the four are distinct, as injectivity requires. Reading the picture backwards, the two elements of SS are the positions of the two bars in a row of four stars and two bars, and the parts are the lengths of the three runs of stars.

step 1.1L1
3.1

The compositions. A weak composition has all parts nonzero exactly when none of k0,k1,k2k_0,k_1,k_2 is 00, and inspection of the list leaves (2,1,1)(2,1,1), (1,2,1)(1,2,1) and (1,1,2)(1,1,2), three in all. By [L2] the predicted count is (4131)=(32)=3\binom{4-1}{3-1} = \binom{3}{2} = 3, which agrees. The bijection behind [L2] subtracts 11 from every part, sending these three to (1,0,0)(1,0,0), (0,1,0)(0,1,0) and (0,0,1)(0,0,1), the three weak compositions of 11 into 33 parts.

step 1.1step 2.1L2L4
4.1

So W(4,3)=15=(62)\lvert\mathcal{W}(4,3)\rvert = 15 = \binom{6}{2} and C(4,3)=3=(32)\lvert\mathcal{C}(4,3)\rvert = 3 = \binom{3}{2}, both by direct enumeration and by the formulas.

step 2.1step 2.2step 3.1

Remarks

  • A stars-and-bars example that only checks the number is the weaker example. Step 2.2 exhibits the bijection on four of the fifteen tuples, so the reader sees which subset of 66 each composition corresponds to rather than being told that some correspondence exists.

  • The count 1+2+3+4+51+2+3+4+5 in step 1.1 is itself an instance of the theorem, at m=2m = 2: the number of weak compositions of jj into 22 parts is (j+11)=j+1\binom{j+1}{1} = j+1.

Depends on

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: 75 results over 27 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