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.AncientVolume.Volume.AsymptoticRatio |
| 2 | import PoincareLib.Geometry.Riemannian.Splitting.ParallelGradient.Volume |
| 3 | import PoincareLib.Geometry.Riemannian.Splitting.ParallelGradient.FactorCurvature |
| 4 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Cylinders.Noncollapse |
| 5 | |
| 6 | /-! |
| 7 | # Positive asymptotic volume ratio of the induced factor |
| 8 | |
| 9 | The actual parallel-gradient zero-level metric inherits nonnegative Ricci |
| 10 | curvature by the proved Ricci restriction identity. The product-volume ball |
| 11 | comparison gives an all-radius lower bound, and completeness identifies its |
| 12 | limit with the factor's canonical asymptotic volume ratio. |
| 13 | |
| 14 | References: Kleiner--Lott (corrected 2013), Proposition 41.13, p. 2678, |
| 15 | dimension reduction; Morgan--Tian, Lemma 2.14, pp. 28--29. |
| 16 | -/ |
| 17 | |
| 18 | noncomputable section |
| 19 | set_option autoImplicit false |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | |
| 22 | open Set TopologicalSpace |
| 23 | open Poincare.Geometry.Manifold.RegularLevel |
| 24 | open scoped Manifold ContDiff Bundle ENNReal |
| 25 | |
| 26 | namespace PoincareMT.RiemannianMetric |
| 27 | |
| 28 | variable {n : ℕ} {M : Type*} |
| 29 | [TopologicalSpace M] [T3Space M] [ConnectedSpace M] [SecondCountableTopology M] |
| 30 | [MeasurableSpace M] [BorelSpace M] |
| 31 | [ChartedSpace (EuclideanSpace ℝ (Fin (n + 1))) M] |
| 32 | [IsManifold (𝓡 (n + 1)) ∞ M] |
| 33 | {g : RiemannianMetric (n + 1) M} {D : LeviCivitaData g} |
| 34 | |
| 35 | /-- Ambient Euclidean ball growth gives both actual factor ball growth and a |
| 36 | lower bound for its canonical asymptotic volume ratio. Factor Ricci |
| 37 | nonnegativity is a conclusion from the ambient restriction identity. -/ |
| 38 | theorem parallelGradient_factor_volume_bounds_of_ball_volume_lower_bound |
| 39 | (hn : 0 < n) (hc : MetricComplete g) |
| 40 | (hRic : ∀ x : M, ∀ v : TangentSpace (𝓡 (n + 1)) x, 0 ≤ D.ricci x v v) |
| 41 | {f : M → ℝ} (hf : ContMDiff (𝓡 (n + 1)) 𝓘(ℝ, ℝ) ∞ f) |
| 42 | (hu : HasUnitGradient D f) (hz : HasZeroHessian D f) |
| 43 | {κ : ℝ} (hκ : 0 < κ) |
| 44 | (hvolume : ∀ x : M, ∀ r : ℝ, 0 < r → |
| 45 | ENNReal.ofReal (κ * r ^ (n + 1)) ≤ g.volumeMeasure (g.ball x r)) : |
| 46 | letI : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (n + 1))) = n + 1) := |
| 47 | ⟨finrank_euclideanSpace_fin⟩ |
| 48 | letI := openLevelSetChartedSpace hf (⊤ : Opens M) |
| 49 | (fun x _ => regular_of_hasUnitGradient hu x) n 0 |
| 50 | letI := isManifold_openLevelSet hf (⊤ : Opens M) |
| 51 | (fun x _ => regular_of_hasUnitGradient hu x) n 0 |
| 52 | let h := regularLevelMetric hf (⊤ : Opens M) |
| 53 | (fun x _ => regular_of_hasUnitGradient hu x) 0 g |
| 54 | (∀ y : zeroLevelSet f, ∀ v : TangentSpace (𝓡 n) y, |
| 55 | 0 ≤ h.leviCivitaData.ricci y v v) ∧ |
| 56 | (∀ y : zeroLevelSet f, ∀ r : ℝ, 0 < r → |
| 57 | ENNReal.ofReal ((κ / 2) * r ^ n) ≤ h.volumeMeasure (h.ball y r)) ∧ |
| 58 | ∀ y : zeroLevelSet f, κ / 2 ≤ h.asymptoticVolumeRatio y := by |
| 59 | let : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (n + 1))) = n + 1) := |
| 60 | ⟨finrank_euclideanSpace_fin⟩ |
| 61 | let hreg := fun x (_ : x ∈ (⊤ : Opens M)) => regular_of_hasUnitGradient hu x |
| 62 | let := openLevelSetChartedSpace hf (⊤ : Opens M) hreg n 0 |
| 63 | let := isManifold_openLevelSet hf (⊤ : Opens M) hreg n 0 |
| 64 | let h := regularLevelMetric hf (⊤ : Opens M) hreg 0 g |
| 65 | obtain ⟨_, hconn, hcomplete, Φ, e, _, _, _, _, _, _, hlower⟩ := |
| 66 | exists_parallelGradient_volumeSplitting hc hf hu hz |
| 67 | let : ConnectedSpace (zeroLevelSet f) := hconn |
| 68 | have hfactorRic : ∀ y : zeroLevelSet f, ∀ v : TangentSpace (𝓡 n) y, |
| 69 | 0 ≤ h.leviCivitaData.ricci y v v := by |
| 70 | intro y v |
| 71 | rw [(parallelGradient_factor_curvature hf hu hz y).2.2.1] |
| 72 | exact hRic _ _ |
| 73 | have hfactorVolume : ∀ y : zeroLevelSet f, ∀ r : ℝ, 0 < r → |
| 74 | ENNReal.ofReal ((κ / 2) * r ^ n) ≤ h.volumeMeasure (h.ball y r) := |
| 75 | hlower κ hκ (fun y r hr => hvolume (e (y, 0)) r hr) |
| 76 | refine ⟨hfactorRic, hfactorVolume, ?_⟩ |
| 77 | intro y |
| 78 | exact h.le_asymptoticVolumeRatio_of_ball_volume_lower_bound h.leviCivitaData hn |
| 79 | hcomplete hfactorRic y (div_nonneg hκ.le (by norm_num)) (hfactorVolume y) |
| 80 | |
| 81 | /-- Positive ambient asymptotic volume ratio gives an explicit positive |
| 82 | canonical asymptotic volume ratio at every point of the actual induced factor. |
| 83 | Its Ricci and all-radius volume lower bounds are derived at the same time. -/ |
| 84 | theorem parallelGradient_factor_volume_bounds_of_asymptoticVolumeRatio |
| 85 | (hn : 0 < n) (hc : MetricComplete g) |
| 86 | (hRic : ∀ x : M, ∀ v : TangentSpace (𝓡 (n + 1)) x, 0 ≤ D.ricci x v v) |
| 87 | {f : M → ℝ} (hf : ContMDiff (𝓡 (n + 1)) 𝓘(ℝ, ℝ) ∞ f) |
| 88 | (hu : HasUnitGradient D f) (hz : HasZeroHessian D f) |
| 89 | (p : M) (hvolume : 0 < g.asymptoticVolumeRatio p) : |
| 90 | letI : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (n + 1))) = n + 1) := |
| 91 | ⟨finrank_euclideanSpace_fin⟩ |
| 92 | letI := openLevelSetChartedSpace hf (⊤ : Opens M) |
| 93 | (fun x _ => regular_of_hasUnitGradient hu x) n 0 |
| 94 | letI := isManifold_openLevelSet hf (⊤ : Opens M) |
| 95 | (fun x _ => regular_of_hasUnitGradient hu x) n 0 |
| 96 | let h := regularLevelMetric hf (⊤ : Opens M) |
| 97 | (fun x _ => regular_of_hasUnitGradient hu x) 0 g |
| 98 | let κ := g.asymptoticVolumeRatio p / 2 ^ (n + 2) |
| 99 | (∀ y : zeroLevelSet f, ∀ v : TangentSpace (𝓡 n) y, |
| 100 | 0 ≤ h.leviCivitaData.ricci y v v) ∧ |
| 101 | (∀ y : zeroLevelSet f, ∀ r : ℝ, 0 < r → |
| 102 | ENNReal.ofReal (κ * r ^ n) ≤ h.volumeMeasure (h.ball y r)) ∧ |
| 103 | (∀ y : zeroLevelSet f, κ ≤ h.asymptoticVolumeRatio y) ∧ |
| 104 | ∀ y : zeroLevelSet f, 0 < h.asymptoticVolumeRatio y := by |
| 105 | let : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (n + 1))) = n + 1) := |
| 106 | ⟨finrank_euclideanSpace_fin⟩ |
| 107 | let hreg := fun x (_ : x ∈ (⊤ : Opens M)) => regular_of_hasUnitGradient hu x |
| 108 | let := openLevelSetChartedSpace hf (⊤ : Opens M) hreg n 0 |
| 109 | let := isManifold_openLevelSet hf (⊤ : Opens M) hreg n 0 |
| 110 | let h := regularLevelMetric hf (⊤ : Opens M) hreg 0 g |
| 111 | let κ := g.asymptoticVolumeRatio p / 2 ^ (n + 1) |
| 112 | have hκ : 0 < κ := div_pos hvolume (by positivity) |
| 113 | have hvolume' (x : M) (r : ℝ) (hr : 0 < r) : |
| 114 | ENNReal.ofReal (κ * r ^ (n + 1)) ≤ g.volumeMeasure (g.ball x r) := |
| 115 | g.ball_volume_lower_bound_of_asymptoticVolumeRatio D (by omega) hc hRic |
| 116 | p x (g.edist_ne_top p x) hvolume.le hr le_rfl |
| 117 | obtain ⟨hRic', hball, hratio⟩ := |
| 118 | parallelGradient_factor_volume_bounds_of_ball_volume_lower_bound hn hc hRic hf hu hz hκ hvolume' |
| 119 | have heq : κ / 2 = g.asymptoticVolumeRatio p / 2 ^ (n + 2) := by |
| 120 | dsimp only [κ] |
| 121 | simp only [div_div, show n + 2 = (n + 1) + 1 by omega, pow_succ] |
| 122 | refine ⟨hRic', ?_, ?_, ?_⟩ |
| 123 | · simpa only [heq] using hball |
| 124 | · simpa only [heq] using hratio |
| 125 | · intro y |
| 126 | exact (div_pos hκ (by norm_num)).trans_le (hratio y) |
| 127 | |
| 128 | end PoincareMT.RiemannianMetric |