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.Convolution |
| 7 | |
| 8 | open Set MeasureTheory ContinuousLinearMap |
| 9 | open scoped Topology Convolution NNReal |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace Poincare.Analysis.Convolution |
| 14 | |
| 15 | variable {E : Type*} [NormedAddCommGroup E] [MeasurableSpace E] [BorelSpace E] |
| 16 | |
| 17 | /-- **Math.** Multiplication by a coefficient commutes with convolution up to |
| 18 | the integral of the actual coefficient difference. -/ |
| 19 | theorem convolution_coefficient_commutator_eq |
| 20 | (mu : Measure E) [mu.IsAddHaarMeasure] |
| 21 | {q f κ : E → ℝ} (hq : Continuous q) (hf : Continuous f) |
| 22 | (hκ : Continuous κ) (hκc : HasCompactSupport κ) (x : E) : |
| 23 | q x * (κ ⋆[lsmul ℝ ℝ, mu] f) x - |
| 24 | (κ ⋆[lsmul ℝ ℝ, mu] (fun y => q y * f y)) x = |
| 25 | ∫ y, κ y * (q x - q (x - y)) * f (x - y) ∂mu := by |
| 26 | have htrans : Continuous (fun y : E => x - y) := continuous_const.sub continuous_id |
| 27 | have hfirst : Integrable (fun y => q x * (κ y * f (x - y))) mu := |
| 28 | ((hκ.mul (hf.comp htrans)).const_mul (q x)).integrable_of_hasCompactSupport |
| 29 | (hκc.mul_right.mul_left) |
| 30 | have hsecond : Integrable (fun y => κ y * (q (x - y) * f (x - y))) mu := |
| 31 | (hκ.mul ((hq.mul hf).comp htrans)).integrable_of_hasCompactSupport hκc.mul_right |
| 32 | simp only [convolution_def, lsmul_apply, smul_eq_mul] |
| 33 | rw [← integral_const_mul, ← integral_sub hfirst hsecond] |
| 34 | apply integral_congr_ae |
| 35 | filter_upwards [] with y |
| 36 | ring |
| 37 | |
| 38 | /-- **Math.** A Lipschitz coefficient and a bounded continuous function give |
| 39 | a commutator bound by the first absolute moment of the convolution kernel. -/ |
| 40 | theorem abs_convolution_coefficient_commutator_le |
| 41 | (mu : Measure E) [mu.IsAddHaarMeasure] |
| 42 | {q f κ : E → ℝ} {L : ℝ≥0} (hq : LipschitzWith L q) |
| 43 | (hf : Continuous f) {B : ℝ} (hB : ∀ y, |f y| ≤ B) |
| 44 | (hκ : Continuous κ) (hκc : HasCompactSupport κ) (x : E) : |
| 45 | |q x * (κ ⋆[lsmul ℝ ℝ, mu] f) x - |
| 46 | (κ ⋆[lsmul ℝ ℝ, mu] (fun y => q y * f y)) x| ≤ |
| 47 | (L : ℝ) * B * ∫ y, ‖y‖ * |κ y| ∂mu := by |
| 48 | have htrans : Continuous (fun y : E => x - y) := continuous_const.sub continuous_id |
| 49 | have herr : Integrable (fun y => κ y * (q x - q (x - y)) * f (x - y)) mu := |
| 50 | ((hκ.mul (continuous_const.sub (hq.continuous.comp htrans))).mul |
| 51 | (hf.comp htrans)).integrable_of_hasCompactSupport (hκc.mul_right.mul_right) |
| 52 | have hmajor : Integrable (fun y => (L : ℝ) * B * (‖y‖ * |κ y|)) mu := |
| 53 | ((continuous_norm.mul hκ.abs).const_mul ((L : ℝ) * B)).integrable_of_hasCompactSupport |
| 54 | (hκc.abs.mul_left.mul_left) |
| 55 | rw [convolution_coefficient_commutator_eq mu hq.continuous hf hκ hκc] |
| 56 | calc |
| 57 | |∫ y, κ y * (q x - q (x - y)) * f (x - y) ∂mu| ≤ |
| 58 | ∫ y, |κ y * (q x - q (x - y)) * f (x - y)| ∂mu := by |
| 59 | simpa [Real.norm_eq_abs] using |
| 60 | (norm_integral_le_integral_norm |
| 61 | (f := fun y => κ y * (q x - q (x - y)) * f (x - y)) (μ := mu)) |
| 62 | _ ≤ ∫ y, (L : ℝ) * B * (‖y‖ * |κ y|) ∂mu := by |
| 63 | apply integral_mono_ae herr.norm hmajor |
| 64 | filter_upwards [] with y |
| 65 | have hdist : dist x (x - y) = ‖y‖ := by |
| 66 | rw [dist_eq_norm] |
| 67 | congr 1 |
| 68 | abel |
| 69 | have hqdiff : |q x - q (x - y)| ≤ (L : ℝ) * ‖y‖ := by |
| 70 | simpa [Real.dist_eq, hdist] using hq.dist_le_mul x (x - y) |
| 71 | calc |
| 72 | |κ y * (q x - q (x - y)) * f (x - y)| = |
| 73 | |κ y| * |q x - q (x - y)| * |f (x - y)| := by simp [abs_mul] |
| 74 | _ ≤ |κ y| * ((L : ℝ) * ‖y‖) * B := |
| 75 | mul_le_mul (mul_le_mul_of_nonneg_left hqdiff (abs_nonneg _)) (hB _) |
| 76 | (abs_nonneg _) (mul_nonneg (abs_nonneg _) (mul_nonneg L.coe_nonneg (norm_nonneg _))) |
| 77 | _ = (L : ℝ) * B * (‖y‖ * |κ y|) := by ring |
| 78 | _ = (L : ℝ) * B * ∫ y, ‖y‖ * |κ y| ∂mu := integral_const_mul _ _ |
| 79 | |
| 80 | end Poincare.Analysis.Convolution |