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 Mathlib.Analysis.Calculus.BumpFunction.Convolution |
| 7 | |
| 8 | /-! Uniform convergence of normalized mollifiers to the original function. -/ |
| 9 | |
| 10 | open Set Filter MeasureTheory ContinuousLinearMap |
| 11 | open scoped ContDiff Topology Convolution |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace Poincare.Analysis.Convolution |
| 16 | |
| 17 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 18 | [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] |
| 19 | |
| 20 | /-- **Math.** Shrinking normalized smooth bumps recover a uniformly continuous |
| 21 | function uniformly on the entire model space. -/ |
| 22 | theorem tendstoUniformly_normed_convolution |
| 23 | (mu : Measure E) [mu.IsAddHaarMeasure] {f : E → ℝ} (hf : UniformContinuous f) |
| 24 | {ρ : ℕ → ContDiffBump (0 : E)} |
| 25 | (hρ : Tendsto (fun n => (ρ n).rOut) atTop (𝓝 0)) : |
| 26 | TendstoUniformly (fun n => (ρ n).normed mu ⋆[lsmul ℝ ℝ, mu] f) f atTop := by |
| 27 | rw [Metric.tendstoUniformly_iff] |
| 28 | intro ε hε |
| 29 | obtain ⟨δ, hδ, hmod⟩ := |
| 30 | Metric.uniformContinuous_iff.mp hf (ε / 2) (half_pos hε) |
| 31 | filter_upwards [hρ.eventually_lt_const hδ] with n hn |
| 32 | intro x |
| 33 | have hdist := dist_convolution_le (μ := mu) (f := (ρ n).normed mu) |
| 34 | (g := f) (x₀ := x) (R := (ρ n).rOut) (z₀ := f x) (half_pos hε).le |
| 35 | (ρ n).support_normed_eq.subset (ρ n).nonneg_normed (ρ n).integral_normed |
| 36 | hf.continuous.aestronglyMeasurable |
| 37 | (fun y hy => (hmod ((Metric.mem_ball.mp hy).trans hn)).le) |
| 38 | rw [dist_comm] |
| 39 | exact hdist.trans_lt (half_lt_self hε) |
| 40 | |
| 41 | end Poincare.Analysis.Convolution |