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.RadiusDependentLeftCylinders |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.FiniteSlab.FiniteLeftLocalExtension |
| 3 | |
| 4 | /-! |
| 5 | # The closed finite endpoint from raw long controls |
| 6 | |
| 7 | The original raw finite slabs first give radius-dependent left cylinders. |
| 8 | Their local limits glue to a complete endpoint on the old limit carrier. |
| 9 | No uniform slab curvature bound is assumed. Morgan--Tian Corollary 11.16 |
| 10 | and Claim 11.17, pp. 277--278. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M30 |
| 21 | |
| 22 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 23 | FlowCarrier.isManifold |
| 24 | |
| 25 | /-- The raw long controls add the finite left endpoint, with local |
| 26 | backward flows and completeness, before a global endpoint bound is proved. -/ |
| 27 | theorem exists_raw_finite_closed_left_extension_threshold |
| 28 | (P : M30ControlledBlowupPredecessors.{u}) : |
| 29 | ∃ epsilon0 : ℝ, 0 < epsilon0 ∧ epsilon0 ≤ 1 / 400 ∧ |
| 30 | ∀ (S : GeneralizedBlowupSequence.{u}) (epsilon C kappa r0 mu : ℝ), |
| 31 | epsilon ≤ epsilon0 → ∀ T0 : ℝ≥0∞, |
| 32 | ∀ _H : M30LongBlowupControls S epsilon C kappa r0 mu T0, |
| 33 | ∀ T : ℝ, 0 < T → ENNReal.ofReal T < T0 → |
| 34 | ∀ G : GeneralizedBlowupConvergence S (Ioc (-T) 0), |
| 35 | ∃ Fbar : RicciFlow 3 G.limit.carrier.carrier (Icc (-T) 0), |
| 36 | (∀ t ∈ Ioc (-T) 0, Fbar.metric t = G.limit.flow.metric t) ∧ |
| 37 | (∀ t ∈ Icc (-T) 0, G.limit.carrier.metricComplete (Fbar.metric t)) ∧ |
| 38 | (∀ t ∈ Icc (-T) 0, ∀ x : G.limit.carrier.carrier, |
| 39 | (Fbar.connection t).NonnegativeCurvatureOperator x) ∧ |
| 40 | ∀ A : ℝ, 0 < A → |
| 41 | ∀ U : TopologicalSpace.Opens G.limit.carrier.carrier, |
| 42 | (U : Set G.limit.carrier.carrier) = |
| 43 | (G.limit.flow.metric 0).ball G.limit.base A → |
| 44 | ∃ delta : ℝ, 0 < delta ∧ |
| 45 | ∃ F : RicciFlow 3 U (Icc (-(T + delta)) 0), |
| 46 | (∀ t ∈ Icc (-T) 0, ∀ (x : U) (v w : TangentSpace (𝓡 3) x), |
| 47 | (F.metric t).inner x v w = (Fbar.metric t).inner x.val |
| 48 | (mfderiv (𝓡 3) (𝓡 3) |
| 49 | (Subtype.val : U → G.limit.carrier.carrier) x v) |
| 50 | (mfderiv (𝓡 3) (𝓡 3) |
| 51 | (Subtype.val : U → G.limit.carrier.carrier) x w)) ∧ |
| 52 | ∀ t ∈ Icc (-(T + delta)) 0, ∀ x : U, |
| 53 | (F.connection t).NonnegativeCurvatureOperator x := by |
| 54 | obtain ⟨epsilon0, hepsilon0, hepsilonMax, hleft⟩ := |
| 55 | exists_radius_dependent_left_cylinders_threshold P |
| 56 | refine ⟨epsilon0, hepsilon0, hepsilonMax, ?_⟩ |
| 57 | intro S epsilon C kappa r0 mu hepsilon T0 H T hT hTT0 G |
| 58 | obtain ⟨Tplus, _, hTTplus, hTplusT0⟩ := ENNReal.lt_iff_exists_real_btwn.mp hTT0 |
| 59 | have hTplus : 0 < Tplus := ENNReal.ofReal_pos.mp (lt_of_le_of_lt |
| 60 | (by positivity : (0 : ℝ≥0∞) ≤ ENNReal.ofReal T) hTTplus) |
| 61 | have hTTplus' : T < Tplus := (ENNReal.ofReal_lt_ofReal_iff hTplus).mp hTTplus |
| 62 | have hcyl (A : ℝ) (hA : 0 < A) : |
| 63 | ∃ delta : ℝ, 0 < delta ∧ ∃ B : ℝ, 0 ≤ B ∧ |
| 64 | ∀ᶠ k : ℕ in atTop, |
| 65 | Nonempty (ControlledBlowupCylinder S (G.subsequence k) A (T + delta) B 1) := by |
| 66 | obtain ⟨delta, hdelta, _, B, hB, hfamily⟩ := hleft S epsilon C kappa r0 mu |
| 67 | hepsilon H.toM30CommonBlowupControls T Tplus hT hTTplus' G |
| 68 | (H.slabs Tplus hTplus hTplusT0) A hA |
| 69 | refine ⟨delta, hdelta, B, hB, (hfamily 1 (by norm_num)).mono ?_⟩ |
| 70 | intro k hk |
| 71 | exact hk.map NoncollapsedControlledBlowupCylinder.toControlledBlowupCylinder |
| 72 | obtain ⟨Fbar, hmetric, hcomplete, hsign, _, hlocal⟩ := |
| 73 | exists_complete_closed_left_extension_of_radius_dependent_cylinders |
| 74 | P.m04.local_derivative_estimates hT G H.branch |
| 75 | (fun A hA => G.subsequence_strictMono.tendsto_atTop.eventually (H.balls_compact A hA)) |
| 76 | hcyl |
| 77 | exact ⟨Fbar, hmetric, hcomplete, hsign, hlocal⟩ |
| 78 | |
| 79 | end PoincareMT.M30 |