\section{A product formula for a shared decreasing subsequence}\label{sec:product} \subsection{A product formula in the Hecke algebra} Fix \(n \ge 1\) and put \(S = \{s_i : 1 \le i < n\}\). For \(x \in S_n\), the \emph{left} and \emph{right descent sets} are \(D_L(x) = \{s \in S : \ell(sx) < \ell(x)\}\) and \(D_R(x) = \{s \in S : \ell(xs) < \ell(x)\}\). Since multiplying on the right (respectively, left) by \(s_i\) swaps positions (respectively, values) \(i\) and \(i+1\), \[ s_i \in D_R(x) \iff x(i) > x(i+1), \qquad s_i \in D_L(x) \iff x^{-1}(i) > x^{-1}(i+1). \] For \(K \subseteq S\), let \(W_K = \langle K \rangle\) be the standard parabolic subgroup generated by \(K\), and let \(w_K\) be its unique longest element; then \(D_L(w_K) = D_R(w_K) = K\). Let \(t\) be an indeterminate with \(q = t^2\). The Hecke algebra \(\mathcal{H}\) of \(S_n\) over \(\Z[t,t^{-1}]\) is the free module with basis \(\{T_x : x \in S_n\}\) and relations \[ T_s^2 = (q-1)T_s + qT_e \quad (s \in S), \qquad T_x T_y = T_{xy} \quad (x,y \in S_n,\ \ell(xy) = \ell(x) + \ell(y)). \] Put \(\widetilde{T}_x = t^{-\ell(x)}T_x\). The \emph{bar involution} \(a \mapsto \overline{a}\) is the ring involution sending \(t \mapsto t^{-1}\) and \(T_x \mapsto (T_{x^{-1}})^{-1}\). The Kazhdan--Lusztig basis \(\{C'_y : y \in S_n\}\) is uniquely determined by \(\overline{C'_y} = C'_y\) and \[ C'_y = \sum_{x \le y} h_{x,y}\widetilde{T}_x, \qquad h_{y,y} = 1, \qquad h_{x,y} \in t^{-1}\Z[t^{-1}] \text{ for } x < y, \] where \(h_{x,y} = t^{\ell(x)-\ell(y)} P_{x,y}(q)\) for \(x \le y\) \cite{KazhdanLusztig79,KazhdanLusztig80}. For \(K \subseteq S\), every reduced expression for \(y \in W_K\) uses only generators in \(K\), so \((W_K,K)\) inherits the length function and Bruhat order from \(S_n\), and \([e,y] \subseteq W_K\). The submodule \(\mathcal{H}_K = \bigoplus_{x \in W_K} \Z[t,t^{-1}] T_x\) is a subalgebra isomorphic to the Hecke algebra of \((W_K,K)\) and is closed under the bar involution because \(\overline{T_s} = T_s^{-1} = q^{-1}T_s - (1 - q^{-1})T_e \in \mathcal{H}_K\) for \(s \in K\). Hence \(C'_y\) for \(y \in W_K\) is computed within \(\mathcal{H}_K\), so \(P_{x,y}(q)\) is invariant under Coxeter isomorphisms \((W_K,K) \xrightarrow{\sim} (W'_{K'},K')\). \begin{lemma}\label{lem:hecke} Let \(I, J \subseteq S\) be subsets of standard generators, and put \(K = I \cap J\). Suppose that \(u \in W_I\) satisfies \(K \subseteq D_L(u)\) and \(v \in W_J\) satisfies \(K \subseteq D_R(v)\). Then \[ P_{v w_K u}(q) = P_v(q)P_u(q). \] \end{lemma} \begin{proof} For \(s \in K\), the lifting property gives \(sx \le u\) whenever \(x \le u\) and \(xs \le v\) whenever \(x \le v\), since \(su < u\) and \(vs < v\) \cite[\S\S2.2,~2.4]{BjornerBrenti}. Thus \([e,u]\) and \([e,v]\) are unions of cosets \(W_K a\) and \(b W_K\), respectively, with \(a,b\) their minimum-length representatives. Their coset maxima satisfy \(w_K a \le u\) and \(b w_K \le v\). The cosets of \(u\) and \(v\) give \(u = w_K a_0\) and \(v = b_0 w_K\). By descent invariance \cite[Corollary~7.14]{Humphreys}, \(P_{x,u}(q)\) is constant on each \(W_K a\), and \(P_{x,v}(q)\) on each \(b W_K\). Applied to \(w_K\), this also gives \(P_{y,w_K}(q) = 1\) for \(y \in W_K\), so \(C'_{w_K} = t^{-\ell(w_K)}\sum_{y \in W_K} T_y\). The coefficient of \(T_x\) in \(C'_u\) is \(t^{-\ell(u)}P_{x,u}(q)\). Grouping these coefficients by coset and using length additivity within each coset gives \[ C'_u = \sum_a h_{w_K a,u}\, C'_{w_K}\widetilde{T}_a, \qquad C'_v = \sum_b h_{b w_K,v}\, \widetilde{T}_b C'_{w_K}. \] For \(s \in K\), the Hecke relation gives \(T_s(T_y + T_{sy}) = q(T_y + T_{sy})\) whenever \(\ell(sy) > \ell(y)\). Summing over the pairs \(\{y,sy\}\) in \(W_K\) gives \(T_s C'_{w_K} = q C'_{w_K}\), hence \(T_y C'_{w_K} = q^{\ell(y)} C'_{w_K}\) for \(y \in W_K\). Thus \[ (C'_{w_K})^2 = \kappa_K C'_{w_K}, \qquad \kappa_K = t^{-\ell(w_K)} \sum_{y \in W_K} q^{\ell(y)}. \] Multiplying the coset expansions now gives \(C'_v C'_u = \kappa_K \mathcal D\), where \[ \mathcal{D} = \sum_{b,a} h_{b w_K, v}\, h_{w_K a, u}\, \widetilde{T}_b C'_{w_K} \widetilde{T}_a, \] which is bar invariant. Indeed, the square identity for the bar-invariant \(C'_{w_K}\) gives \(\overline{\kappa_K} = \kappa_K\), and the product identity then gives \(\overline{\mathcal D} = \mathcal D\) by cancellation in the free \(\Z[t,t^{-1}]\)-module \(\mathcal H\). Since \(b \in W_J\) has \(D_R(b) \subseteq J\) and \(D_R(b) \cap K = \varnothing\), we have \(D_R(b) \cap I = \varnothing\), so \(b\) is the minimum-length representative of \(b W_I\). For \(y \in W_K\) and \(a \in W_I\) with \(D_L(a) \cap K = \varnothing\), we have \(y a \in W_I\) with \(\ell(ya) = \ell(y) + \ell(a)\), hence \(\ell(bya) = \ell(b) + \ell(y) + \ell(a)\) and \(\widetilde{T}_b \widetilde{T}_y \widetilde{T}_a = \widetilde{T}_{bya}\). Moreover, \(x = b y a\) uniquely determines \((b,y,a)\): \(b\) is the minimum-length representative of \(x W_I\), \(a\) is that of \(W_K(b^{-1}x)\), and \(y = (ya)a^{-1}\). Because passing to minimum-length coset representatives preserves the Bruhat order \cite[Proposition~2.5.1]{BjornerBrenti}, \(w_K a \le w_K a_0\) and \(b w_K \le b_0 w_K\) imply \(a \le a_0\) and \(b \le b_0\). Combining reduced subwords for \(b \le b_0\), \(y \le w_K\), and \(a \le a_0\) gives \(b y a \le b_0 w_K a_0\). Note also that \(w_K^2 = e\), so \(b_0 w_K a_0 = (b_0 w_K) w_K (w_K a_0) = v w_K u\) with \(\ell(v w_K u) = \ell(b_0) + \ell(w_K) + \ell(a_0) = \ell(v) + \ell(u) - \ell(w_K)\). Expanding \(\mathcal{D}\) yields \[ \mathcal{D} = \sum_{b,y,a} h_{b w_K, v}\, h_{w_K a, u}\, t^{\ell(y)-\ell(w_K)}\, \widetilde{T}_{bya}, \] with distinct triples \((b,y,a)\) indexing distinct elements \(\widetilde{T}_{bya}\). The triple \((b_0, w_K, a_0)\) contributes \(1\) to \(\widetilde{T}_{v w_K u}\), while every other triple has \(b < b_0\), \(y < w_K\), or \(a < a_0\) and therefore contributes a coefficient in \(t^{-1}\Z[t^{-1}]\). By uniqueness of the Kazhdan--Lusztig basis, \(\mathcal{D} = C'_{v w_K u}\). Finally, by length additivity, \(b y a = e\) only when \(b = y = a = e\). Using descent invariance to get \(P_{w_K,v}(q) = P_v(q)\) and \(P_{w_K,u}(q) = P_u(q)\), the coefficient of \(\widetilde{T}_e\) in \(\mathcal{D}\) is \[ h_{w_K,v}\, h_{w_K,u}\, t^{-\ell(w_K)} = t^{\ell(w_K)-\ell(v)-\ell(u)} P_v(q)P_u(q) = t^{-\ell(v w_K u)} P_v(q)P_u(q). \] Comparing with \(h_{e, v w_K u} = t^{-\ell(v w_K u)} P_{v w_K u}(q)\) yields \(P_{v w_K u}(q) = P_v(q)P_u(q)\). \end{proof} Taking \(K = S\) in the argument for \(w_K\) above gives \(P_{\delta_n}(q) = P_{w_S}(q) = 1\) for every decreasing permutation \(\delta_n\). Appendix~\ref{sec:geometric-appendix} gives a geometric proof of Lemma~\ref{lem:hecke}. \begin{remark}\label{rem:hecke-general} The proof of Lemma~\ref{lem:hecke} uses only Coxeter-group and Hecke-algebra properties, so it holds verbatim in any Coxeter group \((W,S)\) whenever \(K = I \cap J\) generates a finite parabolic subgroup \(W_K\). Moreover, since \(P_{x,vw_Ku}(0) = 1 \ne 0\) for all \(x \le v w_K u\), the identity \(\mathcal{D} = C'_{vw_Ku}\) shows that every \(x \le v w_K u\) factors uniquely as \(x = bya\), where \(y \in W_K\), \(b\) is the minimum-length representative of \(bW_K \subseteq W_J\) with \(b w_K \le v\), and \(a\) is the minimum-length representative of \(W_Ka \subseteq W_I\) with \(w_K a \le u\). For these \(b,y,a\), we have \[ P_{bya,\,vw_Ku}(q) = P_{bw_K,v}(q)\,P_{w_Ka,u}(q). \] \end{remark} \subsection{Factorization along a separating decreasing subsequence} For sets of integers \(X, Y\), write \(X < Y\) if \(x < y\) for all \(x \in X\) and \(y \in Y\). Let \(w \in S_n\). A partition \((A, Q, D)\) of \(\{1,\ldots,n\}\) into three (possibly empty) subsets is a \emph{separating partition} of \(w\) if: \begin{enumerate} \item \(A \cup Q < D\) (every position in \(A \cup Q\) precedes every position in \(D\)); \item \(w(A) < w(Q \cup D)\) (every value at \(A\) is smaller than every value at \(Q \cup D\)); \item \(w\) is decreasing on \(Q\) (that is, \(w(j_1) > w(j_2)\) whenever \(j_1 < j_2\) in \(Q\)). \end{enumerate} Positions in \(A\) and \(Q\) may interleave, as may values at \(Q\) and \(D\) (Figure~\ref{fig:separator}). \input{figure-separator} \begin{lemma}\label{lem:separator} Let \(w \in S_n\) admit a separating partition \((A, Q, D)\) satisfying conditions~(1)--(3) above. Then for every subset \(U \subseteq \{1,\ldots,n\}\) of positions of \(w\), \[ P_{w|U}(q) = P_{w|(U \cap (A \cup Q))}(q)\, P_{w|(U \cap (Q \cup D))}(q). \] \end{lemma} \begin{proof} Restricting \(w\) to \(U\) preserves the relative order of positions and values, so \((U \cap A, U \cap Q, U \cap D)\) induces a separating partition of \(w|U\); hence it suffices to treat \(U = \{1,\ldots,n\}\). If \(A = \varnothing\), then \(w|(A \cup Q) = w|Q\) is decreasing (so \(P_{w|Q}(q) = 1\)) and \(w|(Q \cup D) = w\), giving the identity; symmetrically, it holds when \(D = \varnothing\). Assume \(A, D \ne \varnothing\) and set \(a = |A| \ge 1\), \(h = |Q| \ge 0\). By~(1) and~(2), \(A \cup Q = \{1,\ldots,a+h\}\) and \(w(Q \cup D) = \{a+1,\ldots,n\}\). Let \(u \in S_n\) act as \(w|(A \cup Q)\) on \(\{1,\ldots,a+h\}\) and fix \(\{a+h+1,\ldots,n\}\), so \(u \in W_I\) for \(I = \{s_1,\ldots,s_{a+h-1}\}\). Let \(v \in S_n\) fix \(\{1,\ldots,a\}\) and act on \(\{a+1,\ldots,n\}\) as \(w|(Q \cup D)\) shifted by \(+a\) in position and value, so \(v \in W_J\) for \(J = \{s_{a+1},\ldots,s_{n-1}\}\). By Coxeter invariance, \(P_u(q) = P_{w|(A \cup Q)}(q)\) and \(P_v(q) = P_{w|(Q \cup D)}(q)\). The intersection \(K = I \cap J = \{s_{a+1},\ldots,s_{a+h-1}\}\) permutes \(\{a+1,\ldots,a+h\}\) (with \(K = \varnothing\) and \(w_K = e\) if \(h \le 1\)). By~(2) and~(3), the values \(a+1,\ldots,a+h\) appear in \(u\) at \(Q\) in decreasing order, so \(K \subseteq D_L(u)\). By~(1) and~(3), the first \(h\) active positions \(a+1,\ldots,a+h\) of \(v\) correspond to \(Q\) and carry decreasing values, so \(K \subseteq D_R(v)\). Finally, we check \(v w_K u(i) = w(i)\) for each \(i \in \{1,\ldots,n\}\): \begin{itemize} \item If \(i \in A\), then by~(1) and~(2) \(u(i) = w(i) \in \{1,\ldots,a\}\), which is fixed by both \(w_K\) and \(v\). \item If \(i \in D\), then \(i > a + h\) is fixed by \(u\) and \(w_K\), and by~(1) and~(2) \(v(i)\) is \(a\) plus the rank of \(w(i)\) in \(Q \cup D\), namely \(w(i)\). \item If \(i \in Q\) is the \(r\)-th element of \(Q\) from left to right (\(1 \le r \le h\)), then~(2) and~(3) give \(u(i) = a + h + 1 - r\), \(w_K\) reverses \(\{a+1,\ldots,a+h\}\) to give \(a + r\), and since \(Q < D\), \(a + r\) is the active position of \(v\) corresponding to \(i\), so \(v(a+r) = w(i)\) by~(1) and~(2). \end{itemize} Thus \(w = v w_K u\), and Lemma~\ref{lem:hecke} gives \(P_w(q) = P_v(q)P_u(q)\). \end{proof}