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.AncientKappa.Compactness.Statement |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Asymptotic.Curvature.PointSelection |
| 3 | import PoincareLib.Geometry.Riemannian.Curvature.Scalar.SharpBounds |
| 4 | |
| 5 | /-! |
| 6 | # Escaping curvature-controlled points on a raw ancient flow |
| 7 | |
| 8 | An unbounded terminal scalar field supplies escaping centers and controlled |
| 9 | balls whose curvature-scaled radii diverge. Scalar monotonicity propagates |
| 10 | the terminal bound throughout the past. No global curvature bound, soliton |
| 11 | structure, or ancient kappa-solution package is required. |
| 12 | |
| 13 | Reference: Morgan--Tian, Corollary 9.38 and Proposition 9.39, pp. 203-205; |
| 14 | Kleiner--Lott, Theorem 46.1, pp. 2687-2688. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set Filter |
| 21 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 22 | |
| 23 | namespace PoincareMT.RicciFlow |
| 24 | |
| 25 | variable {M : Type} [TopologicalSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 27 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 28 | [SecondCountableTopology M] [ConnectedSpace M] |
| 29 | {b : ℝ} (F : RicciFlow 3 M (Iic b)) |
| 30 | |
| 31 | private theorem continuous_terminal_scalar |
| 32 | (P : M23NormalizedKappaCompactnessPredecessors) : |
| 33 | Continuous (F.connection b).scalarCurvature := by |
| 34 | apply continuousOn_univ.mp |
| 35 | exact (P.scalar_regular M (Iic b) F).continuousOn.comp |
| 36 | (f := fun x : M => (b, x)) |
| 37 | (continuous_const.prodMk continuous_id).continuousOn |
| 38 | (fun x _ => ⟨by simp only [mem_Iic, le_refl], mem_univ x⟩) |
| 39 | |
| 40 | /-- Select a terminal ball whose factor-four scalar bound controls the raw |
| 41 | flow throughout its past. Only terminal completeness is used here. -/ |
| 42 | theorem exists_backward_controlled_point_of_m23_predecessors |
| 43 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 44 | (hc : MetricComplete (F.metric b)) |
| 45 | (hop : ∀ s ≤ b, ∀ y, (F.connection s).NonnegativeCurvatureOperator y) |
| 46 | (hmono : ∀ s ≤ b, ∀ y, |
| 47 | (F.connection s).scalarCurvature y ≤ (F.connection b).scalarCurvature y) |
| 48 | (p x : M) (hd : 0 < ((F.metric b).edist p x).toReal) |
| 49 | (hx : 0 < (F.connection b).scalarCurvature x) : |
| 50 | let g := F.metric b |
| 51 | let R := (F.connection b).scalarCurvature |
| 52 | ∃ q : M, ∃ r : ℝ, q ∈ g.ball x ((g.edist p x).toReal / 2) ∧ |
| 53 | 0 < r ∧ R x ≤ R q ∧ (g.edist p x).toReal / 2 ≤ (g.edist p q).toReal ∧ |
| 54 | r * Real.sqrt (R q) = (g.edist p x).toReal * Real.sqrt (R x) / 4 ∧ |
| 55 | g.ball q r ⊆ g.ball x ((g.edist p x).toReal / 2) ∧ |
| 56 | (∀ y ∈ g.ball q r, R y ≤ 4 * R q) ∧ |
| 57 | ∀ s ≤ b, ∀ y ∈ g.ball q r, |
| 58 | |(F.connection s).curvatureTensorNorm y| ≤ 4 * R q := by |
| 59 | let g := F.metric b |
| 60 | let R := (F.connection b).scalarCurvature |
| 61 | let := g.toMetricSpace |
| 62 | let : ProperSpace M := g.properSpace_toMetricSpace hc |
| 63 | have hdist (u v : M) : dist u v = (g.edist u v).toReal := rfl |
| 64 | have hnorm (s : ℝ) (hs : s ≤ b) (y : M) : |
| 65 | (F.connection s).curvatureTensorNorm y ≤ (F.connection s).scalarCurvature y := |
| 66 | (F.connection s).curvatureTensorNorm_le_scalarCurvature_sharp |
| 67 | (P.tensor_calculus 3 M (F.metric s) (F.connection s)) y (hop s hs y) |
| 68 | have hR (y : M) : 0 ≤ R y := (Real.sqrt_nonneg _).trans (hnorm b le_rfl y) |
| 69 | obtain ⟨q, r, hq, hr, hRq, hdistq, hscale, hsubset, hcontrol⟩ := |
| 70 | Poincare.AncientVolume.exists_curvature_controlled_point_of_continuous R hR |
| 71 | (F.continuous_terminal_scalar P) p x hd hx |
| 72 | simp only [hdist, g.toMetricSpace_ball] at hq hdistq hscale hsubset hcontrol |
| 73 | refine ⟨q, r, hq, hr, hRq, hdistq, hscale, hsubset, hcontrol, ?_⟩ |
| 74 | intro s hs y hy |
| 75 | rw [abs_of_nonneg (show 0 ≤ (F.connection s).curvatureTensorNorm y from |
| 76 | Real.sqrt_nonneg _)] |
| 77 | exact (hnorm s hs y).trans ((hmono s hs y).trans (hcontrol y hy)) |
| 78 | |
| 79 | /-- An unbounded raw terminal scalar field gives escaping controlled centers, |
| 80 | diverging scalar and controlled rescaled radius, and negligible radius relative |
| 81 | to the original basepoint distance. -/ |
| 82 | theorem exists_escaping_backward_controlled_sequence_of_m23_predecessors |
| 83 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 84 | (hc : MetricComplete (F.metric b)) |
| 85 | (hop : ∀ s ≤ b, ∀ y, (F.connection s).NonnegativeCurvatureOperator y) |
| 86 | (hmono : ∀ s ≤ b, ∀ y, |
| 87 | (F.connection s).scalarCurvature y ≤ (F.connection b).scalarCurvature y) |
| 88 | (p : M) (hunbounded : ¬ BddAbove (range (F.connection b).scalarCurvature)) : |
| 89 | let g := F.metric b |
| 90 | let R := (F.connection b).scalarCurvature |
| 91 | ∃ (q : ℕ → M) (r : ℕ → ℝ), |
| 92 | (∀ i, 0 < R (q i) ∧ 0 < r i ∧ |
| 93 | (∀ y ∈ g.ball (q i) (r i), R y ≤ 4 * R (q i)) ∧ |
| 94 | ∀ s ≤ b, ∀ y ∈ g.ball (q i) (r i), |
| 95 | |(F.connection s).curvatureTensorNorm y| ≤ 4 * R (q i)) ∧ |
| 96 | Tendsto (fun i => (g.edist p (q i)).toReal) atTop atTop ∧ |
| 97 | Tendsto (fun i => R (q i)) atTop atTop ∧ |
| 98 | Tendsto (fun i => r i * Real.sqrt (R (q i))) atTop atTop ∧ |
| 99 | Tendsto (fun i => (g.edist p (q i)).toReal * Real.sqrt (R (q i))) atTop atTop ∧ |
| 100 | Tendsto (fun i => r i / (g.edist p (q i)).toReal) atTop (𝓝 0) := by |
| 101 | classical |
| 102 | let g := F.metric b |
| 103 | let R := (F.connection b).scalarCurvature |
| 104 | let := g.toMetricSpace |
| 105 | let : ProperSpace M := g.properSpace_toMetricSpace hc |
| 106 | have hdist (x y : M) : dist x y = (g.edist x y).toReal := rfl |
| 107 | have hchoose (i : ℕ) : ∃ q : M, ∃ r : ℝ, |
| 108 | 0 < R q ∧ 0 < r ∧ |
| 109 | (∀ y ∈ g.ball q r, R y ≤ 4 * R q) ∧ |
| 110 | (∀ s ≤ b, ∀ y ∈ g.ball q r, |
| 111 | |(F.connection s).curvatureTensorNorm y| ≤ 4 * R q) ∧ |
| 112 | (i : ℝ) ≤ (g.edist p q).toReal ∧ (i : ℝ) ≤ R q ∧ |
| 113 | (i : ℝ) ≤ r * Real.sqrt (R q) ∧ |
| 114 | (i : ℝ) ≤ (g.edist p q).toReal * Real.sqrt (R q) ∧ |
| 115 | r / (g.edist p q).toReal ≤ 1 / ((i : ℝ) + 1) := by |
| 116 | obtain ⟨B, hB⟩ := (isCompact_closedBall p (2 * ((i : ℝ) + 1) ^ 2)).bddAbove_image |
| 117 | (F.continuous_terminal_scalar P).continuousOn |
| 118 | obtain ⟨v, ⟨x, rfl⟩, hx⟩ := not_bddAbove_iff.mp hunbounded (max B (max (i : ℝ) 16)) |
| 119 | have hxB : B < R x := lt_of_le_of_lt (le_max_left _ _) hx |
| 120 | have hxi : (i : ℝ) < R x := |
| 121 | lt_of_le_of_lt ((le_max_left _ _).trans (le_max_right _ _)) hx |
| 122 | have hx16 : 16 < R x := |
| 123 | lt_of_le_of_lt ((le_max_right _ _).trans (le_max_right _ _)) hx |
| 124 | have hxoutside : x ∉ Metric.closedBall p (2 * ((i : ℝ) + 1) ^ 2) := by |
| 125 | intro hxmem |
| 126 | exact (not_le_of_gt hxB) (hB (mem_image_of_mem _ hxmem)) |
| 127 | have hdlarge : 2 * ((i : ℝ) + 1) ^ 2 < (g.edist p x).toReal := by |
| 128 | simpa only [Metric.mem_closedBall, dist_comm x p, hdist, not_le] using hxoutside |
| 129 | have hd : 0 < (g.edist p x).toReal := by |
| 130 | nlinarith [sq_nonneg ((i : ℝ) + 1)] |
| 131 | have hxpos : 0 < (F.connection b).scalarCurvature x := by |
| 132 | change 0 < R x |
| 133 | linarith |
| 134 | obtain ⟨q, r, _, hr, hRxq, hdistq, hscale, _, hcontrol, hpast⟩ := |
| 135 | F.exists_backward_controlled_point_of_m23_predecessors P hc hop hmono p x hd hxpos |
| 136 | have hqx : 0 < R q := hxpos.trans_le hRxq |
| 137 | have hrootx : 4 < Real.sqrt (R x) := by |
| 138 | have hs := Real.sq_sqrt (show 0 ≤ R x by linarith) |
| 139 | nlinarith [Real.sqrt_nonneg (R x)] |
| 140 | have hrootq : 1 ≤ Real.sqrt (R q) := by |
| 141 | have hs := Real.sqrt_le_sqrt hRxq |
| 142 | linarith |
| 143 | have hi : 0 < (i : ℝ) + 1 := by positivity |
| 144 | have hi1 : 1 ≤ (i : ℝ) + 1 := by linarith [Nat.cast_nonneg (α := ℝ) i] |
| 145 | have hqdist : (i : ℝ) ≤ (g.edist p q).toReal := by nlinarith |
| 146 | have hdqpos : 0 < (g.edist p q).toReal := by linarith |
| 147 | have hrupper : r ≤ (g.edist p q).toReal := by |
| 148 | have hsxq := Real.sqrt_le_sqrt hRxq |
| 149 | have hmul := mul_le_mul_of_nonneg_left hsxq hd.le |
| 150 | have hsqpos : 0 < Real.sqrt (R q) := Real.sqrt_pos.mpr hqx |
| 151 | nlinarith [hscale] |
| 152 | let a := r / ((i : ℝ) + 1) |
| 153 | have ha : 0 < a := div_pos hr hi |
| 154 | have har : a ≤ r := div_le_self hr.le hi1 |
| 155 | refine ⟨q, a, hqx, ha, ?_, ?_, hqdist, hxi.le.trans hRxq, ?_, ?_, ?_⟩ |
| 156 | · intro y hy |
| 157 | exact hcontrol y (lt_of_lt_of_le hy (ENNReal.ofReal_le_ofReal har)) |
| 158 | · intro s hs y hy |
| 159 | exact hpast s hs y (lt_of_lt_of_le hy (ENNReal.ofReal_le_ofReal har)) |
| 160 | · have hmul := mul_le_mul_of_nonneg_left hrootx.le hd.le |
| 161 | have hscaleLarge : ((i : ℝ) + 1) ^ 2 ≤ r * Real.sqrt (R q) := by |
| 162 | linarith |
| 163 | have hdiv := div_le_div_of_nonneg_right hscaleLarge hi.le |
| 164 | have hcancel : ((i : ℝ) + 1) ^ 2 / ((i : ℝ) + 1) = (i : ℝ) + 1 := by |
| 165 | field_simp |
| 166 | rw [hcancel] at hdiv |
| 167 | calc |
| 168 | (i : ℝ) ≤ (i : ℝ) + 1 := by linarith |
| 169 | _ ≤ r * Real.sqrt (R q) / ((i : ℝ) + 1) := hdiv |
| 170 | _ = a * Real.sqrt (R q) := by dsimp [a]; ring |
| 171 | · exact hqdist.trans (le_mul_of_one_le_right ENNReal.toReal_nonneg hrootq) |
| 172 | · apply (div_le_iff₀ hdqpos).mpr |
| 173 | calc |
| 174 | a ≤ (g.edist p q).toReal / ((i : ℝ) + 1) := |
| 175 | div_le_div_of_nonneg_right hrupper hi.le |
| 176 | _ = (1 / ((i : ℝ) + 1)) * (g.edist p q).toReal := by ring |
| 177 | choose q r hpos hr hcontrol hpast hdistq hscalar hscale hscaledDist hratio using hchoose |
| 178 | refine ⟨q, r, fun i => ⟨hpos i, hr i, hcontrol i, hpast i⟩, ?_, ?_, ?_, ?_, ?_⟩ |
| 179 | · exact tendsto_atTop_mono hdistq tendsto_natCast_atTop_atTop |
| 180 | · exact tendsto_atTop_mono hscalar tendsto_natCast_atTop_atTop |
| 181 | · exact tendsto_atTop_mono hscale tendsto_natCast_atTop_atTop |
| 182 | · exact tendsto_atTop_mono hscaledDist tendsto_natCast_atTop_atTop |
| 183 | · apply squeeze_zero (fun i => div_nonneg (hr i).le ENNReal.toReal_nonneg) hratio |
| 184 | exact tendsto_const_nhds.div_atTop (tendsto_atTop_mono |
| 185 | (fun i => show (i : ℝ) ≤ (i : ℝ) + 1 by linarith) tendsto_natCast_atTop_atTop) |
| 186 | |
| 187 | end PoincareMT.RicciFlow |