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.Jets.KernelBuffer |
| 7 | import PoincareLib.Analysis.Parabolic.WeakRegularity.Interior.Jets.WeakConvolution |
| 8 | import PoincareLib.Analysis.Parabolic.WeakRegularity.Interior.Energy.MollifiedL2Energy |
| 9 | |
| 10 | /-! |
| 11 | # Local mollified gradient energy from actual weak spatial derivatives |
| 12 | |
| 13 | Uniform kernel buffers identify each gradient component with convolution of |
| 14 | the corresponding L2 weak derivative, whose energy obeys Young's bound. |
| 15 | Reference: Evans, Section 5.3.1, Theorem 1, printed pp. 264-265; adapted for |
| 16 | Morgan--Tian, Proposition 9.20, Section 9.2.6, printed p. 208. |
| 17 | -/ |
| 18 | |
| 19 | open Set Filter MeasureTheory |
| 20 | open Poincare.Analysis.Convolution |
| 21 | open scoped ContDiff Topology |
| 22 | |
| 23 | noncomputable section |
| 24 | |
| 25 | namespace Poincare.Analysis.Parabolic.WeakRegularity.Interior |
| 26 | |
| 27 | open Canonical |
| 28 | |
| 29 | theorem exists_uniform_mollified_gradient_l2_bound |
| 30 | {n : ℕ} {U K : Set (Spacetime n)} (hU : IsOpen U) |
| 31 | (hK : IsCompact K) (hKU : K ⊆ U) |
| 32 | {u : Spacetime n → ℝ} (hu : LocallyIntegrableOn u U volume) |
| 33 | {g : Fin n → Spacetime n → ℝ} (hg : ∀ i, MemLp (g i) 2 volume) |
| 34 | (hweak : ∀ i (phi : Spacetime n → ℝ), ContDiff ℝ ∞ phi → |
| 35 | HasCompactSupport phi → tsupport phi ⊆ U → |
| 36 | (∫ y in U, phi y * g i y) = -(∫ y in U, spatialDeriv i phi y * u y)) |
| 37 | {ρ : Spacetime n → ℝ} (hρ : ContDiff ℝ ∞ ρ) |
| 38 | (hρc : HasCompactSupport ρ) : |
| 39 | ∃ ε B : ℝ, 0 < ε ∧ 0 < B ∧ ∀ r : ℝ, 0 < r → r ≤ ε → |
| 40 | (∫ y in K, ∑ i, (spatialDeriv i (mollifiedValue u ρ r) y) ^ 2) ≤ B := by |
| 41 | obtain ⟨ε, hε, hsupport⟩ := |
| 42 | exists_uniform_translated_rescaledKernel_support_subset hK hU hKU hρc |
| 43 | let A : ℝ := ∑ i, (∫ y, ‖ρ y‖) ^ 2 * (∫ y, (g i y) ^ 2) |
| 44 | have hA : 0 ≤ A := Finset.sum_nonneg (fun i _ => |
| 45 | mul_nonneg (sq_nonneg _) (integral_nonneg (fun y => sq_nonneg _))) |
| 46 | refine ⟨ε, A + 1, hε, by positivity, ?_⟩ |
| 47 | intro r hr hrε |
| 48 | have hscale : ContDiff ℝ ∞ (rescaledKernel ρ r) := |
| 49 | contDiff_const.mul (hρ.comp (contDiff_id.const_smul r⁻¹)) |
| 50 | have hcompact : HasCompactSupport (rescaledKernel ρ r) := |
| 51 | (hρc.comp_homeomorph |
| 52 | (Homeomorph.smul (Units.mk0 r⁻¹ (inv_ne_zero hr.ne')))).mul_left |
| 53 | have hderiv (i : Fin n) {y : Spacetime n} (hy : y ∈ K) : |
| 54 | spatialDeriv i (mollifiedValue u ρ r) y = mollifiedValue (g i) ρ r y := by |
| 55 | exact fderiv_lebesgueConvolution_eq_weakDerivative hU hu |
| 56 | (((hg i).locallyIntegrable (by norm_num)).locallyIntegrableOn U) |
| 57 | (hweak i) hscale hcompact (hsupport r hr hrε y hy) |
| 58 | have hsq (i : Fin n) : Integrable (fun y => (mollifiedValue (g i) ρ r y) ^ 2) volume := |
| 59 | (memLp_lebesgueConvolution (hg i) hscale.continuous hcompact).integrable_sq |
| 60 | calc |
| 61 | (∫ y in K, ∑ i, (spatialDeriv i (mollifiedValue u ρ r) y) ^ 2) = |
| 62 | ∫ y in K, ∑ i, (mollifiedValue (g i) ρ r y) ^ 2 := by |
| 63 | apply integral_congr_ae |
| 64 | filter_upwards [ae_restrict_mem hK.measurableSet] with y hy |
| 65 | simp_rw [hderiv _ hy] |
| 66 | _ ≤ ∫ y, ∑ i, (mollifiedValue (g i) ρ r y) ^ 2 := |
| 67 | setIntegral_le_integral (integrable_finsetSum _ (fun i _ => hsq i)) |
| 68 | (Eventually.of_forall (fun y => Finset.sum_nonneg (fun i _ => sq_nonneg _))) |
| 69 | _ = ∑ i, ∫ y, (mollifiedValue (g i) ρ r y) ^ 2 := |
| 70 | integral_finsetSum _ (fun i _ => hsq i) |
| 71 | _ ≤ A := Finset.sum_le_sum (fun i _ => |
| 72 | integral_mollifiedValue_sq_le (hg i) hρ.continuous hρc hr) |
| 73 | _ ≤ A + 1 := by linarith |
| 74 | |
| 75 | end Poincare.Analysis.Parabolic.WeakRegularity.Interior |
| 76 |