Exact inversion layers: saddle asymptotics, local pattern thresholds, and conditional means

How much of a permutation looks uniform when its total inversion count is fixed? An endpoint comparison can become fair even across the entire permutation. Relative uniformity over every order in a consecutive window requires a second condition, which limits the window length even on the central layer. Let \(I_{n,m}\) count permutations of \([n]\) with \(m\) inversions, and let \(\mathbb P_m\) be the uniform law on that layer, for \(0\le m\le N=\binom n2\). Set \(m'=\min(m,N-m)\), \([j]_z=\sum_{d=0}^{j-1}z^d\), and \(P_j(z)=\prod_{i=1}^j[i]_z\), with \(P_0(z)=1\). For \(m'>0\), the fitted Mallows law \(\mathbb P_p\) has parameter \(p=e^{-a}\), where \(a\ge0\) uniquely solves \[m'=\frac{n}{e^a-1}-\sum_{j=1}^n\frac{j}{e^{aj}-1}.\] Use the continuous value \(N/2\) at \(a=0\), and set \(a=\infty\), \(p=0\) at \(m'=0\). Under the Mallows law, the inversion total is the sum of independent digits \(X_j\) with probabilities \(p^d/[j]_p\) for \(0\le d<j\). As \(n\to\infty\) with \(0<p\le1\), a lattice local limit theorem survives deletion of any \(o(n)\) digits, with \(np\to\infty\) required on subsequences with \(p\le1/2\). For the retained sum \(S\) of variance \(V_S\), it gives, uniformly over integer \(u\), \[\sqrt{V_S}\,\mathbb P_p(S=u)=\frac{1}{\sqrt{2\pi}}\exp\!\left(-\frac{(u-\mathbb E_p S)^2}{2V_S}\right)+o(1).\] Here \(V_S\asymp np\) for \(p\le1/2\), and \(V_S\asymp n\min(n,1/a)^2\) for \(p>1/2\), with the minimum equal to \(n\) at \(a=0\). Throughout \(m/n\to\infty\) and \(m/n^2\to0\), the exact saddle has \(a\sim n/m\) and gives \[I_{n,m}\sim\frac{a}{\sqrt{2\pi n}}\frac{e^{am}}{(1-e^{-a})^n}\prod_{j=1}^n(1-e^{-aj}),\qquad \log\frac{I_{n,m}}{\binom{n+m-1}{m}}=-\left(\frac{\pi^2}{6}+o(1)\right)\frac mn.\] The relative equivalent retains the exact saddle and the full finite product. For arbitrary layers as \(n\to\infty\) and \(2\le w\le n\), the comparison \(\sigma(1)>\sigma(w)\) under \(\mathbb P_m\) has probability tending to \(1/2\) exactly when \(aw\to0\). This is equivalent to \(m'/(nw)\to\infty\) for \(w=o(n)\), and to \(m'/n^2\to1/4\) if \(\liminf w/n>0\). Specifying the endpoint ranks removes only digits \(w-1,w\) from the remaining inversion sum. On the lower half the comparison probability equals \(J_w(p)+o(1)\), where \[J_w(p)=\frac{\sum_{d=1}^{w-1}(w-d)p^{w-2+d}}{\sum_{d=1}^{w-1}(w-d)(p^{w-2+d}+p^{w-1-d})},\qquad J_w(0)=0.\] If \(w\to\infty\) and \(aw\to x\in(0,\infty)\), the limit is \(\int_0^1(1-u)e^{-xu}\,du\big/\int_0^1(1-u)(e^{-xu}+e^{xu})\,du\). If \(aw\to\infty\), the lower-half limit is zero. Entrywise complement takes layer \(m\) to \(N-m\) and replaces the comparison probability by one minus that probability. For the relative order \(\Pi\) in any specified consecutive window of length \(k\), write \(K=\binom k2\). A prescribed order \(\tau\) with \(r\) inversions has exact probability \([z^{m-r}](P_n(z)/P_k(z))/I_{n,m}\). Across arbitrary layers and \(2\le k\le n\), \[\sup_{\tau\in S_k}|k!\,\mathbb P_m(\Pi=\tau)-1|\to0\quad\Longleftrightarrow\quad aK\to0\ \text{and}\ K=o(n^{3/2}).\] The second condition controls the full range of coefficient shifts against the fluctuation scale. Length-one windows are exactly uniform, so for mixed sequences the conditions apply only along \(k\ge2\). For a fixed consecutive pattern \(\pi\) with \(r\) inversions and complement inversion number \(r'=K-r\), the probability that all of \(h=1\) or \(2\) specified disjoint windows show \(\pi\) is \((p^r/P_k(p))^h(1+o(1))\) on lower-half layers with \(m\to\infty\), even when the event is rare. These one- and two-window estimates control the first two factorial moments of the count in disjoint windows. On arbitrary layers at least one occurrence has probability tending to one if \(m/n^{1-1/r}\to\infty\) for \(r>0\) and \((N-m)/n^{1-1/r'}\to\infty\) for \(r'>0\). A zero inversion number removes that side's condition, including at its endpoint. The mean count over all windows on layer \(m\) is \((n-k+1)[z^{m-r}](P_n(z)/P_k(z))/I_{n,m}\). For \(32154\) at \(n=7\), the means at \(m=7,8,9\) are respectively \(12/359\), \(15/455\), and \(18/531\). The middle value is strictly below both neighbors, refuting weak unimodality at \(n=k+2\). Bevan–Threlfall, arXiv v2 §6, Question 23. What is a multiplicatively accurate asymptotic for the number of permutations of \([n]\) with exactly \(m\) inversions throughout \(m/n\to\infty\) and \(m/n^2\to0\)? The exact-saddle equivalent \(I_{n,m}\sim a e^{am}\prod_{j=1}^n(1-e^{-aj})/[\sqrt{2\pi n}(1-e^{-a})^n]\) holds for every integer sequence in this range, where the Mallows law with parameter \(e^{-a}\) has mean inversion count \(m\). The full finite product is retained. Bevan–Threlfall, journal p. 20, Question 27. For a uniform permutation of \([n]\) with exactly \(m\) inversions, when does the probability of \(\sigma(1)>\sigma(w)\) tend to \(1/2\) as \(n\to\infty\), allowing any admissible \(m\) and \(2\le w\le n\)? Exactly when \(aw\to0\), with \(a\) the nonnegative Mallows tilt fitted to \(\min(m,\binom n2-m)\) and \(a=\infty\) at the endpoints. The paper also gives the growing-width transition for \(aw\) tending to a positive finite limit. Bevan–Threlfall, journal p. 20, Question 26. When are the probabilities of all relative orders of the first \(k\) entries of a uniform permutation with exactly \(m\) inversions asymptotic to \(1/k!\) uniformly in the order, for arbitrary layers and variable \(k\)? For \(2\le k\le n\), uniform relative error tends to zero exactly when \(a\binom{k}{2}\to0\) and \(k=o(n^{3/4})\), where \(a\) is the nonnegative Mallows tilt fitted to the reflected lower-half inversion count and is infinite at the extreme layers. Length one is exactly uniform, so the conditions apply only along \(k\ge2\). The criterion holds for any specified consecutive window. Bevan–Threlfall, journal p. 20, Conjecture 21. Does a fixed consecutive pattern with \(r\) inversions and complement with \(r'\) inversions occur with probability tending to one on uniform exact inversion layers above both applicable appearance scales, \(m/n^{1-1/r}\to\infty\) for \(r>0\) and \((\binom n2-m)/n^{1-1/r'}\to\infty\) for \(r'>0\)? Yes, throughout the stated range, with no condition on a side whose inversion number is zero, including at that endpoint. A separate relative approximation covers one or two specified disjoint windows on lower-half layers with \(m\to\infty\). Bevan–Threlfall, arXiv v2 §6, Conjecture 22. For every consecutive pattern of length \(k\) and every \(n\ge k+2\), is its expected number of occurrences in a uniform permutation with exactly \(m\) inversions unimodal in \(m\)? The pattern \(32154\) on seven letters refutes even weak unimodality at \(n=k+2\). The conditional means at \(m=7,8,9\) are \(12/359\), \(15/455\), and \(18/531\), respectively, with a strict valley at \(m=8\).

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-01
DOI
https://doi.org/10.5281/zenodo.24700596
Primary Topic
Advanced Combinatorial Mathematics
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Exact inversion layers: saddle asymptotics, local pattern thresholds, and conditional means

Zixuan He
Zenodo (CERN European Organization for Nuclear Research)
Advanced Combinatorial Mathematics
preprint

Exact inversion layers: saddle asymptotics, local pattern thresholds, and conditional means

Zixuan He
preprint en

Abstract

How much of a permutation looks uniform when its total inversion count is fixed? An endpoint comparison can become fair even across the entire permutation. Relative uniformity over every order in a consecutive window requires a second condition, which limits the window length even on the central layer. Let \(I_{n,m}\) count permutations of \([n]\) with \(m\) inversions, and let \(\mathbb P_m\) be the uniform law on that layer, for \(0\le m\le N=\binom n2\). Set \(m'=\min(m,N-m)\), \([j]_z=\sum_{d=0}^{j-1}z^d\), and \(P_j(z)=\prod_{i=1}^j[i]_z\), with \(P_0(z)=1\). For \(m'>0\), the fitted Mallows law \(\mathbb P_p\) has parameter \(p=e^{-a}\), where \(a\ge0\) uniquely solves \[m'=\frac{n}{e^a-1}-\sum_{j=1}^n\frac{j}{e^{aj}-1}.\] Use the continuous value \(N/2\) at \(a=0\), and set \(a=\infty\), \(p=0\) at \(m'=0\). Under the Mallows law, the inversion total is the sum of independent digits \(X_j\) with probabilities \(p^d/[j]_p\) for \(0\le d<j\). As \(n\to\infty\) with \(0<p\le1\), a lattice local limit theorem survives deletion of any \(o(n)\) digits, with \(np\to\infty\) required on subsequences with \(p\le1/2\). For the retained sum \(S\) of variance \(V_S\), it gives, uniformly over integer \(u\), \[\sqrt{V_S}\,\mathbb P_p(S=u)=\frac{1}{\sqrt{2\pi}}\exp\!\left(-\frac{(u-\mathbb E_p S)^2}{2V_S}\right)+o(1).\] Here \(V_S\asymp np\) for \(p\le1/2\), and \(V_S\asymp n\min(n,1/a)^2\) for \(p>1/2\), with the minimum equal to \(n\) at \(a=0\). Throughout \(m/n\to\infty\) and \(m/n^2\to0\), the exact saddle has \(a\sim n/m\) and gives \[I_{n,m}\sim\frac{a}{\sqrt{2\pi n}}\frac{e^{am}}{(1-e^{-a})^n}\prod_{j=1}^n(1-e^{-aj}),\qquad \log\frac{I_{n,m}}{\binom{n+m-1}{m}}=-\left(\frac{\pi^2}{6}+o(1)\right)\frac mn.\] The relative equivalent retains the exact saddle and the full finite product. For arbitrary layers as \(n\to\infty\) and \(2\le w\le n\), the comparison \(\sigma(1)>\sigma(w)\) under \(\mathbb P_m\) has probability tending to \(1/2\) exactly when \(aw\to0\). This is equivalent to \(m'/(nw)\to\infty\) for \(w=o(n)\), and to \(m'/n^2\to1/4\) if \(\liminf w/n>0\). Specifying the endpoint ranks removes only digits \(w-1,w\) from the remaining inversion sum. On the lower half the comparison probability equals \(J_w(p)+o(1)\), where \[J_w(p)=\frac{\sum_{d=1}^{w-1}(w-d)p^{w-2+d}}{\sum_{d=1}^{w-1}(w-d)(p^{w-2+d}+p^{w-1-d})},\qquad J_w(0)=0.\] If \(w\to\infty\) and \(aw\to x\in(0,\infty)\), the limit is \(\int_0^1(1-u)e^{-xu}\,du\big/\int_0^1(1-u)(e^{-xu}+e^{xu})\,du\). If \(aw\to\infty\), the lower-half limit is zero. Entrywise complement takes layer \(m\) to \(N-m\) and replaces the comparison probability by one minus that probability. For the relative order \(\Pi\) in any specified consecutive window of length \(k\), write \(K=\binom k2\). A prescribed order \(\tau\) with \(r\) inversions has exact probability \([z^{m-r}](P_n(z)/P_k(z))/I_{n,m}\). Across arbitrary layers and \(2\le k\le n\), \[\sup_{\tau\in S_k}|k!\,\mathbb P_m(\Pi=\tau)-1|\to0\quad\Longleftrightarrow\quad aK\to0\ \text{and}\ K=o(n^{3/2}).\] The second condition controls the full range of coefficient shifts against the fluctuation scale. Length-one windows are exactly uniform, so for mixed sequences the conditions apply only along \(k\ge2\). For a fixed consecutive pattern \(\pi\) with \(r\) inversions and complement inversion number \(r'=K-r\), the probability that all of \(h=1\) or \(2\) specified disjoint windows show \(\pi\) is \((p^r/P_k(p))^h(1+o(1))\) on lower-half layers with \(m\to\infty\), even when the event is rare. These one- and two-window estimates control the first two factorial moments of the count in disjoint windows. On arbitrary layers at least one occurrence has probability tending to one if \(m/n^{1-1/r}\to\infty\) for \(r>0\) and \((N-m)/n^{1-1/r'}\to\infty\) for \(r'>0\). A zero inversion number removes that side's condition, including at its endpoint. The mean count over all windows on layer \(m\) is \((n-k+1)[z^{m-r}](P_n(z)/P_k(z))/I_{n,m}\). For \(32154\) at \(n=7\), the means at \(m=7,8,9\) are respectively \(12/359\), \(15/455\), and \(18/531\). The middle value is strictly below both neighbors, refuting weak unimodality at \(n=k+2\). Bevan–Threlfall, arXiv v2 §6, Question 23. What is a multiplicatively accurate asymptotic for the number of permutations of \([n]\) with exactly \(m\) inversions throughout \(m/n\to\infty\) and \(m/n^2\to0\)? The exact-saddle equivalent \(I_{n,m}\sim a e^{am}\prod_{j=1}^n(1-e^{-aj})/[\sqrt{2\pi n}(1-e^{-a})^n]\) holds for every integer sequence in this range, where the Mallows law with parameter \(e^{-a}\) has mean inversion count \(m\). The full finite product is retained. Bevan–Threlfall, journal p. 20, Question 27. For a uniform permutation of \([n]\) with exactly \(m\) inversions, when does the probability of \(\sigma(1)>\sigma(w)\) tend to \(1/2\) as \(n\to\infty\), allowing any admissible \(m\) and \(2\le w\le n\)? Exactly when \(aw\to0\), with \(a\) the nonnegative Mallows tilt fitted to \(\min(m,\binom n2-m)\) and \(a=\infty\) at the endpoints. The paper also gives the growing-width transition for \(aw\) tending to a positive finite limit. Bevan–Threlfall, journal p. 20, Question 26. When are the probabilities of all relative orders of the first \(k\) entries of a uniform permutation with exactly \(m\) inversions asymptotic to \(1/k!\) uniformly in the order, for arbitrary layers and variable \(k\)? For \(2\le k\le n\), uniform relative error tends to zero exactly when \(a\binom{k}{2}\to0\) and \(k=o(n^{3/4})\), where \(a\) is the nonnegative Mallows tilt fitted to the reflected lower-half inversion count and is infinite at the extreme layers. Length one is exactly uniform, so the conditions apply only along \(k\ge2\). The criterion holds for any specified consecutive window. Bevan–Threlfall, journal p. 20, Conjecture 21. Does a fixed consecutive pattern with \(r\) inversions and complement with \(r'\) inversions occur with probability tending to one on uniform exact inversion layers above both applicable appearance scales, \(m/n^{1-1/r}\to\infty\) for \(r>0\) and \((\binom n2-m)/n^{1-1/r'}\to\infty\) for \(r'>0\)? Yes, throughout the stated range, with no condition on a side whose inversion number is zero, including at that endpoint. A separate relative approximation covers one or two specified disjoint windows on lower-half layers with \(m\to\infty\). Bevan–Threlfall, arXiv v2 §6, Conjecture 22. For every consecutive pattern of length \(k\) and every \(n\ge k+2\), is its expected number of occurrences in a uniform permutation with exactly \(m\) inversions unimodal in \(m\)? The pattern \(32154\) on seven letters refutes even weak unimodality at \(n=k+2\). The conditional means at \(m=7,8,9\) are \(12/359\), \(15/455\), and \(18/531\), respectively, with a strict valley at \(m=8\).

Zenodo (CERN European Organization for Nuclear Research)
University of Glasgow (GB)
Advanced Combinatorial Mathematics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon