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.AdjointIdentity |
| 7 | import PoincareLib.Analysis.Convolution.ConvolutionCommutator |
| 8 | |
| 9 | /-! |
| 10 | # Euclidean interior regularity producer: canonical local interface |
| 11 | |
| 12 | This module records the two analytic reductions needed by the interior |
| 13 | regularity argument. First, the canonical distributional equation localizes |
| 14 | to every smaller open set. Second, once a classical representative is |
| 15 | available, the published adjoint identity identifies the distributional |
| 16 | equation with the pointwise canonical operator. No solver, heat kernel, or |
| 17 | regularity theorem is hidden in these reductions. |
| 18 | |
| 19 | Mollification and derivative estimates are proved in the dependent energy |
| 20 | and weak-jet modules. `WeakRegularity.Smooth` combines them with Sobolev |
| 21 | embedding for the full weak-to-smooth theorem. |
| 22 | -/ |
| 23 | |
| 24 | open MeasureTheory Set |
| 25 | open scoped ContDiff Topology NNReal Convolution |
| 26 | |
| 27 | noncomputable section |
| 28 | |
| 29 | namespace Poincare.Analysis.Parabolic.WeakRegularity.Canonical |
| 30 | |
| 31 | variable {n : ℕ} {U V : Set (Spacetime n)} |
| 32 | |
| 33 | local instance : (volume : Measure (Spacetime n)).IsAddHaarMeasure := by |
| 34 | change ((volume : Measure (Euclid n)).prod (volume : Measure ℝ)).IsAddHaarMeasure |
| 35 | infer_instance |
| 36 | |
| 37 | /-! ## Actual space-time convolution and translated tests |
| 38 | |
| 39 | The convolution below is the ordinary Lebesgue convolution on |
| 40 | `Spacetime n = Euclid n × ℝ`; no abstract distribution or representative is |
| 41 | used. The second theorem is the exact translated-kernel identity obtained by |
| 42 | testing the canonical weak equation. Its interior-buffer hypothesis is what |
| 43 | allows the compact kernel support to stay inside the original open set. |
| 44 | -/ |
| 45 | |
| 46 | /-- Ordinary Lebesgue space-time convolution, written with the kernel on the |
| 47 | left. -/ |
| 48 | def lebesgueConvolution (η u : Spacetime n → ℝ) (z : Spacetime n) : ℝ := |
| 49 | ∫ y, η (z - y) * u y |
| 50 | |
| 51 | theorem lebesgueConvolution_eq_convolution (η u : Spacetime n → ℝ) : |
| 52 | lebesgueConvolution η u = η ⋆[ContinuousLinearMap.lsmul ℝ ℝ, volume] u := by |
| 53 | funext z |
| 54 | rw [convolution_lsmul_swap] |
| 55 | rfl |
| 56 | |
| 57 | /-- The translated kernel used to test at a fixed space-time point. -/ |
| 58 | def translatedKernel (η : Spacetime n → ℝ) (z : Spacetime n) : Spacetime n → ℝ := |
| 59 | fun y => η (z - y) |
| 60 | |
| 61 | /-! The first genuinely variable-coefficient step. We keep the convolution |
| 62 | in its literal Lebesgue form so that no abstract distribution or smooth |
| 63 | representative is involved. -/ |
| 64 | |
| 65 | theorem lebesgueConvolution_coefficient_commutator_eq |
| 66 | {q f η : Spacetime n → ℝ} (hq : Continuous q) (hf : Continuous f) |
| 67 | (hη : Continuous η) (hηc : HasCompactSupport η) (z : Spacetime n) : |
| 68 | q z * lebesgueConvolution η f z - |
| 69 | lebesgueConvolution η (fun y => q y * f y) z = |
| 70 | ∫ y, η (z - y) * (q z - q y) * f y := by |
| 71 | let e : Spacetime n → Spacetime n := fun y => z - y |
| 72 | have he : Continuous e := continuous_const.sub continuous_id |
| 73 | have hηz : HasCompactSupport (fun y => η (z - y)) := |
| 74 | hηc.comp_homeomorph (Homeomorph.subLeft z) |
| 75 | have h₁ : Integrable (fun y => q z * (η (z - y) * f y)) := |
| 76 | (((hη.comp he).mul hf).const_mul (q z)).integrable_of_hasCompactSupport |
| 77 | hηz.mul_right.mul_left |
| 78 | have h₂ : Integrable (fun y => η (z - y) * (q y * f y)) := |
| 79 | ((hη.comp he).mul (hq.mul hf)).integrable_of_hasCompactSupport hηz.mul_right |
| 80 | simp only [lebesgueConvolution] |
| 81 | rw [← integral_const_mul, ← integral_sub h₁ h₂] |
| 82 | apply integral_congr_ae |
| 83 | filter_upwards [] with y |
| 84 | ring |
| 85 | |
| 86 | theorem abs_le_lebesgueConvolution_coefficient_commutator |
| 87 | {q f η : Spacetime n → ℝ} {L : ℝ≥0} {B : ℝ} |
| 88 | (hq : LipschitzWith L q) (hf : Continuous f) (hB : ∀ y, |f y| ≤ B) |
| 89 | (hη : Continuous η) (hηc : HasCompactSupport η) (z : Spacetime n) : |
| 90 | |q z * lebesgueConvolution η f z - |
| 91 | lebesgueConvolution η (fun y => q y * f y) z| ≤ |
| 92 | (L : ℝ) * B * ∫ y, ‖z - y‖ * |η (z - y)| := by |
| 93 | simp only [lebesgueConvolution_eq_convolution] |
| 94 | rw [integral_sub_left_eq_self (fun y => ‖y‖ * |η y|) volume z] |
| 95 | exact Poincare.Analysis.Convolution.abs_convolution_coefficient_commutator_le |
| 96 | volume hq hf hB hη hηc z |
| 97 | |
| 98 | theorem WeakSolutionOn.translatedKernel_pairing_zero |
| 99 | {C : Coefficients n} {u : Spacetime n → ℝ} |
| 100 | (hu : WeakSolutionOn C u U) {η : Spacetime n → ℝ} |
| 101 | (hη : ContDiff ℝ ∞ η) |
| 102 | {V : Set (Spacetime n)} |
| 103 | (hηc : ∀ z ∈ V, HasCompactSupport (translatedKernel η z)) |
| 104 | (hηU : ∀ z ∈ V, tsupport (translatedKernel η z) ⊆ U) : |
| 105 | ∀ z ∈ V, (∫ y, u y * C.adjoint (translatedKernel η z) y) = 0 := by |
| 106 | intro z hz |
| 107 | have hηz : ContDiff ℝ ∞ (translatedKernel η z) := by |
| 108 | change ContDiff ℝ ∞ (η ∘ fun y => z - y) |
| 109 | exact hη.comp (contDiff_const.sub contDiff_id) |
| 110 | exact hu.2 (translatedKernel η z) hηz |
| 111 | (hηc z hz) |
| 112 | (hηU z hz) |
| 113 | |
| 114 | /-! The same identity with the adjoint expanded. Keeping this form explicit |
| 115 | is useful when the coefficient differences are estimated in the mollification |
| 116 | commutator argument. -/ |
| 117 | |
| 118 | theorem WeakSolutionOn.translatedKernel_adjoint_expanded_zero |
| 119 | {C : Coefficients n} {u : Spacetime n → ℝ} |
| 120 | (hu : WeakSolutionOn C u U) {η : Spacetime n → ℝ} |
| 121 | (hη : ContDiff ℝ ∞ η) |
| 122 | {V : Set (Spacetime n)} |
| 123 | (hηc : ∀ z ∈ V, HasCompactSupport (translatedKernel η z)) |
| 124 | (hηU : ∀ z ∈ V, tsupport (translatedKernel η z) ⊆ U) : |
| 125 | ∀ z ∈ V, |
| 126 | (∫ y, u y * |
| 127 | (-timeDeriv (translatedKernel η z) y - |
| 128 | (∑ i, ∑ j, spatialDeriv j (spatialDeriv i |
| 129 | (fun w => C.principal i j w * translatedKernel η z w)) y) - |
| 130 | (∑ i, spatialDeriv i |
| 131 | (fun w => C.drift i w * translatedKernel η z w) y) + |
| 132 | C.zeroth y * translatedKernel η z y)) = 0 := by |
| 133 | intro z hz |
| 134 | simpa only [Coefficients.adjoint] using |
| 135 | hu.translatedKernel_pairing_zero hη hηc hηU z hz |
| 136 | |
| 137 | @[simp] theorem lebesgueConvolution_eq_integral (η u : Spacetime n → ℝ) |
| 138 | (z : Spacetime n) : |
| 139 | lebesgueConvolution η u z = ∫ y, η (z - y) * u y := rfl |
| 140 | |
| 141 | /-- A canonical weak solution remains a canonical weak solution after |
| 142 | restriction to a smaller open region. The test support is already compact, |
| 143 | so the original weak identity can be reused verbatim. -/ |
| 144 | theorem WeakSolutionOn.restrict (hV : IsOpen V) (hVU : V ⊆ U) |
| 145 | {C : Coefficients n} {u : Spacetime n → ℝ} |
| 146 | (hu : WeakSolutionOn C u U) : WeakSolutionOn C u V := by |
| 147 | refine ⟨?_, ?_⟩ |
| 148 | · exact hu.1.mono_set hVU |
| 149 | · intro φ hφ hφc hφV |
| 150 | exact hu.2 φ hφ hφc (hφV.trans hVU) |
| 151 | |
| 152 | /-! The analytic difference-quotient argument produces one finite-order |
| 153 | regularity statement at a time. This bridge keeps that family attached to the |
| 154 | same original function and region for the final smoothness conclusion. -/ |
| 155 | |
| 156 | theorem contDiffOn_of_all_finite_orders |
| 157 | {u : Spacetime n → ℝ} |
| 158 | (hregular : ∀ m : ℕ, ContDiffOn ℝ m u U) : |
| 159 | ContDiffOn ℝ ∞ u U := by |
| 160 | exact contDiffOn_infty.mpr hregular |
| 161 | |
| 162 | /-- The canonical adjoint pairing yields the pointwise equation whenever the |
| 163 | candidate is already smooth on the open region. This is the exact direction |
| 164 | used after an independent interior smoothing proof has supplied a smooth |
| 165 | representative. -/ |
| 166 | theorem operator_eq_zero_of_weakSolutionOn |
| 167 | (hU : IsOpen U) (C : Coefficients n) (hC : C.IsSmoothOn U) |
| 168 | {u : Spacetime n → ℝ} (hu : ContDiffOn ℝ ∞ u U) |
| 169 | (hweak : WeakSolutionOn C u U) : |
| 170 | ∀ z ∈ U, C.operator u z = 0 := by |
| 171 | exact (weakSolutionOn_iff_operator_eq_zero hU C hC hu).mp hweak |
| 172 | |
| 173 | /-- Conversely, a smooth pointwise solution satisfies the canonical |
| 174 | distributional equation, with no auxiliary representative or solver. -/ |
| 175 | theorem weakSolutionOn_of_operator_eq_zero |
| 176 | (hU : IsOpen U) (C : Coefficients n) (hC : C.IsSmoothOn U) |
| 177 | {u : Spacetime n → ℝ} (hu : ContDiffOn ℝ ∞ u U) |
| 178 | (hop : ∀ z ∈ U, C.operator u z = 0) : |
| 179 | WeakSolutionOn C u U := by |
| 180 | exact (weakSolutionOn_iff_operator_eq_zero hU C hC hu).mpr hop |
| 181 | |
| 182 | end Poincare.Analysis.Parabolic.WeakRegularity.Canonical |