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 | Provenance and modification notice (recorded 2026-09-29). |
| 3 | Notices for the adapted source: |
| 4 | Copyright 2026 The DifferentialGeometry contributors |
| 5 | Source: https://github.com/qinz1yang/differential-geometry |
| 6 | DifferentialGeometry/Analysis/Sobolev/Approximation/H1WeakSolutionApprox.lean |
| 7 | Comparison revision: 1b535dd102b94cc42b107cca27059687888f08b3. |
| 8 | Changes: Imports, module paths, and namespaces were adapted to the subject-organized PoincareLib library. The local file extracts a subset of the upstream development. |
| 9 | License: Apache-2.0. Source licenses and notices are retained under |
| 10 | PoincareConjecture/provenance/2026-09-29/licenses/. |
| 11 | See PoincareConjecture/MODIFICATIONS.md for the reviewed source mapping. |
| 12 | -/ |
| 13 | |
| 14 | import PoincareLib.Analysis.Elliptic.Regularity.DifferenceQuotient.Mollification |
| 15 | import PoincareLib.Analysis.Elliptic.Regularity.DifferenceQuotient.Basic |
| 16 | import PoincareLib.Analysis.Elliptic.Regularity.Sobolev.Density |
| 17 | |
| 18 | /-! |
| 19 | # L2 contraction and weak derivatives of mollification |
| 20 | |
| 21 | Adapted from Chow--Liao--Qin, `Analysis/Sobolev/Approximation/H1WeakSolutionApprox.lean`, |
| 22 | revision `1b535dd102b94cc42b107cca27059687888f08b3`. |
| 23 | Apache-2.0; see `PoincareConjecture/provenance/2026-09-29/licenses/DifferentialGeometry/LICENSE`. |
| 24 | -/ |
| 25 | |
| 26 | noncomputable section |
| 27 | |
| 28 | open MeasureTheory Metric Filter Topology Set Function |
| 29 | open scoped ENNReal NNReal Convolution Pointwise BigOperators |
| 30 | |
| 31 | namespace Poincare.Analysis.Sobolev.DifferenceQuotient |
| 32 | |
| 33 | variable {d : ℕ} [NeZero d] |
| 34 | |
| 35 | local notation "E" => EuclideanSpace ℝ (Fin d) |
| 36 | |
| 37 | omit [NeZero d] in |
| 38 | private lemma mollifyEps_eq_convolution_swap |
| 39 | {ε : ℝ} (hε : 0 < ε) (u : E → ℝ) (x : E) : |
| 40 | mollifyEps (d := d) hε u x = |
| 41 | (u ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] |
| 42 | mollifierEps (d := d) hε) x := by |
| 43 | classical |
| 44 | unfold mollifyEps |
| 45 | rw [convolution_lsmul, convolution_lsmul_swap] |
| 46 | refine integral_congr_ae ?_ |
| 47 | filter_upwards with t |
| 48 | rw [smul_eq_mul, smul_eq_mul, mul_comm] |
| 49 | |
| 50 | omit [NeZero d] in |
| 51 | theorem mollifyEps_partial_eq_mollifyEps_weakPartial |
| 52 | {ε : ℝ} (hε : 0 < ε) |
| 53 | {u g : E → ℝ} {j : Fin d} |
| 54 | (hu_loc : LocallyIntegrable u (volume : Measure E)) |
| 55 | (hweak : Weak.HasWeakPartialDeriv (d := d) j g u Set.univ) (x : E) : |
| 56 | (fderiv ℝ (mollifyEps (d := d) hε u) x) |
| 57 | (EuclideanSpace.single j 1) = |
| 58 | mollifyEps (d := d) hε g x := by |
| 59 | classical |
| 60 | have hη_smooth : ContDiff ℝ (⊤ : ℕ∞) (mollifierEps (d := d) hε) := |
| 61 | mollifierEps_smooth hε |
| 62 | have hη_C1 : ContDiff ℝ 1 (mollifierEps (d := d) hε) := |
| 63 | hη_smooth.of_le (by norm_cast) |
| 64 | have hη_compact : HasCompactSupport (mollifierEps (d := d) hε) := |
| 65 | mollifierEps_compactSupport hε |
| 66 | have hderiv : HasFDerivAt |
| 67 | (u ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] |
| 68 | mollifierEps (d := d) hε) |
| 69 | ((u ⋆[(ContinuousLinearMap.lsmul ℝ ℝ).precompR E, |
| 70 | (volume : Measure E)] fderiv ℝ (mollifierEps (d := d) hε)) x) x := |
| 71 | hη_compact.hasFDerivAt_convolution_right |
| 72 | (L := ContinuousLinearMap.lsmul ℝ ℝ) hu_loc hη_C1 x |
| 73 | have hpartial_uη : |
| 74 | (fderiv ℝ (u ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] |
| 75 | mollifierEps (d := d) hε) x) (EuclideanSpace.single j 1) = |
| 76 | (u ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] |
| 77 | (fun y => (fderiv ℝ (mollifierEps (d := d) hε) y) |
| 78 | (EuclideanSpace.single j 1))) x := by |
| 79 | rw [hderiv.fderiv] |
| 80 | exact convolution_precompR_apply (𝕜 := ℝ) |
| 81 | (L := ContinuousLinearMap.lsmul ℝ ℝ) |
| 82 | hu_loc (hη_compact.fderiv ℝ) |
| 83 | (hη_smooth.continuous_fderiv (by simp)) x |
| 84 | (EuclideanSpace.single j 1) |
| 85 | have hcomm : mollifyEps (d := d) hε u = |
| 86 | (u ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] |
| 87 | mollifierEps (d := d) hε) := by |
| 88 | funext y |
| 89 | exact mollifyEps_eq_convolution_swap hε u y |
| 90 | rw [hcomm] |
| 91 | rw [hpartial_uη] |
| 92 | have h_swap_conv : ∀ y : E, |
| 93 | (u ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] |
| 94 | (fun z => (fderiv ℝ (mollifierEps (d := d) hε) z) |
| 95 | (EuclideanSpace.single j 1))) y = |
| 96 | ((fun z => (fderiv ℝ (mollifierEps (d := d) hε) z) |
| 97 | (EuclideanSpace.single j 1)) |
| 98 | ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] u) y := by |
| 99 | intro y |
| 100 | rw [convolution_lsmul, convolution_lsmul_swap] |
| 101 | refine integral_congr_ae ?_ |
| 102 | filter_upwards with t |
| 103 | rw [smul_eq_mul, smul_eq_mul, mul_comm] |
| 104 | rw [h_swap_conv x] |
| 105 | have hη_smooth' : ContDiff ℝ (⊤ : ℕ∞) (mollifierEps (d := d) hε) := |
| 106 | mollifierEps_smooth hε |
| 107 | have h_ibp := |
| 108 | Euclidean.convolution_fderiv_eq_convolution_weakPartial_univ |
| 109 | (d := d) (i := j) (g := g) (u := u) hweak hη_smooth' hη_compact x |
| 110 | rw [h_ibp] |
| 111 | rfl |
| 112 | |
| 113 | omit [NeZero d] in |
| 114 | theorem eLpNorm_mollifyEps_le |
| 115 | {ε : ℝ} (hε : 0 < ε) {u : E → ℝ} |
| 116 | (hu : MemLp u 2 (volume : Measure E)) : |
| 117 | eLpNorm (mollifyEps (d := d) hε u) 2 (volume : Measure E) ≤ |
| 118 | eLpNorm u 2 (volume : Measure E) := by |
| 119 | classical |
| 120 | have hmem_p : MemLp u (ENNReal.ofReal 2) (volume : Measure E) := by |
| 121 | have h_eq : (ENNReal.ofReal 2 : ℝ≥0∞) = (2 : ℝ≥0∞) := by |
| 122 | rw [show (2 : ℝ) = ((2 : ℕ) : ℝ) from by norm_cast] |
| 123 | rw [show (2 : ℝ≥0∞) = ((2 : ℕ) : ℝ≥0∞) from by norm_cast] |
| 124 | exact ENNReal.ofReal_natCast 2 |
| 125 | rw [h_eq]; exact hu |
| 126 | set ψ : E → ℝ := mollifierEps (d := d) hε with hψ_def |
| 127 | have hψ_int : ∫ y, ψ y ∂(volume : Measure E) = 1 := mollifierEps_integral_eq_one hε |
| 128 | have hψ_nn : ∀ y, 0 ≤ ψ y := mollifierEps_nonneg hε |
| 129 | have hψ_integrable : Integrable ψ (volume : Measure E) := mollifierEps_integrable hε |
| 130 | have hψ_cont : Continuous ψ := mollifierEps_continuous hε |
| 131 | have hψ_compact : HasCompactSupport ψ := mollifierEps_compactSupport hε |
| 132 | set C : ℝ≥0∞ := eLpNorm u 2 (volume : Measure E) with hC_def |
| 133 | have hu_aestrong : AEStronglyMeasurable u (volume : Measure E) := hu.aestronglyMeasurable |
| 134 | have h_pt_jensen : ∀ x : E, |
| 135 | ‖(ψ ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] u) x‖ ^ (2 : ℝ) ≤ |
| 136 | ((fun y => ‖u y‖ ^ (2 : ℝ)) |
| 137 | ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] ψ) x := by |
| 138 | intro x |
| 139 | set h_norm_sq : E → ℝ := fun y => ‖u y‖ ^ (2 : ℝ) with hh_norm_sq_def |
| 140 | set ρ : E → ℝ≥0∞ := fun y => ENNReal.ofReal (ψ y) with hρ_def |
| 141 | set ν : Measure E := (volume : Measure E).withDensity ρ with hν_def |
| 142 | have hρ_meas : Measurable ρ := hψ_cont.measurable.ennreal_ofReal |
| 143 | have hρ_lt_top : ∀ᵐ y ∂(volume : Measure E), ρ y < ∞ := by |
| 144 | filter_upwards with y |
| 145 | simp [ρ] |
| 146 | have hν_prob : IsProbabilityMeasure ν := by |
| 147 | refine ⟨?_⟩ |
| 148 | rw [hν_def, withDensity_apply _ MeasurableSet.univ] |
| 149 | rw [Measure.restrict_univ] |
| 150 | rw [← MeasureTheory.ofReal_integral_eq_lintegral_ofReal hψ_integrable |
| 151 | (Filter.Eventually.of_forall hψ_nn)] |
| 152 | rw [hψ_int] |
| 153 | simp |
| 154 | have hu_loc : LocallyIntegrable u (volume : Measure E) := |
| 155 | hu.locallyIntegrable (by norm_num : (1 : ℝ≥0∞) ≤ 2) |
| 156 | have hce_u : ConvolutionExistsAt ψ u x |
| 157 | (ContinuousLinearMap.lsmul ℝ ℝ) (volume : Measure E) := |
| 158 | hψ_compact.convolutionExists_left |
| 159 | (L := ContinuousLinearMap.lsmul ℝ ℝ) hψ_cont hu_loc x |
| 160 | have hconv_ν : |
| 161 | ((ψ ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] u) x) = |
| 162 | ∫ y, u (x - y) ∂ν := by |
| 163 | rw [hν_def] |
| 164 | rw [integral_withDensity_eq_integral_toReal_smul hρ_meas hρ_lt_top] |
| 165 | rw [MeasureTheory.convolution_def] |
| 166 | refine integral_congr_ae ?_ |
| 167 | filter_upwards with y |
| 168 | simp [ρ, ψ, ContinuousLinearMap.lsmul_apply, smul_eq_mul, hψ_nn y] |
| 169 | have h_norm_sq_int_vol : Integrable (fun y => (ρ y).toReal * ‖u (x - y)‖) |
| 170 | (volume : Measure E) := by |
| 171 | refine hce_u.integrable.norm.congr ?_ |
| 172 | filter_upwards with y |
| 173 | simp [ρ, ψ, ContinuousLinearMap.lsmul_apply, smul_eq_mul, hψ_nn y] |
| 174 | have h_norm_int : Integrable (fun y => ‖u (x - y)‖) ν := by |
| 175 | exact (MeasureTheory.integrable_withDensity_iff_integrable_smul' hρ_meas hρ_lt_top).2 <| by |
| 176 | simpa [ρ, ψ, hψ_nn] using h_norm_sq_int_vol |
| 177 | have hu_sq_loc : LocallyIntegrable (fun y => ‖u y‖ ^ (2 : ℝ)) (volume : Measure E) := by |
| 178 | have hh_int : Integrable (fun y => ‖u y‖ ^ (2 : ℝ)) (volume : Measure E) := by |
| 179 | have := hu.integrable_norm_rpow (p := 2) (by norm_num : (2 : ℝ≥0∞) ≠ 0) |
| 180 | (by norm_num : (2 : ℝ≥0∞) ≠ ∞) |
| 181 | simpa using this |
| 182 | exact hh_int.locallyIntegrable |
| 183 | have hce_h : ConvolutionExistsAt ψ h_norm_sq x |
| 184 | (ContinuousLinearMap.lsmul ℝ ℝ) (volume : Measure E) := |
| 185 | hψ_compact.convolutionExists_left |
| 186 | (L := ContinuousLinearMap.lsmul ℝ ℝ) hψ_cont hu_sq_loc x |
| 187 | have h_rpow_int_vol : |
| 188 | Integrable (fun y => (ρ y).toReal * ‖u (x - y)‖ ^ (2 : ℝ)) (volume : Measure E) := by |
| 189 | refine hce_h.integrable.congr ?_ |
| 190 | filter_upwards with y |
| 191 | simp [ρ, ψ, h_norm_sq, ContinuousLinearMap.lsmul_apply, smul_eq_mul, |
| 192 | hψ_nn y] |
| 193 | have h_rpow_int : Integrable (fun y => ‖u (x - y)‖ ^ (2 : ℝ)) ν := by |
| 194 | exact (MeasureTheory.integrable_withDensity_iff_integrable_smul' hρ_meas hρ_lt_top).2 <| by |
| 195 | simpa [ρ, ψ, hψ_nn] using h_rpow_int_vol |
| 196 | have hnorm_le_int : ‖((ψ ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] u) x)‖ ≤ |
| 197 | ∫ y, ‖u (x - y)‖ ∂ν := by |
| 198 | rw [hconv_ν] |
| 199 | exact MeasureTheory.norm_integral_le_integral_norm _ |
| 200 | have hJensen_ν : (∫ y, ‖u (x - y)‖ ∂ν) ^ (2 : ℝ) ≤ ∫ y, ‖u (x - y)‖ ^ (2 : ℝ) ∂ν := by |
| 201 | have hconv : ConvexOn ℝ (Set.Ici (0 : ℝ)) (fun t : ℝ => t ^ (2 : ℝ)) := |
| 202 | convexOn_rpow (by norm_num : (1 : ℝ) ≤ 2) |
| 203 | have hcont : ContinuousOn (fun t : ℝ => t ^ (2 : ℝ)) (Set.Ici (0 : ℝ)) := |
| 204 | continuousOn_id.rpow_const (fun t _ => Or.inr (by norm_num : (0 : ℝ) ≤ 2)) |
| 205 | have hmem : ∀ᵐ y ∂ν, ‖u (x - y)‖ ∈ Set.Ici (0 : ℝ) := by |
| 206 | filter_upwards with y |
| 207 | exact norm_nonneg _ |
| 208 | exact hconv.map_integral_le hcont isClosed_Ici hmem h_norm_int h_rpow_int |
| 209 | calc |
| 210 | ‖((ψ ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] u) x)‖ ^ (2 : ℝ) |
| 211 | ≤ (∫ y, ‖u (x - y)‖ ∂ν) ^ (2 : ℝ) := |
| 212 | Real.rpow_le_rpow (norm_nonneg _) hnorm_le_int (by norm_num : (0 : ℝ) ≤ 2) |
| 213 | _ ≤ ∫ y, ‖u (x - y)‖ ^ (2 : ℝ) ∂ν := hJensen_ν |
| 214 | _ = ∫ y, ψ y * ‖u (x - y)‖ ^ (2 : ℝ) ∂(volume : Measure E) := by |
| 215 | rw [hν_def] |
| 216 | rw [integral_withDensity_eq_integral_toReal_smul hρ_meas hρ_lt_top] |
| 217 | refine integral_congr_ae ?_ |
| 218 | filter_upwards with y |
| 219 | simp [ρ, ψ, hψ_nn y] |
| 220 | _ = ((fun y => ‖u y‖ ^ (2 : ℝ)) |
| 221 | ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] ψ) x := by |
| 222 | have hMP : MeasurePreserving (fun y : E => x - y) (volume : Measure E) |
| 223 | (volume : Measure E) := by |
| 224 | have h_neg : MeasurePreserving (fun t : E => -t) (volume : Measure E) |
| 225 | (volume : Measure E) := |
| 226 | Measure.measurePreserving_neg (volume : Measure E) |
| 227 | have h_addL : MeasurePreserving (fun t : E => x + t) (volume : Measure E) |
| 228 | (volume : Measure E) := |
| 229 | measurePreserving_add_left (volume : Measure E) x |
| 230 | have heq : (fun y : E => x - y) = (fun y : E => x + (-y)) := by |
| 231 | funext y; rw [sub_eq_add_neg] |
| 232 | rw [heq]; exact h_addL.comp h_neg |
| 233 | have h_subst : ∫ y, ψ y * ‖u (x - y)‖ ^ (2 : ℝ) ∂(volume : Measure E) = |
| 234 | ∫ t, ψ (x - t) * ‖u (x - (x - t))‖ ^ (2 : ℝ) ∂(volume : Measure E) := |
| 235 | (hMP.integral_comp (Homeomorph.subLeft x).measurableEmbedding |
| 236 | (fun y : E => ψ y * ‖u (x - y)‖ ^ (2 : ℝ))).symm |
| 237 | rw [h_subst] |
| 238 | have h_rearr : ∀ t : E, |
| 239 | ψ (x - t) * ‖u (x - (x - t))‖ ^ (2 : ℝ) = |
| 240 | ‖u t‖ ^ (2 : ℝ) * ψ (x - t) := by |
| 241 | intro t |
| 242 | have h_simp : x - (x - t) = t := by abel |
| 243 | rw [h_simp] |
| 244 | ring |
| 245 | rw [convolution_def] |
| 246 | refine integral_congr_ae ?_ |
| 247 | filter_upwards with t |
| 248 | rw [ContinuousLinearMap.lsmul_apply, smul_eq_mul] |
| 249 | exact h_rearr t |
| 250 | have hu_loc : LocallyIntegrable u (volume : Measure E) := |
| 251 | hu.locallyIntegrable (by norm_num : (1 : ℝ≥0∞) ≤ 2) |
| 252 | have hu_sq_int : Integrable (fun y => ‖u y‖ ^ (2 : ℝ)) (volume : Measure E) := by |
| 253 | have := hu.integrable_norm_rpow (p := 2) (by norm_num : (2 : ℝ≥0∞) ≠ 0) |
| 254 | (by norm_num : (2 : ℝ≥0∞) ≠ ∞) |
| 255 | simpa using this |
| 256 | have hconv_cont : Continuous |
| 257 | (ψ ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] u : |
| 258 | E → ℝ) := |
| 259 | hψ_compact.continuous_convolution_left (L := ContinuousLinearMap.lsmul ℝ ℝ) |
| 260 | hψ_cont hu_loc |
| 261 | have hh_conv_int : Integrable |
| 262 | ((fun y => ‖u y‖ ^ (2 : ℝ)) |
| 263 | ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] ψ) |
| 264 | (volume : Measure E) := |
| 265 | hu_sq_int.integrable_convolution (L := ContinuousLinearMap.lsmul ℝ ℝ) hψ_integrable |
| 266 | have hpow_int : Integrable |
| 267 | (fun x => ‖((ψ ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] u) x)‖ |
| 268 | ^ (2 : ℝ)) (volume : Measure E) := by |
| 269 | refine Integrable.mono' hh_conv_int ?_ ?_ |
| 270 | · exact (hconv_cont.norm.rpow_const |
| 271 | (fun _ => Or.inr (by norm_num : (0 : ℝ) ≤ 2))).aestronglyMeasurable |
| 272 | · filter_upwards with x |
| 273 | have h_nn : |
| 274 | 0 ≤ ‖((ψ ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] u) x)‖ |
| 275 | ^ (2 : ℝ) := |
| 276 | Real.rpow_nonneg (norm_nonneg _) _ |
| 277 | rw [Real.norm_eq_abs, abs_of_nonneg h_nn] |
| 278 | exact h_pt_jensen x |
| 279 | have h_int_le : |
| 280 | ∫ x, ‖((ψ ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] u) x)‖ ^ (2 : ℝ) |
| 281 | ∂(volume : Measure E) ≤ |
| 282 | ∫ x, ((fun y => ‖u y‖ ^ (2 : ℝ)) |
| 283 | ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] ψ) x |
| 284 | ∂(volume : Measure E) := by |
| 285 | refine integral_mono_ae hpow_int hh_conv_int ?_ |
| 286 | filter_upwards with x |
| 287 | exact h_pt_jensen x |
| 288 | have h_conv_eq : |
| 289 | ∫ x, ((fun y => ‖u y‖ ^ (2 : ℝ)) |
| 290 | ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] ψ) x |
| 291 | ∂(volume : Measure E) = |
| 292 | ∫ x, ‖u x‖ ^ (2 : ℝ) ∂(volume : Measure E) := by |
| 293 | have h := MeasureTheory.integral_convolution |
| 294 | (L := ContinuousLinearMap.lsmul ℝ ℝ) (μ := (volume : Measure E)) |
| 295 | (ν := (volume : Measure E)) hu_sq_int hψ_integrable |
| 296 | rw [h] |
| 297 | simp [ContinuousLinearMap.lsmul_apply, smul_eq_mul, hψ_int] |
| 298 | have hconv_memLp : MemLp (ψ ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] u : E → ℝ) |
| 299 | 2 (volume : Measure E) := by |
| 300 | refine ⟨hconv_cont.aestronglyMeasurable, ?_⟩ |
| 301 | rw [eLpNorm_eq_lintegral_rpow_enorm_toReal (μ := (volume : Measure E)) |
| 302 | (f := (ψ ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] u : E → ℝ)) |
| 303 | (by norm_num : (2 : ℝ≥0∞) ≠ 0) (by norm_num : (2 : ℝ≥0∞) ≠ ∞)] |
| 304 | have h_2_toReal : ((2 : ℝ≥0∞).toReal) = (2 : ℝ) := by norm_num |
| 305 | rw [h_2_toReal] |
| 306 | have h_lint_finite : ∫⁻ x, ‖((ψ ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] u) x)‖ₑ |
| 307 | ^ (2 : ℝ) ∂(volume : Measure E) < ∞ := by |
| 308 | have h_pt_lint : ∀ x : E, |
| 309 | ‖((ψ ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] u) x)‖ₑ |
| 310 | ^ (2 : ℝ) = |
| 311 | ENNReal.ofReal (‖((ψ ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] u) x)‖ |
| 312 | ^ (2 : ℝ)) := by |
| 313 | intro x |
| 314 | rw [← ofReal_norm, |
| 315 | ENNReal.ofReal_rpow_of_nonneg (norm_nonneg _) (by norm_num : (0 : ℝ) ≤ 2)] |
| 316 | have h_lint_pt : |
| 317 | (fun x => ‖((ψ ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] u) x)‖ₑ |
| 318 | ^ (2 : ℝ)) = |
| 319 | (fun x => ENNReal.ofReal |
| 320 | (‖((ψ ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] u) x)‖ |
| 321 | ^ (2 : ℝ))) := by |
| 322 | funext x |
| 323 | exact h_pt_lint x |
| 324 | rw [h_lint_pt] |
| 325 | rw [← ofReal_integral_eq_lintegral_ofReal hpow_int |
| 326 | (Filter.Eventually.of_forall (fun x => Real.rpow_nonneg (norm_nonneg _) _))] |
| 327 | exact ENNReal.ofReal_lt_top |
| 328 | refine ENNReal.rpow_lt_top_of_nonneg ?_ h_lint_finite.ne |
| 329 | norm_num |
| 330 | have h_2_ne_zero : (2 : ℝ≥0∞) ≠ 0 := by norm_num |
| 331 | have h_2_ne_top : (2 : ℝ≥0∞) ≠ ∞ := by norm_num |
| 332 | have h_eLp_lhs : |
| 333 | eLpNorm (ψ ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] u : E → ℝ) |
| 334 | 2 (volume : Measure E) = |
| 335 | ENNReal.ofReal ((∫ x, |
| 336 | ‖((ψ ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] u) x)‖ ^ (2 : ℝ) |
| 337 | ∂(volume : Measure E)) ^ ((2 : ℝ)⁻¹)) := by |
| 338 | have h := hconv_memLp.eLpNorm_eq_integral_rpow_norm h_2_ne_zero h_2_ne_top |
| 339 | have h_2_toReal : ((2 : ℝ≥0∞).toReal) = (2 : ℝ) := by norm_num |
| 340 | rw [h_2_toReal] at h |
| 341 | exact h |
| 342 | have h_eLp_rhs : |
| 343 | eLpNorm u 2 (volume : Measure E) = |
| 344 | ENNReal.ofReal ((∫ x, ‖u x‖ ^ (2 : ℝ) ∂(volume : Measure E)) ^ ((2 : ℝ)⁻¹)) := by |
| 345 | have h := hu.eLpNorm_eq_integral_rpow_norm h_2_ne_zero h_2_ne_top |
| 346 | have h_2_toReal : ((2 : ℝ≥0∞).toReal) = (2 : ℝ) := by norm_num |
| 347 | rw [h_2_toReal] at h |
| 348 | exact h |
| 349 | have hcomm : mollifyEps (d := d) hε u = |
| 350 | (u ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] |
| 351 | mollifierEps (d := d) hε) := by |
| 352 | funext y |
| 353 | exact mollifyEps_eq_convolution_swap hε u y |
| 354 | rw [hcomm] |
| 355 | have hcomm_conv : ∀ y : E, |
| 356 | (u ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] |
| 357 | mollifierEps (d := d) hε) y = |
| 358 | (mollifierEps (d := d) hε |
| 359 | ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] u) y := by |
| 360 | intro y |
| 361 | rw [convolution_lsmul, convolution_lsmul_swap] |
| 362 | refine integral_congr_ae ?_ |
| 363 | filter_upwards with t |
| 364 | rw [smul_eq_mul, smul_eq_mul, mul_comm] |
| 365 | have hfun_eq : |
| 366 | (u ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] |
| 367 | mollifierEps (d := d) hε) = |
| 368 | (mollifierEps (d := d) hε |
| 369 | ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] u) := by |
| 370 | funext y; exact hcomm_conv y |
| 371 | rw [hfun_eq] |
| 372 | change eLpNorm (mollifierEps (d := d) hε |
| 373 | ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] u) 2 |
| 374 | (volume : Measure E) ≤ eLpNorm u 2 (volume : Measure E) |
| 375 | rw [h_eLp_lhs, h_eLp_rhs] |
| 376 | refine ENNReal.ofReal_le_ofReal ?_ |
| 377 | have h_int_combined : |
| 378 | ∫ x, ‖((ψ ⋆[ContinuousLinearMap.lsmul ℝ ℝ, (volume : Measure E)] u) x)‖ ^ (2 : ℝ) |
| 379 | ∂(volume : Measure E) ≤ |
| 380 | ∫ x, ‖u x‖ ^ (2 : ℝ) ∂(volume : Measure E) := |
| 381 | h_int_le.trans (le_of_eq h_conv_eq) |
| 382 | refine Real.rpow_le_rpow ?_ h_int_combined ?_ |
| 383 | · exact integral_nonneg fun _ => Real.rpow_nonneg (norm_nonneg _) _ |
| 384 | · exact inv_nonneg.mpr (by norm_num : (0 : ℝ) ≤ 2) |
| 385 | |
| 386 | end Poincare.Analysis.Sobolev.DifferenceQuotient |
| 387 |