\documentclass[11pt,a4paper]{amsart} \usepackage[margin=1in]{geometry} \usepackage{amsmath,amssymb,amsthm,mathtools} \usepackage{booktabs,array,graphicx} \usepackage{hyperref} \hypersetup{ colorlinks=true, linkcolor=blue, citecolor=blue, urlcolor=blue } \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{corollary}[theorem]{Corollary} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \newtheorem{remark}[theorem]{Remark} \newcommand{\R}{\mathbb{R}} \newcommand{\Z}{\mathbb{Z}} \newcommand{\Q}{\mathbb{Q}} \newcommand{\N}{\mathbb{N}} \newcommand{\F}{\mathbb{F}} \newcommand{\eps}{\varepsilon} \title[Narrow-Window Separation and Norm-Method Bounds for SSR]{% Narrow-Window Separation, Exact Asymptotic Constants for $k = 2, 3$, All-$k$ Balanced-Parseval Spread Bounds, Bipartite Sum-of-Squares Constants, and Exact Norm-Method Floors for the Sum-of-Square-Roots Problem} \author{Ivan Besevic} \address{ESIEE-IT, France} \email{ivan.besevic@edu.esiee-it.fr} \date{December 3, 2026} \thanks{ORCID: \href{https://orcid.org/0009-0004-4124-1465}{0009-0004-4124-1465}. All 59 exported theorems across 12 modules are machine-checked in Lean~4.36.0 with zero \texttt{sorry}, zero \texttt{admit}, and zero \texttt{native\_decide}, relying strictly on the standard axioms \texttt{propext}, \texttt{Classical.choice}, and \texttt{Quot.sound} (with the core interval certificate depending on no axioms at all). Independent polynomial root and multivariate critical-point certificates are verified in pure Rust via \texttt{pandroots 0.31.0}, \texttt{pandsysroots 0.34.0}, and \texttt{pandrealpcs 0.31.0}.} \subjclass[2020]{Primary 11J25, 11Y16; Secondary 68Q25, 68V20} \keywords{Sum-of-Square-Roots problem, narrow-window separation, Newton identities, Prouhet--Tarry--Escott problem, $3$-convexity, balanced Parseval identity, bipartite sum-of-squares, $2$-adic norm divisibility, Galois-tower formalization, Lean 4} \begin{document} \begin{abstract} Let $r(n, k)$ denote the minimum positive value of $\bigl|\sum_{i=1}^k \sqrt{a_i} - \sum_{j=1}^k \sqrt{b_j}\bigr|$ over integers $1 \le a_i, b_j \le n$, and let $r_{[m, m+L]}(k)$ denote the same minimum restricted to a window $[m, m + L]$ ($n = m + L$). We establish four families of machine-checked lower bounds (59 audited theorems across 12 Lean~4.36.0 modules), together with independent pure-Rust polynomial/Krawczyk certificates and 250-digit arithmetic checks: \begin{enumerate} \item \textbf{Narrow-Window Separation for All $k \ge 1$ and Exact Asymptotic Constants for $k = 2, 3$ (Linear Exponent $-(k - \frac{1}{2})$, Independent of $L$).} Combining pure $\Z[X]$ Newton power-sum divisibility ($r \mid (p_r(u) - p_r(v))$) with exact alternating Taylor remainder bounds for $\sqrt{1 + t}$, we prove that for every $k \ge 1$, $m \ge 1$, and $L \ge 1$ satisfying $2k\, L^{k+1} \le m$, \[ r_{[m, m + L]}(k) \;\ge\; \frac{k}{2}\left|\binom{1/2}{k}\right| m^{-(k - 1/2)}, \] achieving the linear exponent $-(k - \frac{1}{2})$ with \emph{zero} $L$-loss. This exponent is matched by any ideal Prouhet--Tarry--Escott (PTE) solution of size $k$ (known for $k \le 10$ and $k = 12$~\cite{BorweinIngalls94}), and we establish both the exact exponent and exact asymptotic constant from both sides in Lean~4 for $k = 2$ and $k = 3$: \[ \frac{1}{4}\,(m + L)^{-3/2} \;\le\; r_{[m, m + L]}(2) \;\le\; \frac{1}{4}\, m^{-3/2} \qquad (2 \le L \le m^{1/2}), \] \[ \frac{3}{4}\,(m + L)^{-5/2} \;\le\; r_{[m, m + L]}(3) \;\le\; \frac{3}{4}\, m^{-5/2} \qquad (4 \le L \le m^{1/3}). \] The exact $k = 3$ lower constant $3/4$ rests on an elementary proof that every integer PTE pair $(u, v) \in \Z^3 \times \Z^3$ with matching $p_1, p_2$ and $e_3(u) \ne e_3(v)$ satisfies $|e_3(v) - e_3(u)| \ge 4$, combined with cubic root interlacing and a pure Rolle-theorem $3$-convexity inequality (zero integration) applied to $\phi(x) = \sqrt{x} - \frac{1}{16} n^{-5/2} x^3$. Consequently, any construction achieving separation $o_k(n^{-(k - 1/2)})$ must use a window of width $L = \Omega_k(n^{1/(k+1)})$ ($L > m^{1/2}$ at $k = 2$, $L > m^{1/3}$ at $k = 3$). \item \textbf{Unconditional All-$k$ Spread-$L$ Bounds via Balanced Parseval Identities.} For arbitrary window widths $L \ge 1$ beyond the narrow-window threshold (such as $L \asymp n^{1/2}$), we prove the exact Balanced Parseval identity and deduce for every $k \ge 2$, $m \ge 1$, $L \ge 1$ ($n = m + L$) an unconditional saving of all $N_{\mathrm{bal}}(k) = \frac{1}{2}\binom{2k}{k} - 1$ integer powers of $n$: \[ r_{[m, m + L]}(k) \;\ge\; \frac{(\sqrt{m + L} + \sqrt{m})^{N_{\mathrm{bal}}(k)}}% {K_{\mathrm{bal}}(k)\, K_{\mathrm{unbal}}(k)\, n^{U(k)/2}\, L^{N_{\mathrm{bal}}(k)}} \;\ge\; \frac{1}{K_{\mathrm{bal}}(k)\, K_{\mathrm{unbal}}(k)\, n^{(2^{2k-1} - \binom{2k}{k} + 1)/2}\, L^{N_{\mathrm{bal}}(k)}}, \] boosted by $2^{2^{2k-2}}$ under even parity $\sum a_i \equiv \sum b_j \pmod{2}$. This yields $n^{-3/2} L^{-2}$ at $k = 2$ ($+1$ power over v2), $n^{-13/2} L^{-9}$ at $k = 3$ ($63.48\times$--$32\,504\times$ sharper constant than v2), and $n^{-59/2} L^{-34}$ at $k = 4$ ($+9$ powers of $n$ over v2). \item \textbf{Improved Generic Norm-Method Constants: Bipartite SOS and Exact $k = 3$ Norm-Method Floors ($1/5980$ and $65\,536/5980$).} Without structural hypotheses on the inputs, the generic exponent remains the classical half-norm exponent $-(2^{2k-2} - \frac{1}{2})$. Within the norm method, a one-line matrix Sum-of-Squares inequality $R_2 + S_2 \le p + p^2$ lowers the universal all-$k$ base from v2's $2k n$ to $\frac{3}{2} k n$ (and from $k n$ to $\frac{3}{4} k n$ under even parity) for all $k \ge 2$: \[ r(n, k) \;\ge\; \frac{1}{2e}\left(\frac{3}{2} k n\right)^{-(2^{2k-2} - 1/2)}, \qquad |\Delta|_{\mathrm{even}} \;\ge\; \frac{1}{\sqrt{2}\,e}\left(\frac{3}{4} k n\right)^{-(2^{2k-2} - 1/2)}, \] improving on v2 by $26.20\times$ at $k = 3$, $2.60 \times 10^7\times$ at $k = 4$, and $2.53 \times 10^{31}\times$ at $k = 5$. At $k = 3$, closing $n \le 6$ via $3$- and $5$-smooth bounds tightens both unconditional all-$n$ norm-method floors from $5981$ to the exact integer ceiling $\lceil \Phi_3(s^*) \rceil = 5980$: $r(n, 3) \ge \frac{1}{5980}\, n^{-31/2}$ and $|\Delta|_{\mathrm{even}} \ge \frac{16384}{1495}\, n^{-31/2}$. \item \textbf{Lean~4 Formalization of Cheng's Multiplicative-Basis Theorem and Galois-Tower Refinements.} Using a pure finite-rank $\Z$-algebra $\mathrm{SqrtTower}(d)$ (zero Galois-theory imports), we formalize Cheng's multiplicative-basis separation theorem~\cite{Cheng06,ChengLi11} ($|\Delta| \ge (2k\sqrt{n})^{-(2^d - 1)}$ for inputs generated multiplicatively by a basis of size $d$, including $P$-smooth integers with $d = \pi(P)$) and extend the formalization with a $2^{2^{d-1}}$-fold even-parity boost and odd-hyperplane degree halving ($n^{-(2^{d-2}-1/2)}$ under even-size square relations). \end{enumerate} \end{abstract} \maketitle %------------------------------------------------------------------------------- \section{Introduction} %------------------------------------------------------------------------------- The \emph{Sum-of-Square-Roots} (SSR) problem asks to determine the sign of \[ \Delta \;=\; \sum_{i=1}^k \sqrt{a_i} - \sum_{j=1}^k \sqrt{b_j}, \qquad a_i, b_j \in \{1, 2, \dots, n\}, \] a classic open bottleneck in exact computational geometry (Problem~33 of The Open Problems Project~\cite{TOPP33}). Sign determination via numerical approximation requires a rigorous positive lower bound on \[ r(n, k) \;=\; \min \left\{ \left|\sum_{i=1}^k \sqrt{a_i} - \sum_{j=1}^k \sqrt{b_j}\right| > 0 \;:\; 1 \le a_i, b_j \le n \right\}, \] and, for clustered inputs confined to a window $[m, m + L]$ ($n = m + L$), on the windowed separation function \[ r_{[m, m + L]}(k) \;=\; \min \left\{ \left|\sum_{i=1}^k \sqrt{a_i} - \sum_{j=1}^k \sqrt{b_j}\right| > 0 \;:\; m \le a_i, b_j \le m + L \right\}. \] The classical algebraic-norm / BFMS bound~\cite{BFMS00} multiplies all $2^{2k-1}$ half-norm conjugates (an integer of absolute value $\ge 1$ in the non-degenerate case) and bounds each of the remaining $2^{2k-1} - 1$ conjugates by $2k\sqrt{n}$: \begin{equation}\label{eq:bfms} r(n, k) \;\ge\; (2k \sqrt{n})^{-(2^{2k-1} - 1)} \;=\; (2k)^{-(2^{2k-1} - 1)}\, n^{-(2^{2k-2} - 1/2)}. \end{equation} On the constructive upper-bound side, Ronald Graham observed $r(n, k) = O(n^{-(k - 1/2)})$ via Prouhet--Tarry--Escott (PTE) identities (as noted in~\cite{QianWangISORA06,Steinerberger24}); Qian and Wang~\cite{QianWang06,QianWangISORA06} proved $r(n, k) = O(n^{-2k + 3/2})$ using linear radicands (including the $k = 2$ upper witness $|\sqrt{m} - 2\sqrt{m+1} + \sqrt{m+2}| < \frac{1}{4} m^{-3/2}$ in~\cite[Lemma~1]{QianWangISORA06}), recently tightened by a full factor of $n$ to $r(n, k) = O(n^{-2k + 1/2})$ via quadratic radicands (formalized in Lean~4 through $k = 5$ and constructed through $k = 6$ in~\cite{BesevicUpperV3}, while M.~Glisse's tables~\cite{TOPP33} record exact optimal $k = 2$ values up to $n = 312\,563$). On the lower-bound side for small integers, Cheng~\cite{Cheng06} and Cheng--Li~\cite{ChengLi11} proved multiplicative-basis bounds yielding $R(n, k) = 2^{O(n/\log n)}$ for $n \le c k \log k$, and Cheng--Meng--Sun--Chen~\cite{ChengMengSunChen10} introduced lattice-reduction lower bounds. \subsection{Scope and Structure of the Results} A fundamental exponential gap persists between the generic norm-method lower exponent $-E_k := -(2^{2k-2} - \frac{1}{2})$ and the linear constructive upper exponent $-2k + \frac{1}{2}$. Without hypotheses on the inputs, the generic lower bounds in Sections~\ref{sec:bipartite} and~\ref{sec:k3} retain the classical exponent $-E_k$ and improve only the multiplicative constants (achieving the exact integer ceiling $1/5980$ for the norm method at $k = 3$, not for the true value of $r(n, 3)$ itself, which is orders of magnitude larger). The central structural contribution of this paper is our \textbf{two-regime analysis of windowed inputs $a_i, b_j \in [m, m + L]$} (Sections~\ref{sec:narrow} and~\ref{sec:spread}): \begin{itemize} \item In the \emph{narrow-window regime} ($2k\, L^{k+1} \le m$ for general $k$, $L \le m^{1/2}$ for $k = 2$, and $L \le m^{1/3}$ for $k = 3$), Section~\ref{sec:narrow} proves a \textbf{linear exponent $-(k - \frac{1}{2})$ completely independent of $L$}. The upper-bound link between small SSR gaps and Prouhet--Tarry--Escott (PTE) identities is due to Ronald Graham (see~\cite{QianWangISORA06,Steinerberger24}), and the $k = 2$ upper constant $1/4$ already appears in~\cite[Lemma~1]{QianWangISORA06}; here we prove the \emph{matching lower bounds over the entire narrow window} via Newton power-sum divisibility and Rolle $3$-convexity. Our exponent $-(k - \frac{1}{2})$ is matched with exact asymptotic constants $1/4$ ($k = 2$) and $3/4$ ($k = 3$) from both sides in Lean~4, and is optimal in exponent for every $k$ admitting an ideal PTE solution of size $k$ (known for $k \le 10$ and $k = 12$~\cite{BorweinIngalls94}). Because known small-gap constructions~\cite{QianWang06,QianWangISORA06,BesevicUpperV3} place all $2k$ radicands inside a localized window around a large base $m$, this proves an explicit lower threshold $L = \Omega_k(n^{1/(k+1)})$ ($L > m^{1/2}$ at $k = 2$, $L > m^{1/3}$ at $k = 3$) on the window width required to beat $n^{-(k - 1/2)}$. \item In the complementary \emph{wide-window regime} (arbitrary $L \ge 1$, including $L \asymp n^{1/2}$), Section~\ref{sec:spread} proves an unconditional all-$k$ Spread-$L$ bound via the Balanced Parseval identity, saving $N_{\mathrm{bal}}(k) = \frac{1}{2}\binom{2k}{k} - 1$ powers of $n$ for every $k \ge 2$. \end{itemize} \begin{table}[ht] \centering \caption{Summary of results in this paper versus classical BFMS~\eqref{eq:bfms} and v2~\cite{BesevicSSRK3v2}. All bounds are machine-checked in Lean~4.36.0 (59 theorems).} \label{tab:overview} \resizebox{\textwidth}{!}{% \begin{tabular}{@{}llll@{}} \toprule Regime & BFMS~\eqref{eq:bfms} & v2~\cite{BesevicSSRK3v2} & v3 (this paper) \\ \midrule Narrow window, all $k$ ($2k L^{k+1} \le m$) & $n^{-E_k}$ & --- & $\mathbf{\frac{k}{2}|\binom{1/2}{k}|\, m^{-(k-1/2)}}$ (linear exp., indep.\ of $L$; opt.\ for ideal PTE $k$) \\ Narrow window, $k = 2$ ($2 \le L \le m^{1/2}$) & $4^{-7} n^{-7/2}$ & --- & $\mathbf{\frac{1}{4}(m+L)^{-3/2} \le r \le \frac{1}{4} m^{-3/2}}$ (exact exp.\ \& const $1/4$) \\ Narrow window, $k = 3$ ($4 \le L \le m^{1/3}$) & $6^{-31} n^{-31/2}$ & --- & $\mathbf{\frac{3}{4}(m+L)^{-5/2} \le r \le \frac{3}{4} m^{-5/2}}$ (exact exp.\ \& const $3/4$) \\ Spread-$L$ (all $L \ge 1$), $k = 2, 3, 4$ & $n^{-E_k}$ & $k=3$ only & All $k \ge 2$: $n^{-3/2}L^{-2}$, $n^{-13/2}L^{-9}$ ($63\times$--$32\,504\times$), $n^{-59/2}L^{-34}$ \\ All $k \ge 2$ generic (norm const) & $(2k)^{-2E_k} n^{-E_k}$ & $e^{-1/2}(2kn)^{-E_k}$ & $\mathbf{\frac{1}{2e}(\frac{3}{2}kn)^{-E_k}}$ ($26.2\times$ at $k=3$, $2.60\times 10^7\times$ at $k=4$) \\ All $k \ge 2$ even parity (norm const) & $(2k)^{-2E_k} n^{-E_k}$ & $\sqrt{2/e}\,(kn)^{-E_k}$ & $\mathbf{\frac{1}{\sqrt{2}\,e}(\frac{3}{4}kn)^{-E_k}}$ ($10^{83.81}\times$ BFMS at $k=4$) \\ $k = 3$ norm-method floor (gen.\ / even) & $6^{-31} n^{-31/2}$ & $\frac{1}{5981} / \frac{65536}{5981}$ & $\mathbf{\frac{1}{5980} / \frac{16384}{1495}}\, n^{-31/2}$ (exact norm-method ceiling) \\ $\F_2$-rank $d$ tower (Cheng~\cite{Cheng06}) & $n^{-E_k}$ & $r = 1$ only & Lean~4 form.\ of Cheng~\cite{Cheng06} ($P$-sm); parity \& odd-hyperplane ($-E_{d-1}$) \\ \bottomrule \end{tabular}} \end{table} %------------------------------------------------------------------------------- \section{Narrow-Window Separation for All $k \ge 1$ and Exact Constants for $k = 2, 3$}\label{sec:narrow} %------------------------------------------------------------------------------- Suppose $a_1, \dots, a_k, b_1, \dots, b_k \in [m, m + L]$ with $m \ge 1$, $L \ge 1$, and write $u_i = a_i - m \in [0, L]$, $v_j = b_j - m \in [0, L]$. In the narrow-window regime, norm-method bounds overpredict the sensitivity to both $k$ (exponential vs.\ linear exponent) and $L$ (introducing spurious factors $L^{-N_{\mathrm{bal}}}$). Instead, Newton's power-sum identities force a non-vanishing integer moment of order $r \le k$ that strictly dominates the alternating Taylor remainder of $\sqrt{1 + t}$. \subsection{Pure $\Z[X]$ Newton Power-Sum Divisibility} For $u : \mathrm{Fin}\, k \to \Z$, let $p_r(u) = \sum_{i=1}^k u_i^r$, let $P_u(X) = \prod_{i=1}^k (X - u_i) \in \Z[X]$, and let $s_j(u) = [X^{k - j}] P_u(X)$ ($s_0(u) = 1$, $s_j(u) = (-1)^j e_j(u)$). \begin{lemma}[{Pure $\Z[X]$ Newton Identity and First Nonzero Moment}] \label{lem:newton} (Lean: \texttt{newton\_identity\_int}, \texttt{newton\_first\_nonzero\_power\_sum}.) \begin{enumerate} \item For every $u : \mathrm{Fin}\, k \to \Z$ and every $1 \le m \le k$, \begin{equation}\label{eq:newton} \sum_{j=0}^{m - 1} s_j(u)\, p_{m - j}(u) + m\, s_m(u) \;=\; 0. \end{equation} \item If $u, v : \mathrm{Fin}\, k \to \Z$ satisfy $\sum_{i=1}^k f(u_i) \ne \sum_{j=1}^k f(v_j)$ for some function $f : \Z \to \R$, then there exists a smallest integer $r \in \{1, \dots, k\}$ such that $p_s(u) = p_s(v)$ for all $1 \le s < r$, $p_r(u) \ne p_r(v)$, and $r \mid (p_r(u) - p_r(v))$ (in particular, $|p_r(u) - p_r(v)| \ge r$). \end{enumerate} \end{lemma} \begin{proof} For $1 \le m < k$, write $P_u(X) = (X - u_i) Q_i(X)$. Equating coefficients of $X^{k - j}$ yields by induction $[X^{k - 1 - m}] Q_i(X) = \sum_{j=0}^m s_j(u) u_i^{m - j}$. Summing over $i = 1, \dots, k$ and comparing with the coefficient of $X^{k - 1 - m}$ in $P_u'(X) = \sum_{i=1}^k Q_i(X)$ gives $(k - m) s_m(u) = \sum_{j=0}^m s_j(u) p_{m - j}(u)$, which rearranges to~\eqref{eq:newton} since $p_0(u) = k$. For $m = k$, summing $P_u(u_i) = 0$ over $i = 1, \dots, k$ directly gives~\eqref{eq:newton}. For~(2), if $P_u = P_v$ then their root multisets coincide, contradicting $\sum f(u_i) \ne \sum f(v_j)$. Taking the smallest $r \in \{1, \dots, k\}$ with $s_r(u) \ne s_r(v)$, strong induction via~\eqref{eq:newton} yields $p_s(u) = p_s(v)$ for all $1 \le s < r$, and subtracting~\eqref{eq:newton} at $m = r$ gives $p_r(u) - p_r(v) = r(s_r(v) - s_r(u)) \ne 0$. \end{proof} \subsection{Exact Alternating Taylor Remainder for $\sqrt{1 + t}$} Let $c_r = \binom{1/2}{r}$ and $R_d(t) = \sqrt{1 + t} - \sum_{r=0}^d c_r t^r$. \begin{lemma}[Alternating Taylor Remainder Bounds] \label{lem:taylor-rem} (Lean: \texttt{sqrt\_one\_add\_taylor\_rem\_bounds}.) For every integer $d \ge 0$ and every real $t \ge 0$, \begin{equation}\label{eq:taylor-rem} 0 \;\le\; (-1)^d R_d(t) \;\le\; |c_{d + 1}|\, t^{d + 1}. \end{equation} \end{lemma} \begin{proof} Define $E_d(\alpha, t) := (-1)^d \bigl((1 + t)^{-\alpha} - \sum_{r=0}^{d-1} \binom{-\alpha}{r} t^r\bigr)$ for $\alpha > 0$, $t \ge 0$. Since $E_0(\alpha, t) = (1 + t)^{-\alpha} \ge 0$, $E_{d+1}(\alpha, 0) = 0$, and $\frac{\partial}{\partial t} E_{d+1}(\alpha, t) = \alpha\, E_d(\alpha + 1, t)$, induction on $d$ gives $E_d(\alpha, t) \ge 0$ for all $d \ge 0$. Setting $F_d(t) := (-1)^d R_d(t)$, we have $F_d(0) = 0$ and $F_d'(t) = \frac{1}{2} E_d(1/2, t) \ge 0$, so $F_d(t) \ge 0$ for every $d \ge 0$. Finally, $F_d(t) + F_{d+1}(t) = (-1)^d c_{d+1} t^{d+1} = |c_{d+1}| t^{d+1}$ with $F_{d+1}(t) \ge 0$ gives $F_d(t) \le |c_{d+1}| t^{d+1}$. \end{proof} \subsection{Main Narrow-Window Theorems and Two-Sided Sharpness} \begin{theorem}[Universal All-$k$ Narrow-Window Lower Bound] \label{thm:narrow-allk} (Lean: \texttt{all\_k\_narrow\_window\_newton\_taylor}.) Let $k \ge 1$, $m \ge 1$, $L \ge 1$ satisfy $2k\, L^{k + 1} \le m$. For all integers $a_1, \dots, a_k, b_1, \dots, b_k \in [m, m + L]$ with $\Delta = \sum_{i=1}^k \sqrt{a_i} - \sum_{j=1}^k \sqrt{b_j} \ne 0$, \begin{equation}\label{eq:narrow-allk} |\Delta| \;\ge\; \frac{k\, \bigl|\binom{1/2}{k}\bigr|}{2\, m^{k - 1}\sqrt{m}} \;=\; \frac{k}{2}\left|\binom{1/2}{k}\right| m^{-(k - 1/2)}. \end{equation} In particular, $r_{[m, m + L]}(k) = \Omega_k(m^{-(k - 1/2)})$ with zero dependence on $L$ throughout $L \le (m / (2k))^{1/(k+1)}$. \end{theorem} \begin{remark}[Sharpness, Graham's PTE Bound, and Ideal PTE Solutions] \label{rem:pte} The constructive upper bound $O_k(n^{-(k - 1/2)})$ obtained by applying Prouhet--Tarry--Escott (PTE) identities to square roots is due to Ronald Graham (see Qian--Wang~\cite{QianWangISORA06} and Steinerberger~\cite{Steinerberger24}). Specifically, any \emph{ideal} PTE solution of size $k$ --- two multisets $\{u_1, \dots, u_k\} \ne \{v_1, \dots, v_k\} \subset [0, L_k]$ matching all power sums $p_1, \dots, p_{k-1}$ --- yields an upper bound $r_{[m, m + L]}(k) \le O_k(m^{-(k - 1/2)})$ for $L \ge L_k$, matching the exponent of Theorem~\ref{thm:narrow-allk}. Ideal PTE solutions are currently known for $k \le 10$ and $k = 12$~\cite{BorweinIngalls94}; thus the exponent $-(k - \frac{1}{2})$ is proved optimal for $k = 2, 3$ in Lean~4 below, is optimal for every $k$ admitting an ideal PTE solution (in particular $k \le 10$ and $k = 12$), and remains conditional on the existence of ideal PTE solutions for general $k$. \end{remark} \begin{proof} Set $u_i = a_i - m, v_j = b_j - m \in [0, L]$ and apply Lemma~\ref{lem:newton}(2) with $f(z) = \sqrt{m + z}$ to obtain the smallest $r \in \{1, \dots, k\}$ with $M_r := p_r(u) - p_r(v) \ne 0$ and $|M_r| \ge r$. Expanding $\sqrt{m + u_i} = \sqrt{m}\bigl(\sum_{s=0}^r c_s (u_i/m)^s + R_r(u_i/m)\bigr)$ cancels all powers $s < r$ identically, leaving \[ \Delta \;=\; \sqrt{m}\left(c_r \frac{M_r}{m^r} + R_{\mathrm{diff}}\right), \qquad R_{\mathrm{diff}} := \sum_{i=1}^k R_r(u_i / m) - \sum_{j=1}^k R_r(v_j / m). \] By Lemma~\ref{lem:taylor-rem}, every term $(-1)^r R_r(u_i / m)$ and $(-1)^r R_r(v_j / m)$ lies in $[0, |c_{r+1}| (L/m)^{r+1}]$, so their $k$-term difference satisfies $|R_{\mathrm{diff}}| \le k\, |c_{r+1}| (L / m)^{r+1}$ (saving a factor of $2$ from same-sign cancellation). Using $|c_{r+1}| \le |c_r|$ and $k L^{r+1} / m \le k L^{k+1} / m \le 1/2 \le r/2$, we obtain $|R_{\mathrm{diff}}| \le \frac{r |c_r|}{2 m^r}$, hence \[ |\Delta| \;\ge\; \sqrt{m}\left(\frac{r |c_r|}{m^r} - \frac{r |c_r|}{2 m^r}\right) \;=\; \frac{r |c_r|}{2}\, m^{1/2 - r} \;\ge\; \frac{k |c_k|}{2}\, m^{1/2 - k}, \] since $r |c_r|$ is decreasing in $r \ge 1$ and $m \ge 1$. \end{proof} At $k = 2$, the upper witness $|\sqrt{m} - 2\sqrt{m + 1} + \sqrt{m + 2}| < \frac{1}{4} m^{-3/2}$ already appears in Qian and Wang~\cite[Lemma~1]{QianWangISORA06}. An exact rationalized lower-bound analysis removes the $L^3 \lesssim m$ restriction and matches this constant $1/4$ over the entire window $L \le \sqrt{m}$: \begin{theorem}[Exact Two-Sided $k = 2$ Narrow-Window Separation up to $L \le \sqrt{m}$] \label{thm:narrow-k2} (Lean: \texttt{k2\_narrow\_window\_exact\_quarter}, \texttt{k2\_narrow\_window\_upper\_sharp}.) \begin{enumerate} \item For all $m \ge 1$, $L \ge 1$ with $L^2 \le m$, and all $a_1, a_2, b_1, b_2 \in [m, m + L]$ with $\Delta = \sqrt{a_1} + \sqrt{a_2} - \sqrt{b_1} - \sqrt{b_2} \ne 0$, \[ |\Delta| \;\ge\; \frac{1}{4\, (m + L)\sqrt{m + L}} \;=\; \frac{1}{4}\, n^{-3/2}. \] \item (Upper bound after~\cite[Lemma~1]{QianWangISORA06}) For every $m \ge 1$ (realized whenever $L \ge 2$), the instance $\{m, m + 2\}$ vs.\ $\{m + 1, m + 1\}$ satisfies \[ \frac{1}{4\, (m + 2)^{3/2}} \;\le\; 2\sqrt{m + 1} - \sqrt{m} - \sqrt{m + 2} \;\le\; \frac{1}{4\, m^{3/2}}. \] \end{enumerate} Hence $r_{[m, m + L]}(2) = (\frac{1}{4} + o(1)) n^{-3/2}$ uniformly for $2 \le L = o(m)$ with $L \le \sqrt{m}$. \end{theorem} \begin{proof} For~(1), if $a_1 + a_2 = b_1 + b_2$, then $a_1 a_2 \ne b_1 b_2$ (else $\Delta = 0$), so $|a_1 a_2 - b_1 b_2| \ge 1$ and the exact identity \[ (\sqrt{a_1} + \sqrt{a_2} - \sqrt{b_1} - \sqrt{b_2})(\sqrt{a_1} + \sqrt{a_2} + \sqrt{b_1} + \sqrt{b_2}) (\sqrt{a_1 a_2} + \sqrt{b_1 b_2}) \;=\; 2(a_1 a_2 - b_1 b_2) \] gives $|\Delta| \ge \frac{2}{(4\sqrt{n})(2n)} = \frac{1}{4} n^{-3/2}$ with \emph{no} condition on $L$. If $a_1 + a_2 \ne b_1 + b_2$, the exact identity $\sqrt{m + t} - \sqrt{m} - \frac{t}{2\sqrt{m}} = -\frac{t^2}{2\sqrt{m}(\sqrt{m + t} + \sqrt{m})^2}$ bounds each error in $[0, \frac{L^2}{8 m\sqrt{m}}]$, so the 4-term error has magnitude at most $\frac{L^2}{4 m\sqrt{m}} \le \frac{1}{4\sqrt{m}}$ whenever $L^2 \le m$, leaving $|\Delta| \ge \frac{1}{2\sqrt{m}} - \frac{1}{4\sqrt{m}} = \frac{1}{4\sqrt{m}} \ge \frac{1}{4 n^{3/2}}$. For~(2), rationalizing $( \sqrt{m+1} - \sqrt{m} ) - ( \sqrt{m+2} - \sqrt{m+1} )$ yields \[ 2\sqrt{m + 1} - \sqrt{m} - \sqrt{m + 2} \;=\; \frac{2}{(\sqrt{m + 2} + \sqrt{m})(\sqrt{m + 1} + \sqrt{m})(\sqrt{m + 2} + \sqrt{m + 1})}, \] whose denominator lies in $[8 m^{3/2},\, 8(m + 2)^{3/2}]$. \end{proof} At $k = 3$, Theorem~\ref{thm:narrow-allk} alone leaves an $8\times$ gap between its lower constant $\frac{3}{32}$ (for $6 L^4 \le m$) and the upper constant $\frac{3}{4}$ of the window-width-$4$ PTE witness $\{m + 1, m + 1, m + 4\}$ vs.\ $\{m, m + 3, m + 3\}$. We close this entire $8\times$ factor \emph{and} widen the valid window from $L \le (m/6)^{1/4}$ to $L \le m^{1/3}$ for every $m \ge 1$, pinning down the exact asymptotic constant $3/4$ via three elementary ingredients formalized in \texttt{SSRK3/K3NarrowExact.lean}. \begin{lemma}[Minimal $k = 3$ PTE Gap, Cubic Interlacing, and Rolle $3$-Convexity] \label{lem:k3-3convex} (Lean: \texttt{pte3\_e3\_diff\_ge\_four}, \texttt{cubic\_interlacing\_of\_shift}, \texttt{three\_convex\_sum\_le}.) \begin{enumerate} \item \textbf{(Minimal $e_3$-Gap)} If $u, v \in \Z^3$ satisfy $p_1(u) = p_1(v)$, $p_2(u) = p_2(v)$, and $e_3(u) \ne e_3(v)$, then $|e_3(v) - e_3(u)| \ge 4$ (equivalently $|p_3(v) - p_3(u)| \ge 12$). \item \textbf{(Cubic Root Interlacing)} If $a_1 \le a_2 \le a_3$ and $b_1 \le b_2 \le b_3$ are real numbers with $p_1(a) = p_1(b)$, $p_2(a) = p_2(b)$, and $e_3(b) - e_3(a) = c > 0$, then $a_1 < b_1 \le b_2 < a_2 \le a_3 < b_3$. \item \textbf{(Pure Rolle $3$-Convexity Inequality)} Under the hypotheses of~(2), for any function $\phi \in C^3([a_1, b_3])$ with $\phi'''(x) \ge 0$ on $[a_1, b_3]$, \[ \phi(a_1) + \phi(a_2) + \phi(a_3) \;\le\; \phi(b_1) + \phi(b_2) + \phi(b_3). \] \end{enumerate} \end{lemma} \begin{proof} For~(1), assume $c := e_3(v) - e_3(u) \in \{1, 2, 3\}$ (reversing $u, v$ if needed) and translate by $u_1$, setting $x_i = u_i - u_1$ (so $x_1 = 0$) and $y_j = v_j - u_1$. Then $y_1 y_2 y_3 = e_3(y) - e_3(x) = c$, $x_2 + x_3 = y_1 + y_2 + y_3$, and $x_2^2 + x_3^2 = y_1^2 + y_2^2 + y_3^2$, forcing $(x_2 - x_3)^2 = 2(y_1^2 + y_2^2 + y_3^2) - (y_1 + y_2 + y_3)^2$ to be a perfect square. Up to permutation and even sign flips, the integer factorizations of $c \in \{1, 2, 3\}$ are $(1,1,1)$, $(1,-1,-1)$, $(2,1,1)$, $(2,-1,-1)$, $(-2,1,-1)$, $(3,1,1)$, $(3,-1,-1)$, and $(-3,1,-1)$, whose values of $2\sum y_j^2 - (\sum y_j)^2$ lie in $\{-4, -3, 5, 8, 12, 13, 21\}$ --- none of which is a square! Thus $c \ge 4$. For~(2), let $P(X) = \prod(X - a_i)$ and $Q(X) = \prod(X - b_j) = P(X) - c$. Since $Q(a_i) = -c < 0$ and $Q(x) \to \pm\infty$ as $x \to \pm\infty$, $Q$ changes sign on $(a_3, \infty)$ (forcing $b_3 > a_3$), cannot vanish on $(-\infty, a_1]$ (where $P \le 0$ so $Q \le -c < 0$, forcing $b_1 > a_1$), and cannot vanish on $[a_2, a_3]$ (where $P \le 0$ so $Q \le -c < 0$, forcing $b_1 \le b_2 < a_2$). For~(3), let $q(x)$ be the unique quadratic interpolating $\phi$ at $b_1, b_2, b_3$ (Hermite interpolation $\psi(b_1) = \psi'(b_1) = \psi(b_3) = 0$ if $b_1 = b_2$, and Lagrange interpolation if $b_1 < b_2$), and set $\psi := \phi - q$. Then $\psi''' = \phi''' \ge 0$ on $[a_1, b_3]$. If $\psi(a_i) > 0$ for some $i \in \{1, 2, 3\}$, the interlacing $a_1 < b_1 \le b_2 < a_2 \le a_3 < b_3$ produces four zeros (with multiplicity) of $\psi$ or a sign change forcing three zeros of $\psi'$, two zeros of $\psi''$, and a point where $\psi''' < 0$ by Rolle's theorem, contradiction! Hence $\psi(a_i) \le 0$ for all $i$. Because $\deg q \le 2$ and $p_1(a) = p_1(b)$, $p_2(a) = p_2(b)$, we have $\sum q(a_i) = \sum q(b_j) = \sum \phi(b_j)$, giving $\sum \phi(a_i) - \sum \phi(b_j) = \sum \psi(a_i) \le 0$. \end{proof} \begin{theorem}[Exact Two-Sided $k = 3$ Narrow-Window Separation up to $L \le m^{1/3}$] \label{thm:narrow-k3} (Lean: \texttt{k3\_equal\_p1\_p2\_exact\_three\_quarters}, \texttt{k3\_narrow\_window\_exact\_three\_quarters}, \texttt{k3\_narrow\_window\_upper\_sharp}.) \begin{enumerate} \item \textbf{(Unconditional Equal-Moment Bound)} For every $n \ge 1$ and all $a_1, a_2, a_3, b_1, b_2, b_3 \in [1, n]$ with $p_1(a) = p_1(b)$, $p_2(a) = p_2(b)$, and $\Delta = \sum \sqrt{a_i} - \sum \sqrt{b_j} \ne 0$ (\emph{no window restriction}), \[ |\Delta| \;\ge\; \frac{3}{4\, n^2\sqrt{n}} \;=\; \frac{3}{4}\, n^{-5/2}. \] \item \textbf{(Exact Narrow-Window Lower Bound)} For every $m \ge 1$, every $L \ge 1$ with $L^3 \le m$, and all $a_i, b_j \in [m, m + L]$ with $\Delta \ne 0$, \[ |\Delta| \;\ge\; \frac{3}{4\,(m + L)^2\sqrt{m + L}} \;=\; \frac{3}{4}\, n^{-5/2}. \] \item \textbf{(Matching Upper Witness)} For every $m \ge 1$ (realized whenever $L \ge 4$), the instance $W_3(m) := 2\sqrt{m + 1} + \sqrt{m + 4} - \sqrt{m} - 2\sqrt{m + 3}$ in $[m, m + 4] \subseteq [m, m + L]$ satisfies \[ \frac{3}{4\,(m + 4)^{5/2}} \;<\; W_3(m) \;<\; \frac{3}{4\, m^{5/2}}. \] \end{enumerate} Hence $r_{[m, m + L]}(3) = (\frac{3}{4} + o(1)) n^{-5/2}$ uniformly for $4 \le L = o(m)$ with $L \le m^{1/3}$. \end{theorem} \begin{proof} For~(1), sort $a_1 \le a_2 \le a_3$ and $b_1 \le b_2 \le b_3$; assuming $c := e_3(b) - e_3(a) > 0$ (else swap $a, b$), Lemma~\ref{lem:k3-3convex}(1) gives $c \ge 4$. Apply Lemma~\ref{lem:k3-3convex}(3) to $\phi(x) := \sqrt{x} - \frac{1}{16} n^{-5/2} x^3$, which satisfies $\phi'''(x) = \frac{3}{8}(x^{-5/2} - n^{-5/2}) \ge 0$ on $[1, n]$. This yields \[ \sum_{j=1}^3 \sqrt{b_j} - \sum_{i=1}^3 \sqrt{a_i} \;\ge\; \frac{1}{16\, n^{5/2}}\bigl(p_3(b) - p_3(a)\bigr) \;=\; \frac{3}{16\, n^{5/2}}\bigl(e_3(b) - e_3(a)\bigr) \;\ge\; \frac{3}{4\, n^{5/2}}. \] For~(2), if $p_1(a) = p_1(b)$ and $p_2(a) = p_2(b)$, part~(1) applies directly with $n = m + L$. Otherwise: if $L = 1$, $\Delta$ is a nonzero integer multiple of $\sqrt{m + 1} - \sqrt{m} = (\sqrt{m + 1} + \sqrt{m})^{-1} \ge \frac{3}{4}(m + 1)^{-5/2}$. If $L \ge 2$ (so $m \ge 8$) and $p_1(a) \ne p_1(b)$, order-$1$ Taylor bounds give $|\Delta| \ge \frac{1}{2\sqrt{m}} - \frac{3 L^2}{8 m^{3/2}} \ge \frac{1}{8\sqrt{m}} \ge \frac{3}{4}(m + L)^{-5/2}$ since $L^2 \le L^3 \le m$ and $m + L \ge 10$. If $p_1(a) = p_1(b)$ and $p_2(a) \ne p_2(b)$, for $L = 2$ we have $\Delta = c_2 (2\sqrt{m + 1} - \sqrt{m} - \sqrt{m + 2})$ with $|c_2| \ge 1$, giving $|\Delta| \ge \frac{1}{4}(m + 2)^{-3/2} \ge \frac{3}{4}(m + 2)^{-5/2}$ by Theorem~\ref{thm:narrow-k2}(2); for $L \ge 3$ ($m \ge 27$), $2 \mid (p_2(a) - p_2(b))$ implies $|p_2(a) - p_2(b)| \ge 2$, and Lemma~\ref{lem:taylor-rem} at $d = 2$ bounds the remainder by $\frac{3}{16} (L/m)^3 \le \frac{3}{16 m^2}$, leaving $|\Delta| \ge \sqrt{m}(\frac{1}{4 m^2} - \frac{3}{16 m^2}) = \frac{1}{16 m^{3/2}} \ge \frac{3}{4}(m + L)^{-5/2}$ since $12 m \le m^2 \le (m + L)^2$. For~(3), write $g(x) = 2\sqrt{x + 1} - \sqrt{x} - \sqrt{x + 2}$, so $W_3(m) = g(m) - g(m + 2)$; three applications of the Mean Value Theorem yield $\xi \in (m, m + 4)$ with $W_3(m) = \frac{3}{4}\xi^{-5/2}$. \end{proof} %------------------------------------------------------------------------------- \section{Unconditional All-$k$ Spread-$L$ Bounds via Balanced Parseval Identities} \label{sec:spread} %------------------------------------------------------------------------------- When $L$ exceeds the narrow-window threshold $(m/(2k))^{1/(k+1)}$ --- for example in the regime $L \asymp n^{1/2}$ where constructive upper bounds operate --- Theorem~\ref{thm:narrow-allk} no longer applies because moments of different orders can cancel. In this general regime, we prove an unconditional all-$k$ Spread-$L$ bound valid for \emph{every} $k \ge 2$, $m \ge 1$, and $L \ge 1$, eliminating the even-$k$ pairing loss of v2~\cite{BesevicSSRK3v2}. \begin{theorem}[Balanced Parseval Identity; Lean: \texttt{balanced\_parseval\_identity}] \label{thm:bal-parseval} Let $k \ge 1$, $C = \binom{2k - 1}{k - 1} = \frac{1}{2}\binom{2k}{k}$, and let $\mathrm{Bal}_k \subset \{+1, -1\}^{2k}$ be the set of $C$ sign vectors with $\eps_1 = +1$ and $\sum_{i=1}^{2k} \eps_i = 0$. For every $x = (x_1, \dots, x_{2k}) \in \R^{2k}$, \begin{equation}\label{eq:bal-parseval} \sum_{\eps \in \mathrm{Bal}_k} \left(\sum_{i=1}^{2k} \eps_i x_i\right)^2 \;=\; \frac{C}{2(2k - 1)} \sum_{i=1}^{2k} \sum_{j=1}^{2k} (x_i - x_j)^2. \end{equation} \end{theorem} \begin{proof} Expanding the left-hand side gives $\sum_{i,j} x_i x_j \sum_{\eps \in \mathrm{Bal}_k} \eps_i \eps_j$. The diagonal coefficient is $C$. For $i \ne j$, since $\sum_{j \ne i} \eps_i \eps_j = -1$ for every $\eps \in \mathrm{Bal}_k$ and $\mathrm{Bal}_k \cup (-\mathrm{Bal}_k)$ is $S_{2k}$-invariant, every off-diagonal pair has equal sum $-\frac{C}{2k - 1}$, yielding~\eqref{eq:bal-parseval}. \end{proof} For $x_i = \sqrt{c_i}$ with $c_i \in [m, m + L]$, monotonicity of $\sqrt{\cdot}$ gives $|\sqrt{c_i} - \sqrt{c_j}| \le \sqrt{m + L} - \sqrt{m} = \frac{L}{\sqrt{m + L} + \sqrt{m}} =: D$ (\texttt{pairwise\_sq\_diff\_le}), and Popoviciu's inequality bounds $\sum_{i,j} (x_i - x_j)^2 \le 2 k^2 D^2$. Applying AM--GM separately to the $N_{\mathrm{bal}} = C - 1$ non-target balanced conjugates and the $U = 2^{2k-1} - C$ unbalanced conjugates (via full Walsh--Parseval), together with half-norm integrality, even-parity $2^{2^{2k-2}}$-divisibility, and strong Hamming-halving degeneracy elimination, yields: \begin{theorem}[Unconditional All-$k$ Spread-$L$ Separation] \label{thm:spread-allk} (Lean: \texttt{all\_k\_spread\_lower\_bound}, \texttt{all\_k\_spread\_lower\_bound\_nl}, \texttt{all\_k\_spread\_even\_parity\_lower\_bound}.) Let $k \ge 2$, $m \ge 1$, $L \ge 1$, $n = m + L$, $C = \binom{2k-1}{k-1} = \frac{1}{2}\binom{2k}{k}$, $N_{\mathrm{bal}} = C - 1$, $U = 2^{2k-1} - C$, and $E_n = U - N_{\mathrm{bal}} = 2^{2k-1} - \binom{2k}{k} + 1$. Define \[ K_{\mathrm{bal}}(k) := \left(\frac{C}{C - 1} \cdot \frac{k^2}{2k - 1}\right)^{(C - 1)/2}, \qquad K_{\mathrm{unbal}}(k) := \left(\frac{2^{2k-1}}{U} \cdot 2k\right)^{U/2}. \] For all $a_i, b_j \in [m, m + L]$ with $\Delta = \sum_{i=1}^k \sqrt{a_i} - \sum_{j=1}^k \sqrt{b_j} \ne 0$: \begin{enumerate} \item \textbf{(Sharp $(m, L)$ Form)} \[ |\Delta| \;\ge\; \frac{(\sqrt{m + L} + \sqrt{m})^{N_{\mathrm{bal}}}}% {K_{\mathrm{bal}}(k)\, K_{\mathrm{unbal}}(k)\, n^{U/2}\, L^{N_{\mathrm{bal}}}}. \] \item \textbf{(Pure $(n, L)$ Form)} Since $\sqrt{m + L} + \sqrt{m} \ge \sqrt{n}$, \[ |\Delta| \;\ge\; \frac{1}{K_{\mathrm{bal}}(k)\, K_{\mathrm{unbal}}(k)\, n^{E_n / 2}\, L^{N_{\mathrm{bal}}}}. \] \item \textbf{(Even-Parity $2^{2^{2k-2}}$-Boost)} Whenever $\sum_{i=1}^k a_i \equiv \sum_{j=1}^k b_j \pmod{2}$, the numerator of~(1) is multiplied by $2^{2^{2k-2}}$ ($16\times$ at $k = 2$, $65\,536\times$ at $k = 3$, $2^{64}\times$ at $k = 4$). \end{enumerate} \end{theorem} \begin{table}[ht] \centering \caption{Unconditional all-$k$ Spread-$L$ exponents and constants from Theorem~\ref{thm:spread-allk} versus v2~\cite{BesevicSSRK3v2}.} \label{tab:spread} \resizebox{\textwidth}{!}{% \begin{tabular}{@{}rrrrrll@{}} \toprule $k$ & $C$ & $N_{\mathrm{bal}}$ & $U$ & Bound $n^{-E_n/2} L^{-N_{\mathrm{bal}}}$ & $\log_{10}(K_{\mathrm{bal}} K_{\mathrm{unbal}})$ & Comparison with v2 \\ \midrule 2 & 3 & 2 & 5 & $n^{-3/2} L^{-2}$ & $2.3165$ & $+1$ power of $n$ ($N_{\mathrm{bal}}=2$ vs $1$; Thm~\ref{thm:narrow-k2} drops $L^{-2}$ for $L \le \sqrt{m}$) \\ 3 & 10 & 9 & 22 & $n^{-13/2} L^{-9}$ & $11.7043$ & $63.48\times$ uncond.\ / $32\,504\times$ ($m \gg L$) sharper constant \\ 4 & 35 & 34 & 93 & $n^{-59/2} L^{-34}$ & $54.7619$ & $+9$ powers of $n$ ($N_{\mathrm{bal}}=34$ vs $25$) \\ 5 & 126 & 125 & 386 & $n^{-261/2} L^{-125}$ & $244.6251$ & Full theorem formalized (v2 had count only) \\ \bottomrule \end{tabular}} \end{table} %------------------------------------------------------------------------------- \section{Universal All-$k$ Bipartite Sum-of-Squares Constants}\label{sec:bipartite} %------------------------------------------------------------------------------- We now turn to unconditional bounds with no window restriction. In v2~\cite{BesevicSSRK3v2}, the all-$k$ Parseval--AM--GM bound grouped conjugates into $N^2$ pairs $A_i^2 - B_j^2$ ($N = 2^{k-1}$) and used $|A_i^2 - B_j^2| \le A_i^2 + B_j^2$. Using non-negativity $A_i^2, B_j^2 \ge 0 \implies |A_i^2 - B_j^2| \le \max(A_i^2, B_j^2)$ reduces the base of the universal norm bound from $2k n$ to $\frac{3}{2} k n$ for all $k \ge 2$. \begin{lemma}[Bipartite Matrix SOS Inequality; Lean: \texttt{bipartite\_sos\_matrix\_ineq}] \label{lem:matrix-sos} Let $N \ge 1$ and $M \in [0, 1]^{N \times N}$, with row means $r_i = \frac{1}{N}\sum_j M_{ij}$, column means $s_j = \frac{1}{N}\sum_i M_{ij}$, grand mean $p = \frac{1}{N}\sum_i r_i$, and second moments $R_2 = \frac{1}{N}\sum_i r_i^2$, $S_2 = \frac{1}{N}\sum_j s_j^2$. Then \begin{equation}\label{eq:sos-id} p + p^2 - R_2 - S_2 \;=\; \frac{1}{N^2}\sum_{i,j=1}^N (M_{ij} - r_i - s_j + p)^2 \;+\; \frac{1}{N^2}\sum_{i,j=1}^N M_{ij}(1 - M_{ij}) \;\ge\; 0. \end{equation} \end{lemma} \begin{proof} Expanding the square gives $\frac{1}{N^2}\sum_{i,j} M_{ij}^2 - R_2 - S_2 + p^2$, and adding $\frac{1}{N^2}\sum_{i,j} M_{ij}(1 - M_{ij}) = p - \frac{1}{N^2}\sum_{i,j} M_{ij}^2$ yields~\eqref{eq:sos-id}. Since $M_{ij} \in [0, 1]$, both sums are non-negative. \end{proof} \begin{lemma}[Three-Halves Entropy and Excess Bounds] \label{lem:entropy} (Lean: \texttt{bipartite\_entropy\_three\_halves}, \texttt{bipartite\_alpha\_exp\_bound}.) \begin{enumerate} \item For every $t \in (0, 1)$, $\dfrac{1 - t(1 - t)}{t^t (1 - t)^{1 - t}} \le \dfrac{3}{2}$. \item For every $N \ge 2$ and $\alpha = 1 - \frac{1}{2N^2}$, $\left(\dfrac{\alpha^2 - 2\alpha + 4}{3\alpha^2}\right)^{N^2 \alpha} \le e$. \end{enumerate} \end{lemma} \begin{proof} For~(1), $g(t) = \log(1 - t(1 - t)) - t\log t - (1 - t)\log(1 - t)$ satisfies $g''(t) = \frac{2(1 - t + t^2) - (2t - 1)^2}{(1 - t + t^2)^2} - \frac{1}{t(1-t)} < 0$ on $(0, 1)$ (since $2/(1 - t + t^2) \le 8/3 < 4 \le 1/(t(1-t))$) and $g'(1/2) = 0$, so $g(t) \le g(1/2) = \log(3/2)$. For~(2), setting $x = (1 - \alpha)/\alpha > 0$ gives $N^2 \alpha = 1/(2x)$ and $\frac{\alpha^2 - 2\alpha + 4}{3\alpha^2} = 1 + 2x + \frac{4}{3} x^2 \le 1 + 2x + \frac{(2x)^2}{2} \le e^{2x}$. \end{proof} \begin{proposition}[Core Bipartite Max-Product Bound; Lean: \texttt{bipartite\_max\_prod\_bound}] \label{prop:bipartite-prod} Let $N \ge 2$, $X_i, Y_j \ge 0$ satisfy $\sum_{i=1}^N X_i \le T$ and $\sum_{j=1}^N Y_j \le T$ ($T > 0$), and fix $(i_0, j_0)$. Then \[ \max(X_{i_0}, Y_{j_0})^{1/2} \prod_{(i, j) \ne (i_0, j_0)} \max(X_i, Y_j) \;\le\; e \left(\frac{3}{2} \cdot \frac{T}{N}\right)^{N^2 - 1/2}. \] \end{proposition} \begin{proof} Assign weights $W_{ij} = \frac{1}{2}$ at $(i_0, j_0)$ and $1$ elsewhere ($\sum W_{ij} = N^2 \alpha$, $\alpha = 1 - \frac{1}{2N^2}$), and split $W = M + C$ with $M_{ij} = W_{ij}\mathbf{1}_{X_i \ge Y_j}$. Applying weighted AM--GM twice gives $\prod_i X_i^{w_i} \le (T \sum w_i^2 / W^2)^W$ (\texttt{weighted\_rpow\_prod\_le\_l2\_sum}) on both blocks. Combining with Lemma~\ref{lem:matrix-sos} on $M$ and $C$ bounds the combined geometric mean by $\frac{T}{N} \cdot \frac{\alpha^2 - 2\alpha + 4}{3\alpha^2} \cdot \frac{1 - t(1-t)}{t^t(1-t)^{1-t}}$ ($t = p/\alpha$), and Lemma~\ref{lem:entropy} completes the proof. \end{proof} Applying Proposition~\ref{prop:bipartite-prod} to $X_i = A_i^2$, $Y_j = B_j^2$ ($N = 2^{k-1}$, $T = N k n$ by Parseval, $|A_0 + B_0| \le 2\max(X_0, Y_0)^{1/2}$) together with half-norm integrality, even-parity $2^{2^{2k-2}}$-divisibility, and strong Hamming halving yields: \begin{theorem}[Universal All-$k$ Bipartite SOS Separation Bounds] \label{thm:bipartite-sos} (Lean: \texttt{all\_k\_bipartite\_sos\_lower\_bound}, \texttt{all\_k\_bipartite\_sos\_even\_parity\_lower\_bound}.) For every $k \ge 2$, every $n \ge 1$, and all $1 \le a_i, b_j \le n$ with $\Delta = \sum_{i=1}^k \sqrt{a_i} - \sum_{j=1}^k \sqrt{b_j} \ne 0$: \[ |\Delta| \;\ge\; \frac{1}{2e}\left(\frac{3}{2}\, k n\right)^{-(2^{2k-2} - 1/2)}, \qquad\text{and if }\sum a_i \equiv \sum b_j \pmod{2}:\qquad |\Delta| \;\ge\; \frac{1}{\sqrt{2}\,e}\left(\frac{3}{4}\, k n\right)^{-(2^{2k-2} - 1/2)}. \] \end{theorem} \begin{table}[ht] \centering \caption{Constant-factor gains of Theorem~\ref{thm:bipartite-sos} over v2~\cite{BesevicSSRK3v2} and classical BFMS~\eqref{eq:bfms} for $k = 2, \dots, 6$ (same generic exponent $-E_k$).} \label{tab:bipartite} \small \begin{tabular}{@{}rrrrrr@{}} \toprule $k$ & $E_k = 2^{2k-2} - \frac{1}{2}$ & v3 / v2 & $\log_{10}(\text{v3}/\text{v2})$ & $\log_{10}(\text{v3}/\text{BFMS})$ & $\log_{10}(\text{v3}_{\mathrm{even}}/\text{BFMS})$ \\ \midrule 2 & $7/2$ & $0.830\times$ & $-0.0809$ & $1.81$ & $3.01$ \\ 3 & $31/2$ & $26.20\times$ & $1.4184$ & $13.26$ & $18.08$ \\ 4 & $127/2$ & $2.603 \times 10^7\times$ & $7.4154$ & $64.54$ & $83.81$ \\ 5 & $511/2$ & $2.533 \times 10^{31}\times$ & $31.4037$ & $286.69$ & $363.75$ \\ 6 & $2047/2$ & $2.273 \times 10^{127}\times$ & $127.3566$ & $1231.68$ & $1539.94$ \\ \bottomrule \end{tabular} \end{table} %------------------------------------------------------------------------------- \section{Exact $k = 3$ Norm-Method Floors ($1/5980$ and $65\,536/5980$) and the $k = 4$ Slice} \label{sec:k3} %------------------------------------------------------------------------------- As established in~\cite{BesevicSSRK3v2}, on the normalized equal-sum cube $\mathcal{C}_3 = \{u, v \in [0, 1]^3 : \sum u_i = \sum v_j\}$, the 31-conjugate product $\Phi_3(u, v)$ attains its exact global maximum on the boundary ray $u = (s, s, s)$, $v = (3s - 2, 1, 1)$, $s \in (2/3, 1)$, at the unique root $s^* = 0.7809236095488806\ldots$ of $Q_3(s) = 504 s^5 - 1920 s^4 + 2491 s^3 - 1409 s^2 + 344 s - 28 = 0$, where $\Phi_3(s^*) = 5979.859457976716\ldots < 5979.9 < 5980$. Closing $n \in \{2, 3\}$ by $3$-smoothness ($|\Delta| \ge (6\sqrt{n})^{-3}$) and $n \in \{4, 5, 6\}$ by $5$-smoothness ($|\Delta| \ge (6\sqrt{n})^{-7}$), while for $n \ge 7$ the perturbation tail satisfies $\Phi_3(s^*) + 2.2 \times 10^7 \cdot 7^{-16} < 5979.9 + 6.7 \times 10^{-7} < 5980$, tightens v2's unconditional denominator $5981$ to the exact integer ceiling $\lceil \Phi_3(s^*) \rceil = 5980$: \begin{theorem}[Exact Norm-Method Integer-Ceiling Floors for $k = 3$] \label{thm:k3-5980} (Lean: \texttt{k3\_lower\_bound\_all\_n\_5980}, \texttt{k3\_lower\_bound\_even\_parity\_5980}.) For every $n \ge 1$ and all $1 \le a_1, a_2, a_3, b_1, b_2, b_3 \le n$ with $\Delta \ne 0$: \[ |\Delta| \;\ge\; \frac{1}{5980}\, n^{-31/2}, \qquad\text{and if }\sum a_i \equiv \sum b_j \pmod{2}:\qquad |\Delta| \;\ge\; \frac{65536}{5980}\, n^{-31/2} \;=\; \frac{16384}{1495}\, n^{-31/2}. \] \end{theorem} \begin{remark}[Exact $k = 4$ Symmetric Slice $\Phi_4(s)$] Along the analogous $k = 4$ ray $u = (s, s, s, s)$, $v = (4s - 3, 1, 1, 1)$ on $(3/4, 1)$, the 127-conjugate product $\Phi_4(s) = 2^{159} \cdot 3^9 s^{15}(3-s)^4(2-s)^{12}(1-s)^{34}(3-2s)^6(2s-1)^{21}(3s-2)^{12}(3s-1)^{12}(4s-3)(4s-1)^3$ has its unique critical point in $(3/4, 1)$ at the root $s_4^* = 0.8183948680330560\ldots$ of the irreducible octic $Q_4(s) = 13824 s^8 - 118080 s^7 + 396096 s^6 - 676958 s^5 + 638365 s^4 - 335656 s^3 + 94073 s^2 - 12408 s + 540 = 0$, giving $\Phi_4(s_4^*) \approx 8.6938 \times 10^{22}$ (certified in Section~\ref{sec:cert}). \end{remark} %------------------------------------------------------------------------------- \section{Lean 4 Formalization of Cheng's Multiplicative-Basis Theorem and Galois-Tower Refinements} \label{sec:galois} %------------------------------------------------------------------------------- Qi Cheng~\cite[Theorem~1]{Cheng06} (see also Cheng and Li~\cite{ChengLi11}) proved that if the squarefree parts of $a_1, \dots, a_k, b_1, \dots, b_k \in [1, n]$ are generated multiplicatively by a set $B$ of size $d = |B|$, then any nonzero difference satisfies $|\Delta| \ge (2k\sqrt{n})^{-(2^d - 1)}$, so multiplicative structure lowers the separation exponent from $2^{2k-1}$ to $2^d$ (independent of $k$ for $P$-smooth inputs with $d = \pi(P)$). To formalize Cheng's theorem and its $2$-adic/hyperplane refinements inside Lean~4 without field-theoretic imports, we model $\Z[X_0, \dots, X_{d-1}] / (X_0^2 - q_0, \dots, X_{d-1}^2 - q_{d-1})$ directly as the free $\Z$-module $\mathrm{SqrtTower}(d) := (\{0, 1\}^d \to \Z)$ with XOR-convolution multiplication and sign-flip automorphisms $(\sigma_\eps a)(S) = \chi_\eps(S) a(S)$. Any invariant element satisfies $a(S) = 0$ for $S \ne 0$, hence evaluates to $a(0) \in \Z$ (\texttt{tower\_invariant\_is\_int}), and any vanishing conjugate triggers strict $\F_2$-basis descent $r \to r - 1$. \begin{theorem}[Formalization of Cheng's Multiplicative-Basis Bound~\cite{Cheng06} with Parity and Hyperplane Refinements] \label{thm:galois-tower} (Lean: \texttt{galois\_tower\_lower\_bound}, \texttt{galois\_tower\_even\_parity\_lower\_bound}, \texttt{galois\_tower\_odd\_hyperplane\_lower\_bound}.) Let $d \ge 0$, $N \ge 1$, $n \ge 1$, and $c_i = m_i^2 \prod_{j : S_{i,j} = 1} q_j \in [1, n]$ for $i \in \mathrm{Fin}\, N$ with $\Delta = \sum_{i=1}^N \eps_i \sqrt{c_i} \ne 0$. \begin{enumerate} \item \textbf{(Cheng~\cite[Theorem~1]{Cheng06}, plus Even-Parity Boost)} Unconditionally, $|\Delta| \ge (N \sqrt{n})^{-(2^d - 1)} = N^{-(2^d - 1)} n^{-(2^{d-1} - 1/2)}$, with a $2^{2^{d-1}}$-fold boost under even sum $\sum c_i \equiv 0 \pmod 2$ for $d \ge 1, N \ge 2$. \item \textbf{(Odd-Hyperplane Degree Halving)} If $d \ge 2$ and $\chi(S_i) = -1$ for all $i$ for some character $\chi$ (e.g., $r$ independent even-size square relations among $2k$ radicands, $d = 2k - r$), the degree halves to $2^{d-1}$, giving $|\Delta| \ge N^{-(2^{d-1} - 1)} n^{-(2^{d-2} - 1/2)}$. \end{enumerate} \end{theorem} \begin{corollary}[$P$-Smooth Specialization of Cheng's Theorem~\cite{Cheng06,ChengLi11}] \label{cor:psmooth} (Lean: \texttt{p\_smooth\_ssr\_lower\_bound}, \texttt{five\_smooth\_ssr\_lower\_bound}.) If all $2k$ integers $a_i, b_j \in [1, n]$ are $P$-smooth (supported on $d = \pi(P)$ primes), then Theorem~\ref{thm:galois-tower}(1) immediately yields \[ |\Delta| \;\ge\; (2k \sqrt{n})^{-(2^d - 1)} \;=\; (2k)^{-(2^d - 1)}\, n^{-(2^{d-1} - 1/2)} \qquad \forall k \ge 1,\; \forall n \ge 1. \] \end{corollary} Here the base bound $(2k\sqrt{n})^{-(2^d - 1)}$ is Theorem~1 of Cheng~\cite{Cheng06} (applied to $B = \{\text{primes} \le P\}$); our contribution in Section~\ref{sec:galois} is its self-contained zero-Galois-import formalization in Lean~4 together with the even-parity $2^{2^{d-1}}$ boost, odd-hyperplane degree halving, and its application to close the $n \le 6$ base cases of Theorem~\ref{thm:k3-5980}. %------------------------------------------------------------------------------- \section{Formal Verification in Lean 4.36.0 and Pure-Rust Certification} \label{sec:cert} %------------------------------------------------------------------------------- All 59 exported theorems across 12 Lean~4.36.0 modules compile cleanly via \texttt{lake build SSRK3} with zero occurrences of \texttt{sorry}, \texttt{admit}, \texttt{native\_decide}, \texttt{axiom}, \texttt{unsafe}, or \texttt{opaque}, and pass \texttt{lake env lean check\_axioms.lean} with strictly \texttt{[propext, Classical.choice, Quot.sound]} (Table~\ref{tab:lean}). \begin{table}[ht] \centering \caption{Lean~4.36.0 module architecture and axiom audit (59 theorems, 12 modules).} \label{tab:lean} \resizebox{\textwidth}{!}{% \begin{tabular}{@{}l r l@{}} \toprule Module & Thms & Key Exported Results \\ \midrule \texttt{NarrowWindow} (v3) & 8 & \texttt{newton\_identity\_int}, \texttt{all\_k\_narrow\_window\_newton\_taylor}, \texttt{k2\_narrow\_window\_exact\_quarter}, \texttt{k2\_/k3\_narrow\_window\_upper\_sharp} \\ \texttt{K3NarrowExact} (v3) & 5 & \texttt{pte3\_e3\_diff\_ge\_four}, \texttt{cubic\_interlacing\_of\_shift}, \texttt{three\_convex\_sum\_le}, \texttt{k3\_equal\_p1\_p2\_exact\_three\_quarters}, \texttt{k3\_narrow\_window\_exact\_three\_quarters} \\ \texttt{SpreadAllK} (v3) & 6 & \texttt{balanced\_parseval\_identity}, \texttt{all\_k\_spread\_lower\_bound}, \texttt{all\_k\_spread\_lower\_bound\_nl}, \texttt{all\_k\_spread\_even\_parity\_lower\_bound} \\ \texttt{BipartiteSOS} (v3) & 6 & \texttt{bipartite\_sos\_matrix\_ineq}, \texttt{all\_k\_bipartite\_sos\_lower\_bound}, \texttt{all\_k\_bipartite\_sos\_even\_parity\_lower\_bound} \\ \texttt{GaloisTower} (v3) & 7 & \texttt{tower\_invariant\_is\_int}, \texttt{galois\_tower\_lower\_bound}, \texttt{galois\_tower\_odd\_hyperplane\_lower\_bound}, \texttt{p\_smooth\_ssr\_lower\_bound} \\ \texttt{K3Sharp5980} (v3) & 2 & \texttt{k3\_lower\_bound\_all\_n\_5980}, \texttt{k3\_lower\_bound\_even\_parity\_5980} \\ \texttt{PureCertS2} -- \texttt{SpreadAndSubfield} & 25 & Core v1/v2 theorems (\texttt{s2\_cert\_ok} zero axioms, $\Phi_3$ global max, all-$k$ Parseval \& parity) \\ \midrule \textbf{Total} & \textbf{59} & Strictly \texttt{[propext, Classical.choice, Quot.sound]} (0 \texttt{sorry}) \\ \bottomrule \end{tabular}} \end{table} Independently, \texttt{rust-certifier/} certifies the roots of $Q_3(s)$, 2D and 8D Krawczyk enclosures of $\Phi_3$, the degree-8 $k = 4$ slice $Q_4(s)$, and five exact minimal polynomials (degrees $4, 8, 8, 16, 32$) via \texttt{pandroots 0.31.0}, \texttt{pandsysroots 0.34.0}, and \texttt{pandrealpcs 0.31.0} (Table~\ref{tab:rust}), complemented by 250-digit and exhaustive brute-force checks in \texttt{scripts/verify\_claims.py}. \begin{table}[ht] \centering \caption{Independent pure-Rust certificates verified by \texttt{rust-certifier/}.} \label{tab:rust} \resizebox{\textwidth}{!}{% \begin{tabular}{@{}llll@{}} \toprule Target & Engines & Certified Output & Key Metric \\ \midrule $\Phi_3$ quintic $Q_3(s) = 0$ & \texttt{pandroots} + \texttt{pandrealpcs} & 5 simple real roots, unique $s^* \in (2/3, 1)$ & rad $\le 3.49 \times 10^{-12}$ (90 B) \\ $\Phi_3$ 2D interior stratum & \texttt{pandsysroots} (2D Krawczyk) & $s = 0.740148952586$, $v_1 = 0.610223428879$ & $\rho = 1.14 \times 10^{-9}$, $\Phi_3 \approx 29.98$ \\ $\Phi_3$ 8D global extremum & \texttt{pandsysroots} (8D Krawczyk) & $\Phi_3(s^*) \in [5979.859457972, 5979.859457981]$ & $\rho = 4.27 \times 10^{-9} < 5980$ \\ $\Phi_4$ octic $Q_4(s) = 0$ & all 3 + \texttt{BigRational} & 8 simple real roots, unique $s_4^* \in (3/4, 1)$ & $\Phi_4(s_4^*) \approx 8.6938 \times 10^{22}$ \\ MinPoly deg 4, 8, 8, 16, 32 & \texttt{pandroots} + \texttt{pandrealpcs} & 100\% real simple roots, $2$-adic valuations verified & deg $128 \to 8$ ($5$-sm $k=4$), $v_2(p_{32}) = 24 \ge 16$ \\ \bottomrule \end{tabular}} \end{table} %------------------------------------------------------------------------------- \begin{thebibliography}{99} \bibitem{BFMS00} C.~Burnikel, R.~Fleischer, K.~Mehlhorn, and S.~Schirra, \emph{A strong and easily computable separation bound for arithmetic expressions involving radicals}, Algorithmica \textbf{27} (2000), no.~1, 87--99. \bibitem{QianWang06} J.~Qian and C.~A.~Wang, \emph{How much precision is needed to compare two sums of square roots of integers?}, Information Processing Letters \textbf{100} (2006), no.~5, 194--198. \bibitem{QianWangISORA06} J.~Qian and C.~A.~Wang, \emph{An optimal bound for sum of square roots of special type of integers}, in Proc.\ 6th International Symposium on Operations Research and Its Applications (ISORA '06), Lecture Notes in Operations Research \textbf{6} (2006), 131--138. \bibitem{Cheng06} Q.~Cheng, \emph{On comparing sums of square roots of small integers}, in Proc.\ 31st International Symposium on Mathematical Foundations of Computer Science (MFCS 2006), LNCS \textbf{4162}, Springer, 2006, pp.~250--255 (arXiv:cs/0603002). \bibitem{ChengMengSunChen10} Q.~Cheng, X.~Meng, C.~Sun, and J.~Chen, \emph{Bounding the sum of square roots via lattice reduction}, Math.\ Comp.\ \textbf{79} (2010), no.~270, 1109--1122 (arXiv:0905.4487). \bibitem{ChengLi11} Q.~Cheng and Y.-H.~Li, \emph{On the minimum gap between sums of square roots of small integers}, Theoret.\ Comput.\ Sci.\ \textbf{412} (2011), no.~39, 5458--5465. \bibitem{BorweinIngalls94} P.~Borwein and C.~Ingalls, \emph{The Prouhet--Tarry--Escott problem revisited}, L'Enseignement Math\'ematique (2) \textbf{40} (1994), no.~1--2, 3--27. \bibitem{Steinerberger24} S.~Steinerberger, \emph{Sums of square roots that are close to an integer}, arXiv:2401.10152, 2024. \bibitem{TOPP33} E.~D.~Demaine, J.~S.~B.~Mitchell, and J.~O'Rourke (eds.), \emph{The Open Problems Project, Problem 33: Sum of Square Roots} (with optimal $k = 2$ tables by M.~Glisse up to $n = 312\,563$), \url{https://topp.openproblem.net/p33}. \bibitem{BesevicSSRK3v2} I.~Besevic, \emph{Sharp Lower Bounds, Universal Parseval Separation, and Structural Exponent-Breaking for the Sum-of-Square-Roots Problem ($k = 3$ and General $k$) -- Version 2}, GitHub repository \texttt{ivan-fr/ssr-k3-lower-bounds-v2}, 2026. \bibitem{BesevicUpperV3} I.~Besevic, \emph{Breaking the Linear-Ansatz Barrier for the Sum-of-Square-Roots Problem -- Version 3}, GitHub repository \texttt{ivan-fr/sum-of-square-roots-v3}, 2026. \bibitem{Lean4} L.~de~Moura and S.~Ullrich, \emph{The Lean~4 Theorem Prover and Programming Language}, in \emph{Automated Deduction -- CADE 28}, LNCS 12699, Springer, 2021, pp.~625--635. \end{thebibliography} \end{document}