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.FiniteSourcePrefix |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.FiniteSlab.FiniteSlabControlled |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.CurvatureDefect.CurvatureNorm |
| 4 | |
| 5 | /-! |
| 6 | # Controlled source prefixes from finite scalar bounds |
| 7 | |
| 8 | The native scalar readout and vanishing pinching defect turn a bound on |
| 9 | one finite limit prefix into actual controlled source cylinders. The |
| 10 | curvature coefficient precedes the source radius and defect tolerance, |
| 11 | as needed for the cofinal extraction in Theorem 11.8, pp. 272--279. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M30 |
| 22 | |
| 23 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 24 | FlowCarrier.isManifold |
| 25 | |
| 26 | /-- A bound on one finite limit prefix supplies the corresponding source |
| 27 | cylinders with one coefficient for all radii (Claim 11.17, pp. 277--278). -/ |
| 28 | theorem eventually_controlled_prefix_of_finite_scalar_bound |
| 29 | (hC : RicciFlowCurvatureTheory.{u}) |
| 30 | {S : GeneralizedBlowupSequence.{u}} {T t Tplus B : ℝ} |
| 31 | {epsilon C kappa r0 mu : ℝ} |
| 32 | (H : M30CommonBlowupControls S epsilon C kappa r0 mu) |
| 33 | (G : GeneralizedBlowupConvergence S (Ioc (-T) 0)) |
| 34 | (hTplus : T < Tplus) |
| 35 | (hslabs : ∀ A : ℝ, 0 < A → ∀ᶠ k : ℕ in atTop, |
| 36 | Nonempty (M30FiniteHorizonSlab S k A Tplus kappa r0)) |
| 37 | (ht : 0 < t) (htT : t < T) |
| 38 | (hscalar : ∀ s ∈ Icc (-t) 0, ∀ x, |
| 39 | (G.limit.flow.connection s).scalarCurvature x ≤ B) : |
| 40 | ∀ A : ℝ, 0 < A → ∀ eta : ℝ, 0 < eta → |
| 41 | ∀ᶠ k : ℕ in atTop, |
| 42 | Nonempty (ControlledBlowupCylinder S (G.subsequence k) |
| 43 | A t (13 * max 4 (B + 1)) eta) := by |
| 44 | intro A hA eta heta |
| 45 | have hprefix := eventually_finiteSlab_scalar_of_limit_bound_on_prefix |
| 46 | G hA hTplus (hslabs A hA) t ht htT (fun s hs x _hx => hscalar s hs x) |
| 47 | have hD : 0 ≤ max 4 (B + 1) := le_trans (by norm_num) (le_max_left _ _) |
| 48 | have hpinch := G.subsequence_strictMono.tendsto_atTop.eventually |
| 49 | (eventually_curvatureNorm_and_negativeDefect_le hC S H.branch |
| 50 | (max 4 (B + 1)) hD eta heta) |
| 51 | filter_upwards [hprefix, hpinch] with k hk hpinchK |
| 52 | obtain ⟨e, he⟩ := hk |
| 53 | have hmax : max (max 4 (B + 1)) 1 = max 4 (B + 1) := |
| 54 | max_eq_left (le_trans (by norm_num) (le_max_left _ _)) |
| 55 | refine ⟨controlledCylinderOfFiniteHorizonSlab e (htT.trans hTplus) ?_ ?_⟩ |
| 56 | · intro s hs x hx |
| 57 | let p := (FiniteHorizonSlab.closedEmbedding e (htT.trans hTplus)).pointMap s hs x |
| 58 | have hp : p.1 ∈ (S.flow (G.subsequence k)).interval := |
| 59 | ((S.flow (G.subsequence k)).slice_nonempty_iff p.1).mp ⟨p.2⟩ |
| 60 | have h := (hpinchK p.1 hp p.2 (he s hs x hx)).1 |
| 61 | simpa only [hmax] using h |
| 62 | · intro s hs x hx |
| 63 | let p := (FiniteHorizonSlab.closedEmbedding e (htT.trans hTplus)).pointMap s hs x |
| 64 | have hp : p.1 ∈ (S.flow (G.subsequence k)).interval := |
| 65 | ((S.flow (G.subsequence k)).slice_nonempty_iff p.1).mp ⟨p.2⟩ |
| 66 | exact (hpinchK p.1 hp p.2 (he s hs x hx)).2 |
| 67 | |
| 68 | end PoincareMT.M30 |