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.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.ExistenceData |
| 3 | import PoincareLib.Geometry.RicciFlow.Curvature.Theory |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Mathlib.UniformReciprocalRate |
| 5 | |
| 6 | /-! |
| 7 | # The scalar-rate assembly on the supplied standard flow |
| 8 | |
| 9 | Morgan-Tian, Proposition 12.31, printed pp. 325-326, with the corrected |
| 10 | reciprocal argument. This lemma uses the actual metric and connection of E. |
| 11 | The uniform high-curvature estimate, pointwise blowup and early positive |
| 12 | floors remain geometric obligations; they are not consequences of ODE alone. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Filter Set |
| 18 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 19 | |
| 20 | namespace PoincareMT.RepairedStandardCapExistenceData |
| 21 | |
| 22 | /-- Proposition 12.31, pp. 325-326: M04 scalar evolution converts the guarded geometric |
| 23 | estimate and blowup into one positive coefficient valid on the actual E. -/ |
| 24 | theorem scalar_lower_rate_of_blowup_and_guarded_bound |
| 25 | (P : RicciFlowCurvatureTheory.{0}) {g₀ : StandardInitialMetric} |
| 26 | (E : RepairedStandardCapExistenceData g₀) |
| 27 | (hfloor : ∀ T ∈ Ico 0 E.flow.base.lifetime, |
| 28 | ∃ B : ℝ, 0 < B ∧ ∀ t ∈ Icc 0 T, ∀ x : StandardCapSpace, |
| 29 | B ≤ (E.flow.connection t).scalarCurvature x) |
| 30 | (hblow : ∀ x : StandardCapSpace, |
| 31 | Tendsto (fun t => (E.flow.connection t).scalarCurvature x) (𝓝[<] 1) atTop) |
| 32 | (hbound : ∃ A H : ℝ, 0 < A ∧ 0 < H ∧ |
| 33 | ∀ t ∈ Ico 0 E.flow.base.lifetime, ∀ x : StandardCapSpace, |
| 34 | H ≤ (E.flow.connection t).scalarCurvature x → |
| 35 | (E.flow.connection t).laplacian (E.flow.connection t).scalarCurvature x + |
| 36 | 2 * (E.flow.connection t).ricciNormSq x ≤ |
| 37 | A * ((E.flow.connection t).scalarCurvature x) ^ 2) : |
| 38 | ∃ c : ℝ, 0 < c ∧ ∀ t ∈ Ico 0 E.flow.base.lifetime, ∀ x : StandardCapSpace, |
| 39 | c / (1 - t) ≤ (E.flow.connection t).scalarCurvature x := by |
| 40 | obtain ⟨A, H, hA, hH, hguard⟩ := hbound |
| 41 | have htime {t : ℝ} (ht : t ∈ Ico 0 1) : t ∈ Ico 0 E.flow.base.lifetime := by |
| 42 | simpa only [E.lifetime_one] using ht |
| 43 | have hpos (x : StandardCapSpace) (t : ℝ) (ht : t ∈ Ico 0 1) : |
| 44 | 0 < (E.flow.connection t).scalarCurvature x := by |
| 45 | obtain ⟨B, hB, hBt⟩ := hfloor t (htime ht) |
| 46 | exact hB.trans_le (hBt t ⟨ht.1, le_rfl⟩ x) |
| 47 | obtain ⟨τ, hτ, hτhalf, hfinal⟩ := exists_uniform_final_reciprocal_bound hA hH hpos |
| 48 | (fun x t ht => (P.scalar_evolution 3 StandardCapSpace _ E.flow.base.flow |
| 49 | t (htime ht) x).mono (fun _ hs => htime hs)) |
| 50 | (fun x t ht => hguard t (htime ht) x) hblow |
| 51 | have hearlyTime : 1 - τ ∈ Ico 0 E.flow.base.lifetime := by |
| 52 | apply htime |
| 53 | constructor <;> linarith |
| 54 | obtain ⟨B, hB, hearly⟩ := hfloor (1 - τ) hearlyTime |
| 55 | obtain ⟨c, hc, hrate⟩ := exists_uniform_reciprocal_bound_of_early_floor hA hB hτ |
| 56 | (fun x t ht => hearly t ht x) hfinal |
| 57 | refine ⟨c, hc, ?_⟩ |
| 58 | intro t ht x |
| 59 | exact hrate x t (by simpa only [E.lifetime_one] using ht) |
| 60 | |
| 61 | end PoincareMT.RepairedStandardCapExistenceData |