Breaking the Linear-Ansatz Barrier for the Sum-of-Square-Roots Problem: r(n, k) = O(n^{-2k + 1/2}) via Quadratic Radicals, Explicit Families (k = 2, 3, 4, 5), Sharp k = 2 Separation Bounds, and Lean 4 Formalization

Contributed by Ivan Besevic

Version 2 / Nov 26, 2026 / CC BY 4.0

Abstract

For integers n >= 1 and k >= 2, let r(n, k) denote the minimal non-zero separation between two sums of k square roots of integers bounded by n. For two decades, the sharpest general-k constructive upper bound has been r(n, k) = O(n^{-2k + 3/2}) by Qian and Wang (2006) using linear radicands (while Qian and Wang noted separately that r(n, 2) = Theta(n^{-7/2})). We explain why linear radicands hit an insurmountable Vandermonde wall at O(n^{-2k + 3/2}) and bypass it via an even-symmetric quadratic radical ansatz. We separate our contributions into two transparent tiers: (1) Tier 1 (explicit, elementary, and machine-checked): sharp effective lower and upper bounds for k = 2 (r(n, 2) >= (1/4) n^{-7/2} for all n >= 1, asymptotic floor (8/27 - O(n^{-4})) n^{-7/2}, and constant-norm M = 82944 family), explicit k = 3 bound O(n^{-11/2}), a new compact explicit k = 4 bound O(n^{-15/2}) at u = 5 (6 rational nodes <= 32 bits, weights <= 177 bits, c = 10), an explicit exact-rational k = 5 family O(n^{-19/2}) verified in SymPy, and the universal algebraic core of the general-k theory — with k = 2, 3, 4 and the universal algebraic lemmas completely formalized and kernel-verified in Lean 4.36.0 + Mathlib (2,231 lines, 21 audited declarations, zero sorry/native_decide, strictly [propext, Classical.choice, Quot.sound]). (2) Tier 2 (proved on paper): r(n, k) = O(n^{-2k + 1/2}) for every k >= 2 via genus-1 quartic curves, Mazur's Torsion Theorem, Kronecker density on E(R)^circ, and dipole opening, strictly improving the best previously known asymptotic exponent for every k >= 3 (the arithmetic-geometric and analytic steps of Tier 2 are proved on paper and not formalized in Lean). We also report exhaustive search records and symbolic verification of the 7-moment k = 3 Diophantine surface.

Author comments: Revised version: two-tier presentation separating Lean-verified Tier 1 (k=2,3,4 + universal algebraic lemmas) and SymPy-verified k=5 from paper-proved Tier 2 (all-k induction); replaced 33,428-bit k=4 witness by compact 32-bit-node u=5 family formalized in Lean 4.36.0; added explicit rational k=5 family and symbolic 7-moment barrier verification; clarified k=2 novelty and real-geometry scope of 250-digit chain. Code & CI: https://github.com/ivan-fr/sum-of-square-roots-v2 | Zenodo v3 DOI: 10.5281/zenodo.24622398

Provenance statement

AI-assisted research and Lean 4.36.0 formalization (Google Antigravity / Gemini) directed and reviewed by the human author (Ivan Besevic). Tier 1 (k = 2, 3, 4 and the universal algebraic lemmas) is completely formalized and kernel-verified in Lean 4.36.0 + Mathlib (2,231 lines, 21 audited declarations, zero sorry, zero native_decide, standard axioms [propext, Classical.choice, Quot.sound] only); the explicit exact-rational k = 5 family and 7-moment k = 3 Diophantine surface are verified in SymPy; Tier 2 (all-k theorem via Mazur's Torsion Theorem and Kronecker density) is proved on paper and not formalized in Lean. Code, Lean 4 formalization, and passing GitHub Actions CI: https://github.com/ivan-fr/sum-of-square-roots-v2 | Zenodo v3 DOI: 10.5281/zenodo.24622398 (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. J. Qian and C. A. Wang, 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 6 (2006), 131--138.
  6. 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.
  7. 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.
  8. Q. Cheng and Y.-H. Li, On the minimum gap between sums of square roots of small integers , Theoret.\ Comput.\ Sci.\ 412 (2011), no. 39, 5458--5465.
  9. 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
  10. 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-rootsSupersededNov 26, 2026
  2. v2 · 19 pagesSubmitted by Ivan BESEVICRevised version: two-tier presentation separating Lean-verified Tier 1 (k=2,3,4 + universal algebraic lemmas) and SymPy-verified k=5 from paper-proved Tier 2 (all-k induction); replaced 33,428-bit k=4 witness by compact 32-bit-node u=5 family formalized in Lean 4.36.0; added explicit rational k=5 family and symbolic 7-moment barrier verification; clarified k=2 novelty and real-geometry scope of 250-digit chain. Code & CI: https://github.com/ivan-fr/sum-of-square-roots-v2 | Zenodo v3 DOI: 10.5281/zenodo.24622398CurrentNov 28, 2026