Weak Compositions in Combinatorics
- Weak compositions are ordered tuples of nonnegative integers summing to n that allow zero entries, generalizing ordinary compositions.
- They form finite distributive lattices under the dominance order and are enumerated using the stars-and-bars method.
- Applications include algebraic indexing in quasi-symmetric functions, extremal set systems, coding theory, and coherent compositions in higher category theory.
A weak composition of a nonnegative integer into parts is an ordered -tuple of nonnegative integers with . Weak compositions generalize ordinary (strong) compositions by allowing zero parts, providing a fundamental combinatorial structure central to enumerative combinatorics, algebraic combinatorics, extremal set theory, and the theory of codes, and appearing as the basic indexing objects in the structure theory of symmetric and quasi-symmetric functions. Weak analogs of compositional structures also play critical roles in higher category theory, Hopf algebras, coding theory, and extremal combinatorics.
1. Combinatorial Definition and Enumeration
A weak composition of into parts is a tuple with . Denote the set of all such by . Allowing the number of parts to vary, denote by the set of all weak compositions of , and . Ordinary compositions, i.e., tuples with for all , form a subfamily.
Enumeration of follows the classical stars-and-bars argument: The ordinary generating function with respect to is
For weak -compositions, i.e., fixed,
Explicit inclusion of zeros allows weak compositions to enumerate structures and categories inaccessible to the strict theory, indexing finer algebraic and combinatorial bases and imposing richer lattice structures.
2. Structure and Lattice Orders
The set of weak -compositions of admits a natural partial order, called the dominance or majorization order: for , define
Under this order, forms a finite distributive lattice, with join and meet operations given in terms of the prefix sums. The bottom element (minimal) is , the top (maximal) is . The rank function of is
which computes the number of “unit-shifts” needed from the last position to reach from the minimal element.
Boolean sublattices appear by fixing a and considering all elements reachable by shifting parts among nonzero indices. The Möbius function is if lies in the Boolean sublattice over , zero otherwise. These explicit formulas enable combinatorial inversion and the development of binomial and weight invariants in lattice-theoretic and algebraic contexts (Bariffi et al., 12 Jan 2026).
3. Extremal Set Systems: -Cross -Intersecting Families
In extremal combinatorics, weak compositions underpin sharp analogs of the Erdős–Ko–Rado theorem. Fix positive integers , let , and for define . These families are -cross -intersecting if for every selection of elements (one from each ), at least coordinates agree (i.e., have equal values across all tuples).
The main extremal theorem asserts: for , there exists (depending only on the and ) such that, for all , if the are -cross -intersecting,
with equality if and only if each consists of those compositions with zeros in a common -subset of coordinates. This generalizes set-system intersection theorems and establishes the “zero-set” paradigm for weak compositions (Wong et al., 2013).
4. Weak Compositions in Algebraic Structures
Weak compositions index key algebraic structures, notably in the theory of quasi-symmetric and weak quasisymmetric functions and related Hopf algebras. In the Hopf algebra RQSym of weak quasisymmetric functions, the monomial basis and the fundamental basis are indexed by weak compositions . The product is governed by a quasi-shuffle operation on weak compositions, while the deconcatenation is the Hopf coproduct. A projection collapses zero parts, sending weak compositions with zeros to zero and restricting to ordinary quasi-symmetric functions when only positive parts (ordinary compositions) are present.
The quasi-shuffle on indices allows RQSym to be a nontrivial extension of QSym, and the combinatorial richness of weak descents (as captured in ) is directly tied to the behavior of weak compositions (Guo et al., 2019).
5. Explicit Enumeration and Identities
The number of weak compositions of with exactly zeros, , satisfies the explicit formula
where is the number of ordinary compositions of ; . Special cases include:
- All parts unrestricted: , yielding
- Parts in (Fibonacci case): .
- Parts : A similar double-binominal formula involving shifted Fibonacci numbers.
Further, such enumerations link weak compositions to the characteristic polynomials of Hessenberg–Toeplitz matrices, i.e., certain minors and coefficients of these polynomials enumerate weak compositions with fixed zeros and other restrictions (Janjic, 2010).
6. Categorical Weak Compositions
In higher category theory, “weak composition” refers to composition laws that hold only up to coherent isomorphism. Weak vertical composition—for instance, in semi-strict tricategories—manifests when vertical composition of 2-cells is associative and unital only up to specified coherent (invertible) 3-cells, but all horizontal compositions remain strict (Cheng et al., 2022, Cheng et al., 2023). Such weakening fundamentally alters both axiomatic and model-theoretic properties, and in doubly-degenerate contexts, precisely recovers the 2-category of braided monoidal categories.
More generally, doubly weak double categories (Fairbanks et al., 30 Jun 2025)—structures in which both horizontal and vertical compositions of 1-cells are weak and satisfy bicategory-level coherence in both directions—provide a two-dimensional generalization. Here, weak composition is formalized via representability criteria on double computads, and the coherence data is organized by finite “tidiness” conditions, unifying double bicategories and cubical bicategories.
7. Applications and Connections
The study of weak composition lattices admits powerful applications in coding theory. In the context of optimal Lee-metric anticodes over , optimal anticodes correspond bijectively to weak compositions, with set inclusion of anticodes corresponding exactly to the dominance order for weak compositions. This facilitates explicit structure theorems, binomial invariants, and generalizations of classical code distances (Bariffi et al., 12 Jan 2026).
Weak composition theory also permeates the construction of bases for algebraic structures, the classification of combinatorial invariants, and the extremal enumeration of intersecting families. Connections to Rota–Baxter algebras, convolution identities, and “failure of compositionality” in category theory—where the lack of strictness is measured by certain homotopy posets—underscore the unifying role that weak composition frameworks play across modern mathematics (Guo et al., 2019, Puca et al., 2023).