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.Surgery.StandardCap.Existence.Imports.Geometry.Riemannian.Curvature.IntrinsicCalculus |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Proof |
| 3 | import PoincareLib.Geometry.RicciFlow.Curvature.Construction |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Predecessors.Harnack |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Predecessors.PointedCompactness |
| 6 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Predecessors |
| 7 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Structure |
| 8 | import PoincareLib.Geometry.RicciFlow.Soliton.TwoDimensional |
| 9 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Predecessors.Soliton |
| 10 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Predecessors.AsymptoticVolume |
| 11 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Predecessors.UniversalNoncollapse |
| 12 | |
| 13 | /-! |
| 14 | # M23 providers from earlier milestone theorems |
| 15 | |
| 16 | The selected M16/M22 witnesses supply only the properties needed by M23. |
| 17 | The M19 certificate is on the actual supplied two-dimensional solution. |
| 18 | All choices occur inside checked theorem proofs, with no new admission. |
| 19 | -/ |
| 20 | |
| 21 | set_option autoImplicit false |
| 22 | |
| 23 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 24 | |
| 25 | namespace PoincareMT |
| 26 | |
| 27 | /-- Supply all 17 primitive services on the actual Type0 carriers. -/ |
| 28 | theorem m23PredecessorsFromMilestones : M23NormalizedKappaCompactnessPredecessors := by |
| 29 | let D16 : AncientKappaStructuralTheory.{0} 3 := Classical.choice |
| 30 | (ancientKappaStructuralConsequences 3 ricciFlowCurvatureTheory |
| 31 | differentialHarnackAncientTheory_from_M04 (generalizedParabolicRescaling_from_M12 3)) |
| 32 | let C22 : UniversalNoncollapsingConclusion.{0} 3 := |
| 33 | Classical.choice (m22UniversalNoncollapsingFromMilestones 3) |
| 34 | refine { |
| 35 | tensor_calculus := @LeviCivitaData.curvatureTensorCalculus |
| 36 | curvature_norm_zero := @LeviCivitaData.curvatureDerivativeNorm_zero |
| 37 | scalar_regular := @RicciFlow.contMDiffOn_scalarCurvature 3 |
| 38 | scalar_evolution := @RicciFlow.hasDerivWithinAt_scalarCurvature 3 |
| 39 | curvature_evolution := @RicciFlow.hasDerivWithinAt_curvatureTensor 3 |
| 40 | ricci_evolution := @RicciFlow.hasDerivWithinAt_ricci 3 |
| 41 | local_derivative_estimates := local_curvatureDerivative_bound 3 |
| 42 | scalar_zero_rigidity := @RicciFlow.flat_of_scalarCurvature_eq_zero |
| 43 | pointed_compactness := ?_ |
| 44 | ordinary_rescaling := (generalizedParabolicRescaling_from_M12 3).ordinary_flow |
| 45 | scalar_pos := ?_ |
| 46 | scalar_monotone := ?_ |
| 47 | past_norm_le_scalar := ?_ |
| 48 | ball_monotone := ?_ |
| 49 | two_dimensional_classification := ?_ |
| 50 | ratio_antitone := ?_ |
| 51 | zero_avr := ?_ |
| 52 | } |
| 53 | · intro T' T _ _ H |
| 54 | exact pointedRicciFlowCompactness_from_M04 H |
| 55 | · intro M _ _ _ _ _ _ _ _ _ K |
| 56 | exact (D16.structural M K).scalar_pos |
| 57 | · intro M _ _ _ _ _ _ _ _ _ K |
| 58 | exact (D16.structural M K).scalar_monotone |
| 59 | · intro M _ _ _ _ _ _ _ _ _ K |
| 60 | exact (D16.structural M K).past_norm_le_scalar |
| 61 | · intro M _ _ _ _ _ _ _ _ _ K |
| 62 | exact (D16.structural M K).ball_monotone |
| 63 | · intro M _ _ _ _ _ _ _ _ _ K |
| 64 | exact (twoDimensionalAncientAndShrinkingSolitonClassification |
| 65 | (m20TwoDimensionalPredecessors (N := M))).ancient_classification K |
| 66 | · intro M _ _ _ _ _ _ _ _ _ K t ht |
| 67 | obtain ⟨V⟩ := (m21AsymptoticVolumeRatioFromMilestones 3).slice K t ht |
| 68 | exact V.ratio_antitone |
| 69 | · intro M _ _ _ _ _ _ _ _ _ K |
| 70 | exact C22.asymptotic_volume_ratio_zero K |
| 71 | |
| 72 | /-- Apply the complete M23 obligation with every earlier service supplied. -/ |
| 73 | theorem m23NormalizedKappaCompactnessFromMilestones (N : NormalizedKappaCompactnessData) : |
| 74 | Nonempty (RedesignNormalizedKappaCompactnessConclusion N) := |
| 75 | m23NormalizedKappaCompactness N m23PredecessorsFromMilestones |
| 76 | |
| 77 | end PoincareMT |