\documentclass[11pt]{article} % The release build loads these maps explicitly so that it does not depend on % a machine-generated updmap configuration. \pdfmapfile{=lm.map} \pdfmapfile{+symbols.map} \pdfmapfile{+euler.map} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{microtype} \usepackage[margin=1.08in]{geometry} \usepackage{amsmath,amssymb,amsthm,mathtools} \usepackage{booktabs} \usepackage{enumitem} \usepackage{xcolor} \usepackage[hidelinks]{hyperref} \hypersetup{ pdftitle={An Intrinsic Formula for the Ray--West Correction Term}, pdfauthor={Donald D. Poindexter, Jr.}, pdfsubject={Permutation patterns; intrinsic formula for the Ray--West correction term; DOI 10.5281/zenodo.21857882}, pdfkeywords={permutation patterns, permutation statistics, enumerative combinatorics, pattern containment, Ray--West correction term, near-diagonal containment, Wilf equivalence, deletion classes, strong intervals, layered permutations} } \pdfinfo{/DOI (10.5281/zenodo.21857882)} \newtheorem{theorem}{Theorem}[section] \newtheorem{proposition}[theorem]{Proposition} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} \newtheorem{definition}[theorem]{Definition} \newtheorem{remark}[theorem]{Remark} \newcommand{\Ssym}{\mathfrak S} \newcommand{\std}{\operatorname{std}} \newcommand{\Av}{\operatorname{Av}} \newcommand{\supp}{\operatorname{supp}} \newcommand{\del}{\partial} \newcommand{\one}{\mathbf 1} \title{\textbf{An Intrinsic Formula for the Ray--West Correction Term}\\ \large Preliminary technical report, version 0.1} \author{Donald D. Poindexter, Jr.\\ \normalsize Stanford University} \date{August 9, 2026\\[4pt] \normalsize\href{https://doi.org/10.5281/zenodo.21857882}{doi:10.5281/zenodo.21857882}} \begin{document} \maketitle \begin{abstract} For a nonempty permutation $\beta\in\Ssym_m$, let $g_2(\beta)$ denote the number of distinct permutations of length $m+2$ containing $\beta$. Ray and West showed that \[ g_2(\beta)=\frac{m^4+2m^3+m^2+4m+4-2j(\beta)}2, \qquad 0\le j(\beta)\le m-1 \quad (m\ge1), \] but their correction term was not expressed as a statistic of $\beta$. This was posed explicitly as Problem~3.7 by Vatter. We give a polynomial-time, $\beta$-internal formula. The statistic is the number of licensed gaps of $\beta$, plus the number of anchor-free two-deletion classes containing a collision whose canonical alignment support is a permutation interval. We also derive the Ray--West bound internally and show that equality holds exactly for layered or reverse-layered permutations. The proof is combinatorial. Exact computation is used only for independent corroboration; the accompanying replay package checks the formula on bounded ranges and contains the full proof supplement. \end{abstract} \noindent\textbf{Keywords.} permutation patterns; Ray--West statistic; near-diagonal containment; Wilf equivalence; deletion classes; strong intervals. \section{Introduction} Write $\sigma\le\pi$ when $\pi$ contains a subsequence order-isomorphic to $\sigma$. For a fixed $\beta\in\Ssym_m$, let \[ g_k(\beta)=\bigl|\{\pi\in\Ssym_{m+k}:\beta\le\pi\}\bigr|. \] The word \emph{distinct} is important: $g_k$ counts upper objects, not embeddings. Ray and West~\cite{raywest2003} proved the displayed formula in the abstract and, for $m\ge1$, established $0\le j(\beta)\le m-1$. Vatter asked for an expression for $j$ in terms of statistics of $\beta$~\cite[Problem~3.7]{vatter2026}; the question was raised at Permutation Patterns 2007 and recorded in its published problem session~\cite{vatter2010}. Our answer uses only intervals and collisions in the two-deletion shadow of $\beta$. In particular, its definition neither constructs a permutation longer than $\beta$ nor counts insertion histories. Upper-shadow fibres enter only in the proof. \begin{theorem}[Main theorem]\label{thm:main} For every $\beta\in\Ssym_m$ with $m\ge1$, \[ 2g_2(\beta)+2\bigl(L(\beta)+R(\beta)\bigr) =m^4+2m^3+m^2+4m+4, \] where the intrinsic statistics $L$ and $R$ are defined in Section~\ref{sec:statistic}. Consequently \[ j(\beta)=L(\beta)+R(\beta). \] Moreover, for $m\ge1$, \[ 0\le L(\beta)+R(\beta)\le m-1. \] For $m\ge2$, equality holds if and only if $\beta$ is layered or reverse-layered. \end{theorem} For the empty permutation we separately set $L(\varnothing)=R(\varnothing)=0$; the main identity then remains valid with $g_2(\varnothing)=2$, without invoking Ray--West's range statement at $m=0$. The proof has three components. First, a fibre-forest identity rewrites Ray--West's correction as a count of boundaries between overlap components. Second, one classwise theorem identifies the defect of a two-deletion class: licensed gaps account for its rectangular boundaries, while an active anchor-free class accounts for one nonrectangular boundary. Third, a strong-interval-tree charging theorem bounds the resulting intrinsic objects and determines equality. Proposition~\ref{prop:cleanup} shows that the side conditions used to orient the boundary geometry are automatic, leaving the formula \(J=L+R\). \paragraph{Scope.} This preliminary technical report is intended to establish a citable, auditable proof claim. Several local lemmas are lengthy; their complete versions are supplied in the accompanying proof supplement and are summarized in the appendices. The PDF is a theorem-driven roadmap; the PDF and integral companion supplement together constitute the claimed proof. No machine-checked formalization is included or claimed, and the result is not described as fully machine-checked. \paragraph{Integral proof supplement and reproducibility archive.} The complete companion proof supplement, which is part of the claimed proof, and the independent exact-computation replay are permanently available in the original Zenodo release at \url{https://doi.org/10.5281/zenodo.21857882}. Download the proof-and-replay archive from that record and consult its \texttt{proof\_supplement/} directory. \section{The intrinsic statistic}\label{sec:statistic} Write $[m]=\{0,\ldots,m-1\}$; positions are zero based. For $D\in\binom{[m]}2$, let \[ \del_D\beta=\std(\beta\setminus D). \] Partition the deletion pairs into classes \[ \mathcal C_\tau=\{D:\del_D\beta=\tau\}. \] \subsection{Licensed gaps} A consecutive set of positions is a \emph{permutation interval} if its set of values is consecutive. Let $\delta_r$ and $\iota_r$ denote the decreasing and increasing permutations of length $r$. \begin{definition} The gap $i$ between positions $i$ and $i+1$ is \emph{licensed} if some permutation interval $[r,s]$ crossing the gap induces either \[ \delta_p\oplus\delta_q \quad\text{or}\quad \iota_p\ominus\iota_q, \qquad p=i-r+1,\quad q=s-i. \] Singleton blocks are allowed. Let $L(\beta)$ be the number of licensed gaps. For a deletion class $\mathcal C$, let $a_\beta(\mathcal C)$ be the number of licensed gaps whose adjacent deletion pair $\{i,i+1\}$ lies in $\mathcal C$. Call $\mathcal C$ \emph{anchored} if $a_\beta(\mathcal C)>0$ and \emph{anchor-free} otherwise. \end{definition} Every licensed gap belongs to one deletion class, so \begin{equation}\label{eq:Lsum} L(\beta)=\sum_{\mathcal C}a_\beta(\mathcal C). \end{equation} \subsection{Bi-interval collisions} Let $D,E$ be distinct pairs in the same deletion class. List the surviving positions \[ [m]\setminus D=\{x_1<\cdotsu}, \] and analogously for $v$. If the deleted positions are $au} =\beta_k-\one_{\beta_k>v}. \] The indicator difference is in $\{-1,0,1\}$ and adjacent entries are distinct, so $\beta_{k+1}-\beta_k=\pm1$. If $uv$, which is impossible; hence every step is $+1$. The case $u>v$ is symmetric and every step is $-1$. Thus the intervening entries form a monotone run of consecutive values. Conversely, deleting any entry of such a run merely shifts and shortens it, preserving all comparisons and giving the same standardized word. \end{proof} \begin{proposition}[Comparability cleanup]\label{prop:cleanup} Let $\mathcal C$ be anchor-free. Every bi-interval collision $\{D,E\}$ in $\mathcal C$ is an oriented interval shift: $D$ and $E$ are disjoint and the two position pairs and two deleted-value pairs are componentwise comparable. \end{proposition} \begin{proof} Suppose first that $D$ and $E$ share a position $z$. Delete $z$. The two remaining holes give equal one-deletions, so Lemma~\ref{lem:one-delete} produces a monotone consecutive run. Let $t$ be the number of old run entries before $z$, and let $u$ be the one-based rank of $z$ among the support values. If $u=t+1$, $z$ and a neighboring run entry are consecutive in both position and value, so their singleton blocks license the gap. If $u>t+1$, the singleton $z$ and the run segment of ranks $t+1,\ldots,u-1$ form an increasing skew cut immediately after $z$; if $u0,\\ 1,&a_\beta(\mathcal C)=0\text{ and $\mathcal C$ has a bi-interval collision},\\ 0,&\text{otherwise}. \end{cases} \] \end{proposition} \begin{proof}[Proof sketch; complete proof in the companion supplement] A rectangular excursion exposes a position/value cut whose two sides are a direct sum of decreasing blocks or a skew sum of increasing blocks; this is a licensed gap. Conversely, prolonging a licensed gap produces two corner occurrences. The central position/value cut forbids every mixed producing deletion, so those corners lie in distinct adjacent full-fibre components. The cut and prolongation recover one another, proving (i). A nonrectangular excursion has a strong simple-root support. If its class had a licensed pair, transport through the strong-interval tree would carry an anchor into that simple support, contradicting simplicity; the terminal two-point-child case is checked separately. This gives (ii). For (iii), start with an anchor-free collision. By Proposition~\ref{prop:cleanup} it has the oriented geometry used by the two-track proof. Among all supports in the class there is a common minimum simple support. On a fixed support the track partition and witness are unique. Contracting through same-class linear strips reaches the unique terminal witness, while restoring the strips adds the same constant fringe to both coordinate words. At a maximal support the two endpoint pairs lie in distinct full-fibre components. A third component would force either a nested same-class witness on the terminal support or a strictly larger same-class support, both contradictions. Thus the canonical fibre has exactly the two endpoint components and produces one adjacent boundary. Finally, the literal inverse reads the local position and value words from any nonrectangular boundary and reconstructs the same support, ambient permutation, and ordered component pair. This proves existence and uniqueness. Appendix~\ref{app:inverse} records the precise lemma chain and the proof supplement contains the complete local arguments. \end{proof} Combining \eqref{eq:boundarysum}, Proposition~\ref{prop:classwise}, and \eqref{eq:Lsum} gives \[ T(\beta)=L(\beta)+R(\beta). \] Together with \eqref{eq:jT}, this proves the identity in Theorem~\ref{thm:main}. \section{Range and extremizers}\label{sec:range} Permutation intervals that are strong form a laminar rooted tree. If an internal node $N$ has $k_N$ maximal proper strong children, its quotient is increasing, decreasing, or simple; a simple quotient has $k_N\ge4$. Every position gap has a unique owner, namely the lowest strong node whose two consecutive children contain its endpoints. Hence \begin{equation}\label{eq:budget} \sum_{N\text{ internal}}(k_N-1)=m-1. \end{equation} \begin{proposition}[Strong-tree charging]\label{prop:charging} Licensed gaps are owned by linear nodes. Every anchor-free class containing a bi-interval collision has a minimum support equal to a simple strong node, and at most two such classes are assigned to any one simple node. \end{proposition} \begin{proof}[Proof sketch] The complete four-case analysis is in the companion supplement. A licensing interval crossing two children of a simple node would induce a nontrivial sum or skew cut in its simple quotient. Thus licensed gaps are owned by linear nodes. Take a minimum collision support in an anchor-free class. At a direct or skew cut, the four possible distributions of its endpoint deletions either expose a licensed pair or produce a strictly smaller same-class collision. The common-hole boundary case reduces to Lemma~\ref{lem:one-delete}. Therefore a minimum support cannot straddle a linear node and its least strong container is simple; minimality makes the support that whole node. Orient a full-support collision from left to right. Full support gives exactly two corner possibilities: \[ \begin{array}{c|cc} &D&E\\ \hline +&\{\text{first position},\min\}&\{\text{last position},\max\}\\ -&\{\text{first position},\max\}&\{\text{last position},\min\}. \end{array} \] At a simple quotient these four extreme points occupy four distinct quotient children: identifying a position extreme with a value extreme would leave a proper prefix or suffix quotient interval. Each displayed orientation therefore determines at most one deletion core, so a simple node receives at most two residual classes. \end{proof} A linear node uses at most its $k_N-1$ owned-gap slots. A simple node uses at most two slots, and $2\le k_N-1$ because $k_N\ge4$. Summing against \eqref{eq:budget} proves $J(\beta)\le m-1$. If equality holds, no simple node can occur: at a simple node the residual load is at most $2a$. This proves that \eqref{eq:prolong-table} is exhaustive; direct trimming proves sufficiency. For $t\ge1$, the three target families are \[ \begin{aligned} T_f(F_t)&=A^{a+1-t}(BA)^{t-1}B^{b+1-t},\\ T_f(G_t)&=B^{b+1-t}(AB)^{t-1}A^{a+1-t},\\ T_f(H_r)&=A^r(BA)^bA^{d-r}. \end{aligned} \] Their first and last letters separate the families, and their initial constant-run lengths determine $t$ or $r$. Thus each target has exactly one nonblock prolongation, including the two-block targets, whose path prolongations are $F_1$ and $G_1$. It remains to identify the working coordinates. For $F_t=A^R(BA)^tB^S$, where $R=a+1-t$ and $S=b+1-t$, direct deletion gives \[ \begin{aligned} {\cal D}_{F_t}(P) ={}&\{(i,0):0\le i\le R\}\\ &{}\cup\{(R+q-1,q),(R+q,q):1\le q\le t-1\}\\ &{}\cup\{(a,j):t\le j\le b\}. \end{aligned} \] These are exactly the prefix-count vertices of $P=A^R(BA)^{t-1}B^S$. Scanning a putative deletion equality from left to right proves the converse: before the first $B$, at each successive $BA$, and after the last alternating pair, any coordinate off the displayed list makes the next surviving letter disagree with $P$. Letter exchange handles $G_t$. For $H_r$ the identical scan gives \[ \begin{aligned} {\cal D}_{H_r}(P) ={}&\{(i,0):0\le i\le r\}\\ &{}\cup\{(r+q-1,q),(r+q,q):1\le q\le b\}\\ &{}\cup\{(i,b):r+b\le i\le a\}, \end{aligned} \] again exactly the prefix-count vertices. At $t=0$, deleting any $A_i,B_j$ from a block word gives the same block target, yielding the full rectangle. \end{proof} The count-one excursion is a separate elementary corollary. If its increments are $(r,1)$, every path word has the form \[ W_i=A^iBA^{r-i}. \] For $i