Poincaré conjecture: the Lean proof, cleaned up together
The 2026 Lean proof of the Poincaré conjecture after Morgan and Tian, 3 million lines, cleaned up together: smaller, faster to build, more readable, the theorems unchanged

| 1 | import PoincareLib.Geometry.Riemannian.ScalarOperators.Extrema.FiniteRegularity |
| 2 | import PoincareLib.Geometry.RicciFlow.Local.Connection.CurvatureIndependence |
| 3 | |
| 4 | /-! Compatibility with source names used by the unchanged standard-cap proofs. -/ |
| 5 | |
| 6 | open scoped Manifold ContDiff |
| 7 | |
| 8 | namespace PoincareMT.LeviCivitaData |
| 9 | |
| 10 | alias curvatureTensorNorm_eq := localTheory_curvatureTensorNorm_eq |
| 11 | |
| 12 | end PoincareMT.LeviCivitaData |
| 13 | |
| 14 | namespace PoincareMT.M34.Source |
| 15 | |
| 16 | theorem laplacian_nonneg_of_isLocalMin_smoothAt |
| 17 | {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 18 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 19 | {g : RiemannianMetric n M} (D : LeviCivitaData g) {f : M → ℝ} {q : M} |
| 20 | (hf : ContMDiffAt (𝓡 n) 𝓘(ℝ, ℝ) ∞ f q) (hmin : IsLocalMin f q) : |
| 21 | 0 ≤ D.laplacian f q := |
| 22 | D.laplacian_nonneg_of_isLocalMin_contMDiffAt (hf.of_le (by decide)) hmin |
| 23 | |
| 24 | end PoincareMT.M34.Source |