Papers
Topics
Authors
Recent
Search
2000 character limit reached

Stanley Length in Permutations and Modules

Updated 7 July 2026
  • Stanley length is defined in probabilistic combinatorics as the length of the largest alternating subsequence of a random permutation, with linear mean, variance, and a Gaussian limit.
  • In commutative algebra, Stanley length denotes the minimal number of Stanley spaces in a decomposition of a multigraded module, acting as a quantity invariant distinct from Stanley depth.
  • Structural results link Stanley length with properties such as linear quotients and provide actionable bounds in monomial ideal theory and squarefree settings.

Stanley length is a term used in more than one mathematical sense. In probabilistic combinatorics, it denotes the length of the largest alternating subsequence of a uniformly random permutation, a statistic attached to Richard Stanley’s work on alternating subsequences and later discussed under the ironic label “Stanley distribution” (Ekhad, 2010). In commutative algebra, a 2025 paper introduced Stanley length as a new invariant of a finitely generated multigraded module, defined as the minimal number of Stanley spaces in a Stanley decomposition and denoted slength(M)\operatorname{slength}(M) (Cimpoeas, 23 Jul 2025). Earlier commutative-algebra papers also used “length-type” language for Stanley decompositions in a different way, namely for the parameter miniZi\min_i |Z_i| that leads to Stanley depth rather than to the number of summands (Cimpoeas, 2015).

1. Terminological scope

The expression has no single universal meaning across the literature. The main uses represented in current arXiv work are summarized below.

Context Object Definition
Random permutations XnX_n Length of the largest alternating subsequence of a random permutation
Multigraded modules slength(M)\operatorname{slength}(M) Minimal number of Stanley spaces in a Stanley decomposition
Older commutative-algebra usage “length-type” parameter Usually miniZi\min_i |Z_i|, hence Stanley depth

In the probabilistic setting, the term refers to a concrete random variable on Sn\mathfrak S_n. In the algebraic setting, it is an invariant built from all possible Stanley decompositions of a module. This suggests that context is indispensable: without it, “Stanley length” can denote either a subsequence statistic or a decomposition invariant.

2. The random-permutation meaning

Let Sn\mathfrak S_n be the set of permutations of {1,2,,n}\{1,2,\dots,n\} with the uniform distribution. For πSn\pi \in \mathfrak S_n, an alternating, or up–down, subsequence is a subsequence

πi1,πi2,,πik(1i1<<ikn)\pi_{i_1},\pi_{i_2},\dots,\pi_{i_k}\qquad (1\le i_1<\cdots<i_k\le n)

whose inequalities alternate in direction. In the convention used in "A Note on the Stanley Distribution" (Ekhad, 2010), the alternation starts with “up”: miniZi\min_i |Z_i|0 Any fixed choice of starting with miniZi\min_i |Z_i|1 or miniZi\min_i |Z_i|2 leads to an equivalent asymptotic theory.

The corresponding Stanley length is the random variable

miniZi\min_i |Z_i|3

For miniZi\min_i |Z_i|4, Stanley’s analysis yields exact formulas for the expectation and variance: miniZi\min_i |Z_i|5 With the normalization

miniZi\min_i |Z_i|6

one has convergence in distribution

miniZi\min_i |Z_i|7

as miniZi\min_i |Z_i|8. Equivalently, the raw moments

miniZi\min_i |Z_i|9

converge to the moments of the standard normal law: XnX_n0

This probabilistic Stanley length is therefore a permutation statistic with linear mean, linear variance, and Gaussian limit. In the note’s terminology, the limiting law of the standardized variable is the “Stanley distribution,” though the note explicitly presents that phrase with intended irony (Ekhad, 2010).

3. Refined asymptotics and probabilistic interpretation

The main refinement in Ekhad’s note is an explicit asymptotic expansion for the standardized moments of XnX_n1 (Ekhad, 2010). For each integer XnX_n2, the even moments satisfy

XnX_n3

Thus the Gaussian value XnX_n4 is approached with an explicit first-order correction of order XnX_n5.

For odd moments, the paper gives an expression with explicit leading constants and higher corrections, but the typed display is noted to be somewhat garbled. The structural content is clear: the leading term is of order XnX_n6, the next correction is of order XnX_n7, and overall

XnX_n8

In summary,

XnX_n9

Methodologically, the note sits on top of Stanley’s explicit bivariate generating function

slength(M)\operatorname{slength}(M)0

where slength(M)\operatorname{slength}(M)1 counts permutations of slength(M)\operatorname{slength}(M)2 whose largest alternating subsequence has length slength(M)\operatorname{slength}(M)3. Differentiation in slength(M)\operatorname{slength}(M)4 yields generating functions for moments,

slength(M)\operatorname{slength}(M)5

