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 weak compositions of into parts, listed and matched against stars and bars
Example
Take and . The weak compositions of into parts (Compositions and weak compositions of a natural number into a fixed number of parts) are the triples of naturals with . Listed in decreasing lexicographic order they are
fifteen in all, matching from For the number of weak compositions of into parts is , and the number of compositions is for . Of these, three have every part nonzero, namely , and , matching .
Facts & Assumptions
Given: , , so and ; the sets and of Compositions and weak compositions of a natural number into a fixed number of parts; and , , , (The factorial and the falling factorial , defined by recursion in ).
For , , and the map is a bijection onto the set of -element subsets of (For the number of weak compositions of into parts is , and the number of compositions is for ).
for ( for ; hence , the quotient is a natural number, and ), and cancellation by a nonzero natural (Cancellation for multiplication by a nonzero factor).
from the closed formula, and finite sums in (The set of -element subsets and the binomial coefficient , Finite sums and finite products of natural numbers, and in ).
Verification
The list above is exhaustive and has no repetitions: it is organised by the value of , which runs over , and for each the pair runs over all solutions of , of which there are , namely . The block sizes are therefore , and .
The formula agrees. By [L3] with , : , that is , so and . By [L1] with , this is , matching step 1.1.
The bijection of [L1] made concrete. Here , so , a two-element subset of . For : . For : . For : . For : . Each is indeed a -element subset of , and the four are distinct, as injectivity requires. Reading the picture backwards, the two elements of 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.
The compositions. A weak composition has all parts nonzero exactly when none of is , and inspection of the list leaves , and , three in all. By [L2] the predicted count is , which agrees. The bijection behind [L2] subtracts from every part, sending these three to , and , the three weak compositions of into parts.
So and , both by direct enumeration and by the formulas.
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 each composition corresponds to rather than being told that some correspondence exists.
-
The count in step 1.1 is itself an instance of the theorem, at : the number of weak compositions of into parts is .
Depends on
- For $m \ge 1$ the number of weak compositions of $n$ into $m$ parts is $\binom{n+m-1}{m-1}$, and the number of compositions is $\binom{n-1}{m-1}$ for $n \ge 1$
- Compositions and weak compositions of a natural number into a fixed number of parts
- The multinomial coefficient $\binom{n}{k_0,\dots,k_{m-1}}$ as the number of ordered partitions of an $n$-set into blocks of prescribed sizes
- The set $[A]^{k}$ of $k$-element subsets and the binomial coefficient $\binom{n}{k} := \lvert [n]^{k}\rvert$
- $\binom{n}{k}\,k!\,(n-k)! = n!$ for $k \le n$; hence $\binom{n}{k}\,k! = n^{\underline{k}}$, the quotient $n!/(k!(n-k)!)$ is a natural number, and $\binom{n}{k} = \binom{n}{n-k}$
- Finite sums and finite products of natural numbers, $\sum_{k<n} a_k$ and $\prod_{k<n} a_k$ in $\mathbb{N}$
- The factorial $n!$ and the falling factorial $n^{\underline{k}}$, defined by recursion in $\mathbb{N}$
- Cancellation for multiplication by a nonzero factor
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
- Stars and bars (combinatorics) (Wikipedia) (standard reference, not scraped)
- Composition (combinatorics) (Wikipedia) (standard reference, not scraped)
- Binomial coefficient (Wikipedia) (standard reference, not scraped)