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.Mollification |
| 7 | import PoincareLib.Analysis.Parabolic.WeakRegularity.Interior.ConstantEnergyIdentity |
| 8 | |
| 9 | /-! |
| 10 | # Zeroth-order interior regularity |
| 11 | |
| 12 | Continuity is the order-zero base case for the interior regularity bootstrap. |
| 13 | The higher-order estimates remain separate analytic producers. |
| 14 | -/ |
| 15 | |
| 16 | open Set MeasureTheory |
| 17 | open scoped ContDiff Topology |
| 18 | |
| 19 | noncomputable section |
| 20 | |
| 21 | namespace Poincare.Analysis.Parabolic.WeakRegularity.Canonical |
| 22 | |
| 23 | variable {n : ℕ} {U : Set (Spacetime n)} |
| 24 | |
| 25 | /-! The following interface is the derivative-level input used by the |
| 26 | interior bootstrap. It is stated directly for the literal Lebesgue |
| 27 | convolution, so later estimates do not need to unfold an abstract |
| 28 | convolution operator. -/ |
| 29 | |
| 30 | theorem spatialDeriv_lebesgueConvolution_on |
| 31 | {u η : Spacetime n → ℝ} {V K : Set (Spacetime n)} |
| 32 | (hV : IsOpen V) (hK : IsCompact K) (hu : ContinuousOn u K) |
| 33 | (hη : ContDiff ℝ ∞ η) (hηc : HasCompactSupport η) |
| 34 | (hs : ∀ z ∈ V, tsupport (translatedKernel η z) ⊆ K) |
| 35 | {z : Spacetime n} (hz : z ∈ V) (i : Fin n) : |
| 36 | spatialDeriv i (lebesgueConvolution η u) z = |
| 37 | lebesgueConvolution (fun y => fderiv ℝ η y (spatialDirection i)) u z := by |
| 38 | exact fderiv_lebesgueConvolution_on hV hK hu hη hηc hs hz |
| 39 | (spatialDirection i) |
| 40 | |
| 41 | theorem timeDeriv_lebesgueConvolution_on |
| 42 | {u η : Spacetime n → ℝ} {V K : Set (Spacetime n)} |
| 43 | (hV : IsOpen V) (hK : IsCompact K) (hu : ContinuousOn u K) |
| 44 | (hη : ContDiff ℝ ∞ η) (hηc : HasCompactSupport η) |
| 45 | (hs : ∀ z ∈ V, tsupport (translatedKernel η z) ⊆ K) |
| 46 | {z : Spacetime n} (hz : z ∈ V) : |
| 47 | timeDeriv (lebesgueConvolution η u) z = |
| 48 | lebesgueConvolution (fun y => fderiv ℝ η y (0, 1)) u z := by |
| 49 | exact fderiv_lebesgueConvolution_on hV hK hu hη hηc hs hz (0, 1) |
| 50 | |
| 51 | /-! Freezing the principal coefficients at an interior point produces the |
| 52 | constant-symbol estimate used in the energy step. -/ |
| 53 | |
| 54 | theorem frozen_principal_hessian_bound |
| 55 | {C : Coefficients n} {z : Spacetime n} {κ : ℝ} |
| 56 | (hκ : 0 < κ) |
| 57 | (hEll : ∀ ξ : Euclid n, κ * ‖ξ‖ ^ 2 ≤ |
| 58 | ∑ i, ∑ j, C.principal i j z * ξ i * ξ j) |
| 59 | {v : Spacetime n → ℝ} (hv : ContDiff ℝ ∞ v) |
| 60 | (hvc : HasCompactSupport v) : |
| 61 | κ ^ 2 * (∫ x, ∑ i, ∑ j, (spatialSecond i j v x) ^ 2) ≤ |
| 62 | ∫ x, (constantPrincipal (fun i j => C.principal i j z) v x) ^ 2 := by |
| 63 | exact integral_principal_sq_ge hv hvc (le_of_lt hκ) hEll |
| 64 | |
| 65 | theorem frozen_principal_l2_coercivity |
| 66 | {C : Coefficients n} {z : Spacetime n} {κ : ℝ} |
| 67 | (hsymm : ∀ i j, C.principal i j z = C.principal j i z) |
| 68 | (hκ : 0 < κ) |
| 69 | (hEll : ∀ ξ : Euclid n, κ * ‖ξ‖ ^ 2 ≤ |
| 70 | ∑ i, ∑ j, C.principal i j z * ξ i * ξ j) |
| 71 | {v : Spacetime n → ℝ} (hv : ContDiff ℝ ∞ v) |
| 72 | (hvc : HasCompactSupport v) : |
| 73 | (∫ x, (timeDeriv v x) ^ 2) + κ ^ 2 * |
| 74 | (∫ x, ∑ i, ∑ j, (spatialSecond i j v x) ^ 2) ≤ |
| 75 | ∫ x, (timeDeriv v x - constantPrincipal (fun i j => C.principal i j z) v x) ^ 2 := by |
| 76 | exact constant_parabolic_l2_coercivity_smooth_compact_support hv hvc |
| 77 | (integral_timeDeriv_mul_constantPrincipal_eq_zero hv hvc hsymm) |
| 78 | (frozen_principal_hessian_bound hκ hEll hv hvc) |
| 79 | |
| 80 | /-- A continuous function has order-zero `ContDiffOn` regularity on any set. -/ |
| 81 | theorem continuousOn_contDiffOn_zero {u : Spacetime n → ℝ} |
| 82 | (hu : ContinuousOn u U) : ContDiffOn ℝ 0 u U := by |
| 83 | exact contDiffOn_zero.mpr hu |
| 84 | |
| 85 | /-! A perturbation estimate for the variable principal symbol is absorbed by |
| 86 | the frozen coercivity as soon as its quadratic error is below the ellipticity |
| 87 | constant. The analytic work in the mollification argument is to establish |
| 88 | the two scalar hypotheses below; this lemma performs the final coercive step. |
| 89 | -/ |
| 90 | theorem variable_principal_energy_absorption |
| 91 | {κ ε H R V : ℝ} |
| 92 | (hfrozen : κ ^ 2 * H ≤ R) |
| 93 | (hperturb : R ≤ 2 * V + 2 * ε ^ 2 * H) |
| 94 | (hsmall : 2 * ε ^ 2 < κ ^ 2) : |
| 95 | H ≤ 2 * V / (κ ^ 2 - 2 * ε ^ 2) := by |
| 96 | have hden : 0 < κ ^ 2 - 2 * ε ^ 2 := by |
| 97 | nlinarith |
| 98 | apply (le_div_iff₀ hden).2 |
| 99 | nlinarith [hfrozen, hperturb] |
| 100 | |
| 101 | /-! A scalar Young estimate for the flux term. The product integrability |
| 102 | assumption is explicit because it is the quantity produced by the compact |
| 103 | support energy argument. -/ |
| 104 | theorem young_flux_absorption |
| 105 | {f g : Spacetime n → ℝ} {δ : ℝ} |
| 106 | (hδ : 0 < δ) |
| 107 | (hf : Integrable (fun x => f x ^ 2)) |
| 108 | (hg : Integrable (fun x => g x ^ 2)) |
| 109 | (hfg : Integrable (fun x => f x * g x)) : |
| 110 | |∫ x, f x * g x| ≤ |
| 111 | δ * (∫ x, g x ^ 2) + (1 / (4 * δ)) * (∫ x, f x ^ 2) := by |
| 112 | have hsum : Integrable (fun x => |
| 113 | δ * g x ^ 2 + (1 / (4 * δ)) * f x ^ 2) := |
| 114 | (hg.const_mul δ).add (hf.const_mul (1 / (4 * δ))) |
| 115 | have hpoint : ∀ x, |f x * g x| ≤ |
| 116 | δ * g x ^ 2 + (1 / (4 * δ)) * f x ^ 2 := by |
| 117 | intro x |
| 118 | have hsq : 0 ≤ (2 * δ * |g x| - |f x|) ^ 2 := sq_nonneg _ |
| 119 | have hδ' : 0 < 4 * δ := by positivity |
| 120 | have hinv : (4 * δ) * (1 / (4 * δ)) = 1 := by |
| 121 | field_simp |
| 122 | have hbase : |f x| * |g x| ≤ |
| 123 | δ * |g x| ^ 2 + (1 / (4 * δ)) * |f x| ^ 2 := by |
| 124 | nlinarith |
| 125 | simpa only [abs_mul, sq_abs] using hbase |
| 126 | have hmono := integral_mono_ae hfg.norm hsum |
| 127 | (Filter.Eventually.of_forall hpoint) |
| 128 | calc |
| 129 | |∫ x, f x * g x| ≤ ∫ x, |f x * g x| := by |
| 130 | simpa only [Real.norm_eq_abs] using |
| 131 | (norm_integral_le_integral_norm (f := fun x => f x * g x)) |
| 132 | _ ≤ ∫ x, (δ * g x ^ 2 + (1 / (4 * δ)) * f x ^ 2) := hmono |
| 133 | _ = δ * (∫ x, g x ^ 2) + (1 / (4 * δ)) * (∫ x, f x ^ 2) := by |
| 134 | rw [integral_add (hg.const_mul δ) (hf.const_mul (1 / (4 * δ))), |
| 135 | integral_const_mul, integral_const_mul] |
| 136 | |
| 137 | theorem integral_sq_add_le |
| 138 | {f g : Spacetime n → ℝ} |
| 139 | (hf : Integrable (fun x => f x ^ 2)) |
| 140 | (hg : Integrable (fun x => g x ^ 2)) |
| 141 | (hfg : Integrable (fun x => (f x + g x) ^ 2)) : |
| 142 | (∫ x, (f x + g x) ^ 2) ≤ |
| 143 | 2 * (∫ x, f x ^ 2) + 2 * (∫ x, g x ^ 2) := by |
| 144 | have hsum : Integrable (fun x => 2 * f x ^ 2 + 2 * g x ^ 2) := |
| 145 | (hf.const_mul 2).add (hg.const_mul 2) |
| 146 | have hpoint : ∀ x, (f x + g x) ^ 2 ≤ 2 * f x ^ 2 + 2 * g x ^ 2 := by |
| 147 | intro x |
| 148 | nlinarith [sq_nonneg (f x - g x)] |
| 149 | have hmono := integral_mono_ae hfg hsum |
| 150 | (Filter.Eventually.of_forall hpoint) |
| 151 | calc |
| 152 | (∫ x, (f x + g x) ^ 2) ≤ ∫ x, (2 * f x ^ 2 + 2 * g x ^ 2) := hmono |
| 153 | _ = 2 * (∫ x, f x ^ 2) + 2 * (∫ x, g x ^ 2) := by |
| 154 | rw [integral_add (hf.const_mul 2) (hg.const_mul 2), |
| 155 | integral_const_mul, integral_const_mul] |
| 156 | |
| 157 | end Poincare.Analysis.Parabolic.WeakRegularity.Canonical |
| 158 |