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.Harnack.Noncompact.CurvatureControl.ScalarEstimate |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.LowDimension |
| 4 | import PoincareLib.Geometry.RicciFlow.Restriction |
| 5 | |
| 6 | /-! |
| 7 | # Removing the initial-time singularity of a scalar bound |
| 8 | |
| 9 | Chen's local scalar estimate at the center of a fixed-radius ball turns a |
| 10 | reciprocal-time bound into a uniform bound, including the initial slice. |
| 11 | Restriction to a connected component permits component-dependent constants. |
| 12 | |
| 13 | These are applications of the local estimate, supporting the per-slice |
| 14 | upgrade in Morgan--Tian, Theorem 4.37, p. 81. The local estimate is Chen |
| 15 | (2009), Theorem 3.1, manuscript pp. 10--11. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | open Set |
| 22 | open scoped Manifold ContDiff Bundle ENNReal |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT.RicciFlow |
| 27 | |
| 28 | /-- A reciprocal-time scalar bound and one bounded initial slice give a |
| 29 | uniform bound on the entire closed interval. -/ |
| 30 | theorem exists_uniform_scalarCurvature_bound_of_reciprocal_time_bound |
| 31 | {m : ℕ} {M : Type u} [TopologicalSpace M] [T3Space M] |
| 32 | [ChartedSpace (EuclideanSpace ℝ (Fin (m + 1))) M] |
| 33 | [IsManifold (𝓡 (m + 1)) ∞ M] {J : Set ℝ} |
| 34 | (hC : RicciFlowCurvatureTheory.{u}) (hm : 0 < m) |
| 35 | (F : RicciFlow (m + 1) M J) {a b S K : ℝ} |
| 36 | (hJ : Icc a b ⊆ interior J) |
| 37 | (hcomplete : ∀ t ∈ Icc a b, MetricComplete (F.metric t)) |
| 38 | (hRic : ∀ t ∈ Icc a b, ∀ x : M, |
| 39 | ∀ v : TangentSpace (𝓡 (m + 1)) x, 0 ≤ (F.connection t).ricci x v v) |
| 40 | (hinitial : ∀ x : M, (F.connection a).scalarCurvature x ≤ S) |
| 41 | (htime : ∀ t ∈ Ioc a b, ∀ x : M, |
| 42 | (F.connection t).scalarCurvature x ≤ K / (t - a)) : |
| 43 | ∃ B : ℝ, 0 < B ∧ ∀ t ∈ Icc a b, ∀ x : M, |
| 44 | (F.connection t).scalarCurvature x ≤ B := by |
| 45 | obtain ⟨C, hCpos, hlocal⟩ := exists_local_scalar_curvature_constant_of_finite m hm |
| 46 | let S₀ := max S 1 |
| 47 | let r := 1 / Real.sqrt S₀ |
| 48 | have hS₀ : 0 < S₀ := zero_lt_one.trans_le (le_max_right _ _) |
| 49 | have hr : 0 < r := div_pos zero_lt_one (Real.sqrt_pos.mpr hS₀) |
| 50 | have hrsq : 1 / r ^ 2 = S₀ := by |
| 51 | dsimp only [r] |
| 52 | rw [div_pow, one_pow, Real.sq_sqrt hS₀.le, one_div_one_div] |
| 53 | refine ⟨Real.exp (C * max K 1) / r ^ 2, by positivity, ?_⟩ |
| 54 | intro t ht x |
| 55 | have hself : (F.metric t).edist x x = 0 := by |
| 56 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 (m + 1)) : M → Type _) := |
| 57 | ⟨(F.metric t).toRiemannianMetric⟩ |
| 58 | exact Manifold.riemannianEDist_self |
| 59 | have hx : x ∈ (F.metric t).ball x r := by |
| 60 | change (F.metric t).edist x x < ENNReal.ofReal r |
| 61 | rw [hself] |
| 62 | exact ENNReal.ofReal_pos.mpr hr |
| 63 | have h := hlocal M hC J F a b r (max K 1) hJ hr (le_max_right _ _) |
| 64 | hcomplete hRic x (fun y _ => (hinitial y).trans (hrsq ▸ le_max_left S 1)) |
| 65 | (fun s hs y _ => (htime s hs y).trans |
| 66 | (div_le_div_of_nonneg_right (le_max_left _ _) (sub_nonneg.mpr hs.1.le))) t ht x hx |
| 67 | simpa only [hself, ENNReal.toReal_zero, sub_zero] using h |
| 68 | |
| 69 | /-- Componentwise reciprocal-time scalar control removes the singularity |
| 70 | using the original initial operator bound, in every dimension. -/ |
| 71 | theorem exists_uniform_curvatureTensorNorm_bound_on_component_of_reciprocal_time_bound |
| 72 | {n : ℕ} {M : Type u} [TopologicalSpace M] [T3Space M] |
| 73 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 74 | {J : Set ℝ} (hC : RicciFlowCurvatureTheory.{u}) |
| 75 | (F : RicciFlow n M J) (p : M) {a b K : ℝ} |
| 76 | (hJ : Icc a b ⊆ interior J) |
| 77 | (hcomplete : ∀ t ∈ Icc a b, MetricComplete (F.metric t)) |
| 78 | (hoperator : ∀ t ∈ Icc a b, ∀ x ∈ connectedComponent p, |
| 79 | (F.connection t).NonnegativeCurvatureOperator x) |
| 80 | (hinitial : ∃ S : ℝ, 0 ≤ S ∧ ∀ x ∈ connectedComponent p, |
| 81 | (F.connection a).CurvatureOperatorBound S x) |
| 82 | (htime : ∀ t ∈ Ioc a b, ∀ x ∈ connectedComponent p, |
| 83 | (F.connection t).scalarCurvature x ≤ K / (t - a)) : |
| 84 | ∃ B : ℝ, 0 ≤ B ∧ ∀ t ∈ Icc a b, ∀ x ∈ connectedComponent p, |
| 85 | (F.connection t).curvatureTensorNorm x ≤ B := by |
| 86 | by_cases hn : n ≤ 1 |
| 87 | · exact ⟨0, le_rfl, fun t _ x _ => |
| 88 | F.curvatureTensorNorm_bound_zero_of_dimension_le_one hn t x⟩ |
| 89 | obtain ⟨m, rfl⟩ := Nat.exists_eq_succ_of_ne_zero (by omega : n ≠ 0) |
| 90 | have hm : 0 < m := by omega |
| 91 | let G := F.restrictComponent p |
| 92 | obtain ⟨S, hS, hinit⟩ := hinitial |
| 93 | have hscalar (x : Poincare.connectedComponentOpens (EuclideanSpace ℝ (Fin (m + 1))) p) : |
| 94 | (G.connection a).scalarCurvature x ≤ |
| 95 | ((m + 1 : ℕ) : ℝ) ^ 2 * (((m + 1 : ℕ) : ℝ) ^ 2 * S) := by |
| 96 | rw [F.restrictComponent_scalarCurvature] |
| 97 | exact (le_abs_self _).trans |
| 98 | (((F.connection a).abs_scalarCurvature_le_curvatureTensorNorm x).trans |
| 99 | (mul_le_mul_of_nonneg_left |
| 100 | ((F.connection a).curvatureTensorNorm_le_of_operator_bound x S hS |
| 101 | (hinit x x.property) (hC.tensor_calculus _ M _ _)) (sq_nonneg _))) |
| 102 | obtain ⟨B, hB, hb⟩ := |
| 103 | G.exists_uniform_scalarCurvature_bound_of_reciprocal_time_bound hC hm hJ |
| 104 | (fun t ht => F.restrictComponent_metricComplete p t (hcomplete t ht)) |
| 105 | (fun t ht x v => ((G.connection t).ricci_bounds_of_nonnegative_curvatureOperator |
| 106 | (hC.tensor_calculus _ _ _ _) x |
| 107 | ((F.restrictComponent_nonnegativeCurvatureOperator_iff p t x).mpr |
| 108 | (hoperator t ht x x.property)) v).1) hscalar (by |
| 109 | intro t ht x |
| 110 | rw [F.restrictComponent_scalarCurvature] |
| 111 | exact htime t ht x x.property) |
| 112 | refine ⟨((m + 1 : ℕ) : ℝ) ^ 2 * B, by positivity, ?_⟩ |
| 113 | intro t ht x hx |
| 114 | have h := hb t ht ⟨x, hx⟩ |
| 115 | rw [F.restrictComponent_scalarCurvature] at h |
| 116 | exact ((F.connection t).curvatureTensorNorm_le_scalarCurvature |
| 117 | (hC.tensor_calculus _ M _ _) x (hoperator t ht x hx)).trans |
| 118 | (mul_le_mul_of_nonneg_left h (sq_nonneg _)) |
| 119 | |
| 120 | end PoincareMT.RicciFlow |