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 |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.VolumeRatio.Monotonicity |
| 4 | import PoincareLib.Geometry.RicciFlow.MetricComparison |
| 5 | |
| 6 | /-! |
| 7 | # Asymptotic volume monotonicity through the ancient terminal time |
| 8 | |
| 9 | The within Ricci equation gives uniform metric comparison even at time zero. |
| 10 | Hausdorff measure distortion and radius rescaling give an exponential |
| 11 | comparison of the actual asymptotic volume ratios. Its factor tends to one |
| 12 | at the terminal time, extending the established interior monotonicity. |
| 13 | |
| 14 | This supplies the terminal-time volume input for Kleiner--Lott, |
| 15 | Proposition 41.13, p. 2678 (corrected 2013). No Harnack estimate or |
| 16 | parabolic noncollapse assumption is used. |
| 17 | -/ |
| 18 | |
| 19 | noncomputable section |
| 20 | set_option autoImplicit false |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | |
| 23 | open Set Filter MeasureTheory |
| 24 | open scoped Manifold ContDiff Bundle Topology ENNReal NNReal |
| 25 | |
| 26 | universe u |
| 27 | |
| 28 | namespace PoincareMT.RiemannianMetric |
| 29 | |
| 30 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 31 | [MeasurableSpace M] [BorelSpace M] [T3Space M] |
| 32 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 33 | |
| 34 | omit [MeasurableSpace M] [BorelSpace M] [T3Space M] in |
| 35 | private theorem edist_le_mul_of_global_tangentNorm_le |
| 36 | (g h : RiemannianMetric n M) {C : ℝ} (hC : 0 < C) |
| 37 | (hbound : ∀ x (v : TangentSpace (𝓡 n) x), |
| 38 | h.tangentNorm x v ≤ C * g.tangentNorm x v) |
| 39 | (x y : M) : h.edist x y ≤ ENNReal.ofReal C * g.edist x y := by |
| 40 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 41 | ⟨g.toRiemannianMetric⟩ |
| 42 | have hdiv : h.edist x y / ENNReal.ofReal C ≤ g.edist x y := by |
| 43 | apply le_of_forall_gt_imp_ge_of_dense |
| 44 | intro r hr |
| 45 | obtain ⟨γ, hγ0, hγ1, hγsmooth, hγlength⟩ := |
| 46 | Manifold.exists_lt_of_riemannianEDist_lt hr |
| 47 | have hlength := pathELength_le_of_tangentNorm_le g h γ 0 1 C hC.le |
| 48 | (fun _ _ => hbound _) |
| 49 | have hdist : h.edist x y ≤ h.pathELength γ 0 1 := by |
| 50 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 51 | ⟨h.toRiemannianMetric⟩ |
| 52 | exact Manifold.riemannianEDist_le_pathELength hγsmooth hγ0 hγ1 zero_le_one |
| 53 | apply (ENNReal.div_le_iff (ENNReal.ofReal_ne_zero_iff.mpr hC) |
| 54 | ENNReal.ofReal_ne_top).mpr |
| 55 | exact (hdist.trans hlength).trans (by |
| 56 | rw [mul_comm r] |
| 57 | exact mul_le_mul_right hγlength.le _) |
| 58 | simpa only [mul_comm] using |
| 59 | (ENNReal.div_le_iff (ENNReal.ofReal_ne_zero_iff.mpr hC) |
| 60 | ENNReal.ofReal_ne_top).mp hdiv |
| 61 | |
| 62 | private theorem volumeMeasure_le_of_global_tangentNorm_le |
| 63 | (g h : RiemannianMetric n M) {C : ℝ} (hC : 0 < C) |
| 64 | (hbound : ∀ x (v : TangentSpace (𝓡 n) x), |
| 65 | h.tangentNorm x v ≤ C * g.tangentNorm x v) (s : Set M) : |
| 66 | h.volumeMeasure s ≤ ENNReal.ofReal C ^ n * g.volumeMeasure s := by |
| 67 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 68 | ⟨g.toRiemannianMetric⟩ |
| 69 | let : IsContinuousRiemannianBundle (EuclideanSpace ℝ (Fin n)) |
| 70 | (TangentSpace (𝓡 n) : M → Type _) := |
| 71 | ⟨⟨g.inner, g.toContinuousRiemannianMetric.continuous, fun _ _ _ ↦ rfl⟩⟩ |
| 72 | let m₁ : EMetricSpace M := EMetricSpace.ofRiemannianMetric (𝓡 n) M |
| 73 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 74 | ⟨h.toRiemannianMetric⟩ |
| 75 | let : IsContinuousRiemannianBundle (EuclideanSpace ℝ (Fin n)) |
| 76 | (TangentSpace (𝓡 n) : M → Type _) := |
| 77 | ⟨⟨h.inner, h.toContinuousRiemannianMetric.continuous, fun _ _ _ ↦ rfl⟩⟩ |
| 78 | let m₂ : EMetricSpace M := EMetricSpace.ofRiemannianMetric (𝓡 n) M |
| 79 | let Cn : ℝ≥0 := ⟨C, hC.le⟩ |
| 80 | have hcoe : (Cn : ℝ≥0∞) = ENNReal.ofReal C := ENNReal.coe_nnreal_eq Cn |
| 81 | have hLip : @LipschitzWith M M m₁.toPseudoEMetricSpace m₂.toPseudoEMetricSpace |
| 82 | Cn id := by |
| 83 | intro x y |
| 84 | change h.edist x y ≤ (Cn : ℝ≥0∞) * g.edist x y |
| 85 | rw [hcoe] |
| 86 | exact edist_le_mul_of_global_tangentNorm_le g h hC hbound x y |
| 87 | have hraw := @LipschitzWith.hausdorffMeasure_image_le M M m₁ m₂ |
| 88 | inferInstance inferInstance inferInstance inferInstance (K := Cn) (f := id) |
| 89 | hLip (d := (n : ℝ)) (by positivity) s |
| 90 | simp only [Set.image_id, ENNReal.rpow_natCast, hcoe] at hraw |
| 91 | change (Measure.euclideanHausdorffMeasure n) s ≤ _ * |
| 92 | (@Measure.euclideanHausdorffMeasure M m₁ inferInstance inferInstance n) s |
| 93 | simp only [Measure.euclideanHausdorffMeasure_def, Measure.smul_apply, |
| 94 | ENNReal.smul_def, smul_eq_mul] |
| 95 | exact (mul_le_mul_right hraw _).trans_eq (by ac_rfl) |
| 96 | |
| 97 | /-- Uniform comparison of both tangent norms bounds the canonical asymptotic |
| 98 | volume ratios. Both volume convergence statements follow from completeness |
| 99 | and nonnegative Ricci curvature. -/ |
| 100 | theorem asymptoticVolumeRatio_le_of_tangentNorm_bounds |
| 101 | [SecondCountableTopology M] |
| 102 | (g h : RiemannianMetric n M) (Dg : LeviCivitaData g) (Dh : LeviCivitaData h) |
| 103 | (hn : 1 ≤ n) (hgc : MetricComplete g) (hhc : MetricComplete h) |
| 104 | (hRg : ∀ x (v : TangentSpace (𝓡 n) x), 0 ≤ Dg.ricci x v v) |
| 105 | (hRh : ∀ x (v : TangentSpace (𝓡 n) x), 0 ≤ Dh.ricci x v v) |
| 106 | {C : ℝ} (hC : 0 < C) |
| 107 | (hforward : ∀ x (v : TangentSpace (𝓡 n) x), |
| 108 | h.tangentNorm x v ≤ C * g.tangentNorm x v) |
| 109 | (hreverse : ∀ x (v : TangentSpace (𝓡 n) x), |
| 110 | g.tangentNorm x v ≤ C * h.tangentNorm x v) (p : M) : |
| 111 | h.asymptoticVolumeRatio p ≤ C ^ (2 * n) * g.asymptoticVolumeRatio p := by |
| 112 | have hball (r : ℝ) : h.volumeMeasure (h.ball p r) ≤ |
| 113 | ENNReal.ofReal C ^ n * g.volumeMeasure (g.ball p (C * r)) := |
| 114 | (volumeMeasure_le_of_global_tangentNorm_le g h hC hforward _).trans |
| 115 | (mul_le_mul_right (measure_mono |
| 116 | (ball_subset_ball_of_tangentNorm_le h g p r C hC |
| 117 | (fun x _ => hreverse x))) _) |
| 118 | have hlim := (g.tendsto_asymptoticVolumeRatio Dg hn hgc hRg p).comp |
| 119 | (Filter.Tendsto.const_mul_atTop hC tendsto_id) |
| 120 | have hscaled : Tendsto (fun r : ℝ => |
| 121 | C ^ n * (g.volumeMeasure (g.ball p (C * r))).toReal / r ^ n) |
| 122 | atTop (𝓝 (C ^ (2 * n) * g.asymptoticVolumeRatio p)) := by |
| 123 | have haux := hlim.const_mul (C ^ (2 * n)) |
| 124 | apply haux.congr' |
| 125 | filter_upwards [eventually_gt_atTop (0 : ℝ)] with r hr |
| 126 | simp only [Function.comp_apply, id_eq, mul_pow, pow_mul] |
| 127 | field_simp |
| 128 | ring |
| 129 | apply le_of_tendsto_of_tendsto (h.tendsto_asymptoticVolumeRatio Dh hn hhc hRh p) |
| 130 | hscaled |
| 131 | filter_upwards [eventually_gt_atTop (0 : ℝ)] with r hr |
| 132 | apply div_le_div_of_nonneg_right _ (pow_nonneg hr.le n) |
| 133 | have hv := ENNReal.toReal_mono |
| 134 | (ENNReal.mul_ne_top (ENNReal.pow_ne_top ENNReal.ofReal_ne_top) |
| 135 | (g.ball_volume_ne_top_of_metricComplete hgc p (C * r))) (hball r) |
| 136 | simpa only [ENNReal.toReal_mul, ENNReal.toReal_pow, |
| 137 | ENNReal.toReal_ofReal hC.le] using hv |
| 138 | |
| 139 | end PoincareMT.RiemannianMetric |
| 140 | |
| 141 | namespace PoincareMT.RicciFlow |
| 142 | |
| 143 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 144 | [MeasurableSpace M] [BorelSpace M] [T3Space M] [SecondCountableTopology M] |
| 145 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 146 | |
| 147 | /-- Quantitative comparison of the actual volume ratios, including time zero. |
| 148 | The exponential coefficient comes directly from the full-curvature bound. -/ |
| 149 | theorem asymptoticVolumeRatio_le_exp_of_bounded_ancient |
| 150 | (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow n M (Iic 0)) |
| 151 | (hn : 1 ≤ n) (hcomplete : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 152 | (hoperator : ∀ t ≤ 0, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 153 | {K : ℝ} (hbound : ∀ t ≤ 0, ∀ x, (F.connection t).curvatureTensorNorm x ≤ K) |
| 154 | {a b : ℝ} (ha : a ≤ 0) (hb : b ≤ 0) (p : M) : |
| 155 | (F.metric b).asymptoticVolumeRatio p ≤ |
| 156 | Real.exp ((n : ℝ) ^ 3 * K * |b - a|) ^ (2 * n) * |
| 157 | (F.metric a).asymptoticVolumeRatio p := by |
| 158 | have hRic (t : ℝ) (ht : t ≤ 0) (x : M) (v : TangentSpace (𝓡 n) x) : |
| 159 | |(F.connection t).ricci x v v| ≤ |
| 160 | ((n : ℝ) ^ 3 * K) * (F.metric t).inner x v v := by |
| 161 | have hnorm := (F.connection t).abs_ricci_quadratic_le_curvatureTensorNorm x v |
| 162 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 n) x) = n := |
| 163 | finrank_euclideanSpace_fin |
| 164 | simp only [Fintype.card_fin, hdim] at hnorm |
| 165 | have hQ : 0 ≤ (F.metric t).inner x v v := by |
| 166 | by_cases hv : v = 0 |
| 167 | · subst v; simp |
| 168 | · exact ((F.metric t).pos x v hv).le |
| 169 | exact hnorm.trans (mul_le_mul_of_nonneg_right |
| 170 | (mul_le_mul_of_nonneg_left (hbound t ht x) (by positivity)) hQ) |
| 171 | apply RiemannianMetric.asymptoticVolumeRatio_le_of_tangentNorm_bounds |
| 172 | (F.metric a) (F.metric b) (F.connection a) (F.connection b) hn |
| 173 | (hcomplete a ha) (hcomplete b hb) |
| 174 | (fun x v => ((F.connection a).ricci_bounds_of_nonnegative_curvatureOperator |
| 175 | (hC.tensor_calculus n M (F.metric a) (F.connection a)) x (hoperator a ha x) v).1) |
| 176 | (fun x v => ((F.connection b).ricci_bounds_of_nonnegative_curvatureOperator |
| 177 | (hC.tensor_calculus n M (F.metric b) (F.connection b)) x (hoperator b hb x) v).1) |
| 178 | (Real.exp_pos _) _ _ p |
| 179 | · intro x v |
| 180 | exact F.tangentNorm_le_exp_of_ricci_bound (convex_Iic 0) (Subset.refl _) x v |
| 181 | ((n : ℝ) ^ 3 * K) (fun t ht => hRic t ht x v) ha hb |
| 182 | · intro x v |
| 183 | simpa only [abs_sub_comm a b] using |
| 184 | F.tangentNorm_le_exp_of_ricci_bound (convex_Iic 0) (Subset.refl _) x v |
| 185 | ((n : ℝ) ^ 3 * K) (fun t ht => hRic t ht x v) hb ha |
| 186 | |
| 187 | /-- Canonical asymptotic volume is nonincreasing on the entire ancient time |
| 188 | domain, including its terminal endpoint. -/ |
| 189 | theorem antitoneOn_asymptoticVolumeRatio_of_bounded_ancient |
| 190 | {m : ℕ} {N : Type u} [TopologicalSpace N] |
| 191 | [MeasurableSpace N] [BorelSpace N] [T3Space N] [SecondCountableTopology N] |
| 192 | [ChartedSpace (EuclideanSpace ℝ (Fin (m + 1))) N] [IsManifold (𝓡 (m + 1)) ∞ N] |
| 193 | (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow (m + 1) N (Iic 0)) |
| 194 | (hm : 0 < m) (hcomplete : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 195 | (hoperator : ∀ t ≤ 0, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 196 | {K : ℝ} (hK : 0 ≤ K) |
| 197 | (hbound : ∀ t ≤ 0, ∀ x, (F.connection t).curvatureTensorNorm x ≤ K) (p : N) : |
| 198 | AntitoneOn (fun t => (F.metric t).asymptoticVolumeRatio p) (Iic 0) := by |
| 199 | have hinterior {a b : ℝ} (hab : a ≤ b) (hb : b < 0) : |
| 200 | (F.metric b).asymptoticVolumeRatio p ≤ (F.metric a).asymptoticVolumeRatio p := by |
| 201 | have hJ : Icc a b ⊆ interior (Iic (0 : ℝ)) := by |
| 202 | rw [interior_Iic] |
| 203 | exact fun t ht => ht.2.trans_lt hb |
| 204 | have hspec := F.asymptoticVolumeRatio_spec hC hm hJ |
| 205 | (fun t ht => hcomplete t (ht.2.trans hb.le)) |
| 206 | (fun t ht => hoperator t (ht.2.trans hb.le)) |
| 207 | (mul_nonneg (sq_nonneg ((m + 1 : ℕ) : ℝ)) hK) |
| 208 | (fun t ht x => (le_abs_self _).trans |
| 209 | (((F.connection t).abs_scalarCurvature_le_curvatureTensorNorm x).trans |
| 210 | (mul_le_mul_of_nonneg_left (hbound t (ht.2.trans hb.le) x) |
| 211 | (sq_nonneg _)))) p |
| 212 | exact hspec.2 ⟨le_rfl, hab⟩ ⟨hab, le_rfl⟩ hab |
| 213 | intro a ha b hb hab |
| 214 | change a ≤ 0 at ha |
| 215 | change b ≤ 0 at hb |
| 216 | rcases lt_or_eq_of_le hb with hbneg | rfl |
| 217 | · exact hinterior hab hbneg |
| 218 | rcases lt_or_eq_of_le hab with haneg | rfl |
| 219 | · have hlimit : Tendsto (fun t : ℝ => |
| 220 | Real.exp (((m + 1 : ℕ) : ℝ) ^ 3 * K * |0 - t|) ^ (2 * (m + 1)) * |
| 221 | (F.metric a).asymptoticVolumeRatio p) |
| 222 | (𝓝[<] 0) (𝓝 ((F.metric a).asymptoticVolumeRatio p)) := by |
| 223 | have hc : Continuous (fun t : ℝ => |
| 224 | Real.exp (((m + 1 : ℕ) : ℝ) ^ 3 * K * |0 - t|) ^ (2 * (m + 1)) * |
| 225 | (F.metric a).asymptoticVolumeRatio p) := by fun_prop |
| 226 | simpa using (hc.tendsto 0).mono_left |
| 227 | (show 𝓝[<] (0 : ℝ) ≤ 𝓝 0 from nhdsWithin_le_nhds) |
| 228 | apply ge_of_tendsto hlimit |
| 229 | filter_upwards [self_mem_nhdsWithin, |
| 230 | mem_nhdsWithin_of_mem_nhds (Ioi_mem_nhds haneg)] with t ht hat |
| 231 | have hcompare := F.asymptoticVolumeRatio_le_exp_of_bounded_ancient |
| 232 | hC (by omega) hcomplete hoperator hbound ht.le le_rfl p |
| 233 | exact hcompare.trans (mul_le_mul_of_nonneg_left (hinterior hat.le ht) (by positivity)) |
| 234 | · exact le_rfl |
| 235 | |
| 236 | end PoincareMT.RicciFlow |