Marked left-to-right maxima in dotted-stack machine sorting
Exactly \(\binom{2n-2}{n-1}\) permutations of length \(n\ge1\) are sorted by the dotted stack \(d=s_{1\dot{2}}\) followed by one pass of West's stack-sorting map. This resolves Shieh, Yang and Yu's conjecture and gives an explicit reconstruction of every sortable input. A peak run is a contiguous block beginning at a left-to-right maximum, an entry larger than every preceding entry, and ending just before the next such position or at the end. If the input has peak runs \(P_1,\ldots,P_k\), the dotted stack outputs \(d(\pi)=\operatorname{rev}(P_1)\cdots\operatorname{rev}(P_k)\). In this output each run end is a left-to-right maximum and the final entry is \(n\). Conversely, for any output ending in \(n\), choose an arbitrary subset of its nonfinal left-to-right maximum positions, cut after the chosen positions and reverse the resulting blocks. These choices are independent and exhaust the inverse images of the dotted stack. West's map obeys \(s(LmR)=s(L)s(R)m\) for the maximum entry \(m\), with \(s(\varnothing)=\varnothing\). It sorts exactly the \(231\)-avoiders, whose words contain no triple \(i<j<k\) with \(w_k<w_i<w_j\). Thus an eligible intermediate output is \(\tau n\) for \(\tau\in\operatorname{Av}_{n-1}(231)\), the set of avoiders of length \(n-1\) including the empty word when \(n=1\). With \(\ell(\tau)\) the number of its left-to-right maxima, the sortable count and its weighted generating function are \[|\{\pi\in S_n:s(d(\pi))=12\cdots n\}|=\sum_{\tau\in\operatorname{Av}_{n-1}(231)}2^{\ell(\tau)}=\binom{2n-2}{n-1},\] \[\sum_{r\ge0}\sum_{\tau\in\operatorname{Av}_r(231)}t^{\ell(\tau)}x^r=\frac{1}{1-txC(x)},\qquad C(x)=\frac{1-\sqrt{1-4x}}{2x}.\] Shieh, Yang and Yu, §6, Conjecture 6.1. For every \(n\ge1\), does reversing the blocks beginning at successive left-to-right maxima and then applying West's stack-sorting map send exactly \(\binom{2n-2}{n-1}\) permutations of length \(n\) to the identity? Yes. Each sortable input corresponds bijectively to a \(231\)-avoider of length \(n-1\) and a subset of its left-to-right maximum positions. The result includes the singleton and applies to one pass of each specified map.
Authors
- Zixuan He
Institutions
- University of Glasgow (GB)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-01
- DOI
- https://doi.org/10.5281/zenodo.24700785
- Primary Topic
- Advanced Combinatorial Mathematics
- Type
- preprint