REVIEW 2 major objections 6 minor 8 cited by
Lean formally verifies the E8 sphere packing theorem in dimension 8
Reviewed by Pith at T0; open to challenge. T0 means a machine referee read the full paper against a public rubric. the ladder, T0–T4 →
T0 review · glm-5.2
2026-07-04 14:17 UTC pith:W4K5ZXVJ
load-bearing objection Sorry-free Lean proof of the E8 sphere packing theorem, with AI autoformalization completing ~40k lines in five days. The artifact is referenced as PR #341 but no repository URL or commit hash is given. the 2 major comments →
Progress in Formalizing Sphere Packing in Dimension 8
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
The central claim is that the eight-dimensional sphere packing theorem — the density of the optimal packing in R^8 equals pi^4/384, achieved by the E8 lattice — has a complete, sorry-free formal proof in Lean. This was achieved through a collaboration between human formalizers who built the foundational definitions and proof infrastructure, and an autoformalization model (Gauss) that completed the remaining proof obligations in five days, roughly tripling the codebase. The key mathematical objects carrying the argument are the Cohn-Elkies linear programming bound (which reduces the packing problem to constructing a function satisfying three analytic conditions), Viazovska's 'magic function'g
What carries the argument
Cohn-Elkies linear programming bound; Viazovska's magic function constructed from quasimodular forms; contour integration identities; modular form dimension formulas
Load-bearing premise
The paper assumes that the Lean kernel's acceptance of the 60,000-line development — including Gauss-generated proofs of contour deformation identities and modular form theory — faithfully represents a mathematically valid proof of the sphere packing theorem, even though the authors acknowledge that the exact correspondence between the autoformalized proofs and the intended mathematical argument has not yet been fully audited.
What would settle it
Discovery that Gauss-generated proofs, while accepted by the Lean kernel, contain type-correct but mathematically vacuous arguments — for example, proofs that exploit unintended behavior of definitions rather than establishing the intended mathematical content — would undermine the claim that the sphere packing theorem has been genuinely formalized.
If this is right
- The formalization provides a machine-checkable proof of the dimension-8 sphere packing result, placing it alongside Hales's formal proof of the Kepler conjecture in dimension 3.
- The success of the human-AI collaboration model suggests that autoformalization can substantially accelerate large-scale formalization projects when built on well-designed human infrastructure.
- The Lean library infrastructure developed (modular forms, complex integration, sphere packing definitions) is reusable for future formalization work in number theory and discrete geometry.
- The dimension-24 sphere packing problem (also solved by Viazovska and collaborators using analogous techniques) is a natural next target for formalization using the infrastructure built here.
Where Pith is reading between the lines
- If Gauss-generated proofs are later found to be formally valid in Lean but mathematically misaligned with the intended argument, this would reveal a subtle but important distinction: a proof can be type-correct and kernel-accepted without faithfully representing the mathematical reasoning it claims to formalize.
- The fact that generating proofs was easier than compressing them suggests that autoformalization models may currently optimize for coverage rather than code quality, which could become a bottleneck as formalized libraries grow.
- The independent development of contour integration machinery by multiple formalization projects suggests that complex analysis infrastructure in proof assistants is reaching a tipping point where rapid formalization of analytic number theory results becomes feasible.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. This paper reports on a milestone in the formalization of Viazovska's sphere packing theorem in dimension 8: a sorry-free Lean proof that the optimal sphere packing in R^8 is the E8 lattice packing, with the final stages completed by Math, Inc.'s autoformalization model 'Gauss.' The paper describes the mathematical background (Cohn-Elkies bounds, the magic function, modular form inequalities), the Lean definitions of sphere packings and density, the contour integration challenges, the modular form theory developed, metaprogramming tactics, and the Gauss autoformalization process. It also discusses remaining project objectives and the correspondence between the formalized and informal proofs.
Significance. A sorry-free formalization of the 8-dimensional sphere packing theorem is a significant achievement for formal mathematics. The paper documents a notable human-AI collaboration in formalization and describes reusable infrastructure (definitions for sphere packings, modular form theory, metaprogramming tactics) that will benefit future work. The falsifiable core claim — that a sorry-free Lean proof exists — is in principle mechanically verifiable. The paper is honest about the state of the project, including the ongoing audit of the Gauss-generated proofs and the stylistic issues in the generated code.
major comments (2)
- The central claim is that a sorry-free formalization exists, but the paper references only 'PR #341' without providing a repository URL or commit hash. The reader cannot independently verify the sorry-free status or inspect the formalization from the information in the paper. For a paper whose primary contribution is the existence of a verified artifact, this is a load-bearing verifiability gap. The authors should provide a permanent, accessible link (e.g., a DOI, a Zenodo archive, or a repository URL with a specific commit hash). Without this, the central claim cannot be checked by readers or referees.
- The paper does not state which axioms are used in the Lean development. A sorry-free proof is only as trustworthy as its axiom basis; the paper should explicitly confirm that only the standard Lean axioms (propext, Classical.choice, Quot.sound) are used, or disclose any additional axioms. This is standard practice in formalization papers and is necessary for the reader to assess the strength of the verification claim.
minor comments (6)
- Reference [4]: 'A First Course in Modular Farms' should read 'A First Course in Modular Forms.'
- The Lean code snippets in Section 2 are rendered with excessive spacing and inconsistent formatting, making them difficult to read. The authors should verify that code blocks render correctly in the final version.
- Section 3 states the development went from 'about 20,000 lines to 80,000 lines' and was then 'reduced to 60,000 lines.' It would help to clarify whether the 60,000-line figure includes the original 20,000 lines of human-written code or refers only to the Gauss contribution after compression.
- Section 4 states that 'new proofs might still be used to complete certain parts of the project.' This phrasing is ambiguous — it could mean that parts of the current sorry-free proof might be replaced. The authors should clarify whether the current artifact is a complete proof as-is, or whether replacements are anticipated for correctness rather than stylistic reasons.
- The paper would benefit from a brief table or paragraph summarizing which PRs correspond to which mathematical components (e.g., PR #229 for the contour deformation, PR #331 for the modular form inequalities), to help readers navigate the development.
- The footnote on page 5 mentions that equivalent results were 'independently proven by contributors to Kontorovich and Tao's open-source' project. A more specific citation or reference would be appropriate.
Simulated Author's Rebuttal
We thank the referee for their careful reading and for identifying two concrete, actionable improvements to the manuscript. Both points are well-taken: the paper should provide a permanent, accessible link to the formalization artifact, and it should explicitly state the axiom basis of the Lean development. We will address both in the revised manuscript.
read point-by-point responses
-
Referee: The central claim is that a sorry-free formalization exists, but the paper references only 'PR #341' without providing a repository URL or commit hash. The reader cannot independently verify the sorry-free status or inspect the formalization from the information in the paper. For a paper whose primary contribution is the existence of a verified artifact, this is a load-bearing verifiability gap. The authors should provide a permanent, accessible link (e.g., a DOI, a Zenodo archive, or a repository URL with a specific commit hash). Without this, the central claim cannot be checked by readers or referees.
Authors: The referee is entirely correct. For a paper whose central claim is the existence of a sorry-free formalization, the absence of a permanent, inspectable reference is a significant gap that we must close. In the current draft, the reference to 'PR #341' assumes familiarity with the project repository, which is not acceptable for a self-contained publication. We will revise the manuscript to include (1) the full repository URL, (2) the specific commit hash corresponding to the sorry-free state of the development as of February 2026, and (3) a DOI or Zenodo archive link to ensure permanent accessibility. We agree that without this information, the central verifiable claim of the paper cannot be independently checked, and we thank the referee for flagging this. revision: yes
-
Referee: The paper does not state which axioms are used in the Lean development. A sorry-free proof is only as trustworthy as its axiom basis; the paper should explicitly confirm that only the standard Lean axioms (propext, Classical.choice, Quot.sound) are used, or disclose any additional axioms. This is standard practice in formalization papers and is necessary for the reader to assess the strength of the verification claim.
Authors: The referee raises a valid and standard point. The trustworthiness of a sorry-free proof depends on the axioms it relies on, and it is standard practice in formalization papers to disclose this explicitly. We will add a statement to the revised manuscript confirming the axiom basis of the development. Our development uses only the three standard Lean axioms — propext, Classical.choice, and Quot.sound — and does not introduce any additional axioms. We will state this explicitly in the paper, and we can also include the output of the #print axioms command on the main theorem statement to provide machine-checked evidence of this fact. revision: yes
Circularity Check
No circularity found: formalization is verified by external Lean kernel against independently published mathematics
full rationale
The paper reports a formal verification in Lean of Viazovska's sphere packing theorem. The derivation chain is: (1) definitions of sphere packing, density, E8 lattice, and the main theorem statement are standard mathematical definitions, not defined in terms of the result; (2) the proof formalizes Viazovska's published proof [14] and Lee's published inequalities [10], both independent prior work by external authors (Viazovska is a co-author of this paper but [14] is her independently published, peer-reviewed Annals paper); (3) the correctness of the formalization is checked by the Lean kernel, which is an external verification standard not controlled by the paper's authors; (4) the Cohn-Elkies linear programming bound [2] is an independently published result. The autoformalization model Gauss used the human-written blueprint and Lean code as input, but the output is verified by the Lean kernel — if the kernel accepts a sorry-free proof of a correctly stated theorem using standard axioms, it is mathematically valid by construction. The paper's acknowledgment that 'the exact correspondence between the autoformalization and the intended proof path is still being investigated' concerns mathematical exposition and understandability, not logical circularity. No step in the derivation chain reduces to its own inputs by construction. The self-citation to Viazovska [14] is load-bearing but refers to independently published, peer-reviewed work that predates this formalization project. The reference to Hariharan's master's thesis [7] is for expository detail, not a load-bearing mathematical claim. No fitted parameters are renamed as predictions, no ansatz is smuggled through self-citation, and no uniqueness theorem from the authors is invoked to forbid alternatives.
Axiom & Free-Parameter Ledger
axioms (5)
- domain assumption Cohn-Elkies linear programming bound (Theorem in Section 2): if f: R^d -> R satisfies (CE1) f <= 0 decays suitably, (CE2) f-hat(x) <= 0 for |x| >= 1, (CE3) f-hat(x) >= 0 for all x, then the sphere packing density is bounded by f(0) / f-hat(0) * Vol(B_d(0, 1/2)).
- domain assumption Viazovska's construction of the magic function g as a linear combination of radial Schwartz Fourier -1-eigenfunctions a and b (defined via contour integrals involving quasimodular forms phi_0 and psi_S).
- domain assumption Lee's algebraic proof of the modular form inequalities (2): 0 < phi_0(z) + 36/pi^2 * psi_S(z) and 0 < phi_0(z) - 36/pi^2 * psi_S(z) on the positive imaginary axis.
- standard math The Lean kernel is a sound proof checker — if Lean accepts a proof term, it constitutes a valid proof of the stated theorem.
- domain assumption Rectangular contour Cauchy-Goursat theorem and its unbounded variant, as available in Mathlib, are sufficient for the contour deformation arguments needed in the eigenfunction proof.
invented entities (1)
-
Gauss autoformalization model
no independent evidence
read the original abstract
In 2016, Viazovska famously solved the sphere packing problem in dimension $8$, using modular forms to construct a 'magic' function satisfying optimality conditions determined by Cohn and Elkies in 2003. In March 2024, Hariharan and Viazovska launched a project to formalize this solution and related mathematical facts in the Lean Theorem Prover. A significant milestone was achieved in February 2026: the result was formally verified, with the final stages of the verification done by Math, Inc.'s autoformalization model 'Gauss'. We discuss the techniques used to achieve this milestone, reflect on the unique collaboration between humans and Gauss, and discuss project objectives that remain.
Figures
Forward citations
Cited by 8 Pith papers
-
On the existence problem of regular Gabor frames
For every d>1, explicit lattice criteria with D(Λ)>1 are derived under which no continuous-Zak-transform function generates a Gabor frame, negatively resolving existence questions for several classes of smooth windows.
-
Hypothesis-Disciplined Multi-Agent Automated Formalization of Asymptotic Statistical Theory
A hypothesis-disciplined multi-agent pipeline in Lean 4 produces axiom-clean, source-faithful formalizations of parametric and semi-parametric asymptotic distribution and efficiency theorems.
-
Formalizing Mathematics at Scale
A multi-agent framework called AutoformBot autoformalized 26 textbooks spanning analysis, algebra, topology, combinatorics and probability into a verified Lean 4 library of 45k declarations, demonstrating scalable for...
-
Advancing Mathematics Research with AI-Driven Formal Proof Search
LLM-based agents in Lean solved 9 of 353 open Erdős problems and proved 44 of 492 OEIS conjectures at a few hundred dollars each.
-
Advancing Mathematics Research with AI-Driven Formal Proof Search
An LLM-based agent with Lean verification autonomously solved multiple open Erdős problems and OEIS conjectures in the first large-scale test.
-
Formalizing Extended Complex Numbers, Mobius Transformations, and Cross Ratio in Lean 4
Lean 4 formalization of extended complex plane via Option ℂ, Möbius transformations identified with PGL(2,ℂ), and machine-checked proofs of uniqueness and cross-ratio invariance.
-
$L^2$-Stability for STFT phase retrieval
STFT with Gaussian window performs L²-local stable phase retrieval at the constant function, with Lean 4 autoformalization for an extension to Hermite windows and finite spans of basis vectors.
-
Towards a Bridge Layer Between Bibliographic and Formalized Mathematical Knowledge
Authors propose a bridge database linking math publications to formal proof libraries and introduce a formalization score estimated via cross-document alignment to Lean as a feasibility study.
Reference graph
Works this paper leans on
-
[1]
Mathematicians in the age of AI
Avigad, J.: Mathematicians in the age of AI. arXiv preprint arXiv:2603.03684 (2026),��������������������������������
work page internal anchor Pith review Pith/arXiv arXiv 2026
-
[2]
Cohn, H., Elkies, N.: New Upper Bounds on Sphere Packings I. Annals of Math- ematics157(2), 689–714 (2003).���������������������������������������� �������������������,�����������������������������������
work page 2003
-
[3]
arXiv preprint arXiv:2603.13680 (2026),��������������������������������
DeDeo, S., Duede, E.: A correspondence problem for mathematical proof. arXiv preprint arXiv:2603.13680 (2026),��������������������������������
-
[4]
Diamond, F., Shurman, J.: A First Course in Modular Farms. No. 228 in Graduate Texts in Mathematics, Springer New York, NY, New York, first edn. (March 2006). ���������������������������������������������������������
work page 2006
-
[5]
Hales, T.C.: A Proof of the Kepler Conjecture. Annals of Mathematics162(3), 1065–1185 (2005).���������������������������������������������������� ��������,������������������������������������
work page 2005
-
[6]
Forum of Mathematics, Pi5, e2 (2017).����������������������������������
Hales, T.C., Adams, M., Bauer, G., Dang, T.D., Harrison, J., Hoang, L.T., Kaliszyk, C., Magron, V., Mclaughlin, S., Nguyen, T.T., Nguyen, Q.T., Nipkow, T., Obua, S., Pleso, J., Rute, J., Solovyev, A., Ta, T.H.A., Tran, N.T., Trieu, T.D., Urban, J., Vu, K., Zumkeller, R.: A Formal Proof of the Kepler Conjecture. Forum of Mathematics, Pi5, e2 (2017).�������...
work page 2017
-
[7]
Hariharan, S.: Viazovska’s Magic Function in Dimension 8: An At- tempt at Formalisation. MSci Thesis, Imperial College London (2025), �����������������������������������������������������������, Supervised by Bhavik Mehta
work page 2025
-
[8]
Kepler, J.: Strena seu de nive sexangula. Francofurti ad Moenum : apud Godefridum Tampach (1611).���������������������������������������� ����������,��������������������������������������������������, ETH- Bibliothek Zürich, Rar 4342: 2,����������������������������������
-
[9]
Kontorovich, A., Tao, T.: Prime Number Theorem and More (Jan 2024),������ ��������������������������������������������������
work page 2024
-
[10]
Lee, S.: Algebraic proof of modular form inequalities for optimal sphere packings (2024),��������������������������������
work page 2024
-
[11]
In: Felty, A.P., Middeldorp, A
de Moura, L., Kong, S., Avigad, J., van Doorn, F., von Raumer, J.: The Lean Theorem Prover (System Description). In: Felty, A.P., Middeldorp, A. (eds.) Au- tomated Deduction - CADE-25. pp. 378–388. Springer International Publishing, Cham (2015)
work page 2015
-
[12]
Forhandlingerne ved de Skandinaviske Naturforskeres14(1892), zbl 24.0259.01
Thue, A.: Om nogle geometrisk-taltheoretiske Theoremer. Forhandlingerne ved de Skandinaviske Naturforskeres14(1892), zbl 24.0259.01
-
[13]
Tóth, L.F.: Über die dichteste Kugellagerung. Mathematische Zeitschrift48(1), 676–684 (Dec 1942).����������������������������������,���������������� ������������������
work page 1942
-
[14]
Viazovska, M.S.: The sphere packing problem in dimension 8. Annals of Math- ematics185(3), 991–1015 (2017).���������������������������������������� �������������������,������������������������������������
work page 2017
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.