Abstract
This article describes a formal proof of the Kepler conjecture on dense sphere packings in a combination of the HOL Light and Isabelle proof assistants. This paper constitutes the official published account of the now completed Flyspeck project.
Introduction: The 400-Year Challenge
The Kepler conjecture, first proposed by Johannes Kepler in 1611, posits that the most efficient way to pack congruent spheres in three-dimensional space is the face-centered cubic arrangement, achieving a density of approximately 74%. Despite its intuitive nature, the conjecture remained one of the most stubborn problems in discrete geometry for centuries.
In 1998, Thomas Hales and Samuel Ferguson submitted a monumental 250-page proof. However, this proof relied on extensive computer calculations—specifically for nonlinear inequalities and combinatorial enumerations—that were too vast for human referees to verify completely. After years of review, a panel of experts could only claim to be "99% certain" of the proof's validity. This "referee crisis" prompted the launch of the Flyspeck project: an ambitious effort to produce a fully formal, machine-checked proof.
Methodology: The Hybrid Formal Approach
The Flyspeck project utilized a combination of two primary proof assistants, HOL Light and Isabelle, to construct a foundational verification of the conjecture. These systems operate on the "LCF approach," where every logical step is checked by a small, highly trusted "kernel" of code.
The proof architecture was divided into four distinct pillars:
- Textual Formalization: Translating traditional mathematical prose—covering topology, measure theory, and geometry—into formal logic.
- Nonlinear Inequality Verification: The proof depends on nearly a thousand complex nonlinear inequalities. The team employed interval arithmetic and Taylor approximations, executing these calculations within the proof assistant's logic to ensure mathematical soundness at the level of floating-point operations.
- Tame Graph Classification: To eliminate potential counterexamples, the team enumerated all "tame" plane graphs representing candidate packing arrangements. This combinatorial search was conducted and verified within Isabelle/HOL.
- Linear Programming: The final phase involved the verification of 43,078 linear programs to demonstrate that no "contravening" packing could exist.
The Archive of Tame Graphs
A central artifact of this work is the Archive of Tame Graphs. This computer-generated dataset contains 18,762 graphs that represent every possible combinatorial configuration that could theoretically violate the conjecture. By verifying this archive within Isabelle/HOL, the researchers ensured that no edge cases were overlooked, providing a rigorous benchmark for future work in discrete geometry.
Key Insights and Innovations
The transition from a human-readable proof to a machine-checked one required more than just translation; it required a structural redesign of the mathematical argument.
- The Blueprint Strategy: The team developed a "blueprint" proof specifically optimized for formalization. This involved replacing complex topological arguments with purely combinatorial structures known as hypermaps, which are more amenable to formal logic.
- Error Correction: The formalization process acted as a rigorous debugging tool. The team identified and corrected hundreds of minor errors in the original 1998 proof, including a significant error in the "main estimate," thereby strengthening the mathematical foundation of the result.
- Distributed Verification: Given the immense computational requirements, the team leveraged cloud computing (Microsoft Azure) to verify nonlinear inequalities in parallel. This demonstrated the feasibility of using distributed systems for large-scale formal verification.
Results and Computational Scale
The Flyspeck project reached completion on August 10, 2014, marking a milestone in the history of mathematics. The scale of the verification was unprecedented:
- Nonlinear Inequalities: Required approximately 5,000 CPU hours to verify.
- Linear Programming: 43,078 programs were verified in roughly 15 hours.
- Efficiency: While the project took years to complete, the final formal statement can now be re-verified from scratch in about 5 hours on a modern processor.
Conclusion and Future Directions
The completion of the Flyspeck project effectively closes the book on the Kepler conjecture, providing the highest level of certainty possible in modern mathematics. However, the project also highlights ongoing challenges in the field. The proof currently exists across two different systems (HOL Light and Isabelle), and while they are mathematically compatible, the bridge between them remains a minor point of theoretical discussion.
Future work focuses on "refactoring" the massive formal codebase to improve readability and reusability. Additionally, the project underscores the need for better "auto-formalization" tools to bridge the gap between natural language mathematics and formal logic, a frontier that remains a major challenge for the automated reasoning community.
Summary updated