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.Generalized.BlowupSubsequence |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.ShortTime.ControlledCylinders |
| 3 | |
| 4 | /-! |
| 5 | # A terminal limit bound gives common short controls |
| 6 | |
| 7 | Morgan--Tian Theorem 11.1, p. 271, after Claim 11.7: compact source-ball |
| 8 | coverage and uniform scalar convergence transfer the limit bound to every |
| 9 | fixed source ball on the selected sequence. A unit of slack is added before |
| 10 | the spatial radius is chosen. The resulting bound supplies one short slab. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 17 | |
| 18 | universe u v |
| 19 | |
| 20 | namespace PoincareMT.M30 |
| 21 | |
| 22 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 23 | FlowCarrier.isManifold |
| 24 | |
| 25 | /-- The retained terminal maps and compact scalar convergence transfer a |
| 26 | global limit bound to radius-independent short controls on the selected |
| 27 | sequence (Theorem 11.1, p. 271). Source-ball coverage is required in the |
| 28 | reverse direction, on one fixed compact limit set for each radius. -/ |
| 29 | theorem shortControls_of_terminal_scalar_convergence |
| 30 | (hC : RicciFlowCurvatureTheory.{u}) {S : GeneralizedBlowupSequence.{u}} |
| 31 | {epsilon canonicalConstant kappa r₀ mu : ℝ} |
| 32 | (H : M30CommonBlowupControls S epsilon canonicalConstant kappa r₀ mu) |
| 33 | (phi : ℕ → ℕ) (hphi : StrictMono phi) |
| 34 | (C : FlowCarrier.{v} 3) (g : RiemannianMetric 3 C.carrier) |
| 35 | (D : LeviCivitaData g) |
| 36 | (e : ∀ k, C.carrier → ((S.flow (phi k)).slice (S.base (phi k)).1).carrier) |
| 37 | (hcapture : ∀ A : ℝ, 0 < A → ∃ K : Set C.carrier, IsCompact K ∧ |
| 38 | ∀ᶠ k : ℕ in atTop, S.baseBall (phi k) A ⊆ e k '' K) |
| 39 | (hscalar : ∀ K : Set C.carrier, IsCompact K → TendstoUniformlyOn |
| 40 | (fun k x => (S.flow (phi k)).scalar ⟨(S.base (phi k)).1, e k x⟩ / |
| 41 | S.scale (phi k)) D.scalarCurvature atTop K) |
| 42 | {B : ℝ} (hbound : ∀ x : C.carrier, D.scalarCurvature x ≤ B) : |
| 43 | Nonempty (ShortControlledBlowupHypotheses |
| 44 | (reindexedBlowupSequence S phi hphi) kappa r₀) := by |
| 45 | apply shortControlledBlowupHypotheses_of_terminal_scalar_bound hC |
| 46 | (reindexedCommonBlowupControls H phi hphi) |
| 47 | (D := max 4 (B + 1)) (le_max_left _ _) |
| 48 | intro A hA |
| 49 | obtain ⟨K, hK, hcover⟩ := hcapture A hA |
| 50 | have hclose := Metric.tendstoUniformlyOn_iff.mp (hscalar K hK) 1 zero_lt_one |
| 51 | filter_upwards [hcover, hclose] with k hkcover hkclose |
| 52 | intro x hx |
| 53 | obtain ⟨y, hy, rfl⟩ := hkcover hx |
| 54 | have herror : |D.scalarCurvature y - |
| 55 | (S.flow (phi k)).scalar ⟨(S.base (phi k)).1, e k y⟩ / S.scale (phi k)| < 1 := by |
| 56 | simpa only [Real.dist_eq] using hkclose y hy |
| 57 | have hnormalized : |
| 58 | (S.flow (phi k)).scalar ⟨(S.base (phi k)).1, e k y⟩ / S.scale (phi k) ≤ B + 1 := by |
| 59 | have := (abs_lt.mp herror).1 |
| 60 | linarith [hbound y] |
| 61 | exact (div_le_iff₀ (S.base_scalar_pos (phi k))).mp |
| 62 | (hnormalized.trans (le_max_right _ _)) |
| 63 | |
| 64 | end PoincareMT.M30 |