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.MollifiedForcingBounds |
| 7 | |
| 8 | /-! |
| 9 | # Uniform approximation by the actual rescaled mollifier |
| 10 | |
| 11 | The canonical mollified values converge uniformly for any smooth compact |
| 12 | unit-mass kernel, including signed kernels. The proof uses the conserved |
| 13 | absolute mass and Mathlib's convolution oscillation estimate. |
| 14 | |
| 15 | Reference: Morgan--Tian, Proposition 9.20, printed pp. 207-208; |
| 16 | Mathlib, `dist_convolution_le'` in `Analysis/Convolution.lean`. |
| 17 | -/ |
| 18 | |
| 19 | open Set Filter MeasureTheory ContinuousLinearMap |
| 20 | open Poincare.Analysis.Convolution |
| 21 | open scoped ContDiff Topology Convolution |
| 22 | |
| 23 | noncomputable section |
| 24 | |
| 25 | namespace Poincare.Analysis.Parabolic.WeakRegularity.Canonical |
| 26 | |
| 27 | local instance {n : ℕ} : (volume : Measure (Spacetime n)).IsAddHaarMeasure := by |
| 28 | change ((volume : Measure (Euclid n)).prod (volume : Measure ℝ)).IsAddHaarMeasure |
| 29 | infer_instance |
| 30 | |
| 31 | /-- Positive rescalings of a fixed smooth compact unit-mass kernel approximate |
| 32 | a continuous compactly supported function uniformly on spacetime. -/ |
| 33 | theorem tendstoUniformly_mollifiedValue |
| 34 | {n : ℕ} {u ρ : Spacetime n → ℝ} |
| 35 | (hu : Continuous u) (huc : HasCompactSupport u) |
| 36 | (hρ : ContDiff ℝ ∞ ρ) (hρc : HasCompactSupport ρ) |
| 37 | (hmass : (∫ y, ρ y) = 1) |
| 38 | {r : ℕ → ℝ} (hr : ∀ m, 0 < r m) |
| 39 | (hlim : Tendsto r atTop (𝓝 0)) : |
| 40 | TendstoUniformly (fun m => mollifiedValue u ρ (r m)) u atTop := by |
| 41 | have huc' : UniformContinuous u := huc.uniformContinuous_of_continuous hu |
| 42 | let M : ℝ := ∫ y, ‖ρ y‖ |
| 43 | have hM : 0 ≤ M := integral_nonneg (fun y => norm_nonneg _) |
| 44 | obtain ⟨R, hRpos, hR⟩ := hρc.isBounded.exists_pos_norm_lt |
| 45 | rw [Metric.tendstoUniformly_iff] |
| 46 | intro ε hε |
| 47 | have hmodpos : 0 < ε / (2 * (M + 1)) := by positivity |
| 48 | obtain ⟨δ, hδ, hmod⟩ := |
| 49 | Metric.uniformContinuous_iff.mp huc' (ε / (2 * (M + 1))) hmodpos |
| 50 | filter_upwards [hlim.eventually_lt_const (div_pos hδ hRpos)] with m hm |
| 51 | intro z |
| 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 | hu.aestronglyMeasurable (x₀ := z) (z₀ := u z) |
| 79 | (fun y hy => (hmod ((Metric.mem_ball.mp hy).trans |
| 80 | ((lt_div_iff₀ hRpos).mp hm))).le) |
| 81 | simp only [lsmul_apply, smul_eq_mul, integral_mul_const, |
| 82 | integral_rescaledKernel volume ρ (hr m), hmass, one_mul, habs] at hd |
| 83 | have hb : (‖(lsmul ℝ ℝ : ℝ →L[ℝ] ℝ →L[ℝ] ℝ)‖ * M) * (ε / (2 * (M + 1))) ≤ |
| 84 | M * (ε / (2 * (M + 1))) := by |
| 85 | apply mul_le_mul_of_nonneg_right _ hmodpos.le |
| 86 | simpa only [one_mul] using |
| 87 | mul_le_mul_of_nonneg_right (opNorm_lsmul_le (𝕜 := ℝ) (R := ℝ) (E := ℝ)) hM |
| 88 | have hsmall : M * (ε / (2 * (M + 1))) < ε := by |
| 89 | rw [← mul_div_assoc, div_lt_iff₀ (by positivity : 0 < 2 * (M + 1))] |
| 90 | nlinarith |
| 91 | rw [dist_comm] |
| 92 | simpa only [mollifiedValue, lebesgueConvolution_eq_convolution] using |
| 93 | hd.trans_lt (hb.trans_lt hsmall) |
| 94 | |
| 95 | end Poincare.Analysis.Parabolic.WeakRegularity.Canonical |
| 96 |