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.RicciFlow.Generalized.Gauge.Assembly |
| 2 | import PoincareLib.Geometry.RicciFlow.Rescaling.Generalized |
| 3 | import PoincareLib.Geometry.Spacetime.Realization |
| 4 | import PoincareLib.Geometry.Riemannian.Normalization.Connection.Existence |
| 5 | import PoincareLib.Geometry.Riemannian.Normalization.Connection.Regularity |
| 6 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.SourceNames.CurvatureCalculus |
| 7 | |
| 8 | /-! Compatibility names used by the unchanged Mapher generalized L-geometry proof. |
| 9 | The metric and gauge services are supplied by the existing subject modules. -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open scoped Manifold ContDiff Bundle |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT |
| 18 | |
| 19 | theorem m12MetricPredecessors (n : ℕ) : M12MetricPredecessors.{u} n where |
| 20 | connection_exists _ _ _ _ _ _ g := normalization_exists_leviCivitaData g |
| 21 | connection_regular _ _ _ _ _g D _ hU Y hY := |
| 22 | D.normalization_contMDiffOn_connection hU Y hY |
| 23 | curvature_calculus _ _ _ _ _g D := D.normalization_curvatureTensorCalculus |
| 24 | |
| 25 | theorem generalizedRicciGaugeGeometry_from_M03_M04_M11 (n : ℕ) : |
| 26 | GeneralizedRicciGaugeTheory.{u} n := |
| 27 | generalizedRicciGaugeGeometry n (generalizedSpacetimeGeometry n) |
| 28 | (m12MetricPredecessors.{u} n) (m12MetricPredecessors.{0} n) |
| 29 | |
| 30 | theorem generalizedParabolicRescaling_from_M12 (n : ℕ) : |
| 31 | GeneralizedParabolicRescalingTheory.{u} n := |
| 32 | generalizedParabolicRescaling n (generalizedRicciGaugeGeometry_from_M03_M04_M11 n) |
| 33 | |
| 34 | end PoincareMT |