A formal proof in Lean of the finiteness of planar five-body central configurations for all positive masses
Abstract
Smale's sixth problem asks whether, for every choice of positive masses, there are finitely many central configurations up to similarity. For five bodies in the plane, Albouy and Kaloshin proved finiteness outside a set of masses of codimension two. In a companion paper (doi:10.5281/zenodo.23257257) the author proved finiteness for every choice of five positive masses by their method, adding steps that cannot be checked by hand: exact computer algebra, rational certificates and a branch and bound. We formalize this theorem in Lean 4 with Mathlib without assuming the results of Albouy and Kaloshin that the informal proof uses. Instead we prove what the proof needs of their rules on limit diagrams, of their classification of these diagrams and of their mass conditions. We do so at places of complex algebraic curves, taken as valuations of the function field rather than points of a projective model. Almost every computation becomes data for a checker that we write in Lean, prove sound with respect to Mathlib's real and complex numbers, and run in the kernel (proof by reflection). The main theorem depends on about 680,000 theorems proved in this way, and Mathlib's tactics prove the few other computations. The proof uses only Lean's three standard axioms, and two independent Lean kernels, nanoda and lean4lean, accept it.
In plain words
This is the machine-checked version of the proof of the five-body case of Smale’s sixth problem. It is written in the proof assistant Lean, which is also used in industry to verify security-critical software. Lean checks every step down to its basic axioms, and two independently written checkers for its logic accept the proof too. The finiteness result therefore does not depend on trusting either the programs behind the original paper or the earlier results that the paper cites.
Formal statement and axioms
Each main result as stated in Lean, copied verbatim from the published package, with the axioms that the proof rests on. Lean v4.35.0-rc3, Mathlib c55e6e786f49. The package.
CC5Full.Core.Compose.MainTheorem_holds
Theorem 1.1 of the informal paper, the main theorem of the formalization
theorem MainTheorem_holds : MainTheoremDefinitions used in the statement
def MainTheorem : Prop := ∀ m : Masses, (∀ i, 0 < m i) → FinitelyManyCC mdef FinitelyManyCC (m : Masses) : Prop :=
∃ F : Finset Conf, ∀ q, IsCC m q → ∃ q' ∈ F, Similar q' qdef IsCC (m : Masses) (q : Conf) : Prop :=
CollisionFree q ∧ ∃ (lam : ℝ) (c : ℂ), ∀ i,
((lam * m i : ℝ) : ℂ) * (q i - c) =
∑ j ∈ univ.erase i, ((m i * m j / ‖q i - q j‖ ^ 3 : ℝ) : ℂ) * (q i - q j)def Similar (q q' : Conf) : Prop :=
∃ a b : ℂ, a ≠ 0 ∧ ((∀ i, q' i = a * q i + b) ∨ (∀ i, q' i = a * starRingEnd ℂ (q i) + b))def CollisionFree (q : Conf) : Prop := ∀ i j, i ≠ j → q i ≠ q jabbrev Conf := Fin 5 → ℂabbrev Masses := Fin 5 → ℝSource: Zenodo record 23202861, cc50-rung2-lean_full.tar.xz/cc50/rung2/lean_full/CC5Full/Core/Compose/Main.lean:48.
Axioms, as Lean reports them. Recorded in zenodo:23202861/cc50-rung2-lean_full.tar.xz/cc50/rung2/lean_full/CC5Full/Core/scripts/compose/logs/axioms_compose.log:27.
'CC5Full.Core.Compose.MainTheorem_holds' depends on axioms: [propext, Classical.choice, Quot.sound]