Stanley’s asymptotic normality uses the Pemantle–Wilf generic normality theorem, while Ekhad’s refinements are produced with Zeilberger’s Maple package HISTABRUT, which automates coefficient asymptotics and the re-normalization needed for standardized moments. The note states that these formulas are not presented with full rigorous proofs but are “certainly rigorizable.”

A comparison emphasized in the note is with the longest increasing subsequence of a random permutation. For LIS, the Baik–Deift–Johansson theorem gives a Tracy–Widom limit, whereas the largest alternating subsequence has a Gaussian limit (Ekhad, 2010). This places the probabilistic Stanley length in a markedly different universality class from LIS.

4. Stanley length as an invariant of multigraded modules

A distinct definition appears in "On the Stanley length of monomial ideals" (Cimpoeas, 23 Jul 2025). Let

slength(M)\operatorname{slength}(M)6

with its standard slength(M)\operatorname{slength}(M)7-grading, and let slength(M)\operatorname{slength}(M)8 be a finitely generated multigraded slength(M)\operatorname{slength}(M)9-module. A Stanley space of miniZi\min_i |Z_i|0 is a submodule of the form

miniZi\min_i |Z_i|1

where miniZi\min_i |Z_i|2 is homogeneous, miniZi\min_i |Z_i|3, and miniZi\min_i |Z_i|4 is a free miniZi\min_i |Z_i|5-module. A Stanley decomposition is a direct sum

miniZi\min_i |Z_i|6

For such a decomposition, the paper distinguishes two numerical parameters: miniZi\min_i |Z_i|7 The Stanley depth of miniZi\min_i |Z_i|8 is the familiar maximal value of miniZi\min_i |Z_i|9, while the new invariant is

Sn\mathfrak S_n0

The paper explicitly describes the contrast as follows: Sn\mathfrak S_n1 is a “quality” invariant, whereas Sn\mathfrak S_n2 is a “quantity” invariant. A decomposition realizing one need not realize the other.

Several structural properties are established for Sn\mathfrak S_n3. If

Sn\mathfrak S_n4

is a short exact sequence of finitely generated multigraded modules, then

Sn\mathfrak S_n5

For a monomial Sn\mathfrak S_n6 and a monomial ideal Sn\mathfrak S_n7,

Sn\mathfrak S_n8

For a monomial ideal Sn\mathfrak S_n9 and a monomial Sn\mathfrak S_n0,

Sn\mathfrak S_n1

with equality if Sn\mathfrak S_n2. Ring extension by a new variable does not change Stanley length: Sn\mathfrak S_n3

For monomial ideals Sn\mathfrak S_n4, if

Sn\mathfrak S_n5

then the paper proves

Sn\mathfrak S_n6

Sn\mathfrak S_n7

Sn\mathfrak S_n8

and

Sn\mathfrak S_n9

The most basic lower bound is generator-counting. For any monomial ideal {1,2,,n}\{1,2,\dots,n\}0,

{1,2,,n}\{1,2,\dots,n\}1

where {1,2,,n}\{1,2,\dots,n\}2 is the minimal monomial generating set. In particular,

{1,2,,n}\{1,2,\dots,n\}3

If {1,2,,n}\{1,2,\dots,n\}4 is principal, then

{1,2,,n}\{1,2,\dots,n\}5

The paper also gives an explicit two-variable formula. If

{1,2,,n}\{1,2,\dots,n\}6

with

{1,2,,n}\{1,2,\dots,n\}7

then

{1,2,,n}\{1,2,\dots,n\}8

Finally, a general upper bound is obtained from Janet decomposition. Writing

{1,2,,n}\{1,2,\dots,n\}9

one has

πSn\pi \in \mathfrak S_n0

5. Linear quotients, squarefree interpretations, and structural results

One of the sharpest results in the 2025 framework concerns ideals with linear quotients (Cimpoeas, 23 Jul 2025). A monomial ideal πSn\pi \in \mathfrak S_n1 has linear quotients if its minimal generators can be ordered

πSn\pi \in \mathfrak S_n2

so that each colon ideal

πSn\pi \in \mathfrak S_n3

is generated by variables. In that situation, there is a canonical Stanley decomposition

πSn\pi \in \mathfrak S_n4

and therefore

πSn\pi \in \mathfrak S_n5

Thus linear quotients imply minimal possible Stanley length.

The paper also proves a characterization via partial ideals. If πSn\pi \in \mathfrak S_n6 is minimally generated by πSn\pi \in \mathfrak S_n7, then the following are equivalent: there exists an order πSn\pi \in \mathfrak S_n8 giving linear quotients, and for each πSn\pi \in \mathfrak S_n9 the partial ideal

πi1,πi2,,πik(1i1<<ikn)\pi_{i_1},\pi_{i_2},\dots,\pi_{i_k}\qquad (1\le i_1<\cdots<i_k\le n)0

