Breaking the Linear-Ansatz Barrier for the Sum-of-Square-Roots Problem: r(n, k) = O(n^{-2k + 1/2}) via Quadratic Radicals, Zero-Mazur p-Adic Elliptic Curves, Lean 4 Formalization (k=2,3,4,5), Explicit k=6, and Certified Rust Verification

Contributed by Ivan Besevic

Version 3 / 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}) (Qian and Wang, Inform. Process. Lett., 2006) using linear radicands. 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 combining 2k - 2 pure terms with a single conjugate pair, yielding r(n, k) = O(n^{-2k + 1/2}) for all k >= 2. In Version 3 (Zenodo v5, DOI 10.5281/zenodo.24746398): (1) we eliminate Mazur's Torsion Theorem from the base curve E_1^(3) (u = -4) by formalizing the elementary p-adic formal-group torsion-free theorem in pure Lean 4.36.0 (EllipticCurve.lean, 1,321 lines, exact doubling 2*P_0 in E_1(Q_137) at p = 137), alongside universal psi_3'(0) and Kronecker density on R/Z; (2) we formalize the global k = 5 upper bound r(n, 5) = O(n^{-19/2}) in Lean 4 (K5UpperBound.lean, 1,289 lines, u = 100/19, nodes <= 1,113 bits); (3) we introduce the Conic Jump (k -> k + 2), yielding a 24-bit k = 4 family (u = -4/11) and an explicit exact rational k = 6 family (u = 100/19, 10 nodes <= 60,502 bits, signature (+6, -4), proving r(n, 6) = O(n^{-23/2})); (4) we formalize the 7-moment k = 3 surface in Lean 4 (SevenMomentSurface.lean) and certify a new real 2-pair + 2-pure (+3, -3) curve at A_2 = 1/4; (5) we provide an independent pure-Rust certifier (pandroots 0.31.0, pandrealpcs 0.31.0, pandsysroots 0.34.0, 7D Krawczyk radius 1.874e-9). Full Lean 4.36.0 library: 5,200 lines, 37 audited declarations strictly on [propext, Classical.choice, Quot.sound]. Code & proofs: https://github.com/ivan-fr/sum-of-square-roots-v3

Author comments: 18 pages. Major v3 revision (Zenodo v5: 10.5281/zenodo.24746398): zero-Mazur p-adic elliptic-curve engine in Lean 4, Lean-verified k = 5, Conic Jump + explicit exact rational k = 6, Lean-verified 7-moment k = 3 surface + new 2-pair+2-pure real curve, pure-Rust certifier (pandroots/pandrealpcs/pandsysroots), expanded referee-grade Tier-2 proof, and cleaned citations. Repo: https://github.com/ivan-fr/sum-of-square-roots-v3

Provenance statement

AI-assisted research and Lean 4.36.0 formalization (Google Antigravity / Gemini) directed and reviewed by the human author (Ivan Besevic). Formalized and kernel-verified in Lean 4.36.0 + Mathlib (5,200 lines, 37 audited declarations strictly on [propext, Classical.choice, Quot.sound], including k = 2, 3, 4, 5, the 7-moment k = 3 surface, and the zero-Mazur p-adic formal-group torsion-free engine in EllipticCurve.lean), alongside an independent pure-Rust certifier (pandroots 0.31.0, pandrealpcs 0.31.0, pandsysroots 0.34.0). Code & proofs: https://github.com/ivan-fr/sum-of-square-roots-v3 | Zenodo v5 DOI: 10.5281/zenodo.24746398 (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.24622398SupersededNov 28, 2026
  3. v3 · 17 pagesSubmitted by Ivan BESEVIC18 pages. Major v3 revision (Zenodo v5: 10.5281/zenodo.24746398): zero-Mazur p-adic elliptic-curve engine in Lean 4, Lean-verified k = 5, Conic Jump + explicit exact rational k = 6, Lean-verified 7-moment k = 3 surface + new 2-pair+2-pure real curve, pure-Rust certifier (pandroots/pandrealpcs/pandsysroots), expanded referee-grade Tier-2 proof, and cleaned citations. Repo: https://github.com/ivan-fr/sum-of-square-roots-v3CurrentDec 02, 2026