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.Curvature.Calculus |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.Monotonicity |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.PointSelection |
| 4 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl |
| 5 | import PoincareLib.Geometry.Riemannian.Measure.Basic |
| 6 | |
| 7 | /-! |
| 8 | # Backward curvature control at spatially selected points |
| 9 | |
| 10 | The bounded ancient Harnack route extends terminal scalar control to the |
| 11 | entire past over the same spatial set. Applied to spatial point selection, |
| 12 | this supplies the curvature-controlled domains in Kleiner--Lott (corrected |
| 13 | 2013), Proposition 41.13, p. 2678. Unbounded distance-squared scalar curvature |
| 14 | is an explicit input here; the asymptotic scalar-curvature theorem must |
| 15 | produce it. The noncollapse application uses terminal-metric balls throughout. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open Set Filter |
| 21 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.RicciFlow |
| 26 | |
| 27 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] [T3Space M] |
| 28 | [SecondCountableTopology M] [ConnectedSpace M] [NoncompactSpace M] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 30 | |
| 31 | /-- Terminal scalar control bounds full curvature at every earlier time on |
| 32 | the same spatial set, with the frozen curvature normalization. -/ |
| 33 | theorem curvatureTensorNorm_le_of_bounded_ancient_terminal_scalar |
| 34 | (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow n M (Iic 0)) |
| 35 | (hcomplete : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 36 | (hoperator : ∀ t ≤ 0, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 37 | {K : ℝ} (hK : 0 ≤ K) |
| 38 | (hbound : ∀ t ≤ 0, ∀ x, (F.connection t).curvatureTensorNorm x ≤ K) |
| 39 | {t : ℝ} (ht : t ≤ 0) {S : Set M} {A : ℝ} |
| 40 | (hscalar : ∀ x ∈ S, (F.connection t).scalarCurvature x ≤ A) : |
| 41 | ∀ s ≤ t, ∀ x ∈ S, (F.connection s).curvatureTensorNorm x ≤ (n : ℝ) ^ 2 * A := by |
| 42 | intro s hs x hx |
| 43 | have hs0 := hs.trans ht |
| 44 | apply ((F.connection s).curvatureTensorNorm_le_scalarCurvature |
| 45 | (hC.tensor_calculus n M (F.metric s) (F.connection s)) x (hoperator s hs0 x)).trans |
| 46 | exact mul_le_mul_of_nonneg_left |
| 47 | (((F.scalarCurvature_monotoneOn_of_bounded_ancient hC hcomplete hoperator hK hbound x) |
| 48 | hs0 ht hs).trans (hscalar x hx)) (sq_nonneg _) |
| 49 | |
| 50 | /-- Spatial selection together with bounded ancient scalar monotonicity gives |
| 51 | controlled balls over the whole past. Scalar curvature at the centers remains |
| 52 | bounded; it is the curvature-scaled distances and radii that diverge. -/ |
| 53 | theorem exists_escaping_backward_curvature_controlled_sequence |
| 54 | (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow n M (Iic 0)) |
| 55 | (hcomplete : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 56 | (hoperator : ∀ t ≤ 0, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 57 | {K : ℝ} (hK : 0 ≤ K) |
| 58 | (hbound : ∀ t ≤ 0, ∀ x, (F.connection t).curvatureTensorNorm x ≤ K) |
| 59 | {t : ℝ} (ht : t ≤ 0) (p : M) |
| 60 | (hunbounded : ¬ BddAbove (range (fun x => |
| 61 | ((F.metric t).edist p x).toReal ^ 2 * (F.connection t).scalarCurvature x))) : |
| 62 | ∃ q : ℕ → M, ∃ r : ℕ → ℝ, |
| 63 | (∀ i, 0 < (F.connection t).scalarCurvature (q i) ∧ 0 < r i ∧ |
| 64 | (∀ y ∈ (F.metric t).ball (q i) (r i), |
| 65 | (F.connection t).scalarCurvature y ≤ 4 * (F.connection t).scalarCurvature (q i)) ∧ |
| 66 | ∀ s ≤ t, ∀ y ∈ (F.metric t).ball (q i) (r i), |
| 67 | (F.connection s).curvatureTensorNorm y ≤ |
| 68 | 4 * (n : ℝ) ^ 2 * (F.connection t).scalarCurvature (q i)) ∧ |
| 69 | Tendsto (fun i => ((F.metric t).edist p (q i)).toReal) atTop atTop ∧ |
| 70 | Tendsto r atTop atTop ∧ |
| 71 | Tendsto (fun i => r i * Real.sqrt ((F.connection t).scalarCurvature (q i))) atTop atTop ∧ |
| 72 | Tendsto (fun i => ((F.metric t).edist p (q i)).toReal * |
| 73 | Real.sqrt ((F.connection t).scalarCurvature (q i))) atTop atTop ∧ |
| 74 | Tendsto (fun i => r i / ((F.metric t).edist p (q i)).toReal) atTop (𝓝 0) ∧ |
| 75 | BddAbove (range (fun i => (F.connection t).scalarCurvature (q i))) := by |
| 76 | have hscalar (x : M) : 0 ≤ (F.connection t).scalarCurvature x := |
| 77 | ((F.connection t).curvatureOperatorBound_scalarCurvature |
| 78 | (hC.tensor_calculus n M (F.metric t) (F.connection t)) x (hoperator t ht x)).1 |
| 79 | have hbounded : BddAbove (range (F.connection t).scalarCurvature) := by |
| 80 | refine ⟨(n : ℝ) ^ 2 * K, ?_⟩ |
| 81 | rintro _ ⟨x, rfl⟩ |
| 82 | exact (le_abs_self _).trans (((F.connection t).abs_scalarCurvature_le_curvatureTensorNorm x).trans |
| 83 | (mul_le_mul_of_nonneg_left (hbound t ht x) (sq_nonneg _))) |
| 84 | obtain ⟨q, r, hcontrol, hlimits⟩ := |
| 85 | (F.metric t).exists_escaping_curvature_controlled_sequence |
| 86 | (F.connection t).scalarCurvature hscalar hbounded p hunbounded |
| 87 | refine ⟨q, r, ?_, hlimits⟩ |
| 88 | intro i |
| 89 | refine ⟨(hcontrol i).1, (hcontrol i).2.1, (hcontrol i).2.2, ?_⟩ |
| 90 | simpa only [mul_left_comm, mul_assoc] using |
| 91 | F.curvatureTensorNorm_le_of_bounded_ancient_terminal_scalar hC hcomplete hoperator hK hbound |
| 92 | ht (hcontrol i).2.2 |
| 93 | |
| 94 | /-- The explicit parabolic noncollapse hypothesis applies once terminal |
| 95 | scalar control has supplied the full backward-cylinder curvature bound. -/ |
| 96 | theorem ball_volume_lower_bound_of_bounded_ancient_terminal_scalar |
| 97 | [MeasurableSpace M] [BorelSpace M] |
| 98 | (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow n M (Iic 0)) |
| 99 | (hcomplete : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 100 | (hoperator : ∀ t ≤ 0, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 101 | {K : ℝ} (hK : 0 ≤ K) |
| 102 | (hbound : ∀ t ≤ 0, ∀ x, (F.connection t).curvatureTensorNorm x ≤ K) |
| 103 | {κ : ℝ} |
| 104 | (hnoncollapse : ∀ t ≤ 0, ∀ x : M, ∀ r : ℝ, 0 < r → |
| 105 | (∀ s ∈ Icc (t - r ^ 2) t, ∀ y ∈ (F.metric t).ball x r, |
| 106 | (F.connection s).curvatureTensorNorm y ≤ r⁻¹ ^ 2) → |
| 107 | ENNReal.ofReal (κ * r ^ n) ≤ (F.metric t).volumeMeasure ((F.metric t).ball x r)) |
| 108 | {t : ℝ} (ht : t ≤ 0) (x : M) {r A : ℝ} (hr : 0 < r) |
| 109 | (hscalar : ∀ y ∈ (F.metric t).ball x r, (F.connection t).scalarCurvature y ≤ A) |
| 110 | (hscale : (n : ℝ) ^ 2 * A ≤ r⁻¹ ^ 2) : |
| 111 | ENNReal.ofReal (κ * r ^ n) ≤ (F.metric t).volumeMeasure ((F.metric t).ball x r) := by |
| 112 | apply hnoncollapse t ht x r hr |
| 113 | intro s hs y hy |
| 114 | exact (F.curvatureTensorNorm_le_of_bounded_ancient_terminal_scalar |
| 115 | hC hcomplete hoperator hK hbound ht hscalar s hs.2 y hy).trans hscale |
| 116 | |
| 117 | end PoincareMT.RicciFlow |