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.ContDiff.Convolution |
| 7 | import Mathlib.MeasureTheory.Measure.Haar.NormedSpace |
| 8 | |
| 9 | open Set MeasureTheory ContinuousLinearMap |
| 10 | open scoped Topology Convolution ContDiff |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace Poincare.Analysis.Convolution |
| 15 | |
| 16 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 17 | [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] |
| 18 | |
| 19 | /-- **Math.** A compact smooth kernel differentiates its convolution with a |
| 20 | continuous function without differentiating that function. -/ |
| 21 | theorem fderiv_convolution_eq_kernel_derivative |
| 22 | (mu : Measure E) [mu.IsAddHaarMeasure] [mu.IsNegInvariant] |
| 23 | {f ρ : E → ℝ} (hf : Continuous f) (hρ : ContDiff ℝ 1 ρ) |
| 24 | (hρc : HasCompactSupport ρ) (x v : E) : |
| 25 | fderiv ℝ (ρ ⋆[lsmul ℝ ℝ, mu] f) x v = |
| 26 | ((fun y => fderiv ℝ ρ y v) ⋆[lsmul ℝ ℝ, mu] f) x := by |
| 27 | have hd := hρc.hasFDerivAt_convolution_right (μ := mu) (lsmul ℝ ℝ) |
| 28 | hf.locallyIntegrable hρ x |
| 29 | have hflip : ρ ⋆[lsmul ℝ ℝ, mu] f = f ⋆[lsmul ℝ ℝ, mu] ρ := by |
| 30 | rw [← convolution_flip] |
| 31 | funext z |
| 32 | simp only [convolution_def, flip_apply, lsmul_apply, smul_eq_mul, mul_comm] |
| 33 | rw [hflip, hd.fderiv] |
| 34 | rw [convolution_precompR_apply _ hf.locallyIntegrable |
| 35 | (hρc.fderiv ℝ) (hρ.continuous_fderiv one_ne_zero)] |
| 36 | rw [convolution_eq_swap] |
| 37 | simp only [convolution_def, lsmul_apply, smul_eq_mul] |
| 38 | apply integral_congr_ae |
| 39 | filter_upwards [] with y |
| 40 | exact mul_comm _ _ |
| 41 | |
| 42 | end Poincare.Analysis.Convolution |