Papers
Topics
Authors
Recent
Search
2000 character limit reached

Weak Compositions in Combinatorics

Updated 22 January 2026
  • 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 nn into ll parts is an ordered ll-tuple x=(x1,x2,,xl)x = (x_1, x_2, \dots, x_l) of nonnegative integers with i=1lxi=n\sum_{i=1}^l x_i = n. 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 nn into ll parts is a tuple (x1,,xl)N0l(x_1, \dots, x_l)\in\mathbb{N}_0^l with x1++xl=nx_1+\cdots+x_l = n. Denote the set of all such by P(n,l)P(n, l). Allowing the number of parts to vary, denote by WCnWC_n the set of all weak compositions of nn, and WC=nWCnWC = \bigsqcup_n WC_n. Ordinary compositions, i.e., tuples with xi>0x_i > 0 for all ii, form a subfamily.

Enumeration of P(n,l)P(n, l) follows the classical stars-and-bars argument: P(n,l)=(n+l1l1).|P(n, l)| = \binom{n + l - 1}{l - 1}. The ordinary generating function with respect to nn is

n0P(n,l)xn=(1x)l.\sum_{n \geq 0} |P(n, l)| x^n = (1-x)^{-l}.

For weak ss-compositions, i.e., l=sl = s fixed,

Δs(n)=(n+s1s1),Δs(n)={(a0,...,as1)N0s:iai=n}.|\Delta_s(n)| = \binom{n + s - 1}{s - 1},\quad \Delta_s(n) = \{(a_0, ..., a_{s-1}) \in \mathbb{N}_0^s : \sum_i a_i = n\}.

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 Δs(n)\Delta_s(n) of weak ss-compositions of nn admits a natural partial order, called the dominance or majorization order: for a,bΔs(n)a, b \in \Delta_s(n), define

ab    i=0jaii=0jbi, j.a \preceq b \iff \sum_{i=0}^j a_i \leq \sum_{i=0}^j b_i,\ \forall j.

Under this order, (Δs(n),)(\Delta_s(n), \preceq) forms a finite distributive lattice, with join and meet operations given in terms of the prefix sums. The bottom element (minimal) is (0,,0,n)(0,\ldots,0, n), the top (maximal) is (n,0,,0)(n,0,\ldots,0). The rank function of aa is

rk(a)=i=0s1(s1i)ai,\operatorname{rk}(a) = \sum_{i=0}^{s-1}(s-1-i)a_i,

which computes the number of “unit-shifts” needed from the last position to reach aa 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 μ(a,b)\mu(a, b) is (1)(bjaj)(-1)^{\sum (b_j - a_j)} if bb lies in the Boolean sublattice over aa, 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: rr-Cross tt-Intersecting Families

In extremal combinatorics, weak compositions underpin sharp analogs of the Erdős–Ko–Rado theorem. Fix positive integers l1,,lrl_1,\dots,l_r, let l=min{l1,,lr}l = \min\{l_1,\dots,l_r\}, and for j=1,,rj=1,\dots,r define AjP(nj,lj)\mathcal{A}_j \subseteq P(n_j, l_j). These families are rr-cross tt-intersecting if for every selection of rr elements (one from each Aj\mathcal{A}_j), at least tt coordinates agree (i.e., have equal values across all rr tuples).

The main extremal theorem asserts: for lt+2l \geq t + 2, there exists n0n_0 (depending only on the ljl_j and tt) such that, for all njn0n_j \geq n_0, if the Aj\mathcal{A}_j are rr-cross tt-intersecting,

j=1rAjj=1r(nj+ljt1ljt1),\prod_{j=1}^r |\mathcal{A}_j| \leq \prod_{j=1}^r \binom{n_j + l_j - t - 1}{l_j - t - 1},

with equality if and only if each Aj\mathcal{A}_j consists of those compositions with zeros in a common tt-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 MIM_I and the fundamental basis FIF_I are indexed by weak compositions II. The product is governed by a quasi-shuffle operation on weak compositions, while the deconcatenation is the Hopf coproduct. A projection π:RQSymQSym\pi: \text{RQSym} \to \text{QSym} 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 FIF_I) is directly tied to the behavior of weak compositions (Guo et al., 2019).

5. Explicit Enumeration and Identities

The number of weak compositions of nn with exactly kk zeros, cw(n,k)cw(n,k), satisfies the explicit formula

cw(n,k)=j1++jk+1=n jt0c(j1)c(jk+1),cw(n,k) = \sum_{\substack{j_1+\cdots+j_{k+1}=n\ j_t\geq 0}} c(j_1) \cdots c(j_{k+1}),

where c(j)c(j) is the number of ordinary compositions of jj; c(0)=1c(0) = 1. Special cases include:

  • All parts unrestricted: c(j)=2j1c(j) = 2^{j-1}, yielding

cw(n,k)=m=0k(k+1m)(n1km).cw(n,k) = \sum_{m=0}^k \binom{k+1}{m} \binom{n-1}{k-m}.

  • Parts in {1,2}\{1,2\} (Fibonacci case): cw(n,k,[2])=i0(k+1i)(n+kin2i)cw(n,k,[2]) = \sum_{i\geq 0} \binom{k+1}{i} \binom{n+k-i}{n-2i}.
  • Parts 2\geq 2: 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 Z/psZ\mathbb{Z}/p^s\mathbb{Z}, 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).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Weak Compositions.