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.Cylinders.Volume |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.VolumeRatio.Monotonicity |
| 3 | |
| 4 | /-! |
| 5 | # Noncollapse from asymptotic volume |
| 6 | |
| 7 | Bishop--Gromov transfers a positive asymptotic volume ratio at one point to |
| 8 | all scales and all centers in its finite-distance component. Time monotonicity |
| 9 | then gives the same noncollapse constant on earlier slices of a bounded flow. |
| 10 | This is an input to the ancient-limit argument in Kleiner--Lott, |
| 11 | Corollary 44.1, pp. 2682--2683. |
| 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 ENNReal |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.RiemannianMetric |
| 24 | |
| 25 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 26 | [MeasurableSpace M] [BorelSpace M] [T3Space M] [SecondCountableTopology M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 28 | |
| 29 | /-- Every positive-radius volume ratio bounds its asymptotic limit below. -/ |
| 30 | theorem asymptoticVolumeRatio_le_ball_volume_div_pow |
| 31 | (g : RiemannianMetric n M) (D : LeviCivitaData g) (hn : 1 ≤ n) |
| 32 | (hc : MetricComplete g) |
| 33 | (hRic : ∀ x : M, ∀ v : TangentSpace (𝓡 n) x, 0 ≤ D.ricci x v v) |
| 34 | (p : M) {r : ℝ} (hr : 0 < r) : |
| 35 | g.asymptoticVolumeRatio p ≤ (g.volumeMeasure (g.ball p r)).toReal / r ^ n := by |
| 36 | apply le_of_tendsto (g.tendsto_asymptoticVolumeRatio D hn hc hRic p) |
| 37 | filter_upwards [eventually_ge_atTop r] with s hs |
| 38 | exact g.antitoneOn_ball_volume_div_pow D hn hc hRic p hr (hr.trans_le hs) hs |
| 39 | |
| 40 | /-- A lower asymptotic volume ratio at one point gives a uniform lower bound |
| 41 | at every scale about every center in its finite-distance component. -/ |
| 42 | theorem ball_volume_lower_bound_of_asymptoticVolumeRatio |
| 43 | (g : RiemannianMetric n M) (D : LeviCivitaData g) (hn : 1 ≤ n) |
| 44 | (hc : MetricComplete g) |
| 45 | (hRic : ∀ x : M, ∀ v : TangentSpace (𝓡 n) x, 0 ≤ D.ricci x v v) |
| 46 | (p y : M) (hy : g.edist p y ≠ ⊤) {κ r : ℝ} (hκ : 0 ≤ κ) (hr : 0 < r) |
| 47 | (hvolume : κ ≤ g.asymptoticVolumeRatio p) : |
| 48 | ENNReal.ofReal ((κ / 2 ^ n) * r ^ n) ≤ g.volumeMeasure (g.ball y r) := by |
| 49 | let R := max r (2 * (g.edist p y).toReal + 1) |
| 50 | have hrR : r ≤ R := le_max_left _ _ |
| 51 | have hR : 0 < R := hr.trans_le hrR |
| 52 | have hyR : y ∈ g.ball p (R / 2) := by |
| 53 | change g.edist p y < ENNReal.ofReal (R / 2) |
| 54 | rw [← ENNReal.ofReal_toReal hy] |
| 55 | apply (ENNReal.ofReal_lt_ofReal_iff (by positivity : 0 < R / 2)).mpr |
| 56 | have := le_max_right r (2 * (g.edist p y).toReal + 1) |
| 57 | linarith |
| 58 | have hbase : ENNReal.ofReal (κ * R ^ n) ≤ g.volumeMeasure (g.ball p R) := by |
| 59 | have hratio := hvolume.trans |
| 60 | (g.asymptoticVolumeRatio_le_ball_volume_div_pow D hn hc hRic p hR) |
| 61 | have hreal := (le_div_iff₀ (pow_pos hR n)).mp hratio |
| 62 | exact (ENNReal.ofReal_le_ofReal hreal).trans_eq |
| 63 | (ENNReal.ofReal_toReal (g.ball_volume_ne_top_of_metricComplete hc p R)) |
| 64 | exact g.volume_lower_bound_of_center_in_half_ball D hn hc hRic p y hR hr hrR |
| 65 | hκ hyR hbase |
| 66 | |
| 67 | end PoincareMT.RiemannianMetric |
| 68 | |
| 69 | /-- A terminal asymptotic-volume lower bound gives a uniform all-center, |
| 70 | all-scale noncollapse constant on every earlier slice of a bounded slab. -/ |
| 71 | theorem PoincareMT.RicciFlow.ball_volume_lower_bound_of_terminal_asymptoticVolumeRatio |
| 72 | {m : ℕ} {M : Type u} [TopologicalSpace M] |
| 73 | [MeasurableSpace M] [BorelSpace M] [T3Space M] [SecondCountableTopology M] |
| 74 | [ChartedSpace (EuclideanSpace ℝ (Fin (m + 1))) M] |
| 75 | [IsManifold (𝓡 (m + 1)) ∞ M] {J : Set ℝ} |
| 76 | (hC : PoincareMT.RicciFlowCurvatureTheory.{u}) |
| 77 | (F : PoincareMT.RicciFlow (m + 1) M J) |
| 78 | {a b S : ℝ} (hm : 0 < m) (hJ : Icc a b ⊆ interior J) |
| 79 | (hcomplete : ∀ t ∈ Icc a b, PoincareMT.MetricComplete (F.metric t)) |
| 80 | (hoperator : ∀ t ∈ Icc a b, ∀ x : M, |
| 81 | (F.connection t).NonnegativeCurvatureOperator x) |
| 82 | (hS : 0 ≤ S) |
| 83 | (hscalar : ∀ t ∈ Icc a b, ∀ x : M, (F.connection t).scalarCurvature x ≤ S) |
| 84 | (p : M) {κ : ℝ} (hκ : 0 < κ) |
| 85 | (hvolume : κ ≤ (F.metric b).asymptoticVolumeRatio p) : |
| 86 | ∀ t ∈ Icc a b, ∀ y : M, (F.metric t).edist p y ≠ ⊤ → |
| 87 | ∀ r : ℝ, 0 < r → |
| 88 | ENNReal.ofReal ((κ / 2 ^ (m + 1)) * r ^ (m + 1)) ≤ |
| 89 | (F.metric t).volumeMeasure ((F.metric t).ball y r) := by |
| 90 | intro t ht y hy r hr |
| 91 | have hmono := (F.asymptoticVolumeRatio_spec hC hm hJ hcomplete hoperator |
| 92 | hS hscalar p).2 |
| 93 | apply (F.metric t).ball_volume_lower_bound_of_asymptoticVolumeRatio |
| 94 | (F.connection t) (by omega) (hcomplete t ht) |
| 95 | (fun x v => ((F.connection t).ricci_bounds_of_nonnegative_curvatureOperator |
| 96 | (hC.tensor_calculus (m + 1) M (F.metric t) (F.connection t)) |
| 97 | x (hoperator t ht x) v).1) p y hy hκ.le hr |
| 98 | exact hvolume.trans (hmono ht ⟨ht.1.trans ht.2, le_rfl⟩ ht.2) |