\documentclass[11pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[margin=27mm]{geometry} \usepackage{amsmath,amssymb,amsthm,booktabs,array} \usepackage{microtype} \usepackage[hidelinks]{hyperref} \hypersetup{pdftitle={Deterministic Integer 3SUM in O(n\string^1.999017) Time via a Sharper Binomial-Tail Analysis},pdfauthor={Yuxuan Xu}} \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{corollary}[theorem]{Corollary} \theoremstyle{remark} \newtheorem{remark}[theorem]{Remark} \newcommand{\gam}{\gamma_{\!*}} \newcommand{\Oh}{\mathcal{O}} \newcommand{\Ot}{\widetilde{\mathcal{O}}} \newcommand{\R}{\mathbb{R}} \newcommand{\N}{\mathbb{N}} \newcommand{\ThreeSUM}{\textnormal{3SUM}} \setlength{\emergencystretch}{2em} \title{Deterministic Integer 3SUM in\newline \texorpdfstring{$O(n^{1.999017})$}{O(n\string^1.999017)} Time via a Sharper\newline Binomial-Tail Analysis} % Native contributor name supplied by the submitter: 徐宇轩 \author{Yuxuan Xu\\[3pt] \small School of Computer Science, Wuhan University\\ \small \href{mailto:2024302111072@whu.edu.cn}{\texttt{2024302111072@whu.edu.cn}}\\ \small ORCID: \href{https://orcid.org/0009-0001-8760-5277}{0009-0001-8760-5277}} \date{October 13, 2026} \begin{document} \maketitle \begin{abstract} We refine the analysis of the deterministic integer 3SUM algorithm of Alman and Vassilevska Williams. Within their framework of thin matrix products and reductions through Exact Triangle, we obtain a worst-case running time of $O(n^{1.999017})$ for polynomially bounded integer inputs on a word RAM with $O(\log n)$-bit words. The refinement retains the binomial tail in the preprocessing cost instead of replacing it immediately by a uniform geometric bound. An entropy estimate improves the preprocessing saving exponent while preserving the query algorithm. Explicit rational parameters give a 3SUM exponent of $1.999016414375+o(1)$, leaving a positive margin below the stated fixed exponent. Retuning the previous analysis alone gives $O(n^{1.999073})$. We account for encoding, queries, prime selection, instance construction, witness scanning, and parameter rounding. The numerical inequalities admit exact rational interval certificates. This is an analysis refinement of an existing algorithm and its reductions; no complete Lean formalization of the improved bounds, global optimality, or priority claim is made. \end{abstract} \noindent\textbf{Keywords:} 3SUM; deterministic algorithms; fine-grained complexity; Exact Triangle; thin matrix products; binomial tails.\\ \textbf{MSC 2020:} 68W40, 68Q25. \section{Scope and main result} The deterministic integer 3SUM algorithm of Alman and Vassilevska Williams \cite{AVW} obtains its improvement from computing a sparse set of entries of a thin matrix product. Its data structure separates the work into shared encodings, preprocessing of boxes, and queries. We revisit one estimate of the number of boxes. The underlying identity, data structure, and reductions are all those of \cite{AVW}; the contribution here is a sharper tail estimate and the resulting choice of parameters. Throughout, all logarithms are natural unless a base is displayed. The notation $\Ot$ suppresses powers of logarithms, not fixed positive powers of the input size. Every decimal chosen as a parameter denotes its exact rational value. Constants may depend on fixed parameters and on the fixed exponent bounding the input integers, but not on the input instance or its size. \begin{samepage} \begin{theorem}\label{thm:main} For every fixed integer $\kappa\geq 1$, there is a deterministic word-RAM algorithm deciding 3SUM on $n$ integers of absolute value at most $n^\kappa$ in $O(n^{1.999017})$ worst-case time, with word length $C_\kappa(\log n+1)$ bits for a sufficiently large fixed constant $C_\kappa$. The decision question requires three pairwise distinct input indices; equal values at different indices are permitted. \end{theorem} \end{samepage} This is an ordinary mathematical running-time claim obtained by reanalyzing the cited algorithm. It is not a claim that a new machine-checked theorem has been produced. The formalization accompanying \cite{AVW} is useful for locating the original cost estimates, but has not been rebuilt or extended here. Inputs of size less than three are rejected, and other bounded-size cases in the analysis are handled directly. \section{The inherited algorithmic ingredients}\label{sec:ingredients} We record the precise parts of \cite{AVW} used below, so that the new estimate and the inherited algorithmic claims remain separate. The entries of all matrices in this section are integers of absolute value $N^{O(1)}$. \subsection{The unrelaxed preprocessing cost} Let $m\geq1$, $D=4^m$, $L\geq10m$, and $0\leq t\leq m$. In the notation of \cite[Section 4]{AVW}, set \begin{equation}\label{eq:counts} K=\binom Lm,\qquad N_0=3^{L-m},\qquad M=KN_0^2,\qquad \beta_d=\binom L{m-d}9^{L-m+d}. \end{equation} In particular $M=\beta_0$. A tile is a batch of block products in the $N\times D\times N$ multiplication. The box dynamic program stores sums of encoded leaf products that can be shared between queries. Assume $N\geq\sqrt M$. Lemma 29 and the proof of Theorem 30 of \cite{AVW} give $O(N^2/M)$ tiles and a cost of $O(L(m+1)\sum_{d=t}^m\beta_d)$ for the boxes of each tile. Before bounding the tail geometrically, the total preprocessing cost is therefore \begin{equation}\label{eq:unrelaxed} O\left(\frac{N10^L}{\sqrt M} +\frac{N^2}{M}L(m+1)\sum_{d=t}^m\beta_d\right). \end{equation} The first term also absorbs the construction of input arrays and the list of block-subset assignments, as in that proof. The time per query is \begin{equation}\label{eq:query} O\left(L\sum_{d=0}^t\binom md9^d\right). \end{equation} These are costs of the original deterministic data structure, not a new oracle assumption. The word-size analysis of \cite[Theorem 30]{AVW} continues to apply when its parameters are changed within the stated range. \subsection{The original exponent formula} Define the entropy $H(x)=-x\log x-(1-x)\log(1-x)$, with $H(0)=H(1)=0$. For $c>10$ and $0<\theta<0.9$, let \begin{align} \gamma(c,\theta)&=\frac{\theta\log((c-1)/9)}{\log4},\label{eq:oldgamma}\\ q(\theta)&=\frac{H(\theta)+\theta\log9}{\log4},\label{eq:q}\\ A(c)&=\frac{c\log10-\tfrac12cH(1/c)-(c-1)\log3}{\log4},\label{eq:A}\\ R(c,\gamma)&=\frac1{A(c)+\gamma}.\label{eq:R} \end{align} Corollary 31 of \cite{AVW} gives preprocessing time $O(N^2\log^2 D/D^\gamma)$ and query time $O(D^q\log D)$ when $D\leq N^a$ and $010$ and $0<\theta<0.9$, define \begin{equation}\label{eq:sharp} \gam(c,\theta)= \frac{cH(1/c)-cH((1-\theta)/c)-\theta\log9}{\log4}. \end{equation} \begin{lemma}[Binomial entropy bounds]\label{lem:entropy} For integers $r\geq1$ and $0\leq k\leq r$, writing $p=k/r$, one has \[ \frac{e^{rH(p)}}{r+1}\leq\binom rk\leq e^{rH(p)}. \] \end{lemma} \begin{proof} The cases $k=0,r$ are immediate. Otherwise the probability of $k$ successes in a binomial distribution with parameters $(r,p)$ is $\binom rk p^k(1-p)^{r-k}=\binom rk e^{-rH(p)}$. This probability is at most one. Moreover, the ratio of the probabilities at $j+1$ and $j$ is $(r-j)p/((j+1)(1-p))$. At $p=k/r$, this is greater than one for $j10$ be an integer, $m\geq1$, $L=cm$, $D=4^m$, and $t=\lceil\theta m\rceil$, where $0<\theta<0.9$. With the counts in \eqref{eq:counts}, \begin{equation}\label{eq:tailbound} \frac1M\sum_{d=t}^m\beta_d \leq \frac{cm+1}{1-9/(c-1)}D^{-\gam(c,\theta)}. \end{equation} \end{lemma} \begin{proof} For $1\leq d\leq m$, \[ \frac{\beta_d}{\beta_{d-1}} =\frac{9(m-d+1)}{L-m+d} \leq\frac{9m}{L-m+1}<\rho_c:=\frac9{c-1}<1. \] Summing a geometric majorant starting at $\beta_t$, rather than at $\beta_0$, gives \begin{equation}\label{eq:tailfirst} \sum_{d=t}^m\beta_d\leq\frac{\beta_t}{1-\rho_c}. \end{equation} This includes $t=m$, and $t\leq m$ follows from $\theta<1$. Put $u=t/m$. Applying Lemma~\ref{lem:entropy} to the numerator and denominator in $\beta_t/M=9^t\binom{cm}{m-t}/\binom{cm}m$ gives \[ \frac{\beta_t}{M}\leq(cm+1) \exp\!\left(m\left[cH((1-u)/c)-cH(1/c)+u\log9\right]\right). \] The function $F(u)=cH((1-u)/c)+u\log9$ has derivative \[ F'(u)=\log\!\left(\frac{9(1-u)}{c-1+u}\right)<0\qquad(0\leq u<1), \] and extends continuously to $u=1$. Since $u\geq\theta$, we may replace $F(u)$ by $F(\theta)$ in this upper bound. The result is $\beta_t/M\leq(cm+1)D^{-\gam}$. Combining it with \eqref{eq:tailfirst} proves the claim, including the rounding of $t$. \end{proof} \begin{proposition}\label{prop:strict} For every $c>10$ and $0<\theta<0.9$, $\gam(c,\theta)>\gamma(c,\theta)>0$. \end{proposition} \begin{proof} Both expressions vanish at $\theta=0$, and \[ \frac{\partial\gam}{\partial\theta} =\frac{\log((c-1+\theta)/(9(1-\theta)))}{\log4} >\frac{\log((c-1)/9)}{\log4} =\frac{\partial\gamma}{\partial\theta}>0. \] Integrate from zero to $\theta$. \end{proof} This proposition concerns the preprocessing exponent at fixed parameters. The query and encoding constraints must still be checked to improve 3SUM. \section{Returning the estimate to the data structure} \begin{proposition}\label{prop:inner} Fix an integer $c>10$, $0<\theta<0.9$, and $a>0$ such that \begin{equation}\label{eq:admissible} a(A(c)+\gam(c,\theta))<1. \end{equation} If $D=4^m\leq N^a$, $m\geq1$, and $|W|\leq N^2/\sqrt D$, then the entries in $W$ of an $N\times D\times N$ integer matrix product can be computed deterministically in $O(N^2/D^s)$ time for every fixed \begin{equation}\label{eq:sharps} 00$. Since $N\geq D^{1/a}$, \[ \frac{D^{\gam}10^{cm}}{N\sqrt M} \leq\sqrt{cm+1}\,D^{-\eta}\longrightarrow0 \quad(m\longrightarrow\infty). \] For all sufficiently large $m$, this proves both that the encoding cost is at most $N^2D^{-\gam}$ and that the tile-fit hypothesis holds: indeed, $M\leq10^{cm}$ by the binomial theorem, so \[ \sqrt M\leq\frac{10^{cm}}{\sqrt M} \leq\frac{D^{\gam}10^{cm}}{\sqrt M}\leq N. \] This is an eventual inequality, not merely a comparison of leading exponents. For the finitely many smaller $m$, $D$ is bounded and direct inner products cost $O(N^2/D^s)$ after enlarging the constant. For queries, put $x=(1-\theta)/\theta$, so $9x>1$. The binomial theorem gives \begin{align*} \sum_{d=0}^t\binom md9^d &\leq(9x)^t\sum_{d=0}^m\binom md x^{-d} =(9x)^t(1+1/x)^m\\ &\leq(9x)\exp\!\left(m[H(\theta)+\theta\log9]\right) =(9x)D^{q(\theta)}. \end{align*} Here $t<\theta m+1$ handles the ceiling. Thus all queries together cost $O(N^2D^{q-1/2}\log D)$. The strict gaps in \eqref{eq:sharps} absorb the logarithmic factors in this term and \eqref{eq:boxcost}. The data structure is unchanged. In particular, the integer sizes and deterministic indexing arguments of \cite[Theorem 30]{AVW} still apply. For example, $N\geq N_0=3^{L-m}$ and $L\geq10m$ imply $10^L\leq N^{5/2}$, as in that proof. All relevant values and addresses therefore require $O(\log N)$ bits. \end{proof} \section{Transferring an inner saving to 3SUM}\label{sec:transfer} \begin{proposition}\label{prop:transfer} Suppose a deterministic inner algorithm solves the wanted-entry problem of Section~\ref{sec:reductions} in $O(n^2/D^s)$ for powers of four $D\leq n^a$, where $a,s$ are fixed positive rational numbers, $a<1$, and $s/2<1/2$. Suppose further that \begin{align} \log_2 7+\tfrac32a&<3-as/2,\label{eq:primecondition}\\ 2+a(1+s/2)&<3-as/2.\label{eq:buildcondition} \end{align} Then Exact Triangle has deterministic running time $\Ot(n^{3-as/2})$, and integer 3SUM has deterministic running time $n^{2-as/4+o(1)}$. In particular every fixed $r>2-as/4$ is an attainable 3SUM big-$O$ exponent in this analysis. \end{proposition} \begin{proof} For sufficiently large $n$, let $D$ be the largest power of four not exceeding $n^a$, and put $b=s/2$ and $g=\lceil D^b\rceil$. Then $n^a/40.000004625736072798,\\ \tfrac12-q-s&>0.000013009473913298,\\ 1-a(A+\gam)&>0.000124745694553803. \end{align*} Thus Proposition~\ref{prop:inner} applies. The Exact Triangle exponent is \[ 3-as/2=2.99803282875. \] The prime-selection exponent is less than $2.892329922058$, and the instance-construction exponent is $2.05861717125$, both strictly smaller. The remaining hypotheses of Proposition~\ref{prop:transfer} hold because $00. \] The proposition now yields $O(n^{1.999017})$. \end{proof} For comparison, the retuned case has Exact Triangle exponent $2.9981455445$, prime-selection exponent less than $2.888429922058$, and construction exponent $2.0559044555$. Its target gap is $1.999073-1.99907277225=0.00000022775>0$. \subsection{How the interval certificates are obtained} The parameter checks use rational arithmetic only. For a positive rational $x$, write $x=2^ky$ with $1\leq y\leq2$ and integer $k$. Put $z=(y-1)/(y+1)$, so $0\leq z\leq1/3$. For every positive integer $K$, \begin{equation}\label{eq:logcert} S_K\leq\log y\leq S_K+ \frac{2z^{2K+1}}{(2K+1)(1-z^2)},\qquad S_K=2\sum_{j=0}^{K-1}\frac{z^{2j+1}}{2j+1}. \end{equation} This follows by bounding each denominator in the positive remainder series below by $2K+1$. Use the same enclosure for $\log2$, and combine $\log x=k\log2+\log y$ by interval arithmetic, reversing the endpoints of the $\log2$ interval if $k<0$. Taking $K=48$ gives the certificates above after substituting into \eqref{eq:oldgamma}--\eqref{eq:R} and \eqref{eq:sharp}. Addition, subtraction, multiplication (using the minimum and maximum of the four endpoint products), and reciprocal of intervals avoiding zero preserve enclosure. Every positivity check uses the exact rational lower endpoint. The final decimal display rounds lower endpoints down and upper endpoints up. This procedure specifies finite, reproducible certificates without relying on a floating-point logarithm library. \section{Verification status and provenance} The standard-library Python verifier supplied with the research notes was rerun successfully. It checked all parameter inequalities, the two lower order reduction costs, and the strict target gaps using exact rational intervals. A separately written script, which does not import that verifier, checked the parameters using 90-digit decimal arithmetic. It also checked the entropy inequalities for all $0\leq k\leq r\leq100$ with $r\geq1$ (5,150 pairs), and geometric tail bounds for $c\in\{11,12,21,22,30\}$, $1\leq m\leq80$, $0\leq t\leq m$ (16,600 triples), using exact integers. Additional numerical checks of the complete sharp-tail bound covered $m=1,\ldots,100,200,500,1000$ at the parameters of the main result. These finite checks supplement the proofs; they do not establish an asymptotic theorem on their own. The pinned upstream files consulted were \texttt{Sec4/Lemma29.lean}, \texttt{Sec4/Theorem30.lean}, and \texttt{Sec4/Corollary31.lean} in \cite{formal}. In particular, the proof of \texttt{Theorem30.boxes\_total} first invokes the exact count \texttt{lemma\_29\_count} before applying its geometric relaxation. The machine-level cost proof would have to be reconnected to the sharper count to certify the present result in Lean. No such extension or complete upstream build is claimed here. The manuscript and its submission metadata were prepared using OpenAI Codex from the supplied research notes. Codex was also used to inspect the cited paper and selected upstream source files, rerun the supplied verifier, and write and execute the separate checking script. The submitting contributor reports that they have not yet checked and understood the contribution step by step; the submission therefore declares human understanding as \emph{none}. The automated review described above is not independent human peer review. The detailed provenance of the initial research notes is not reconstructed here. The arithmetic verification does not certify global optimality of these parameters. No exhaustive literature search establishing priority is claimed. The mathematical contribution is the sharpened analysis within the cited framework, not a new tensor, data structure, or reduction. \begin{thebibliography}{9} \raggedright \bibitem{AVW} Josh Alman and Virginia Vassilevska Williams. \emph{Truly Subquadratic 3SUM and Truly Subcubic APSP via Triangles in Sparse Lopsided Graphs}. arXiv:2610.06783v1, 2026. \url{https://arxiv.org/abs/2610.06783v1}. \bibitem{formal} Anthropic. \emph{Truly Subquadratic 3SUM and Truly Subcubic APSP: a Lean 4 formalization}. \texttt{formal-math/3sum-apsp}, commit \texttt{e1a4e6508154ea59f030480661590a9fe3018011}, 2026. \url{https://github.com/anthropics/formal-math/tree/e1a4e6508154ea59f030480661590a9fe3018011/3sum-apsp}. Accessed October 13, 2026. \end{thebibliography} \end{document}