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.Blowup.Construction.LongTime.FiniteSlab.RawFiniteScalarBound |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.BoundedFiniteContinuation |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.CofinalExtraction.CofinalFiniteLimitClosure |
| 4 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.Assembly.LongSlabServiceFromConvergence |
| 5 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.Assembly.LongLimitStatementAssembly |
| 6 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.ShortTime.ShortControlSupplier |
| 7 | |
| 8 | /-! |
| 9 | # Actual long controls from the primitive hypotheses |
| 10 | |
| 11 | The short extraction supplies a seed and one terminal coefficient. |
| 12 | Every finite extracted limit strictly inside the prescribed horizon has |
| 13 | a bounded complete left endpoint and hence extends to a larger horizon. |
| 14 | Cofinal source extraction closes the attainable horizons, so their |
| 15 | supremum is the full prescribed horizon. Reading the resulting limit |
| 16 | back onto its source subsequence supplies the long control service. |
| 17 | Morgan--Tian Theorem 11.8 and Proposition 11.10, pp. 272--279. |
| 18 | -/ |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | |
| 22 | open Set |
| 23 | open scoped ENNReal |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | namespace PoincareMT.M30 |
| 28 | |
| 29 | /-- Finite continuation and cofinal extraction produce the full long |
| 30 | convergence from the primitive hypotheses, before any long control |
| 31 | service or ancient-solution conclusion is invoked. -/ |
| 32 | theorem exists_raw_long_convergence_threshold |
| 33 | (P : M30ControlledBlowupPredecessors.{u}) : |
| 34 | ∃ epsilon0 : ℝ, 0 < epsilon0 ∧ epsilon0 ≤ 1 / 400 ∧ |
| 35 | ∀ (S : GeneralizedBlowupSequence.{u}) |
| 36 | (epsilon C kappa r0 mu : ℝ) (T0 : ℝ≥0∞), |
| 37 | epsilon ≤ epsilon0 → |
| 38 | M30LongBlowupControls S epsilon C kappa r0 mu T0 → |
| 39 | GeneralizedBlowupBoundedDistance S → |
| 40 | Nonempty (GeneralizedBlowupConvergence S (blowupBackwardInterval T0)) := by |
| 41 | obtain ⟨epsilonFinite, hfinitePos, hfiniteSmall, hfinite⟩ := |
| 42 | exists_raw_finite_scalar_bound_threshold P |
| 43 | obtain ⟨epsilonShort, hshortPos, hshort⟩ := shortControlService P.m04 |
| 44 | refine ⟨min epsilonFinite epsilonShort, lt_min hfinitePos hshortPos, |
| 45 | (min_le_left _ _).trans hfiniteSmall, ?_⟩ |
| 46 | intro S epsilon C kappa r0 mu T0 hepsilon H hbound |
| 47 | obtain ⟨phi, hphi, ⟨Hshort⟩⟩ := hshort S epsilon C kappa r0 mu |
| 48 | (hepsilon.trans (min_le_right _ _)) H.toM30CommonBlowupControls hbound |
| 49 | let S' := reindexedBlowupSequence S phi hphi |
| 50 | let H' := reindexedLongBlowupControls H phi hphi |
| 51 | have hbound' := reindexed_boundedDistance hbound phi hphi |
| 52 | obtain ⟨G⟩ := exists_backward_convergence_of_finite_extension P H' Hshort hbound' |
| 53 | (by |
| 54 | intro T hT hTT0 G |
| 55 | exact exists_larger_finite_convergence_of_scalar_bound P H' hbound' G hT hTT0 |
| 56 | (hfinite S' epsilon C kappa r0 mu |
| 57 | (hepsilon.trans (min_le_left _ _)) T0 H' T hT hTT0 G)) |
| 58 | exact ⟨convergenceOfReindexed G⟩ |
| 59 | |
| 60 | /-- The constructed full-horizon convergence supplies all long source |
| 61 | controls and their retained finite-scale and ancient certificates. -/ |
| 62 | theorem longContractService (P : M30ControlledBlowupPredecessors.{u}) : |
| 63 | M30LongContractService.{u} := by |
| 64 | obtain ⟨epsilon0, hepsilon0, _hsmall, hconvergence⟩ := |
| 65 | exists_raw_long_convergence_threshold P |
| 66 | refine { |
| 67 | slab := ⟨epsilon0, hepsilon0, ?_⟩ |
| 68 | certificates := ?_ } |
| 69 | · intro S epsilon C kappa r0 mu T0 hepsilon H hbound |
| 70 | obtain ⟨G⟩ := hconvergence S epsilon C kappa r0 mu T0 hepsilon H hbound |
| 71 | exact ⟨G.subsequence, G.subsequence_strictMono, |
| 72 | longSlabControlService_of_convergence P.m04 H G⟩ |
| 73 | · intro S kappa r0 T0 hr0 _hbound H |
| 74 | exact long_limit_certificates_of_longSlabService S hr0 H |
| 75 | |
| 76 | end PoincareMT.M30 |