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 | /- |
| 2 | Adapted from AxelWorkspace revision f1cdb30cabdc8781d2d3dec86d3d99ab1820f30e. |
| 3 | Source and SHA-256: references/analysis/axel-workspace/weak-parabolic-regularity-sources.json. |
| 4 | Apache-2.0; see the license in that source directory. |
| 5 | -/ |
| 6 | import PoincareLib.Analysis.Parabolic.WeakRegularity.Interior.Energy.RescaledApproximation |
| 7 | import Mathlib.MeasureTheory.Function.LpSpace.DomAct.Continuous |
| 8 | import Mathlib.MeasureTheory.Function.L2Space |
| 9 | |
| 10 | /-! |
| 11 | # Strong L2 approximation by the canonical mollifier |
| 12 | |
| 13 | The proof averages the continuous isometric translation action on L2. |
| 14 | Reference: Morgan--Tian, Proposition 9.20, Section 9.2.6, printed p. 208. |
| 15 | -/ |
| 16 | |
| 17 | open Set Filter MeasureTheory ContinuousLinearMap |
| 18 | open Poincare.Analysis.Convolution |
| 19 | open scoped ContDiff Topology Convolution ENNReal |
| 20 | |
| 21 | noncomputable section |
| 22 | |
| 23 | namespace Poincare.Analysis.Parabolic.WeakRegularity.Canonical |
| 24 | |
| 25 | local instance {n : ℕ} : (volume : Measure (Spacetime n)).IsAddHaarMeasure := by |
| 26 | change ((volume : Measure (Euclid n)).prod (volume : Measure ℝ)).IsAddHaarMeasure |
| 27 | infer_instance |
| 28 | |
| 29 | theorem tendsto_rescaledKernel_lp_average |
| 30 | {n : ℕ} (u : Lp ℝ 2 (volume : Measure (Spacetime n))) |
| 31 | {ρ : Spacetime n → ℝ} (hρ : ContDiff ℝ ∞ ρ) (hρc : HasCompactSupport ρ) |
| 32 | (hmass : (∫ y, ρ y) = 1) {r : ℕ → ℝ} (hr : ∀ m, 0 < r m) |
| 33 | (hlim : Tendsto r atTop (𝓝 0)) : |
| 34 | Tendsto (fun m => ∫ y : Spacetime n, |
| 35 | rescaledKernel ρ (r m) y • (DomAddAct.mk (-y) +ᵥ u)) atTop (𝓝 u) := by |
| 36 | letI : Fact ((2 : ℝ≥0∞) ≠ ⊤) := ⟨by norm_num⟩ |
| 37 | letI : ContinuousVAdd (Spacetime n)ᵈᵃᵃ |
| 38 | (Lp ℝ 2 (volume : Measure (Spacetime n))) := |
| 39 | MeasureTheory.Lp.instContinuousVAddDomAddAct |
| 40 | let T : Spacetime n → Lp ℝ 2 (volume : Measure (Spacetime n)) := |
| 41 | fun y => DomAddAct.mk y +ᵥ u |
| 42 | have hT : Continuous T := DomAddAct.continuous_mk.vadd continuous_const |
| 43 | let M : ℝ := ∫ y, ‖ρ y‖ |
| 44 | have hM : 0 ≤ M := integral_nonneg (fun y => norm_nonneg _) |
| 45 | obtain ⟨R, hRpos, hR⟩ := hρc.isBounded.exists_pos_norm_lt |
| 46 | rw [Metric.tendsto_nhds] |
| 47 | intro ε hε |
| 48 | have hmodpos : 0 < ε / (2 * (M + 1)) := by positivity |
| 49 | obtain ⟨δ, hδ, hmod⟩ := |
| 50 | Metric.continuousAt_iff.mp hT.continuousAt (ε / (2 * (M + 1))) hmodpos |
| 51 | filter_upwards [hlim.eventually_lt_const (div_pos hδ hRpos)] with m hm |
| 52 | have hscale : ContDiff ℝ ∞ (rescaledKernel ρ (r m)) := |
| 53 | contDiff_const.mul (hρ.comp (contDiff_id.const_smul (r m)⁻¹)) |
| 54 | have hcompact : HasCompactSupport (rescaledKernel ρ (r m)) := |
| 55 | (hρc.comp_homeomorph |
| 56 | (Homeomorph.smul (Units.mk0 (r m)⁻¹ (inv_ne_zero (hr m).ne')))).mul_left |
| 57 | have hsupport : Function.support (rescaledKernel ρ (r m)) ⊆ |
| 58 | Metric.ball (0 : Spacetime n) (r m * R) := by |
| 59 | intro y hy |
| 60 | have hρy : ρ ((r m)⁻¹ • y) ≠ 0 := by |
| 61 | intro he |
| 62 | exact hy (by simp [rescaledKernel, he]) |
| 63 | have hb := hR _ (subset_tsupport ρ hρy) |
| 64 | have hn : ‖(r m)⁻¹ • y‖ = (r m)⁻¹ * ‖y‖ := by |
| 65 | simp [norm_smul, Real.norm_eq_abs, abs_of_pos (hr m)] |
| 66 | rw [hn] at hb |
| 67 | have hb' := mul_lt_mul_of_pos_left hb (hr m) |
| 68 | simpa [mem_ball_zero_iff, ← mul_assoc, (hr m).ne'] using hb' |
| 69 | have habs : (∫ y, ‖rescaledKernel ρ (r m) y‖) = M := by |
| 70 | have he : (fun y => ‖rescaledKernel ρ (r m) y‖) = |
| 71 | rescaledKernel (fun y => ‖ρ y‖) (r m) := by |
| 72 | funext y |
| 73 | simp only [rescaledKernel, Real.norm_eq_abs, abs_mul, abs_inv, abs_pow, |
| 74 | abs_of_pos (hr m)] |
| 75 | rw [he, integral_rescaledKernel volume _ (hr m)] |
| 76 | have hd := dist_convolution_le' (μ := volume) (lsmul ℝ ℝ) hmodpos.le |
| 77 | (hscale.continuous.integrable_of_hasCompactSupport hcompact) hsupport |
| 78 | hT.aestronglyMeasurable (x₀ := 0) (z₀ := u) |
| 79 | (fun y hy => by |
| 80 | have he := (hmod ((Metric.mem_ball.mp hy).trans |
| 81 | ((lt_div_iff₀ hRpos).mp hm))).le |
| 82 | simpa [T] using he) |
| 83 | simp only [lsmul_apply, integral_smul_const, |
| 84 | integral_rescaledKernel volume ρ (hr m), hmass, one_smul, habs] at hd |
| 85 | have hb : (‖(lsmul ℝ ℝ : ℝ →L[ℝ] |
| 86 | (Lp ℝ 2 (volume : Measure (Spacetime n))) →L[ℝ] |
| 87 | (Lp ℝ 2 (volume : Measure (Spacetime n))))‖ * M) * |
| 88 | (ε / (2 * (M + 1))) ≤ M * (ε / (2 * (M + 1))) := by |
| 89 | apply mul_le_mul_of_nonneg_right _ hmodpos.le |
| 90 | simpa only [one_mul] using mul_le_mul_of_nonneg_right |
| 91 | (opNorm_lsmul_le (𝕜 := ℝ) (R := ℝ) |
| 92 | (E := Lp ℝ 2 (volume : Measure (Spacetime n)))) hM |
| 93 | have hsmall : M * (ε / (2 * (M + 1))) < ε := by |
| 94 | rw [← mul_div_assoc, div_lt_iff₀ (by positivity : 0 < 2 * (M + 1))] |
| 95 | nlinarith |
| 96 | simpa only [convolution, lsmul_apply, zero_sub, T] using |
| 97 | hd.trans_lt (hb.trans_lt hsmall) |
| 98 | |
| 99 | private theorem integrable_kernel_test_translate |
| 100 | {n : ℕ} (u : Lp ℝ 2 (volume : Measure (Spacetime n))) |
| 101 | {η φ : Spacetime n → ℝ} (hη : Continuous η) (hηc : HasCompactSupport η) |
| 102 | (hφ : Continuous φ) (hφc : HasCompactSupport φ) : |
| 103 | Integrable (fun p : Spacetime n × Spacetime n => |
| 104 | η p.1 * (φ p.2 * u (p.2 - p.1))) (volume.prod volume) := by |
| 105 | have hφ2 : MemLp φ 2 volume := hφ.memLp_of_hasCompactSupport hφc |
| 106 | have hut (y : Spacetime n) : MemLp (fun x => u (x - y)) 2 volume := by |
| 107 | exact (Lp.memLp u).comp_measurePreserving (measurePreserving_sub_right volume y) |
| 108 | have hsec (y : Spacetime n) : Integrable (fun x => φ x * u (x - y)) volume := |
| 109 | hφ2.integrable_mul (hut y) |
| 110 | have hmeas : StronglyMeasurable (fun p : Spacetime n × Spacetime n => |
| 111 | η p.1 * (φ p.2 * u (p.2 - p.1))) := |
| 112 | (hη.stronglyMeasurable.comp_measurable measurable_fst).mul |
| 113 | ((hφ.stronglyMeasurable.comp_measurable measurable_snd).mul |
| 114 | ((Lp.stronglyMeasurable u).comp_measurable (measurable_snd.sub measurable_fst))) |
| 115 | rw [integrable_prod_iff hmeas.aestronglyMeasurable] |
| 116 | refine ⟨Eventually.of_forall (fun y => (hsec y).const_mul (η y)), ?_⟩ |
| 117 | let C : ℝ := ((∫ x, φ x ^ 2) + ∫ x, (u x) ^ 2) / 2 |
| 118 | have hbound (y : Spacetime n) : (∫ x, ‖φ x * u (x - y)‖) ≤ C := by |
| 119 | have hi := integral_mono (hsec y).norm |
| 120 | ((hφ2.integrable_sq.add (hut y).integrable_sq).div_const 2) |
| 121 | (fun x => by |
| 122 | simp only [Pi.add_apply] |
| 123 | rw [norm_mul, Real.norm_eq_abs, Real.norm_eq_abs] |
| 124 | nlinarith [sq_nonneg (|φ x| - |u (x-y)|), sq_abs (φ x), sq_abs (u (x-y))]) |
| 125 | have he : (∫ x, (u (x-y)) ^ 2) = ∫ x, (u x) ^ 2 := |
| 126 | integral_sub_right_eq_self (fun x => (u x) ^ 2) y |
| 127 | simpa only [Pi.add_apply, integral_div, integral_add hφ2.integrable_sq (hut y).integrable_sq, |
| 128 | he, C] using hi |
| 129 | apply ((hη.integrable_of_hasCompactSupport hηc).norm.mul_const C).mono' |
| 130 | hmeas.aestronglyMeasurable.norm.integral_prod_right' |
| 131 | filter_upwards [] with y |
| 132 | rw [Real.norm_of_nonneg (integral_nonneg (fun x => norm_nonneg _))] |
| 133 | simp only [norm_mul, integral_const_mul] |
| 134 | simpa only [norm_mul] using mul_le_mul_of_nonneg_left (hbound y) (norm_nonneg (η y)) |
| 135 | |
| 136 | theorem lp_average_ae_eq_lebesgueConvolution |
| 137 | {n : ℕ} (u : Lp ℝ 2 (volume : Measure (Spacetime n))) |
| 138 | {η : Spacetime n → ℝ} (hη : Continuous η) (hηc : HasCompactSupport η) : |
| 139 | ((∫ y : Spacetime n, η y • (DomAddAct.mk (-y) +ᵥ u)) : |
| 140 | Lp ℝ 2 (volume : Measure (Spacetime n))) =ᵐ[volume] |
| 141 | lebesgueConvolution η u := by |
| 142 | letI : Fact ((2 : ℝ≥0∞) ≠ ⊤) := ⟨by norm_num⟩ |
| 143 | letI : ContinuousVAdd (Spacetime n)ᵈᵃᵃ |
| 144 | (Lp ℝ 2 (volume : Measure (Spacetime n))) := |
| 145 | MeasureTheory.Lp.instContinuousVAddDomAddAct |
| 146 | let T : Spacetime n → Lp ℝ 2 (volume : Measure (Spacetime n)) := |
| 147 | fun y => η y • (DomAddAct.mk (-y) +ᵥ u) |
| 148 | have hT : Continuous T := hη.smul |
| 149 | ((DomAddAct.continuous_mk.comp continuous_neg).vadd continuous_const) |
| 150 | have hTc : HasCompactSupport T := hηc.smul_right |
| 151 | have hTi : Integrable T volume := hT.integrable_of_hasCompactSupport hTc |
| 152 | have hconv : Continuous (lebesgueConvolution η u) := by |
| 153 | rw [lebesgueConvolution_eq_convolution] |
| 154 | exact hηc.continuous_convolution_left (lsmul ℝ ℝ) hη |
| 155 | ((Lp.memLp u).locallyIntegrable (by norm_num)) |
| 156 | apply ae_eq_of_integral_contDiff_smul_eq |
| 157 | (Lp.memLp _ |>.locallyIntegrable (by norm_num)) hconv.locallyIntegrable |
| 158 | intro φ hφ hφc |
| 159 | have hφ2 : MemLp φ 2 volume := hφ.continuous.memLp_of_hasCompactSupport hφc |
| 160 | let v : Lp ℝ 2 (volume : Measure (Spacetime n)) := hφ2.toLp φ |
| 161 | have hv : v =ᵐ[volume] φ := hφ2.coeFn_toLp |
| 162 | have hinner (w : Lp ℝ 2 (volume : Measure (Spacetime n))) : |
| 163 | inner ℝ v w = ∫ x, φ x * w x := by |
| 164 | rw [L2.inner_def] |
| 165 | apply integral_congr_ae |
| 166 | filter_upwards [hv] with x hx |
| 167 | simp [hx, mul_comm] |
| 168 | calc |
| 169 | (∫ x, φ x • (∫ y, T y) x) = inner ℝ v (∫ y, T y) := by |
| 170 | rw [hinner] |
| 171 | rfl |
| 172 | _ = ∫ y, inner ℝ v (T y) := (integral_inner (𝕜 := ℝ) hTi v).symm |
| 173 | _ = ∫ y, ∫ x, η y * (φ x * u (x-y)) := by |
| 174 | apply integral_congr_ae |
| 175 | filter_upwards [] with y |
| 176 | rw [hinner] |
| 177 | apply integral_congr_ae |
| 178 | filter_upwards [Lp.coeFn_smul (η y) (DomAddAct.mk (-y) +ᵥ u), |
| 179 | DomAddAct.vadd_Lp_ae_eq (DomAddAct.mk (-y)) u] with x hx ht |
| 180 | change φ x * (η y • (DomAddAct.mk (-y) +ᵥ u)) x = _ |
| 181 | rw [hx] |
| 182 | change φ x * (η y * (DomAddAct.mk (-y) +ᵥ u) x) = _ |
| 183 | rw [ht] |
| 184 | simp [sub_eq_add_neg, add_comm, mul_left_comm] |
| 185 | _ = ∫ x, ∫ y, η y * (φ x * u (x-y)) := |
| 186 | integral_integral_swap (integrable_kernel_test_translate u |
| 187 | hη hηc hφ.continuous hφc) |
| 188 | _ = ∫ x, φ x • lebesgueConvolution η u x := by |
| 189 | apply integral_congr_ae |
| 190 | filter_upwards [] with x |
| 191 | rw [lebesgueConvolution_eq_convolution] |
| 192 | simp only [convolution, lsmul_apply, smul_eq_mul] |
| 193 | rw [← integral_const_mul] |
| 194 | apply integral_congr_ae |
| 195 | filter_upwards [] with y |
| 196 | ring |
| 197 | |
| 198 | private theorem lp_average_toLp_ae_eq_lebesgueConvolution |
| 199 | {n : ℕ} {u η : Spacetime n → ℝ} (hu : MemLp u 2 volume) |
| 200 | (hη : Continuous η) (hηc : HasCompactSupport η) : |
| 201 | ((∫ y : Spacetime n, η y • (DomAddAct.mk (-y) +ᵥ hu.toLp u)) : |
| 202 | Lp ℝ 2 (volume : Measure (Spacetime n))) =ᵐ[volume] |
| 203 | lebesgueConvolution η u := by |
| 204 | refine (lp_average_ae_eq_lebesgueConvolution (hu.toLp u) hη hηc).trans ?_ |
| 205 | filter_upwards [] with x |
| 206 | apply integral_congr_ae |
| 207 | filter_upwards [hu.coeFn_toLp] with y hy |
| 208 | rw [hy] |
| 209 | |
| 210 | theorem memLp_lebesgueConvolution |
| 211 | {n : ℕ} {u η : Spacetime n → ℝ} (hu : MemLp u 2 volume) |
| 212 | (hη : Continuous η) (hηc : HasCompactSupport η) : |
| 213 | MemLp (lebesgueConvolution η u) 2 volume := |
| 214 | MemLp.ae_eq (lp_average_toLp_ae_eq_lebesgueConvolution hu hη hηc) (Lp.memLp _) |
| 215 | |
| 216 | theorem norm_toLp_lebesgueConvolution_le |
| 217 | {n : ℕ} {u η : Spacetime n → ℝ} (hu : MemLp u 2 volume) |
| 218 | (hη : Continuous η) (hηc : HasCompactSupport η) : |
| 219 | ‖(memLp_lebesgueConvolution hu hη hηc).toLp (lebesgueConvolution η u)‖ ≤ |
| 220 | (∫ y, ‖η y‖) * ‖hu.toLp u‖ := by |
| 221 | have he : (memLp_lebesgueConvolution hu hη hηc).toLp (lebesgueConvolution η u) = |
| 222 | ∫ y : Spacetime n, η y • (DomAddAct.mk (-y) +ᵥ hu.toLp u) := |
| 223 | Lp.ext ((memLp_lebesgueConvolution hu hη hηc).coeFn_toLp.trans |
| 224 | (lp_average_toLp_ae_eq_lebesgueConvolution hu hη hηc).symm) |
| 225 | rw [he] |
| 226 | simpa only [norm_smul, DomAddAct.norm_vadd_Lp, integral_mul_const] using |
| 227 | norm_integral_le_integral_norm |
| 228 | (fun y : Spacetime n => η y • (DomAddAct.mk (-y) +ᵥ hu.toLp u)) |
| 229 | |
| 230 | theorem tendsto_mollifiedValue_toLp |
| 231 | {n : ℕ} {u ρ : Spacetime n → ℝ} (hu : MemLp u 2 volume) |
| 232 | (hρ : ContDiff ℝ ∞ ρ) (hρc : HasCompactSupport ρ) |
| 233 | (hmass : (∫ y, ρ y) = 1) {r : ℕ → ℝ} (hr : ∀ m, 0 < r m) |
| 234 | (hlim : Tendsto r atTop (𝓝 0)) : |
| 235 | ∃ hm : ∀ m, MemLp (mollifiedValue u ρ (r m)) 2 volume, |
| 236 | Tendsto (fun m => (hm m).toLp (mollifiedValue u ρ (r m))) atTop |
| 237 | (𝓝 (hu.toLp u)) := by |
| 238 | let A (m : ℕ) : Lp ℝ 2 (volume : Measure (Spacetime n)) := |
| 239 | ∫ y, rescaledKernel ρ (r m) y • (DomAddAct.mk (-y) +ᵥ hu.toLp u) |
| 240 | have he (m : ℕ) : A m =ᵐ[volume] mollifiedValue u ρ (r m) := by |
| 241 | have hscale : ContDiff ℝ ∞ (rescaledKernel ρ (r m)) := |
| 242 | contDiff_const.mul (hρ.comp (contDiff_id.const_smul (r m)⁻¹)) |
| 243 | have hcompact : HasCompactSupport (rescaledKernel ρ (r m)) := |
| 244 | (hρc.comp_homeomorph |
| 245 | (Homeomorph.smul (Units.mk0 (r m)⁻¹ (inv_ne_zero (hr m).ne')))).mul_left |
| 246 | exact lp_average_toLp_ae_eq_lebesgueConvolution hu hscale.continuous hcompact |
| 247 | have hm (m : ℕ) : MemLp (mollifiedValue u ρ (r m)) 2 volume := |
| 248 | MemLp.ae_eq (he m) (Lp.memLp (A m)) |
| 249 | refine ⟨hm, ?_⟩ |
| 250 | have hrep (m : ℕ) : (hm m).toLp (mollifiedValue u ρ (r m)) = A m := |
| 251 | Lp.ext ((hm m).coeFn_toLp.trans (he m).symm) |
| 252 | simpa only [hrep] using |
| 253 | tendsto_rescaledKernel_lp_average (hu.toLp u) hρ hρc hmass hr hlim |
| 254 | |
| 255 | end Poincare.Analysis.Parabolic.WeakRegularity.Canonical |
| 256 |