Breaking the Linear-Ansatz Barrier for the Sum-of-Square-Roots Problem: r(n, k) = O(n^{-2k + 1/2}) for All k >= 2, Sharp k = 2 Separation Bounds, and Lean 4 Formalization

Contributed by Ivan Besevic ↗

Version 1 / Nov 26, 2026 / CC BY 4.0

Abstract

We prove that for every integer k >= 2, the minimal non-zero separation r(n, k) between two sums of k square roots of integers bounded by n satisfies r(n, k) = O(n^{-2k + 1/2}), improving the 20-year-old constructive upper bound O(n^{-2k + 3/2}) of Qian and Wang (Information Processing Letters, 2006) by a full factor of n for all k >= 2 and matching the birthday-paradox heuristic exponent. We prove that linear radicands hit an insurmountable Vandermonde wall at O(n^{-2k + 3/2}) and bypass it via an even-symmetric quadratic radical ansatz with a single conjugate pair, a universal 3-torsion derivative identity psi_3'(0) = 196608 a delta_Q^10 n_1 c_0^5 != 0, universal R -> infinity nodal scaling limits, Mazur's Torsion Theorem, and Kronecker density. We also provide explicit polynomial families for k = 2, 3, 4, sharp effective lower bounds for k = 2 (r(n, 2) >= 1/(4 n^3 sqrt(n)) for all n >= 1, 4096x sharper than BFMS, and exact asymptotic constant 8/27), an analysis of the 7-moment Diophantine barrier for k = 3 (85.4M candidates tested), and a complete Lean 4.36.0 formalization of our explicit k = 2 and k = 3 theorems (1,222 library lines, zero sorry, zero native_decide, standard axioms [propext, Classical.choice, Quot.sound]).

Author comments: Zenodo v2 preprint (DOI: 10.5281/zenodo.24553430, Concept DOI: 10.5281/zenodo.24553073): https://zenodo.org/records/24553430 (https://doi.org/10.5281/zenodo.24553430). Revised LaTeX source with elliptic torsion fixes and O(e) typo fix. Complete Lean 4.36.0 formalization of explicit k = 2 and k = 3 theorems (1,222 library lines, zero sorry, zero native_decide, standard axioms [propext, Classical.choice, Quot.sound] only) and symbolic / 250-digit Python verification scripts with passing GitHub Actions CI: https://github.com/ivan-fr/sum-of-square-roots

Provenance statement

AI-assisted research and Lean 4.36.0 formalization (Google Antigravity / Gemini) directed and reviewed by the human author (Ivan Besevic). The explicit k = 2 and k = 3 theorems are fully kernel-verified in Lean 4.36.0 (1,222 library lines, zero sorry, zero native_decide, standard axioms [propext, Classical.choice, Quot.sound] only); the general-k theorem is proved classically using Mazur's Torsion Theorem and Kronecker density and verified symbolically and to 250 digits in Python up to k = 8. Code, Lean 4 formalization, and passing GitHub Actions CI: https://github.com/ivan-fr/sum-of-square-roots | Zenodo v2 DOI: 10.5281/zenodo.24553430 (Concept DOI: 10.5281/zenodo.24553073).

Tools used

Lean
LeanVersion 4.36.0 (Mathlib4)
Google
GeminiVersion Antigravity / Gemini
Python
SymPy & mpmathVersion 250-digit precision verification

References

  1. M. R. Garey, R. L. Graham, and D. S. Johnson, Some NP-complete geometric problems , in Proc.\ 8th Annual ACM Symposium on Theory of Computing (STOC), 1976, pp. 10--22.
  2. B. Mazur, Modular curves and the Eisenstein ideal , Publ.\ Math.\ Inst.\ Hautes Études Sci.\ 47 (1977), 33--186.
  3. C. Burnikel, R. Fleischer, K. Mehlhorn, and S. Schirra, A strong and easily computable separation bound for arithmetic expressions involving radicals , Algorithmica 27 (2000), no. 1, 87--99.
  4. J. Qian and C. A. Wang, How much precision is needed to compare two sums of square roots of integers? , Inform.\ Process.\ Lett.\ 100 (2006), no. 5, 194--198.
  5. E. Allender, P. Bürgisser, J. Kjeldgaard-Pedersen, and P. B. Miltersen, On the complexity of numerical analysis , SIAM J.\ Comput.\ 38 (2009), no. 5, 1987--2006.
  6. Q. Cheng, X. Meng, C. Sun, and J. Chen, Bounding the sum of square roots via lattice reduction , Math.\ Comp.\ 79 (2010), no. 270, 1109--1122.
  7. E. D. Demaine, J. S. B. Mitchell, and J. O'Rourke, The Open Problems Project, Problem 33: Sum of Square Roots , https://topp.openproblem.net/p33.link
  8. F. Eisenbrand, M. Haeberle, and N. Singer, An improved bound for the sum-of-square-roots problem via the Subspace Theorem , in Proc.\ 40th International Symposium on Computational Geometry (SoCG 2024), LIPIcs 293 , 2024.

Version history

  1. v1 · 16 pagesSubmitted by Ivan BESEVICZenodo v2 preprint (DOI: 10.5281/zenodo.24553430, Concept DOI: 10.5281/zenodo.24553073): https://zenodo.org/records/24553430 (https://doi.org/10.5281/zenodo.24553430). Revised LaTeX source with elliptic torsion fixes and O(e) typo fix. Complete Lean 4.36.0 formalization of explicit k = 2 and k = 3 theorems (1,222 library lines, zero sorry, zero native_decide, standard axioms [propext, Classical.choice, Quot.sound] only) and symbolic / 250-digit Python verification scripts with passing GitHub Actions CI: https://github.com/ivan-fr/sum-of-square-rootsCurrentNov 26, 2026