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.ExistenceTheory |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Predecessors.Kappa |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Predecessors.Blowup |
| 4 | |
| 5 | /-! |
| 6 | # Applied earlier theorem services for M34 |
| 7 | |
| 8 | M27's provider imports the actual M03/M04/M07, M08-M10, M12-M15 and |
| 9 | M22 producers used below. This supplier does not import the M34 entry, |
| 10 | so the entry can apply it without an import cycle. These checked |
| 11 | applications add no admission or geometric hypothesis. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 17 | |
| 18 | namespace PoincareMT |
| 19 | |
| 20 | /-- Supply the source-reviewed M34 boundary from actual earlier milestones. |
| 21 | The M22 operation applies to the ancient solution selected by M30, and the |
| 22 | M30 long-limit threshold is retained from the same selected limit service. -/ |
| 23 | theorem m34StandardCapPredecessorsFromMilestones : |
| 24 | M34StandardCapPredecessors := by |
| 25 | have h12 : GeneralizedRicciGaugeTheory.{0} 3 := |
| 26 | generalizedRicciGaugeGeometry_from_M03_M04_M11 3 |
| 27 | have h13 : GeneralizedParabolicRescalingTheory.{0} 3 := |
| 28 | generalizedParabolicRescaling_from_M12 3 |
| 29 | have h14 : GeneralizedLGeometryTheory.{0} 3 := |
| 30 | generalizedLGeometryTheory_from_predecessors 3 |
| 31 | let C22 : UniversalNoncollapsingConclusion.{0} 3 := |
| 32 | Classical.choice (m22UniversalNoncollapsingFromMilestones 3) |
| 33 | refine { |
| 34 | local_flow := ?_ |
| 35 | curvature := ricciFlowCurvatureTheory |
| 36 | pointed_compactness := fun H => pointedRicciFlowCompactness_from_M04 H |
| 37 | ordinary_windows := m15OrdinaryProvidersFromMilestones 3 |
| 38 | ordinary_product := h12.ordinary_flow |
| 39 | ordinary_rescaling := h13.ordinary_flow |
| 40 | metric_homothety := h13.metric_homothety |
| 41 | exponential := ?_ |
| 42 | ordinary_capture := ?_ |
| 43 | noncollapse_generalized := |
| 44 | (noncollapsingGeneralizedAndCompact_from_predecessors 3).generalized.uniform |
| 45 | zero_avr := @C22.asymptotic_volume_ratio_zero |
| 46 | kappa_alternatives := m27KappaAlternativesFromMilestones |
| 47 | long_limits := ?_ |
| 48 | } |
| 49 | · intro n M _ _ _ _ _ _ |
| 50 | exact ricciFlowLocalTheory |
| 51 | · intro X _ time I G |
| 52 | obtain ⟨Q⟩ := h14.conclusion X time I G |
| 53 | exact ⟨Q.exponential⟩ |
| 54 | · intro X _ time I G O |
| 55 | obtain ⟨Q⟩ := h14.conclusion X time I G |
| 56 | exact Q.ordinary_capture O |
| 57 | · obtain ⟨epsilon₀, hpos, hle, _short, hlong⟩ := |
| 58 | m30ControlledGeneralizedBlowupLimitsFromMilestones.{0}.limits |
| 59 | exact ⟨epsilon₀, hpos, hle, hlong⟩ |
| 60 | |
| 61 | end PoincareMT |