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 .
- A weak composition of into parts is a function with , the sum being the -valued one of Finite sums and finite products of natural numbers, and in . The set of them is the set introduced in The multinomial coefficient as the number of ordered partitions of an -set into blocks of prescribed sizes.
- A composition of into parts is a weak composition all of whose parts are nonzero, that is for every (Discreteness: is the immediate successor). Write
The parts are ordered: is a function on , so and are different compositions of into parts.
Both sets are finite. Every has for each , because a term of a sum of naturals is at most the sum (clause 4 of Laws of finite sums and products in , and ); so is a subset of the set of functions , which is finite by The set of functions between finite sets is finite, with , and A subset of a finite set is finite, with , and equality holds if and only if applies. is a subset of , hence finite too.
The case , which is exactly where the next item's hypothesis lives. There is precisely one function , the empty function, and its sum is the empty sum, . Hence
and the same two values for , since the condition "every part is nonzero" is vacuous for the empty tuple. Saying this here is what lets For the number of weak compositions of into parts is , and the number of compositions is for carry the hypothesis honestly: at the count is not given by the formula, and the true value is recorded above.
Small values of . , the unique weak composition being ; and for while .
Remarks
-
The same object under two names. is the index set of the outer sum of The multinomial coefficient equals , and in . That theorem and this definition therefore speak about one set, and the count supplied by For the number of weak compositions of into parts is , and the number of compositions is for is the number of terms in the multinomial expansion.
-
Weak versus strict. Much of the literature reserves composition for tuples of positive parts and says weak composition when zeros are allowed; that is the convention adopted here. The count of the weak ones is the primary result, and the strict count is obtained from it by subtracting from every part.
-
Nothing here is about unordered partitions. The number of ways of writing as an unordered sum is a different and much harder count, and it is not developed at this point in the reading order.
Depends on
- 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 multinomial coefficient equals $n!/\prod_{i<m} k_i!$, and $(x_0+\dots+x_{m-1})^{n} = \sum \iota\!\binom{n}{k}\prod_{i<m} x_i^{k_i}$ in $\mathbb{R}$
- Finite sums and finite products of natural numbers, $\sum_{k<n} a_k$ and $\prod_{k<n} a_k$ in $\mathbb{N}$
- Laws of finite sums and products in $\mathbb{N}$, and $\iota\big(\sum_{k<n} a_k\big) = \sum_{k<n} \iota(a_k)$
- The set $A^{B}$ of functions $B \to A$ between finite sets is finite, with $\lvert A^{B}\rvert = \lvert A\rvert^{\lvert B\rvert}$
- A subset of a finite set is finite, with $\lvert B\rvert \le \lvert A\rvert$, and equality holds if and only if $B = A$
- The cardinality $\lvert A\rvert$ of a finite set
- Order on the natural numbers
- The natural numbers $\mathbb{N}$ (von Neumann)
- Discreteness: $\sigma(n)$ is the immediate successor
Used by
- The 15 weak compositions of 4 into 3 parts, listed and matched against stars and bars Example
- FALSE: the number of weak compositions of n into m parts is binomn+m-1m-1 for every m ∈ ℕ False statement
- For m ≥ 1 the number of weak compositions of n into m parts is binomn+m-1m-1, and the number of compositions is binomn-1m-1 for n ≥ 1 Theorem
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
- Composition (combinatorics) (Wikipedia) (standard reference, not scraped)
- Stars and bars (combinatorics) (Wikipedia) (standard reference, not scraped)
- R. Stanley, Enumerative Combinatorics, Vol. 1, Ch. 1 (standard reference, not scraped)