\documentclass[11pt,letterpaper]{amsart} % Layout and typography follow Chan--Pak, ``Equality conditions % for correlation inequalities'' (AD Equality). \usepackage[textwidth=463pt,textheight=655pt,left=77bp,top=85.2bp]{geometry} \usepackage{amsmath,amssymb,amsthm,mathtools} \usepackage{xcolor} \usepackage{url} \definecolor{adblue}{rgb}{0,0,0.7} \definecolor{adpurple}{rgb}{0.36,0,0.36} \usepackage[colorlinks=true,linkcolor=adblue,citecolor=adblue, urlcolor=adpurple]{hyperref} \hypersetup{pdftitle={Counting reduced decompositions is \#P-complete}, pdfauthor={Igor Pak}} \numberwithin{equation}{section} \newtheoremstyle{adplain} {6pt plus 2pt minus 2pt}{6pt plus 2pt minus 2pt} {\itshape}{}{\bfseries}{.}{.5em} {\thmname{#1}\thmnumber{ #2}\thmnote{ \textnormal{(\textcolor{adblue}{#3})}}} \theoremstyle{adplain} \newtheorem{theorem}{Theorem}[section] \newtheorem{proposition}[theorem]{Proposition} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} \theoremstyle{definition} \newtheorem{remark}[theorem]{Remark} \DeclareMathOperator{\inv}{inv} \DeclareMathOperator{\Red}{Red} \DeclareMathOperator{\Sym}{Sym} \DeclareMathOperator{\GL}{GL} \newcommand{\PP}{\mathsf{\#P}} \newcommand{\CC}{\mathbb C} \newcommand{\ZZ}{\mathbb Z} \newcommand{\NN}{\mathbb Z_{>0}} \newcommand{\id}{\operatorname{id}} \newcommand{\ct}{\operatorname{ct}} \setlength{\parindent}{12pt} \setlength{\parskip}{0pt} \setlength{\emergencystretch}{1em} \allowdisplaybreaks[2] \title[Counting reduced decompositions]{Counting reduced decompositions is \texorpdfstring{$\PP$}{\#P}-complete} \author{Igor Pak} \date{December 1, 2026} \begin{document} \begin{abstract} Counting reduced decompositions of a permutation given in one-line notation is $\PP$-complete under deterministic polynomial-time Turing reductions, even for $4321$-avoiding permutations. The proof reduces rectangular Kostka numbers to reduced-word counts. Adding full columns to a Rothe diagram shifts every Schur constituent by the same rectangle; polynomial interpolation then isolates a prescribed rectangular constituent. \end{abstract} \maketitle \section{Introduction} \subsection{Main result} Let $S_n$ be the symmetric group on $[n]=\{1,\ldots,n\}$. For $w\in S_n$, let $\inv(w)$ be the number of pairs $iw(j)$. Write $s_i=(i,i+1)$ for the adjacent transpositions. A \emph{reduced word} of $w$ is a sequence $(a_1,\ldots,a_d)$ such that \[ w=s_{a_1}\cdots s_{a_d},\qquad d=\inv(w). \] Let $\Red(w)$ be the set of reduced words and put $r(w)=|\Red(w)|$. Throughout the paper, the input permutation is given in one-line notation $(w(1),\ldots,w(n))$. A permutation is \emph{$321$-avoiding}, respectively \emph{$4321$-avoiding}, if it has no decreasing subsequence of length three, respectively four. The following explicit family suffices for hardness. Let $q\geq1$ and $m\geq0$ be integers, and let $\mu=(\mu_1,\ldots,\mu_q)$ be an integer sequence with $\mu_1\geq\cdots\geq\mu_q\geq1$. Set \[ d=\mu_1+\cdots+\mu_q,\qquad t_0=0,\qquad t_i=\sum_{j=1}^i(\mu_j+1),\qquad n=t_q=d+q. \] For $1\leq i\leq q$, form the block \begin{equation}\label{eq:introblocks} B_i=(m+t_i,\ m+t_{i-1}+1,\ldots,m+t_i-1). \end{equation} Define $W_{\mu,m}\in S_{n+m}$ by concatenating the blocks \begin{equation}\label{eq:introfamily} W_{\mu,m}=(B_1,\ldots,B_q,1,\ldots,m). \end{equation} Thus each initial block consists of consecutive integers with its largest entry first, and the final block contains the smallest $m$ entries in increasing order. For example, \[ W_{(2,2),2}=(5,3,4,\,8,6,7,\,1,2). \] The values increase from one initial block to the next. A decreasing subsequence therefore uses at most two entries from one initial block and at most one from the final block. Every $W_{\mu,m}$ is thus $4321$-avoiding. \begin{theorem}\label{thm:main} Computing $r(w)$ is $\PP$-complete under deterministic polynomial-time Turing reductions, even when $w$ is restricted to the permutations $W_{\mu,m}$ in \eqref{eq:introfamily}. In particular, this remains true for $4321$-avoiding permutations. \end{theorem} The unrestricted assertion proves the conjecture of Dittmer--Pak \cite[$\S$8.5]{DP18}, reiterated in \cite[$\S$13.4, item~(9)]{Pak24}. Here a Turing reduction is a polynomial-time algorithm allowed to make exact oracle queries. For an instance with $d=\sum_i\mu_i$, our reduction uses only \[ 0\leq m\leq \sum_{i=2}^d\left\lfloor\frac di\right\rfloor. \] It makes $O(d\log(2d))$ queries, each to a permutation with $O(d\log(2d))$ entries. The displayed parameters describe the family; the permutations themselves are supplied in one-line notation. \subsection{Background and prior work} Stanley introduced the symmetric functions that encode reduced-word counts \cite{Sta84}. Edelman--Greene insertion gives a combinatorial interpretation of their Schur coefficients \cite{EG87}, while Fomin--Stanley develop the nilCoxeter-algebra approach to these functions and their specializations \cite{FS94}. Another constructive approach comes from the transition tree of Lascoux--Sch\"utzenberger \cite{LS85}. Little's combinatorial refinement appears as the appendix to Garsia's monograph \cite{Lit02}; see also the subsequent journal paper \cite{Lit03}. It gives a bijective realization of the branching rule for reduced words. Garsia's monograph \cite{Gar02} gives a detailed account of these connections. For $321$-avoiding permutations, Billey--Jockusch--Stanley \cite[Cor.~2.1]{BJS93} identify reduced words with standard tableaux of a skew shape. The determinantal formula for the latter \cite[Ch.~7]{Sta99} gives a polynomial-time exact counting algorithm. Theorem~\ref{thm:main} establishes hardness for the next decreasing-pattern restriction, namely $4321$-avoidance, already on the family \eqref{eq:introfamily}. Monical--Pankow--Yong \cite{MPY22} study exact enumeration, complexity, and randomized estimation for general permutations. \subsection{Proof outline} Our hardness input is Panova's recent theorem that rectangular Kostka numbers with unary input are $\PP$-complete \cite[Thm.~5.2]{Pan26}. These numbers count semistandard tableaux of a rectangular shape and prescribed content; the definitions are recalled in $\S$\ref{sec:symmetric}. The proof first realizes a Kostka number as a Schur coefficient of the Stanley symmetric function of $W_{\mu,0}$. Passing to $W_{\mu,m}$ adds $m$ full columns to its Rothe diagram and shifts every Schur constituent by the same rectangle (Lemma~\ref{lem:shift}). After an explicit normalization, the reduced-word counts are values of a rational function in one variable. Multiplying by a common denominator of degree $O(d\log(2d))$ gives a polynomial. At one specified integer, all terms except the required rectangular term vanish (Lemma~\ref{lem:selector}). Polynomial interpolation recovers that term. The construction and its bit complexity are given in $\S$\ref{sec:recovery}--\ref{sec:hardness}. %\smallskip \textcolor{blue}{ \subsection*{AI disclaimer} % Except for this disclaimer, this paper is fully written by ChatGPT-6 Pro in response to a single prompt. The author made no mathematical contribution to the paper, made no effort to check the validity of the results, and takes no credit for obtaining them. } \smallskip \section{Symmetric functions and reduced words}\label{sec:symmetric} A partition $\lambda=(\lambda_1,\ldots,\lambda_t)$ of $d$, denoted $\lambda\vdash d$, is a weakly decreasing sequence of positive integers of sum $d$. Its Young diagram consists of the cells $(i,j)$ with $1\leq j\leq\lambda_i$. The \emph{content} of a cell $u=(i,j)$ is $\ct(u)=j-i$; its hook length $h_\lambda(u)$ is one plus the number of cells strictly to its right in the same row or strictly below it in the same column. Let $s_\lambda$ be the Schur symmetric function, and let $h_a=s_{(a)}$ be the complete homogeneous symmetric function of degree $a$. For a partition $\mu=(\mu_1,\ldots,\mu_q)\vdash d$, the Kostka number $K_{\lambda\mu}$ counts semistandard tableaux of shape $\lambda$ and content $\mu$: rows are weakly increasing, columns strictly increasing, and entry $i$ occurs $\mu_i$ times. The Pieri rule gives \begin{equation}\label{eq:kostka} h_{\mu_1}\cdots h_{\mu_q} =\sum_{\lambda\vdash d}K_{\lambda\mu}s_\lambda. \end{equation} Let $f^\lambda$ count standard tableaux of shape $\lambda$, whose entries are $1,\ldots,|\lambda|$, each appearing once. We use the hook formulas \begin{equation}\label{eq:hooks} f^\lambda=\frac{|\lambda|!}{\prod_{u\in\lambda}h_\lambda(u)}, \qquad s_\lambda(1^n)=\prod_{u\in\lambda}\frac{n+\ct(u)}{h_\lambda(u)}. \end{equation} Here $1^n$ means $n$ variables equal to one. These identities and \eqref{eq:kostka} are standard; see \cite[Ch.~7]{Sta99}. For completeness, use the following convention for Stanley's symmetric function: \begin{equation}\label{eq:stanleydef} F_w(x)=\sum_{(a_1,\ldots,a_d)\in\Red(w)} \ \sum_{\substack{1\leq i_1\leq\cdots\leq i_d\\ i_jw(j)\}. \] By \eqref{eq:padding}, \begin{equation}\label{eq:diagram} D(W_m)=([n]\times[m])\ \cup\ \{(i,m+j):(i,j)\in D(w)\}. \end{equation} Thus we add $m$ full columns of height $n$, and all cells remain in the first $n$ rows. We recall the diagram Schur-module model to justify the effect of this operation. Let $D$ be any diagram supported in $n$ rows, and let $C_j\subseteq[n]$ be the row set of its $j$th column. In a generic $n\times n$ matrix $Z=(z_{pq})$, consider the span of the polynomials \begin{equation}\label{eq:minors} \prod_j\det Z[I_j,C_j], \qquad I_j\subseteq[n],\quad |I_j|=|C_j|. \end{equation} The first matrix index is the vector-space index. This polynomial space is the diagram Schur module for $D$ over $\CC^n$: column antisymmetrization gives the determinants, and row symmetrization gives multiplication of the variables with the same second index. For a Rothe diagram, its $\GL_n$ character is $F_w(x_1,\ldots,x_n)$; this is the theorem of Kra\'skiewicz and Reiner--Shimozono \cite{Kra95,RS95}, in the formulation of \cite[Ex.~1.6]{Paw17}. For a full column, both $I_j$ and $C_j$ equal $[n]$. Therefore adding $m$ full columns changes the space in \eqref{eq:minors} to exactly \[ (\det Z)^m\,M_D, \] where $M_D$ is the original space. Multiplication by $(\det Z)^m$ is injective in the polynomial ring, and it twists the character by $(x_1\cdots x_n)^m$. Since \[ (x_1\cdots x_n)^m s_\lambda(x_1,\ldots,x_n) =s_{\lambda+(m^n)}(x_1,\ldots,x_n), \] we obtain the first identity of \eqref{eq:shift} in $n$ variables. There are no missing constituents with more than $n$ rows. Indeed, in any ambient vector space $V$, the diagram Schur module embeds in \[ \bigotimes_{i=1}^n\Sym^{r_i}V, \] where $r_i$ is the size of row $i$ of the diagram. By the Pieri rule, every Schur constituent of this tensor product has at most $n$ rows. This applies to both diagrams in \eqref{eq:diagram}. Thus the identity in $n$ variables determines the full symmetric-function identity. Finally apply \eqref{eq:red-schur}. \end{proof} \section{Recovering a rectangular coefficient}\label{sec:recovery} Fix $d>0$ and $n>d$, and suppose \[ F_w=\sum_{\lambda\vdash d}a_\lambda s_\lambda, \qquad w\in S_n. \] All partitions in this section have size $d$. For a partition $\lambda$, set \begin{equation}\label{eq:contentpolynomial} C_\lambda(z)=\prod_{(i,j)\in\lambda}(z+j-i). \end{equation} The hook formulas imply \begin{equation}\label{eq:dimensionratio} \frac{(nm)!}{(nm+d)!}\, \frac{f^{\lambda+(m^n)}}{f^{(m^n)}} =\frac{s_\lambda(1^n)}{C_\lambda(n+m)}. \end{equation} Here $f^{(0^n)}=1$. One direct verification uses \[ \frac{f^\eta}{|\eta|!} =\frac{\prod_{ib$ and $j>a$, giving $ij>ab=d$, a contradiction. Thus every cell of $U_d$ with content $a-b$ already lies in $R$. It follows that $B_R\neq0$. Since $n>d$, the hook-content formula also gives $s_R(1^n)>0$. Evaluating \eqref{eq:Psum} now proves \eqref{eq:selector}. \end{proof} \begin{proposition}\label{prop:recovery} For $w\in S_n$ with $n>d=\inv(w)>0$, any rectangular coefficient $[s_R]F_w$, where $|R|=d$, is computable from $M-d+1$ evaluations of $r$ on the permutations $W_m$, $0\leq m\leq M-d$. The reduction has polynomial bit complexity in $n$. \end{proposition} \begin{proof} For $m=0,\ldots,M-d$, compute \begin{equation}\label{eq:sample} P(n+m)=A_d(n+m)\, \frac{(nm)!\,r(W_m)}{(nm+d)!\,f^{(m^n)}}. \end{equation} These are $M-d+1$ values at distinct integers. They determine the polynomial $P$, whose degree is at most $M-d$. In fact, writing $D=M-d$, its required value can be computed directly by Lagrange interpolation: \begin{equation}\label{eq:lagrange} P(z_0)=\sum_{m=0}^{D}P(n+m) \prod_{\substack{0\leq j\leq D\\j\neq m}} \frac{z_0-n-j}{m-j}. \end{equation} Apply \eqref{eq:selector}. All hook factors, content factors, and factorial arguments are bounded by polynomials in $n+d$; the permutation $W_m$ has $n+m$ entries and $d+nm$ inversions. Moreover $r(W_m)\leq(n+m-1)^{d+nm}$. Thus every integer in \eqref{eq:sample} has polynomial bit length. Formula \eqref{eq:lagrange} uses a polynomial number of rational operations, whose numerators and denominators also have polynomial bit length. This proves the complexity assertion. \end{proof} \section{The hardness reduction}\label{sec:hardness} We use the following external theorem in precisely the needed input model. \begin{theorem}[Panova {\cite[Thm.~5.2]{Pan26}}]\label{thm:panova} Computing $K_{R\mu}$, where $R$ is a rectangle and $R,\mu$ are given in unary, is $\PP$-complete under deterministic polynomial-time Turing reductions. \end{theorem} \begin{proof}[Proof of Theorem~\ref{thm:main}] Let $(R,\mu)$ be an input to Theorem~\ref{thm:panova}, with $|R|=|\mu|=d>0$. Write $\mu=(\mu_1,\ldots,\mu_q)$ and form $w=w_\mu\in S_n$ as in \eqref{eq:wmu}, where $n=d+q\leq2d$. Equation~\eqref{eq:source} gives \[ [s_R]F_w=K_{R\mu}. \] Since $n>d$, Proposition~\ref{prop:recovery} computes this number using only the reduced-word counts $r(W_m)$ for $0\leq m\leq M-d$. Here $W_m=W_{\mu,m}$, so every query belongs to the family \eqref{eq:introfamily}. Also $M-d=\sum_{i=2}^d\lfloor d/i\rfloor$, as stated in the introduction. The number of queries is $O(d\log(2d))$, their permutations have $O(d\log(2d))$ entries and $O(d^2\log(2d))$ inversions, and all arithmetic has polynomial bit complexity. This proves $\PP$-hardness. Each block $v_a=(a+1,1,\ldots,a)$ has no decreasing subsequence of length three. In a direct sum, a decreasing subsequence lies in one block, so $w$ is $321$-avoiding. In $W_m$, a decreasing subsequence uses at most two entries from the initial $w$ block and at most one entry from the increasing final block $(1,\ldots,m)$. Therefore every oracle permutation is $4321$-avoiding. This proves hardness under the stated restriction. Finally, $r\in\PP$. Given a permutation in $S_n$, compute $d=\inv(w)$, guess a word of length $d$ over $\{1,\ldots,n-1\}$ using a fixed-width encoding, and check that its product is $w$. The length is at most $\binom n2$, so the verification is polynomial, and each reduced word has exactly one accepted encoding. Membership in the family \eqref{eq:introfamily} is also decidable in polynomial time. For an input in $S_N$, try $0\leq m\leq N-2$, check the final block $(1,\ldots,m)$, and parse the remaining prefix into one or more blocks \eqref{eq:introblocks}. The first entry of each block determines its length; check that these lengths are at least two and weakly decreasing. Reject inputs outside this family before guessing the reduced word. The $4321$-avoidance condition is likewise polynomial-time checkable. This proves membership for both restrictions and completes the proof. \end{proof} \begin{remark} Proposition~\ref{prop:recovery} also applies to an arbitrary input $w$ after appending fixed points until $n>\inv(w)$. This changes neither $F_w$ nor the coefficients to be recovered and requires only polynomially many new entries. Thus the coefficient extraction result is independent of the particular Kostka instances used for hardness. \end{remark} \section{A small exact example} Take $\mu=(2,2)$ and $R=(2,2)$. Then $d=4$, $w=312645\in S_6$, and $U_4=(4,2,1,1)$ has $M=8$ cells. Thus five queries suffice: \[ \begin{array}{c|r|r} m&r(W_m)&P(6+m)\\ \hline 0&6&272160\\ 1&701&588840\\ 2&482118&1112580\\ 3&819300482&1915704\\ 4&2454913941480&3081120 \end{array} \] Here \[ A_4(z)=z^8-14z^6+49z^4-36z^2, \] and interpolation gives \[ P(z)=441z^4-1176z^3-1869z^2+3024z+3780. \] Since $z_0=0$, $s_{(2,2)}(1^6)=105$, and $B_{(2,2)}=36$, formula \eqref{eq:selector} returns \[ K_{(2,2),(2,2)}=\frac{3780}{105\cdot36}=1. \] For $\mu=(1,1,1,1)$, the same procedure gives $P(0)=24192$ and $s_{(2,2)}(1^8)=336$, recovering $K_{(2,2),(1,1,1,1)}=24192/(336\cdot36)=2$. These computations illustrate the exact normalization; the proof does not depend on them. {\footnotesize \begin{thebibliography}{abcdefgh} \bibitem[BJS93]{BJS93} Sara~C.~Billey, William~Jockusch and Richard~P.~Stanley, Some combinatorial properties of Schubert polynomials, \emph{J.\ Algebraic Combin.}~\textbf{2} (1993), no.~4, 345--374. \bibitem[DP18]{DP18} Samuel~Dittmer and Igor~Pak, Counting linear extensions of restricted posets, preprint (2018), 34~pp.; \href{https://arxiv.org/abs/1802.06312}{\texttt{arXiv:1802.06312}}. \bibitem[EG87]{EG87} Paul~Edelman and Curtis~Greene, Balanced tableaux, \emph{Adv.\ Math.}~\textbf{63} (1987), no.~1, 42--99. \bibitem[FS94]{FS94} Sergey~Fomin and Richard~P.~Stanley, Schubert polynomials and the nilCoxeter algebra, \emph{Adv.\ Math.}~\textbf{103} (1994), no.~2, 196--207. \bibitem[Gar02]{Gar02} Adriano~M.~Garsia, \emph{The saga of reduced factorizations of elements of the symmetric group}, Publ.\ LaCIM~\textbf{29}, Universit\'e du Qu\'ebec \`a Montr\'eal, Montr\'eal, 2002, 120~pp. \bibitem[Kra95]{Kra95} Witold~Kra\'skiewicz, Reduced decompositions in Weyl groups, \emph{European J.\ Combin.}~\textbf{16} (1995), 293--313. \bibitem[LS85]{LS85} Alain~Lascoux and Marcel-Paul~Sch\"utzenberger, Schubert polynomials and the Littlewood--Richardson rule, \emph{Lett.\ Math.\ Phys.}~\textbf{10} (1985), nos.~2--3, 111--124. \bibitem[Lit02]{Lit02} David~Little, A combinatorial refinement of the Lascoux--Sch\"utzenberger tree, appendix (Chap.~4) in Adriano~M.~Garsia, \emph{The saga of reduced factorizations of elements of the symmetric group}, Publ.\ LaCIM~\textbf{29}, Universit\'e du Qu\'ebec \`a Montr\'eal, Montr\'eal, 2002, 101--109. \bibitem[Lit03]{Lit03} David~P.~Little, Combinatorial aspects of the Lascoux--Sch\"utzenberger tree, \emph{Adv.\ Math.}~\textbf{174} (2003), no.~2, 236--253. \bibitem[MPY22]{MPY22} Cara~Monical, Benjamin~Pankow and Alexander~Yong, Reduced word enumeration, complexity, and randomization, \emph{Electron.\ J.\ Combin.}~\textbf{29} (2022), no.~2, Paper~2.46, 28~pp. \bibitem[Pak24]{Pak24} Igor~Pak, What is a combinatorial interpretation?, in \emph{Open problems in algebraic combinatorics}, Proc.\ Sympos.\ Pure Math.~\textbf{110}, AMS, Providence, RI, 2024, 191--260; \href{https://arxiv.org/abs/2209.06142}{\texttt{arXiv:2209.06142}}. \bibitem[Pan26]{Pan26} Greta~Panova, Counting contingency tables, Kostka numbers, and Littlewood--Richardson coefficients with unary inputs is $\PP$-complete, preprint (November 26, 2026), 8~pp.; \href{https://hexagonmath.org/2611.01117v1}{\texttt{hexagon:2611.01117v1}}. \bibitem[Paw17]{Paw17} Brendan~Pawlowski, A representation-theoretic interpretation of positroid classes, \emph{S\'em.\ Lothar.\ Combin.}~\textbf{78B} (2017), Art.~85, 12~pp. \bibitem[RS95]{RS95} Victor~Reiner and Mark~Shimozono, Plactification, \emph{J.\ Algebraic Combin.}~\textbf{4} (1995), 331--351. \bibitem[Sta84]{Sta84} Richard~P.~Stanley, On the number of reduced decompositions of elements of Coxeter groups, \emph{European J.\ Combin.}~\textbf{5} (1984), 359--372. \bibitem[Sta99]{Sta99} Richard~P.~Stanley, \emph{Enumerative combinatorics}, Vol.~2, Cambridge Univ.\ Press, Cambridge, 1999, 581~pp. \end{thebibliography} } \end{document}