\section{Introduction}\label{sec:intro} \subsection{Kazhdan--Lusztig immanants} For $v\in S_n$ the \emph{Kazhdan--Lusztig immanant} of an $n\times n$ matrix $X=(x_{ij})$ is \begin{equation}\label{eq:defimm} \Imm_v(X)=\sum_{w\ge v}(-1)^{\ell(w)-\ell(v)}P_{w_0w,w_0v}(1)\,x_{0,w(0)}x_{1,w(1)}\cdots x_{n-1,w(n-1)}, \end{equation} where $P_{x,y}$ are the Kazhdan--Lusztig polynomials, $\le$ is the Bruhat order and $w_0$ the longest element \cite{RS06,CSB21}. (Throughout we index rows, columns, positions and values by $\{0,1,\dots,n-1\}$; the sign formulas of the main results involve only parities of sums of an even number of indices and are unchanged by a shift to $1$-indexing, while the insertion counts in the proofs are $0$-indexed.) Thus $\Imm_e=\det$ and $\Imm_{w_0}(X)=x_{0,n-1}x_{1,n-2}\cdots x_{n-1,0}$. Rhoades and Skandera showed that Kazhdan--Lusztig immanants are nonnegative on totally nonnegative (TNN) matrices \cite{RS06}, and Skandera showed that the dual canonical basis elements of $\mathbb C[SL_n]$ are Kazhdan--Lusztig immanants of matrices with repeated rows and columns \cite{Ska08}. Call $v$ \emph{smooth} if it avoids the patterns $1324$ and $2143$; equivalently, the Schubert variety indexed by $w_0v$ is smooth \cite{LS90}. For smooth $v$ all the relevant Kazhdan--Lusztig polynomials equal $1$, and Chepuri and Sherman-Bennett proved \begin{equation}\label{eq:csb} \Imm_v(X)=(-1)^{\ell(v)}\det\bigl(X|_{\Gamma_v}\bigr), \end{equation} where $\Gamma_v$ is the \emph{band} of $[v,w_0]$ (the smallest skew shape containing the graphs of all $w\ge v$, see \S\ref{sec:prelim}) and $X|_{\Gamma_v}$ is $X$ with the entries outside $\Gamma_v$ replaced by $0$ \cite[Cor.~3.6]{CSB21}, building on Sj\"ostrand's description of Bruhat intervals as rook placements \cite{Sjo07} (for the pattern class of Gasharov--Reiner \cite{GR02}). Using Lewis Carroll's identity on~\eqref{eq:csb}, they showed that a smooth $\Imm_v$ is positive on $k$-positive matrices whenever $\Gamma_v$ contains no square of size $k+1$ \cite[Thm.~4.2, Thm.~4.18]{CSB21}, and extended this to dual canonical basis elements \cite{CSB23}. \subsection{The question} Since $\Imm_v(X)$ is multi-affine in the entries of $X$, for two entries $a=x_{i,v(i)}$ and $b=x_{k,v(k)}$ one can write $\Imm_v=\alpha+\beta a+\gamma b+\delta ab$ with $\alpha,\beta,\gamma,\delta$ independent of $a,b$, and \[ \Delta_{ik}(X):=F\,\frac{\partial^2F}{\partial a\,\partial b}-\frac{\partial F}{\partial a}\frac{\partial F}{\partial b}=\alpha\delta-\beta\gamma,\qquad F=\Imm_v(X). \] The sign of $\Delta_{ik}$ on TNN matrices decides whether $\Imm_v$ is log-submodular ($\Delta\le0$) or log-supermodular ($\Delta\ge0$) in the pair $(a,b)$. For $v=e$ and the diagonal entries this is the Koteljanskii inequality $\det X\cdot\det X(ik\mid ik)\le\det X(i\mid i)\det X(k\mid k)$ \cite{Kot50,FJ11}. Here $X(I\mid J)$ denotes $X$ with the rows in $I$ and the columns in $J$ deleted. We answer the question for every smooth $v$ and every pair of positions, by an identity. \subsection{Main results} For $\sigma\in S_n$ and a position $r$ let $\sigma^{(r)}\in S_{n-1}$ be the permutation obtained by deleting the entry in position $r$ and standardising the remaining values; similarly $\sigma^{(ik)}\in S_{n-2}$. For a cell $(r,j)$ let $R_v(r\mid j)\subseteq S_{n-1}$ be the set of $\sigma^{(r)}$ over all $\sigma\in S_n$ with $\sigma(r)=j$ and $(x,\sigma(x))\in\Gamma_v$ for all $x\ne r$ (the rook set of the band with row $r$ and column $j$ deleted). For positions $iv(k)$), a peel is \emph{good} for the pair unless, respectively, $v(k)=0$, $i=0$, $v(i)=n-1$ or $k=n-1$; applying it deletes the position of $0$, the position $0$, the position of $n-1$, or the position $n-1$ from $v$, and the pair $(i,k)$ follows its positions (\S\ref{ssec:transfer}). \begin{theoremA}[Lewis Carroll identity for smooth KL immanants] Let $v\in S_n$ avoid $1324$ and $2143$, and let $iv(k)$, at most one swap cell lies in $\Gamma_v$. If exactly one does, the cells are nonempty and $s=-1$; the minimum at the in-band swap cell is $v$ composed with an explicit cycle of length $\lambda+\kappa+3$, and the other is $v$ composed with a cycle of length $\lambda+\kappa+2$, both flattened \textup{(}$\lambda,\kappa$ as in Theorem~\ref{thm:onein}, after rotation if $(k,v(i))$ is the in-band cell\textup{)}. \item If $v(i)>v(k)$ and neither swap cell lies in $\Gamma_v$, reduce $(v;i,k)$ by peels that are available and good, in any order, until none applies. The terminal pair is of type $T_1$ \textup{(}$i=0$, $v(k)=0$\textup{)}, $T_4$ \textup{(}$k=n-1$, $v(i)=n-1$\textup{)}, $T_3$ \textup{(}$i=0$, $k=n-1$\textup{)} or $T_2$ \textup{(}$v(k)=0$, $v(i)=n-1$\textup{)}. \textup{(}At $T_1$ the pair is $(0,v^{-1}(0))$, at $T_3$ it is $(0,n-1)$.\textup{)} If the cells are nonempty, $s=-1$ at $T_1,T_4$ and $s=+1$ at $T_2,T_3$; a terminal pair of two types has empty cells. Every good peel preserves $s$, so the terminal sign does not depend on the order. \end{enumerate} \end{enumerate} \end{theoremA} \begin{corollaryB}[Entry-pair inequalities] Let $v$, $i