\section{Principality of single deletions}\label{sec:principal} \subsection{Minimal elements are smooth} \begin{lemma}\label{lem:no1324} Every minimal element $y$ of the rook set of any band avoids $1324$. \end{lemma} \begin{proof} Suppose $a\hi(b)$) and ($y(d)<\lo(c)$ or $y(c)>\hi(d)$). Three of the four combinations are impossible: $y(b)<\lo(a)$ and $y(d)<\lo(c)$ give $\lo(c)>y(d)>y(a)\ge\lo(a)\ge\lo(c)$; $y(a)>\hi(b)$ and $y(c)>\hi(d)$ give $\hi(b)\hi(b)$ and $y(d)<\lo(c)$ give $\hi(b)\ge\hi(c)\ge y(c)>y(a)$. So $y(b)<\lo(a)$ and $y(c)>\hi(d)$, and $\lo(b)\le y(b)<\lo(a)\le y(a)j]$ and $\hi\mapsto\hi-[\hi\ge j]$, both weakly increasing maps, so a crossing after deletion has $\lo(b)<\lo(a)$ and $\hi(d)<\hi(c)$ before it. If $\lo(a)\le\hi(d)$ before deletion, it was a crossing. Otherwise $\lo(a)>\hi(d)$ while $\lo(a)-[\lo(a)>j]\le\hi(d)-[\hi(d)\ge j]$, which forces $\hi(d)\lo(0)$, the row $c$ with $\sigma(c)=\lo(0)$ would give the unblocked inversion $(0,c)$. So $\sigma(0)=\lo(0)$, and by Lemma~\ref{lem:delblock} $\sigma^{(0)}$ is minimal in $\rook(B(0\mid\lo(0)))$, again a band with $\hi$ constant equal to the largest column. By induction every minimal element of $\rook(B)$ is the greedy placement; so there is at most one, and $\rook(B)$ is empty or principal. The case $\lo\equiv0$ is the $180^\circ$ rotation. \end{proof} Deletions preserve the hypotheses ($\lo\equiv0$ stays $\equiv0$, $\hi\equiv n-1$ becomes $\equiv n-2$). If $v(0)=0$ then $\Gamma_v$ has $\lo\equiv0$, and if $v(n-1)=n-1$ then $\hi\equiv n-1$; we call such $v$ \emph{one-sided}. \begin{lemma}\label{lem:greedyv} If $v$ is smooth and one-sided, then $\rook(\Gamma_v)=[v,w_0]$, and every $\rook(\Gamma_v(r\mid j))$ is empty or principal. \end{lemma} \begin{proof} The second claim is Lemma~\ref{lem:onesided}. For the first, let $v(n-1)=n-1$ (the other case is the rotation) and suppose the greedy placement agrees with $v$ in rows $k$, $m\ne n-1$; then the entries at positions $a,k,m,n-1$ form a $1324$. So the greedy placement is $v$, and $\rook(\Gamma_v)=[v,w_0]$. \end{proof} \subsection{Peels} \begin{lemma}[peel lemma]\label{lem:peel} Let $B$ be a band on an $n\times n$ board, and suppose column $0$ meets a nonempty final segment of rows $[t,n-1]$ and that these rows are identical \textup{(}equal intervals\textup{)}. Let $B''$ be $B$ with column $0$ and one row of the segment deleted \textup{(}the result does not depend on the row\textup{)}. Then \[ \rook(B)=\{\ins_q(\tau):q\in[t,n-1],\ \tau\in\rook(B'')\}, \] where $\ins_q(\tau)$ inserts the value $0$ at position $q$ and raises the other values by one. If $\rook(B'')=[y'',w_0]$ then $\rook(B)=[\ins_t(y''),w_0]$ and $\ell(\ins_t(y''))=\ell(y'')+t$; if $\rook(B'')=\emptyset$ then $\rook(B)=\emptyset$. If column $0$ meets no row, $\rook(B)=\emptyset$. \end{lemma} \begin{proof} The first claim holds because the rows of the segment are identical: deleting the cell $(q,0)$ of $\sigma\in\rook(B)$ leaves a placement of $B''$, and conversely. Each $\ins_q$ is order preserving (its rank function is that of $\tau$ shifted, plus a constant), and $\ins_{q+1}(\tau)=\ins_q(\tau)\cdot(q\ q{+}1)$ lies one step above $\ins_q(\tau)$. So every element of $\rook(B)$ lies above $\ins_t(y'')$, and $\rook(B)$, an upper set containing $\ins_t(y'')$, equals $[\ins_t(y''),w_0]$. Inserting $0$ at position $t$ creates $t$ inversions. \end{proof} By transposition and rotation there are four versions: \begin{itemize}[leftmargin=1.5em] \item \emph{column-$0$ type}: as stated; the value $0$ is inserted at the \emph{first} row $t$ of the segment, adding $t$ inversions; \item \emph{row-$0$ type}: row $0$ meets a final segment $[t,n-1]$ of identical columns; the entry $(0,t)$ is inserted, adding $t$ inversions; \item \emph{last-column type}: the last column meets an initial segment $[0,t]$ of identical rows; the value $n-1$ is inserted at the \emph{last} row $t$ of the segment, adding $n-1-t$ inversions; \item \emph{last-row type}: the last row meets an initial segment $[0,t]$ of identical columns; the entry $(n-1,t)$ is inserted, adding $n-1-t$ inversions. \end{itemize} \begin{definition}[the four peels of $v$]\label{def:peels} Let $v\in S_n$ be smooth, $d=v^{-1}(0)$, $e=v^{-1}(n-1)$, $p=v(0)$, $q=v(n-1)$. We say that \begin{itemize}[leftmargin=1.5em] \item $\Cz$ is available if $v$ is increasing on $[d,n-1]$; its fibre is $v^{(d)}$; \item $\Rz$ is available if the values $p,p+1,\dots,n-1$ occur at increasing positions; its fibre is $v^{(0)}$; \item $\Cn$ is available if $v$ is increasing on $[0,e]$; its fibre is $v^{(e)}$; \item $\Rn$ is available if the values $0,1,\dots,q$ occur at increasing positions; its fibre is $v^{(n-1)}$. \end{itemize} $\Rz$, $\Cn$, $\Rn$ are $\Cz$ for $v^{-1}$, $w_0vw_0$ and $(w_0vw_0)^{-1}$ respectively. \end{definition} \begin{lemma}[peel identifications]\label{lem:peelid} Let $v$ be smooth. \begin{enumerate}[label=\textup{(\roman*)}] \item The rows of $\Gamma_v$ meeting column $0$ are $[d,n-1]$, and they are identical iff $\Cz$ is available. \item If $\Cz$ is available, then $\Gamma_v$ with column $0$ and any row of $[d,n-1]$ deleted equals $\Gamma_{v^{(d)}}$. \end{enumerate} The analogous statements hold for $\Rz$ \textup{(}row $0$, columns $[p,n-1]$, fibre $\Gamma_{v^{(0)}}$\textup{)}, $\Cn$ \textup{(}column $n-1$, rows $[0,e]$, fibre $\Gamma_{v^{(e)}}$\textup{)} and $\Rn$ \textup{(}row $n-1$, columns $[0,q]$, fibre $\Gamma_{v^{(n-1)}}$\textup{)}. \end{lemma} \begin{proof} (i) $\lo(x)=0$ iff $x\ge d$. The rows $[d,n-1]$ are identical iff $\hi$ is constant there, i.e.\ iff $v(n-1)=\max v[d..n-1]$. If $v$ is not increasing on $[d,n-1]$, some $dv(l)$; then $l\ne n-1$ when $v(n-1)$ is the maximum, and the entries at $d,k,l,n-1$ form a $1324$. So for smooth $v$ the condition is equivalent to $\Cz$. (ii) Under $\Cz$ the value $1$ sits at a position $\le d+1$, so $v^{(d)}$ has prefix minimum $0$ from position $d$ on; for $xv(l)$. If $v(l)>y$, the entries at $\pos(y),d,k,l$ form a $2143$; so $v(l)q$. Then the entries at $\pos(y),d,k,n-1$ (values $y,0,v(k),q$) form a $2143$, a contradiction. The second claim is the first for $v^{-1}$, because $\Cz(v^{-1})=\Rz(v)$ and $\Rn(v^{-1})=\Cn(v)$. \end{proof} \subsection{Good cells and the corner cell} \begin{definition} A cell $(r,j)$ is \emph{good} for the peel $\Cz$ unless $j=0$ and $re$; for $\Rn$ unless $r=n-1$ and $j>q$. \end{definition} \begin{lemma}\label{lem:goodcell} Let $\Cz$ be available for $v$ and let $(r,j)$ be good for it. \begin{enumerate}[label=\textup{(\alph*)}] \item If $j\ne0$ and $re\}$ and $\{(n-1,j):j>q\}$. A ``near'' peel ($\Cz$ or $\Rz$) and a ``far'' peel ($\Cn$ or $\Rn$) have disjoint bad sets; the bad sets of $\Cz$ and $\Rz$ meet only in $(0,0)$, those of $\Cn$ and $\Rn$ only in $(n-1,n-1)$. By Lemma~\ref{lem:gasharov} the set of available peels contains a near--far pair, or is $\{\Cz,\Rz\}$, or is $\{\Cn,\Rn\}$. This leaves one cell to treat. \begin{lemma}[the corner cell]\label{lem:corner} Let $v\in S_n$ be smooth with $v(0)\ne0$, $v(n-1)\ne n-1$, and suppose neither $\Cn$ nor $\Rn$ is available \textup{(}the \emph{corner class}; then $\Cz$ and $\Rz$ are available\textup{)}. Let $R=\Gamma_v(0\mid0)$ and $w=v^{(0)}=\std(v(1),\dots,v(n-1))$. Then: \begin{enumerate}[label=\textup{(\roman*)}] \item $ep$, or every value $\ge v(1)$ sits at a position $\le e$, then the columns of $R$ meeting its row $0$ \textup{(}original row $1$\textup{)} form a final segment of identical columns, starting at index $\lo(1)-1$; the row-$0$ peel of $R$ has fibre $\Gamma_w(0\mid0)$ and adds $\lo(1)-1$ inversions. \item \textup{($\neg$B)} Otherwise $v(x)>v(1)$ for all $x\in(1,e]$; the rows of $R$ meeting its last column are the original rows $[1,e]$, they are identical, and the last-column peel of $R$ has fibre $\Gamma_w(0\mid0)$ and adds $n-1-e$ inversions. \end{enumerate} Hence $\rook(R)$ is empty or principal whenever $\rook(\Gamma_w(0\mid0))$ is. \end{lemma} \begin{proof} (i) If $e>d$, $\Cz$ puts $n-1$ at the end, contradicting $v(n-1)\ne n-1$; so $ee\ge 1$; in particular $v(1)\ne0$ and $\lo(1)\ge1$. (ii) The rows of $R$ are the original rows $x\ge1$, and $\hi(1)=n-1$ because $e\ge1$. A column $c\ge\lo(1)$ meets the original rows $x\ge1$ with $\hi(x)\ge c$ (their left ends are $\le\lo(1)\le c$), i.e.\ the rows $[1,\text{last position of a value}\ge c]$. These sets agree for all $c\in[\lo(1),n-1]$ iff every value $\ge\lo(1)$ sits at a position $\le e$. If $v(1)>p$ then $\lo(1)=p$ and this is (i); otherwise $\lo(1)=v(1)$ and it is the hypothesis. The fibre deletes row $1$ and one block column; choosing the original column $n-1$, it is $\Gamma_v$ minus rows $\{0,1\}$ and columns $\{0,n-1\}$. By Lemma~\ref{lem:peelid} for $\Rz$ (column $n-1$ is a block column), $\Gamma_v$ minus row $0$ and column $n-1$ is $\Gamma_w$, in which the original row $1$ and column $0$ are row $0$ and column $0$ (as $p>0$). So the fibre is $\Gamma_w(0\mid0)$. The first block column of $R$ has index $\lo(1)-1$. (iii) Now $v(1)v(1)$ sits at a position $>e$. If $v(x)d]$, $k'=k-[k>d]$; $\Rz$: $v'=v^{(0)}$, $(i',k')=(i-1,k-1)$; $\Cn$: $v'=v^{(e)}$, $i'=i-[i>e]$, $k'=k-[k>e]$; $\Rn$: $v'=v^{(n-1)}$, $(i',k')=(i,k)$. Then $(i',k')$ is an inversion of $v'$, and: \begin{enumerate}[label=\textup{(\roman*)}] \item each swap cell of $(v;i,k)$ is empty iff the corresponding swap cell of $(v';i',k')$ is empty; \item each swap cell of $(v;i,k)$ is in band iff the corresponding one is; \item $s(v;i,k)=s(v';i',k')$. \end{enumerate} \end{lemma} \begin{proof} Let $P=\Cz$, so $A\ne0$. If $i>d$ then $k>i>d$ and $v$ is increasing on $[d,n-1]$, so $(i,k)$ would be a non-inversion; $i=d$ gives $B=0d$, deleting the block rows $k$ and $d$ gives the same region as deleting $k$ and any other block row) and the insertion position is $d-[kd]}$, while $(-1)^{i+k+A+B}$ changes to $(-1)^{i+k-[k>d]+A+B-2}$, by the same factor. So $s$ is preserved. For (ii), $(i,A)$ is in band iff some $xk$ has $v(x)>B$. The deleted entry $(d,0)$ is never such a witness ($d>i$, and $0>B$ is impossible), and all other comparisons are preserved. The other peels follow by symmetry: $\Rz$ for $v$ is $\Cz$ for $v^{-1}$ with the pair $(A,B)$, and $\Cn$, $\Rn$ are $\Cz$, $\Rz$ for $w_0vw_0$ with the pair $(n-1-k,n-1-i)$; the goodness conditions correspond ($\Cz(v^{-1})$ is good iff $v^{-1}(B)=i\ne0$; $\Cz(w_0vw_0)$ is good iff $v(i)\ne n-1$; $\Rz(w_0vw_0)$ is good iff $n-1-k\ne0$). \end{proof}