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.CurvatureControl.VolumeRatio.BallComparison |
| 3 | import Mathlib.Topology.Algebra.Order.Field |
| 4 | |
| 5 | /-! |
| 6 | # Asymptotic volume-ratio monotonicity on bounded Ricci flows |
| 7 | |
| 8 | The actual normalized ball volumes converge and their limits are nonincreasing |
| 9 | in time. The curvature theory is the reviewed M04 predecessor; no differential |
| 10 | Harnack estimate is used. Reference: Kleiner--Lott, Corollary 44.1, p. 2683, |
| 11 | and Appendix E, pp. 2848--2849. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT |
| 24 | |
| 25 | /-- The asymptotic ratio uses the intrinsic ball volume and radius to the |
| 26 | dimension, with no unit-ball normalization. Convergence is proved below. -/ |
| 27 | def RiemannianMetric.asymptoticVolumeRatio |
| 28 | {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 29 | [MeasurableSpace M] [BorelSpace M] [T3Space M] |
| 30 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 31 | [IsManifold (𝓡 n) ∞ M] (g : RiemannianMetric n M) (p : M) : ℝ := |
| 32 | limUnder atTop (fun r : ℝ => (g.volumeMeasure (g.ball p r)).toReal / r ^ n) |
| 33 | |
| 34 | theorem RiemannianMetric.tendsto_asymptoticVolumeRatio |
| 35 | {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 36 | [MeasurableSpace M] [BorelSpace M] [T3Space M] [SecondCountableTopology M] |
| 37 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 38 | (g : RiemannianMetric n M) (D : LeviCivitaData g) (hn : 1 ≤ n) |
| 39 | (hc : MetricComplete g) |
| 40 | (hRic : ∀ x : M, ∀ v : TangentSpace (𝓡 n) x, 0 ≤ D.ricci x v v) |
| 41 | (p : M) : |
| 42 | Tendsto (fun r : ℝ => (g.volumeMeasure (g.ball p r)).toReal / r ^ n) |
| 43 | atTop (𝓝 (g.asymptoticVolumeRatio p)) := |
| 44 | tendsto_nhds_limUnder (g.exists_tendsto_ball_volume_div_pow D hn hc hRic p) |
| 45 | |
| 46 | private theorem tendsto_add_radius_div_pow {f : ℝ → ℝ} {V C : ℝ} {n : ℕ} |
| 47 | (h : Tendsto (fun r => f r / r ^ n) atTop (𝓝 V)) : |
| 48 | Tendsto (fun r => f (r + C) / r ^ n) atTop (𝓝 V) := by |
| 49 | have hshift : Tendsto (fun r => f (r + C) / (r + C) ^ n) atTop (𝓝 V) := |
| 50 | h.comp (tendsto_atTop_add_const_right atTop C tendsto_id) |
| 51 | have hfactor : Tendsto (fun r : ℝ => ((r + C) / r) ^ n) atTop (𝓝 1) := by |
| 52 | have hz : Tendsto (fun r : ℝ => C / r) atTop (𝓝 0) := |
| 53 | tendsto_const_nhds.div_atTop tendsto_id |
| 54 | have haux := ((tendsto_const_nhds : |
| 55 | Tendsto (fun _ : ℝ => (1 : ℝ)) atTop (𝓝 1)).add hz).pow n |
| 56 | have haux' : Tendsto (fun r : ℝ => (1 + C / r) ^ n) atTop (𝓝 1) := by |
| 57 | simpa using haux |
| 58 | apply haux'.congr' |
| 59 | filter_upwards [eventually_gt_atTop (0 : ℝ)] with r hr |
| 60 | simp only [add_div, div_self hr.ne'] |
| 61 | have hprod : Tendsto |
| 62 | (fun r => (f (r + C) / (r + C) ^ n) * ((r + C) / r) ^ n) |
| 63 | atTop (𝓝 V) := by simpa only [mul_one] using hshift.mul hfactor |
| 64 | apply hprod.congr' |
| 65 | filter_upwards [eventually_gt_atTop (max 0 (-C))] with r hr |
| 66 | have hr0 : 0 < r := (le_max_left _ _).trans_lt hr |
| 67 | have hsum : 0 < r + C := by have := (le_max_right 0 (-C)).trans_lt hr; linarith |
| 68 | rw [div_pow] |
| 69 | field_simp |
| 70 | |
| 71 | /-- On complete uniformly scalar-bounded nonnegatively curved flows, normalized |
| 72 | ball volumes converge to a nonnegative limit which is nonincreasing in time. -/ |
| 73 | theorem RicciFlow.asymptoticVolumeRatio_spec |
| 74 | {m : ℕ} {M : Type u} [TopologicalSpace M] |
| 75 | [MeasurableSpace M] [BorelSpace M] [T3Space M] [SecondCountableTopology M] |
| 76 | [ChartedSpace (EuclideanSpace ℝ (Fin (m + 1))) M] |
| 77 | [IsManifold (𝓡 (m + 1)) ∞ M] {J : Set ℝ} |
| 78 | (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow (m + 1) M J) |
| 79 | {a b S : ℝ} (hm : 0 < m) (hJ : Icc a b ⊆ interior J) |
| 80 | (hcomplete : ∀ t ∈ Icc a b, MetricComplete (F.metric t)) |
| 81 | (hoperator : ∀ t ∈ Icc a b, ∀ x : M, |
| 82 | (F.connection t).NonnegativeCurvatureOperator x) |
| 83 | (hS : 0 ≤ S) |
| 84 | (hscalar : ∀ t ∈ Icc a b, ∀ x : M, (F.connection t).scalarCurvature x ≤ S) |
| 85 | (p : M) : |
| 86 | (∀ t ∈ Icc a b, 0 ≤ (F.metric t).asymptoticVolumeRatio p ∧ |
| 87 | Tendsto (fun r : ℝ => |
| 88 | ((F.metric t).volumeMeasure ((F.metric t).ball p r)).toReal / r ^ (m + 1)) |
| 89 | atTop (𝓝 ((F.metric t).asymptoticVolumeRatio p))) ∧ |
| 90 | AntitoneOn (fun t => (F.metric t).asymptoticVolumeRatio p) (Icc a b) := by |
| 91 | have hlim (t : ℝ) (ht : t ∈ Icc a b) := |
| 92 | (F.metric t).tendsto_asymptoticVolumeRatio (F.connection t) (by omega) |
| 93 | (hcomplete t ht) |
| 94 | (fun x v => ((F.connection t).ricci_bounds_of_nonnegative_curvatureOperator |
| 95 | (hC.tensor_calculus (m + 1) M (F.metric t) (F.connection t)) |
| 96 | x (hoperator t ht x) v).1) p |
| 97 | refine ⟨?_, ?_⟩ |
| 98 | · intro t ht |
| 99 | refine ⟨ge_of_tendsto (hlim t ht) ?_, hlim t ht⟩ |
| 100 | filter_upwards [eventually_gt_atTop (0 : ℝ)] with r hr |
| 101 | positivity |
| 102 | · intro s hs t ht hst |
| 103 | have hsub : Icc s t ⊆ Icc a b := Icc_subset_Icc hs.1 ht.2 |
| 104 | have hcompare (r : ℝ) (hr : 0 < r) := |
| 105 | F.terminal_ball_volume_le_enlarged hC hm hst (hsub.trans hJ) |
| 106 | (fun q hq => hcomplete q (hsub hq)) |
| 107 | (fun q hq => hoperator q (hsub hq)) hS |
| 108 | (fun q hq => hscalar q (hsub hq)) p hr |
| 109 | have hshift := tendsto_add_radius_div_pow |
| 110 | (C := (4 * ((m + 1 : ℕ) : ℝ) + 8 * S) * (t - s) + 1) (hlim s hs) |
| 111 | apply le_of_tendsto_of_tendsto (hlim t ht) hshift |
| 112 | filter_upwards [eventually_gt_atTop (0 : ℝ)] with r hr |
| 113 | exact div_le_div_of_nonneg_right |
| 114 | (by simpa only [add_assoc] using hcompare r hr) (pow_nonneg hr.le _) |
| 115 | |
| 116 | end PoincareMT |