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.Noncollapse.Universal.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.Surgery.StandardCap.Existence.Predecessors.LGeodesics |
| 7 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Predecessors.ReducedLength |
| 8 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Predecessors.ReducedVolume |
| 9 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Predecessors.OrdinaryFlow |
| 10 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Predecessors |
| 11 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Proof |
| 12 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Predecessors.Noncollapse |
| 13 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Predecessors.BlowupSetup |
| 14 | import PoincareLib.Geometry.RicciFlow.Soliton.TwoDimensional |
| 15 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Predecessors.Soliton |
| 16 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Predecessors.AsymptoticVolume |
| 17 | |
| 18 | /-! |
| 19 | # M22 providers from the earlier milestone theorems |
| 20 | |
| 21 | Each field is an applied earlier output. Ordinary windows retain their |
| 22 | selected M08/M09 witnesses; M20 returns a classified limit for the same |
| 23 | sequence. These checked theorem proofs add no admission or data definition. |
| 24 | See reviews/contracts/2026-09-15-m22-complete-contract.md. |
| 25 | -/ |
| 26 | |
| 27 | set_option autoImplicit false |
| 28 | |
| 29 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 30 | |
| 31 | universe u |
| 32 | |
| 33 | namespace PoincareMT |
| 34 | |
| 35 | /-- Supply all 21 services from their actual earlier producing theorems. -/ |
| 36 | theorem m22PredecessorsFromMilestones (n : ℕ) : |
| 37 | M22UniversalNoncollapsingPredecessors.{u} n := by |
| 38 | have h12 : GeneralizedRicciGaugeTheory.{u} 3 := |
| 39 | generalizedRicciGaugeGeometry_from_M03_M04_M11 3 |
| 40 | have h13 : GeneralizedParabolicRescalingTheory.{u} 3 := |
| 41 | generalizedParabolicRescaling_from_M12 3 |
| 42 | have h14 : GeneralizedLGeometryTheory.{u} 3 := |
| 43 | generalizedLGeometryTheory h12 h13 ricciFlowCurvatureTheory |
| 44 | have O : M14OrdinaryProviders.{u} 3 := m15OrdinaryProvidersFromMilestones 3 |
| 45 | have h17 : AncientBlowupSetupTheory.{u} 3 := by |
| 46 | refine ancientBlowupSequenceSetupTheory 3 ?_ h13 |
| 47 | intro M _ _ _ _ _ _ _ _ _ K _reference |
| 48 | exact (m20AsymptoticPredecessors K).reduced_volume |
| 49 | refine { |
| 50 | tensor_calculus := @LeviCivitaData.curvatureTensorCalculus |
| 51 | curvature_norm_zero := @LeviCivitaData.curvatureDerivativeNorm_zero |
| 52 | scalar_regular := @RicciFlow.contMDiffOn_scalarCurvature |
| 53 | scalar_evolution := @RicciFlow.hasDerivWithinAt_scalarCurvature |
| 54 | curvature_evolution := @RicciFlow.hasDerivWithinAt_curvatureTensor |
| 55 | ricci_evolution := @RicciFlow.hasDerivWithinAt_ricci |
| 56 | local_derivative_estimates := @local_curvatureDerivative_bound |
| 57 | metric_edist_transport := |
| 58 | differentialHarnackAncientTheory_from_M04.metric_edist_transport |
| 59 | ancient_differential := |
| 60 | differentialHarnackAncientTheory_from_M04.ancient_differential |
| 61 | pointed_compactness := ?_ |
| 62 | ordinary_windows := O |
| 63 | ordinary_product := h12.ordinary_flow |
| 64 | ordinary_rescaling := ?_ |
| 65 | metric_homothety := ?_ |
| 66 | exponential := ?_ |
| 67 | ordinary_capture := ?_ |
| 68 | noncollapse_generalized := |
| 69 | (noncollapsingGeneralizedAndCompact_from_predecessors 3).generalized.uniform |
| 70 | blowup_setup := h17 |
| 71 | two_dimensional_compact := ?_ |
| 72 | classified_limit := ?_ |
| 73 | volume_ratio := m21AsymptoticVolumeRatioFromMilestones |
| 74 | } |
| 75 | · intro d T' T _ _ H |
| 76 | exact pointedRicciFlowCompactness_from_M04 H |
| 77 | · intro d |
| 78 | exact (generalizedParabolicRescaling_from_M12 d).ordinary_flow |
| 79 | · intro d |
| 80 | exact (generalizedParabolicRescaling_from_M12 d).metric_homothety |
| 81 | · intro X _ time I G |
| 82 | obtain ⟨Q⟩ := h14.conclusion X time I G |
| 83 | exact ⟨Q.exponential⟩ |
| 84 | · intro X _ time I G O' |
| 85 | obtain ⟨Q⟩ := h14.conclusion X time I G |
| 86 | exact Q.ordinary_capture O' |
| 87 | · intro M _ _ _ _ _ _ _ _ _ K |
| 88 | obtain ⟨C⟩ := |
| 89 | (twoDimensionalAncientAndShrinkingSolitonClassification |
| 90 | (m20TwoDimensionalPredecessors (N := M))).ancient_classification K |
| 91 | exact C.compact |
| 92 | · intro M _ _ _ _ _ _ _ _ _ K S |
| 93 | obtain ⟨A⟩ := (m20ClassificationFromMilestones (M := M)).asymptotic_classify K |
| 94 | exact A.classify S |
| 95 | |
| 96 | /-- Apply the existing complete M22 obligation with all earlier services supplied. -/ |
| 97 | theorem m22UniversalNoncollapsingFromMilestones (n : ℕ) : |
| 98 | Nonempty (UniversalNoncollapsingConclusion.{u} n) := |
| 99 | m22UniversalNoncollapsingAndZeroAVR n (m22PredecessorsFromMilestones n) |
| 100 | |
| 101 | end PoincareMT |