admits a Stanley decomposition

πi1,πi2,,πik(1i1<<ikn)\pi_{i_1},\pi_{i_2},\dots,\pi_{i_k}\qquad (1\le i_1<\cdots<i_k\le n)1

This gives a stepwise interpretation of minimal-length decompositions.

The converse “πi1,πi2,,πik(1i1<<ikn)\pi_{i_1},\pi_{i_2},\dots,\pi_{i_k}\qquad (1\le i_1<\cdots<i_k\le n)2 implies linear quotients” is only partially valid. It holds when πi1,πi2,,πik(1i1<<ikn)\pi_{i_1},\pi_{i_2},\dots,\pi_{i_k}\qquad (1\le i_1<\cdots<i_k\le n)3, and it also holds for monomial ideals in two variables. It fails in general: the paper gives the counterexample

πi1,πi2,,πik(1i1<<ikn)\pi_{i_1},\pi_{i_2},\dots,\pi_{i_k}\qquad (1\le i_1<\cdots<i_k\le n)4

for which

πi1,πi2,,πik(1i1<<ikn)\pi_{i_1},\pi_{i_2},\dots,\pi_{i_k}\qquad (1\le i_1<\cdots<i_k\le n)5

but πi1,πi2,,πik(1i1<<ikn)\pi_{i_1},\pi_{i_2},\dots,\pi_{i_k}\qquad (1\le i_1<\cdots<i_k\le n)6 does not have linear quotients.

In the squarefree setting, Stanley length admits a simplicial-combinatorial interpretation. For squarefree monomial ideals πi1,πi2,,πik(1i1<<ikn)\pi_{i_1},\pi_{i_2},\dots,\pi_{i_k}\qquad (1\le i_1<\cdots<i_k\le n)7, let

πi1,πi2,,πik(1i1<<ikn)\pi_{i_1},\pi_{i_2},\dots,\pi_{i_k}\qquad (1\le i_1<\cdots<i_k\le n)8

be the associated relative simplicial complex. If

πi1,πi2,,πik(1i1<<ikn)\pi_{i_1},\pi_{i_2},\dots,\pi_{i_k}\qquad (1\le i_1<\cdots<i_k\le n)9

is an interval partition, define miniZi\min_i |Z_i|00. Then

miniZi\min_i |Z_i|01

Consequences include the trivial upper bound

miniZi\min_i |Z_i|02

and the lower bound that miniZi\min_i |Z_i|03 is at least the number of facets of miniZi\min_i |Z_i|04.

The squarefree theory also interacts well with standard operations. Polarization cannot increase Stanley length: miniZi\min_i |Z_i|05 and passing to radicals cannot increase it: miniZi\min_i |Z_i|06 For symbolic powers of squarefree ideals,

miniZi\min_i |Z_i|07

6. Relation to Stanley depth and earlier commutative-algebra usage

Before miniZi\min_i |Z_i|08 was introduced as a separate invariant, commutative-algebra papers usually attached the word “length” to Stanley decompositions in a different way. For a decomposition

miniZi\min_i |Z_i|09

the natural “length-type” parameter was

miniZi\min_i |Z_i|10

and the corresponding module invariant was

miniZi\min_i |Z_i|11

One paper states explicitly that this is “not usually called ‘Stanley length’ in the literature,” but that it is the basic size parameter of a decomposition (Cimpoeas, 2015). Other papers likewise refer to Stanley depth as “Stanley length” in an older or alternative terminology (Shen, 2014).

This older usage is visible in explicit families. For the path ideal miniZi\min_i |Z_i|12 of length miniZi\min_i |Z_i|13 in the line graph miniZi\min_i |Z_i|14, one has

miniZi\min_i |Z_i|15

for all miniZi\min_i |Z_i|16 (Cimpoeas, 2015). In the same older framework, quotients of complete intersection monomial ideals satisfy sharp lower and upper bounds for Stanley depth, and in important cases exact formulas, again treating miniZi\min_i |Z_i|17 as the relevant Stanley-type length parameter (Cimpoeas, 2012).

The modern 2025 invariant therefore does not replace Stanley depth; it complements it. The distinction is sharp: miniZi\min_i |Z_i|18 whereas

miniZi\min_i |Z_i|19

This terminological split suggests a stable conceptual division. In current usage, Stanley length either denotes the permutation statistic miniZi\min_i |Z_i|20 of alternating subsequences (Ekhad, 2010) or the summand-count invariant miniZi\min_i |Z_i|21 (Cimpoeas, 23 Jul 2025), while older commutative-algebra usage often employed the phrase informally for Stanley depth or for the size parameter miniZi\min_i |Z_i|22 attached to a decomposition (Cimpoeas, 2015).

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 Stanley Length.