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 | /- Adapted from Mapher `PoincareMT/Proofs/M03/Existence/DeTurckDomainRegularityNative.lean` at |
| 2 | f927d9e1f0810042766d3b5f64d3f4da02ee93cc. See |
| 3 | `references/ricci-flow/mapher/local-theory/port.json`. -/ |
| 4 | |
| 5 | import PoincareLib.Analysis.Parabolic.Quasilinear.Euclidean.Translation |
| 6 | import PoincareLib.Analysis.Parabolic.Quasilinear.Euclidean.Mollification |
| 7 | import Mathlib.Analysis.Calculus.ContDiff.Convolution |
| 8 | import Mathlib.Analysis.Calculus.ParametricIntegral |
| 9 | import Mathlib.Analysis.Calculus.Deriv.Slope |
| 10 | import Mathlib.Analysis.Distribution.SchwartzSpace.Deriv |
| 11 | import Mathlib.Analysis.InnerProductSpace.Dual |
| 12 | import Mathlib.Analysis.Normed.Module.WeakDual |
| 13 | import Mathlib.Analysis.Normed.Operator.Banach |
| 14 | import Mathlib.Data.Set.Finite.List |
| 15 | import Mathlib.MeasureTheory.Function.LocallyIntegrable |
| 16 | import Mathlib.Topology.MetricSpace.Thickening |
| 17 | |
| 18 | /-!+# Native L2 weak derivatives from translated differences |
| 19 | |
| 20 | A uniformly bounded family of actual difference quotients has a weak L2 |
| 21 | derivative. Compact test functions identify the weak limit and its sign. |
| 22 | -/ |
| 23 | |
| 24 | set_option autoImplicit false |
| 25 | set_option maxHeartbeats 1200000 |
| 26 | set_option backward.isDefEq.respectTransparency false |
| 27 | |
| 28 | open MeasureTheory Set Filter Metric |
| 29 | open scoped Topology SchwartzMap ContDiff LineDeriv Convolution |
| 30 | |
| 31 | noncomputable section |
| 32 | |
| 33 | namespace PoincareMT.DeTurckDomainRegularityNative |
| 34 | |
| 35 | open EuclideanTranslationNative |
| 36 | |
| 37 | variable {n : ℕ} |
| 38 | |
| 39 | local notation "E" => EuclideanSpace ℝ (Fin n) |
| 40 | |
| 41 | /-- The quotient is formed inside the existing L2 space. -/ |
| 42 | def differenceQuotient (u : ScalarL2 n) (v : E) (h : ℝ) : ScalarL2 n := |
| 43 | h⁻¹ • (translateLp (h • v) u - u) |
| 44 | |
| 45 | /-- The adjoint of an L2 translation is the opposite translation. -/ |
| 46 | theorem inner_translateLp (u w : ScalarL2 n) (a : E) : |
| 47 | inner ℝ (translateLp a u) w = inner ℝ u (translateLp (-a) w) := by |
| 48 | calc |
| 49 | _ = ∫ x, u (x + a) * w x := by |
| 50 | rw [L2.inner_def] |
| 51 | apply integral_congr_ae |
| 52 | filter_upwards [translateLp_ae_eq a u] with x hx |
| 53 | rw [hx] |
| 54 | simp only [Real.inner_apply, mul_comm] |
| 55 | _ = ∫ x, u x * w (x - a) := by |
| 56 | simpa only [add_sub_cancel_right] using |
| 57 | integral_add_right_eq_self (fun x => u x * w (x - a)) a |
| 58 | _ = _ := by |
| 59 | rw [L2.inner_def] |
| 60 | apply integral_congr_ae |
| 61 | filter_upwards [translateLp_ae_eq (-a) w] with x hx |
| 62 | rw [hx] |
| 63 | simp only [Real.inner_apply, sub_eq_add_neg, mul_comm] |
| 64 | |
| 65 | /-- Discrete integration by parts holds for arbitrary L2 functions. -/ |
| 66 | theorem inner_differenceQuotient_adjoint (u w : ScalarL2 n) (v : E) (h : ℝ) : |
| 67 | inner ℝ (differenceQuotient u v h) w = |
| 68 | -(inner ℝ u (differenceQuotient w v (-h))) := by |
| 69 | simp only [differenceQuotient, real_inner_smul_left, real_inner_smul_right, |
| 70 | inner_sub_left, inner_sub_right, inner_neg_right, inner_translateLp, neg_smul, inv_neg] |
| 71 | ring |
| 72 | |
| 73 | /-- A fixed difference quotient is continuous on the actual L2 space. -/ |
| 74 | theorem continuous_differenceQuotient (v : E) (h : ℝ) : |
| 75 | Continuous (fun u : ScalarL2 n => differenceQuotient u v h) := by |
| 76 | have htrans : Continuous (translateLp (h • v) : ScalarL2 n → ScalarL2 n) := |
| 77 | (Lp.isometry_compMeasurePreserving |
| 78 | (measurePreserving_add_right volume (h • v))).continuous |
| 79 | change Continuous (fun u : ScalarL2 n => (h⁻¹ : ℝ) • (translateLp (h • v) u - u)) |
| 80 | exact (continuous_const : Continuous (fun _ : ScalarL2 n => (h⁻¹ : ℝ))).smul |
| 81 | (htrans.sub continuous_id) |
| 82 | |
| 83 | /-- The actual L2 directional derivative bounds every difference quotient. -/ |
| 84 | theorem norm_differenceQuotient_toLp_le {f : E → ℝ} (v : E) |
| 85 | (hf : ContDiff ℝ 1 f) (hfL2 : MemLp f 2 volume) |
| 86 | (hD : MemLp (fun x => fderiv ℝ f x v) 2 volume) (h : ℝ) : |
| 87 | ‖differenceQuotient (hfL2.toLp f) v h‖ ≤ |
| 88 | ‖hD.toLp (fun x => fderiv ℝ f x v)‖ := by |
| 89 | by_cases hh : h = 0 |
| 90 | · subst h |
| 91 | simp only [differenceQuotient, inv_zero, zero_smul, norm_zero, norm_nonneg] |
| 92 | · have hDhv : MemLp (fun x => fderiv ℝ f x (h • v)) 2 volume := by |
| 93 | simpa only [map_smul, smul_eq_mul] using hD.const_mul h |
| 94 | have henergy := translateLp_sub_norm_sq_le_directional hf hfL2 (h • v) hDhv |
| 95 | simp only [map_smul, smul_eq_mul, mul_pow, integral_const_mul] at henergy |
| 96 | rw [← scalar_toLp_norm_sq hD] at henergy |
| 97 | have hnorm : ‖translateLp (h • v) (hfL2.toLp f) - hfL2.toLp f‖ ≤ |
| 98 | |h| * ‖hD.toLp (fun x => fderiv ℝ f x v)‖ := by |
| 99 | apply (sq_le_sq₀ (norm_nonneg _) (mul_nonneg (abs_nonneg _) (norm_nonneg _))).mp |
| 100 | simpa only [mul_pow, sq_abs] using henergy |
| 101 | calc |
| 102 | _ = |h⁻¹| * ‖translateLp (h • v) (hfL2.toLp f) - hfL2.toLp f‖ := by |
| 103 | rw [differenceQuotient, norm_smul, Real.norm_eq_abs] |
| 104 | _ ≤ |h⁻¹| * (|h| * ‖hD.toLp (fun x => fderiv ℝ f x v)‖) := |
| 105 | mul_le_mul_of_nonneg_left hnorm (abs_nonneg _) |
| 106 | _ = _ := by |
| 107 | rw [← mul_assoc, ← abs_mul, inv_mul_cancel₀ hh, abs_one, one_mul] |
| 108 | |
| 109 | /-- Norm bounds pass to actual L2 limits on both sides. -/ |
| 110 | theorem norm_differenceQuotient_le_of_tendsto (u d : ScalarL2 n) (v : E) |
| 111 | (f g : ℕ → ScalarL2 n) (hf : Tendsto f atTop (𝓝 u)) (hg : Tendsto g atTop (𝓝 d)) |
| 112 | (hbound : ∀ k h, ‖differenceQuotient (f k) v h‖ ≤ ‖g k‖) (h : ℝ) : |
| 113 | ‖differenceQuotient u v h‖ ≤ ‖d‖ := by |
| 114 | exact le_of_tendsto_of_tendsto |
| 115 | (((continuous_differenceQuotient v h).tendsto u).comp hf).norm hg.norm |
| 116 | (Eventually.of_forall (fun k => hbound k h)) |
| 117 | |
| 118 | /-- A dense smooth image transfers the quotient bound to its full completion. -/ |
| 119 | theorem norm_differenceQuotient_le_of_denseRange {α β : Type*} [TopologicalSpace β] |
| 120 | (e : α → β) (he : DenseRange e) (U D : β → ScalarL2 n) |
| 121 | (hU : Continuous U) (hD : Continuous D) (v : E) |
| 122 | (hbound : ∀ a h, ‖differenceQuotient (U (e a)) v h‖ ≤ ‖D (e a)‖) |
| 123 | (z : β) (h : ℝ) : ‖differenceQuotient (U z) v h‖ ≤ ‖D z‖ := by |
| 124 | exact he.induction_on z |
| 125 | (isClosed_le ((continuous_differenceQuotient v h).comp hU).norm hD.norm) |
| 126 | (fun a => hbound a h) |
| 127 | |
| 128 | theorem inner_schwartz (u : ScalarL2 n) (φ : 𝓢(E, ℝ)) : |
| 129 | inner ℝ u (φ.toLp 2 volume) = ∫ x, u x * φ x := by |
| 130 | rw [L2.inner_def] |
| 131 | apply integral_congr_ae |
| 132 | filter_upwards [φ.coeFn_toLp 2 volume] with x hx |
| 133 | rw [hx] |
| 134 | simp only [Real.inner_apply, mul_comm] |
| 135 | |
| 136 | /-- Translation invariance moves the spatial shift onto the actual test. -/ |
| 137 | theorem inner_translate_schwartz (u : ScalarL2 n) (v : E) (h : ℝ) |
| 138 | (φ : 𝓢(E, ℝ)) : |
| 139 | inner ℝ (translateLp (h • v) u) (φ.toLp 2 volume) = |
| 140 | ∫ x, u x * φ (x - h • v) := by |
| 141 | rw [inner_schwartz] |
| 142 | calc |
| 143 | _ = ∫ x, u (x + h • v) * φ x := by |
| 144 | apply integral_congr_ae |
| 145 | filter_upwards [translateLp_ae_eq (h • v) u] with x hx |
| 146 | rw [hx] |
| 147 | _ = _ := by |
| 148 | simpa only [add_sub_cancel_right] using |
| 149 | integral_add_right_eq_self (fun x => u x * φ (x - h • v)) (h • v) |
| 150 | |
| 151 | theorem inner_differenceQuotient_schwartz (u : ScalarL2 n) (v : E) (h : ℝ) |
| 152 | (φ : 𝓢(E, ℝ)) : |
| 153 | inner ℝ (differenceQuotient u v h) (φ.toLp 2 volume) = |
| 154 | h⁻¹ * ((∫ x, u x * φ (x - h • v)) - ∫ x, u x * φ x) := by |
| 155 | rw [differenceQuotient, real_inner_smul_left, inner_sub_left, |
| 156 | inner_translate_schwartz, inner_schwartz] |
| 157 | |
| 158 | /-- Compact support provides an integrable bound for parameter differentiation. -/ |
| 159 | theorem hasDerivAt_test_translation_pairing (u : ScalarL2 n) (v : E) |
| 160 | (φ : 𝓢(E, ℝ)) (hφ : HasCompactSupport φ) : |
| 161 | HasDerivAt (fun h : ℝ => ∫ x, u x * φ (x - h • v)) |
| 162 | (-(∫ x, u x * fderiv ℝ φ x v)) 0 := by |
| 163 | have hD : Continuous (fun x => fderiv ℝ φ x v) := |
| 164 | ((φ.smooth 1).continuous_fderiv one_ne_zero).clm_apply continuous_const |
| 165 | obtain ⟨B, hB⟩ := (hφ.fderiv_apply ℝ v).exists_bound_of_continuous hD |
| 166 | have hB0 : 0 ≤ B := (norm_nonneg _).trans (hB 0) |
| 167 | obtain ⟨R, hR, hsupport⟩ := hφ.isBounded.exists_pos_norm_le |
| 168 | let K : Set E := closedBall 0 (R + ‖v‖) |
| 169 | let A : ℝ → E → ℝ := fun h x => u x * φ (x - h • v) |
| 170 | let A' : ℝ → E → ℝ := fun h x => -(u x * fderiv ℝ φ (x - h • v) v) |
| 171 | let dominator : E → ℝ := K.indicator (fun x => ‖u x‖ * B) |
| 172 | have hK : IsCompact K := isCompact_closedBall _ _ |
| 173 | have hloc : IntegrableOn (fun x => ‖u x‖ * B) K volume := |
| 174 | (((Lp.memLp u).locallyIntegrable (by norm_num)).integrableOn_isCompact hK).norm.mul_const B |
| 175 | have hbound : Integrable dominator volume := hloc.integrable_indicator hK.measurableSet |
| 176 | have hmeas (h : ℝ) : AEStronglyMeasurable (A h) volume := |
| 177 | (Lp.memLp u).aestronglyMeasurable.mul |
| 178 | (φ.continuous.comp (continuous_id.sub continuous_const)).aestronglyMeasurable |
| 179 | have hA0 : Integrable (A 0) volume := by |
| 180 | convert! (Lp.memLp u).integrable_mul (φ.memLp 2 volume) using 1 <;> |
| 181 | first | rfl | (funext x; simp only [A, zero_smul, sub_zero, Pi.mul_apply]) |
| 182 | have hDmeas : AEStronglyMeasurable (A' 0) volume := by |
| 183 | convert! ((Lp.memLp u).aestronglyMeasurable.mul hD.aestronglyMeasurable).neg using 1 <;> |
| 184 | first | rfl | (funext x; simp only [A', zero_smul, sub_zero, Pi.neg_apply, Pi.mul_apply]) |
| 185 | have hderiv (h : ℝ) (x : E) : HasDerivAt (fun t => A t x) (A' h x) h := by |
| 186 | have hpath : HasDerivAt (fun t : ℝ => x - t • v) (-v) h := by |
| 187 | convert! (hasDerivAt_const h x).sub ((hasDerivAt_id h).smul_const v) using 1 <;> |
| 188 | first | rfl | simp only [one_smul, zero_sub, Pi.sub_apply, id_eq] |
| 189 | have htest : HasDerivAt (fun t : ℝ => φ (x - t • v)) |
| 190 | (fderiv ℝ φ (x - h • v) (-v)) h := |
| 191 | (φ.differentiable (x - h • v)).hasFDerivAt.comp_hasDerivAt h hpath |
| 192 | simpa only [A, A', map_neg, mul_neg] using htest.const_mul (u x) |
| 193 | have hdom (x : E) (h : ℝ) (hh : h ∈ Ioo (-1 : ℝ) 1) : ‖A' h x‖ ≤ dominator x := by |
| 194 | by_cases hx : x ∈ K |
| 195 | · dsimp only [dominator] |
| 196 | rw [indicator_of_mem hx] |
| 197 | simp only [A', norm_neg, norm_mul] |
| 198 | exact mul_le_mul_of_nonneg_left (hB (x - h • v)) (norm_nonneg _) |
| 199 | · have hnot : x - h • v ∉ tsupport φ := by |
| 200 | intro hs |
| 201 | apply hx |
| 202 | change ‖x - 0‖ ≤ R + ‖v‖ |
| 203 | rw [sub_zero] |
| 204 | have hhv : ‖h • v‖ ≤ ‖v‖ := by |
| 205 | rw [norm_smul, Real.norm_eq_abs] |
| 206 | exact mul_le_of_le_one_left (norm_nonneg _) (abs_le.mpr ⟨hh.1.le, hh.2.le⟩) |
| 207 | calc |
| 208 | ‖x‖ = ‖(x - h • v) + h • v‖ := by rw [sub_add_cancel] |
| 209 | _ ≤ ‖x - h • v‖ + ‖h • v‖ := norm_add_le _ _ |
| 210 | _ ≤ R + ‖v‖ := add_le_add (hsupport _ hs) hhv |
| 211 | dsimp only [dominator] |
| 212 | rw [indicator_of_notMem hx] |
| 213 | simp only [A', fderiv_of_notMem_tsupport ℝ hnot, |
| 214 | ContinuousLinearMap.zero_apply, mul_zero, neg_zero, norm_zero, le_refl] |
| 215 | have h := hasDerivAt_integral_of_dominated_loc_of_deriv_le |
| 216 | (F := A) (F' := A') (bound := dominator) |
| 217 | (Ioo_mem_nhds (by norm_num : (-1 : ℝ) < 0) (by norm_num : (0 : ℝ) < 1)) |
| 218 | (Eventually.of_forall hmeas) hA0 hDmeas |
| 219 | (Eventually.of_forall hdom) hbound |
| 220 | (Eventually.of_forall (fun x h _ => hderiv h x)) |
| 221 | simpa only [A, A', zero_smul, sub_zero, integral_neg] using h.2 |
| 222 | |
| 223 | /-- The test pairing converges with the distributional derivative sign. -/ |
| 224 | theorem tendsto_inner_differenceQuotient (u : ScalarL2 n) (v : E) |
| 225 | (φ : 𝓢(E, ℝ)) (hφ : HasCompactSupport φ) : |
| 226 | Tendsto (fun h => inner ℝ (differenceQuotient u v h) (φ.toLp 2 volume)) |
| 227 | (𝓝[≠] (0 : ℝ)) (𝓝 (-(∫ x, u x * fderiv ℝ φ x v))) := by |
| 228 | have heq : (fun h : ℝ => inner ℝ (differenceQuotient u v h) (φ.toLp 2 volume)) = |
| 229 | slope (fun h : ℝ => ∫ x, u x * φ (x - h • v)) 0 := by |
| 230 | funext h |
| 231 | rw [inner_differenceQuotient_schwartz, slope_def_field] |
| 232 | simp only [zero_smul, sub_zero, div_eq_mul_inv] |
| 233 | ring |
| 234 | rw [heq] |
| 235 | exact (hasDerivAt_test_translation_pairing u v φ hφ).tendsto_slope |
| 236 | |
| 237 | /-- Uniformly bounded actual difference quotients construct an L2 weak derivative. -/ |
| 238 | theorem exists_weakDerivative_of_bounded_differenceQuotients |
| 239 | (u : ScalarL2 n) (v : E) {C : ℝ} |
| 240 | (hbound : ∀ᶠ h in 𝓝[≠] (0 : ℝ), ‖differenceQuotient u v h‖ ≤ C) : |
| 241 | ∃ d : ScalarL2 n, ‖d‖ ≤ C ∧ ∀ φ : 𝓢(E, ℝ), HasCompactSupport φ → |
| 242 | inner ℝ d (φ.toLp 2 volume) = -(∫ x, u x * fderiv ℝ φ x v) := by |
| 243 | let ell : ℝ → WeakDual ℝ (ScalarL2 n) := fun h => |
| 244 | StrongDual.toWeakDual (InnerProductSpace.toDual ℝ (ScalarL2 n) |
| 245 | (differenceQuotient u v h)) |
| 246 | have hmem : ∀ᶠ h in 𝓝[≠] (0 : ℝ), |
| 247 | ell h ∈ WeakDual.toStrongDual ⁻¹' closedBall (0 : StrongDual ℝ (ScalarL2 n)) C := by |
| 248 | filter_upwards [hbound] with h hh |
| 249 | simpa only [mem_preimage, mem_closedBall, dist_zero_right, ell, |
| 250 | StrongDual.toStrongDual_toWeakDual, LinearIsometryEquiv.norm_map] using hh |
| 251 | have hcompact : IsCompact |
| 252 | (WeakDual.toStrongDual ⁻¹' closedBall (0 : StrongDual ℝ (ScalarL2 n)) C) := |
| 253 | WeakDual.isCompact_closedBall (0 : StrongDual ℝ (ScalarL2 n)) C |
| 254 | obtain ⟨L, hL, hcluster⟩ := |
| 255 | hcompact.exists_mapClusterPt (Filter.tendsto_principal.mpr hmem) |
| 256 | let d : ScalarL2 n := (InnerProductSpace.toDual ℝ (ScalarL2 n)).symm |
| 257 | (WeakDual.toStrongDual L) |
| 258 | refine ⟨d, ?_, ?_⟩ |
| 259 | · simpa only [mem_preimage, mem_closedBall, dist_zero_right, d, |
| 260 | LinearIsometryEquiv.norm_map] using hL |
| 261 | · intro φ hφ |
| 262 | have htest : MapClusterPt (L (φ.toLp 2 volume)) (𝓝[≠] (0 : ℝ)) |
| 263 | (fun h => inner ℝ (differenceQuotient u v h) (φ.toLp 2 volume)) := by |
| 264 | simpa only [Function.comp_def, ell, StrongDual.toWeakDual_apply, |
| 265 | InnerProductSpace.toDual_apply_apply] using |
| 266 | MapClusterPt.continuousAt_comp |
| 267 | (WeakDual.eval_continuous (φ.toLp 2 volume)).continuousAt hcluster |
| 268 | have heq : L (φ.toLp 2 volume) = -(∫ x, u x * fderiv ℝ φ x v) := |
| 269 | eq_of_nhds_neBot (htest.clusterPt.mono |
| 270 | (tendsto_inner_differenceQuotient u v φ hφ)).neBot |
| 271 | simpa only [d, InnerProductSpace.toDual_symm_apply, WeakDual.toStrongDual_apply] using heq |
| 272 | |
| 273 | theorem exists_weakCoordinateDerivative_of_bounded_differenceQuotients |
| 274 | (u : ScalarL2 n) (j : Fin n) {C : ℝ} |
| 275 | (hbound : ∀ᶠ h in 𝓝[≠] (0 : ℝ), |
| 276 | ‖differenceQuotient u (EuclideanSpace.single j 1) h‖ ≤ C) : |
| 277 | ∃ d : ScalarL2 n, ‖d‖ ≤ C ∧ ∀ φ : 𝓢(E, ℝ), HasCompactSupport φ → |
| 278 | inner ℝ d (φ.toLp 2 volume) = |
| 279 | -(∫ x, u x * fderiv ℝ φ x (EuclideanSpace.single j 1)) := |
| 280 | exists_weakDerivative_of_bounded_differenceQuotients u (EuclideanSpace.single j 1) hbound |
| 281 | |
| 282 | /-- Actual L2 localizations with fixed compact support are globally integrable. -/ |
| 283 | theorem integrable_of_ae_compact_support (u : ScalarL2 n) {K : Set E} |
| 284 | (hK : IsCompact K) (huK : ∀ᵐ x ∂volume, x ∉ K → u x = 0) : |
| 285 | Integrable (u : E → ℝ) volume := by |
| 286 | have hloc : IntegrableOn (u : E → ℝ) K volume := |
| 287 | ((Lp.memLp u).locallyIntegrable (by norm_num)).integrableOn_isCompact hK |
| 288 | exact hloc.integrable_of_ae_notMem_eq_zero huK |
| 289 | |
| 290 | /-- For integrable data, the pairing derivative allows every Schwartz test. -/ |
| 291 | theorem hasDerivAt_test_translation_pairing_of_integrable (u : ScalarL2 n) |
| 292 | (hu : Integrable (u : E → ℝ) volume) (v : E) (φ : 𝓢(E, ℝ)) : |
| 293 | HasDerivAt (fun h : ℝ => ∫ x, u x * φ (x - h • v)) |
| 294 | (-(∫ x, u x * fderiv ℝ φ x v)) 0 := by |
| 295 | let B : ℝ := SchwartzMap.seminorm ℝ 0 0 (∂_{v} φ) |
| 296 | have hB (x : E) : ‖fderiv ℝ φ x v‖ ≤ B := by |
| 297 | simpa only [B, SchwartzMap.lineDerivOp_apply_eq_fderiv] using |
| 298 | (∂_{v} φ).norm_le_seminorm ℝ x |
| 299 | have hD : Continuous (fun x => fderiv ℝ φ x v) := |
| 300 | ((φ.smooth 1).continuous_fderiv one_ne_zero).clm_apply continuous_const |
| 301 | let A : ℝ → E → ℝ := fun h x => u x * φ (x - h • v) |
| 302 | let A' : ℝ → E → ℝ := fun h x => -(u x * fderiv ℝ φ (x - h • v) v) |
| 303 | let dominator : E → ℝ := fun x => ‖u x‖ * B |
| 304 | have hbound : Integrable dominator volume := hu.norm.mul_const B |
| 305 | have hmeas (h : ℝ) : AEStronglyMeasurable (A h) volume := |
| 306 | (Lp.memLp u).aestronglyMeasurable.mul |
| 307 | (φ.continuous.comp (continuous_id.sub continuous_const)).aestronglyMeasurable |
| 308 | have hA0 : Integrable (A 0) volume := by |
| 309 | convert! (Lp.memLp u).integrable_mul (φ.memLp 2 volume) using 1 <;> |
| 310 | first | rfl | (funext x; simp only [A, zero_smul, sub_zero, Pi.mul_apply]) |
| 311 | have hDmeas : AEStronglyMeasurable (A' 0) volume := by |
| 312 | convert! ((Lp.memLp u).aestronglyMeasurable.mul hD.aestronglyMeasurable).neg using 1 <;> |
| 313 | first | rfl | (funext x; simp only [A', zero_smul, sub_zero, Pi.neg_apply, Pi.mul_apply]) |
| 314 | have hderiv (h : ℝ) (x : E) : HasDerivAt (fun t => A t x) (A' h x) h := by |
| 315 | have hpath : HasDerivAt (fun t : ℝ => x - t • v) (-v) h := by |
| 316 | convert! (hasDerivAt_const h x).sub ((hasDerivAt_id h).smul_const v) using 1 <;> |
| 317 | first | rfl | simp only [one_smul, zero_sub, Pi.sub_apply, id_eq] |
| 318 | have htest : HasDerivAt (fun t : ℝ => φ (x - t • v)) |
| 319 | (fderiv ℝ φ (x - h • v) (-v)) h := |
| 320 | (φ.differentiable (x - h • v)).hasFDerivAt.comp_hasDerivAt h hpath |
| 321 | simpa only [A, A', map_neg, mul_neg] using htest.const_mul (u x) |
| 322 | have hdom (x : E) (h : ℝ) (_hh : h ∈ Ioo (-1 : ℝ) 1) : ‖A' h x‖ ≤ dominator x := by |
| 323 | simp only [A', dominator, norm_neg, norm_mul] |
| 324 | exact mul_le_mul_of_nonneg_left (hB (x - h • v)) (norm_nonneg _) |
| 325 | have h := hasDerivAt_integral_of_dominated_loc_of_deriv_le |
| 326 | (F := A) (F' := A') (bound := dominator) |
| 327 | (Ioo_mem_nhds (by norm_num : (-1 : ℝ) < 0) (by norm_num : (0 : ℝ) < 1)) |
| 328 | (Eventually.of_forall hmeas) hA0 hDmeas |
| 329 | (Eventually.of_forall hdom) hbound |
| 330 | (Eventually.of_forall (fun x h _ => hderiv h x)) |
| 331 | simpa only [A, A', zero_smul, sub_zero, integral_neg] using h.2 |
| 332 | |
| 333 | theorem tendsto_inner_differenceQuotient_of_integrable (u : ScalarL2 n) |
| 334 | (hu : Integrable (u : E → ℝ) volume) (v : E) (φ : 𝓢(E, ℝ)) : |
| 335 | Tendsto (fun h => inner ℝ (differenceQuotient u v h) (φ.toLp 2 volume)) |
| 336 | (𝓝[≠] (0 : ℝ)) (𝓝 (-(∫ x, u x * fderiv ℝ φ x v))) := by |
| 337 | have heq : (fun h : ℝ => inner ℝ (differenceQuotient u v h) (φ.toLp 2 volume)) = |
| 338 | slope (fun h : ℝ => ∫ x, u x * φ (x - h • v)) 0 := by |
| 339 | funext h |
| 340 | rw [inner_differenceQuotient_schwartz, slope_def_field] |
| 341 | simp only [zero_smul, sub_zero, div_eq_mul_inv] |
| 342 | ring |
| 343 | rw [heq] |
| 344 | exact (hasDerivAt_test_translation_pairing_of_integrable u hu v φ).tendsto_slope |
| 345 | |
| 346 | /-- The constructed derivative of an integrable localization is tempered. -/ |
| 347 | theorem exists_weakDerivative_of_bounded_differenceQuotients_integrable |
| 348 | (u : ScalarL2 n) (hu : Integrable (u : E → ℝ) volume) (v : E) {C : ℝ} |
| 349 | (hbound : ∀ᶠ h in 𝓝[≠] (0 : ℝ), ‖differenceQuotient u v h‖ ≤ C) : |
| 350 | ∃ d : ScalarL2 n, ‖d‖ ≤ C ∧ ∀ φ : 𝓢(E, ℝ), |
| 351 | inner ℝ d (φ.toLp 2 volume) = -(∫ x, u x * fderiv ℝ φ x v) := by |
| 352 | let ell : ℝ → WeakDual ℝ (ScalarL2 n) := fun h => |
| 353 | StrongDual.toWeakDual (InnerProductSpace.toDual ℝ (ScalarL2 n) |
| 354 | (differenceQuotient u v h)) |
| 355 | have hmem : ∀ᶠ h in 𝓝[≠] (0 : ℝ), |
| 356 | ell h ∈ WeakDual.toStrongDual ⁻¹' closedBall (0 : StrongDual ℝ (ScalarL2 n)) C := by |
| 357 | filter_upwards [hbound] with h hh |
| 358 | simpa only [mem_preimage, mem_closedBall, dist_zero_right, ell, |
| 359 | StrongDual.toStrongDual_toWeakDual, LinearIsometryEquiv.norm_map] using hh |
| 360 | have hcompact : IsCompact |
| 361 | (WeakDual.toStrongDual ⁻¹' closedBall (0 : StrongDual ℝ (ScalarL2 n)) C) := |
| 362 | WeakDual.isCompact_closedBall (0 : StrongDual ℝ (ScalarL2 n)) C |
| 363 | obtain ⟨L, hL, hcluster⟩ := |
| 364 | hcompact.exists_mapClusterPt (Filter.tendsto_principal.mpr hmem) |
| 365 | let d : ScalarL2 n := (InnerProductSpace.toDual ℝ (ScalarL2 n)).symm |
| 366 | (WeakDual.toStrongDual L) |
| 367 | refine ⟨d, ?_, ?_⟩ |
| 368 | · simpa only [mem_preimage, mem_closedBall, dist_zero_right, d, |
| 369 | LinearIsometryEquiv.norm_map] using hL |
| 370 | · intro φ |
| 371 | have htest : MapClusterPt (L (φ.toLp 2 volume)) (𝓝[≠] (0 : ℝ)) |
| 372 | (fun h => inner ℝ (differenceQuotient u v h) (φ.toLp 2 volume)) := by |
| 373 | simpa only [Function.comp_def, ell, StrongDual.toWeakDual_apply, |
| 374 | InnerProductSpace.toDual_apply_apply] using |
| 375 | MapClusterPt.continuousAt_comp |
| 376 | (WeakDual.eval_continuous (φ.toLp 2 volume)).continuousAt hcluster |
| 377 | have heq : L (φ.toLp 2 volume) = -(∫ x, u x * fderiv ℝ φ x v) := |
| 378 | eq_of_nhds_neBot (htest.clusterPt.mono |
| 379 | (tendsto_inner_differenceQuotient_of_integrable u hu v φ)).neBot |
| 380 | simpa only [d, InnerProductSpace.toDual_symm_apply, WeakDual.toStrongDual_apply] using heq |
| 381 | |
| 382 | theorem exists_weakCoordinateDerivative_of_bounded_differenceQuotients_integrable |
| 383 | (u : ScalarL2 n) (hu : Integrable (u : E → ℝ) volume) (j : Fin n) {C : ℝ} |
| 384 | (hbound : ∀ᶠ h in 𝓝[≠] (0 : ℝ), |
| 385 | ‖differenceQuotient u (EuclideanSpace.single j 1) h‖ ≤ C) : |
| 386 | ∃ d : ScalarL2 n, ‖d‖ ≤ C ∧ ∀ φ : 𝓢(E, ℝ), |
| 387 | inner ℝ d (φ.toLp 2 volume) = |
| 388 | -(∫ x, u x * fderiv ℝ φ x (EuclideanSpace.single j 1)) := |
| 389 | exists_weakDerivative_of_bounded_differenceQuotients_integrable u hu |
| 390 | (EuclideanSpace.single j 1) hbound |
| 391 | |
| 392 | section WeakApproximation |
| 393 | |
| 394 | open EuclideanMollificationNative |
| 395 | |
| 396 | variable {ε : ℝ} |
| 397 | |
| 398 | theorem mollify_integral (hε : 0 < ε) (u : ScalarL2 n) (x : E) : |
| 399 | mollify hε u x = ∫ y, mollifier hε y * u (x - y) := by |
| 400 | simpa only [Lp.toLp_coeFn] using mollify_toLp_eq_integral hε (Lp.memLp u) x |
| 401 | |
| 402 | theorem mollify_kernel_integral (hε : 0 < ε) (u : ScalarL2 n) (x : E) : |
| 403 | mollify hε u x = ∫ y, u y * mollifier hε (y - x) := by |
| 404 | have htrans := (mollifier_memLp (n := n) hε).comp_measurePreserving |
| 405 | (measurePreserving_add_right volume (-x)) |
| 406 | change inner ℝ (Lp.compMeasurePreserving (fun y : E => y + -x) |
| 407 | (measurePreserving_add_right volume (-x)) |
| 408 | ((mollifier_memLp hε).toLp (mollifier hε))) u = _ |
| 409 | rw [Lp.toLp_compMeasurePreserving, L2.inner_def] |
| 410 | apply integral_congr_ae |
| 411 | filter_upwards [htrans.coeFn_toLp] with y hy |
| 412 | rw [hy] |
| 413 | simp only [Function.comp_apply, sub_eq_add_neg, Real.inner_apply, mul_comm] |
| 414 | |
| 415 | private theorem integrable_mollifier_difference (hε : 0 < ε) (u : ScalarL2 n) (x : E) : |
| 416 | Integrable (fun y => mollifier hε y * (u (x - y) - u x)) volume := by |
| 417 | have hshift := (Lp.memLp u).comp_measurePreserving (Measure.measurePreserving_sub_left volume x) |
| 418 | have hm : Integrable (fun y => mollifier hε y * u (x - y)) volume := by |
| 419 | convert! (mollifier_memLp hε).integrable_mul hshift using 1 |
| 420 | have h := hm.sub ((mollifier_integrable hε).mul_const (u x)) |
| 421 | convert! h using 1 |
| 422 | funext y |
| 423 | simp only [Pi.sub_apply, mul_sub] |
| 424 | |
| 425 | private theorem integrable_mollifier_difference_sq (hε : 0 < ε) (u : ScalarL2 n) (x : E) : |
| 426 | Integrable (fun y => mollifier hε y * (u (x - y) - u x) ^ 2) volume := by |
| 427 | obtain ⟨B, hB⟩ := (mollifier_compactSupport (n := n) hε).exists_bound_of_continuous |
| 428 | (mollifier_continuous hε) |
| 429 | have hshift := (Lp.memLp u).comp_measurePreserving (Measure.measurePreserving_sub_left volume x) |
| 430 | have hm : Integrable (fun y => mollifier hε y * u (x - y)) volume := by |
| 431 | convert! (mollifier_memLp hε).integrable_mul hshift using 1 |
| 432 | have hs : Integrable (fun y => mollifier hε y * u (x - y) ^ 2) volume := |
| 433 | hshift.integrable_sq.bdd_mul (mollifier_continuous hε).aestronglyMeasurable |
| 434 | (Eventually.of_forall hB) |
| 435 | have h := (hs.sub (hm.const_mul (2 * u x))).add |
| 436 | ((mollifier_integrable hε).mul_const (u x ^ 2)) |
| 437 | apply h.congr |
| 438 | exact Eventually.of_forall (fun y => by simp only [Pi.add_apply, Pi.sub_apply]; ring) |
| 439 | |
| 440 | theorem mollify_sub_integral (hε : 0 < ε) (u : ScalarL2 n) (x : E) : |
| 441 | mollify hε u x - u x = ∫ y, mollifier hε y * (u (x - y) - u x) := by |
| 442 | have hshift := (Lp.memLp u).comp_measurePreserving (Measure.measurePreserving_sub_left volume x) |
| 443 | have hm : Integrable (fun y => mollifier hε y * u (x - y)) volume := by |
| 444 | convert! (mollifier_memLp hε).integrable_mul hshift using 1 |
| 445 | rw [mollify_integral] |
| 446 | simp_rw [mul_sub] |
| 447 | rw [integral_sub hm ((mollifier_integrable hε).mul_const (u x)), |
| 448 | integral_mul_const, mollifier_integral, one_mul] |
| 449 | |
| 450 | theorem mollify_sub_sq_le_integral (hε : 0 < ε) (u : ScalarL2 n) (x : E) : |
| 451 | (mollify hε u x - u x) ^ 2 ≤ |
| 452 | ∫ y, mollifier hε y * (u (x - y) - u x) ^ 2 := by |
| 453 | rw [mollify_sub_integral] |
| 454 | exact weighted_integral_sq_le (mollifier_integrable hε) |
| 455 | (integrable_mollifier_difference hε u x) (integrable_mollifier_difference_sq hε u x) |
| 456 | (mollifier_nonneg hε) (mollifier_integral hε) |
| 457 | |
| 458 | theorem integral_translation_difference_sq (u : ScalarL2 n) (y : E) : |
| 459 | (∫ x, (u (x - y) - u x) ^ 2) = ‖translateLp (-y) u - u‖ ^ 2 := by |
| 460 | rw [scalarLp_norm_sq] |
| 461 | apply integral_congr_ae |
| 462 | filter_upwards [Lp.coeFn_sub (translateLp (-y) u) u, translateLp_ae_eq (-y) u] |
| 463 | with x hsub htrans |
| 464 | rw [hsub] |
| 465 | change (u (x - y) - u x) ^ 2 = (translateLp (-y) u x - u x) ^ 2 |
| 466 | rw [htrans] |
| 467 | simp only [sub_eq_add_neg] |
| 468 | |
| 469 | theorem integrable_mollifier_translation_sq (hε : 0 < ε) (u : ScalarL2 n) : |
| 470 | Integrable (fun p : E × E => mollifier hε p.1 * (u (p.2 - p.1) - u p.2) ^ 2) |
| 471 | (volume.prod volume) := by |
| 472 | have hm : StronglyMeasurable |
| 473 | (fun p : E × E => mollifier hε p.1 * (u (p.2 - p.1) - u p.2) ^ 2) := |
| 474 | ((mollifier_continuous hε).stronglyMeasurable.comp_measurable measurable_fst).mul |
| 475 | ((((Lp.stronglyMeasurable u).comp_measurable (measurable_snd.sub measurable_fst)).sub |
| 476 | ((Lp.stronglyMeasurable u).comp_measurable measurable_snd)).pow 2) |
| 477 | apply (integrable_prod_iff hm.aestronglyMeasurable).mpr |
| 478 | constructor |
| 479 | · apply Eventually.of_forall |
| 480 | intro y |
| 481 | have hd := ((Lp.memLp u).comp_measurePreserving |
| 482 | (measurePreserving_add_right volume (-y))).sub (Lp.memLp u) |
| 483 | simpa only [Function.comp_apply, Pi.sub_apply, sub_eq_add_neg] using |
| 484 | hd.integrable_sq.const_mul (mollifier hε y) |
| 485 | · have heq : (fun y : E => ∫ x, ‖mollifier hε y * (u (x - y) - u x) ^ 2‖) = |
| 486 | (fun y : E => mollifier hε y * ‖translateLp (-y) u - u‖ ^ 2) := by |
| 487 | funext y |
| 488 | simp only [Real.norm_eq_abs, abs_mul, abs_of_nonneg (mollifier_nonneg hε y), |
| 489 | abs_pow, sq_abs, integral_const_mul, integral_translation_difference_sq] |
| 490 | rw [heq] |
| 491 | exact integrable_mollifier_mul_continuous hε |
| 492 | ((((continuous_translateLp u).comp continuous_neg).sub continuous_const).norm.pow 2) |
| 493 | |
| 494 | theorem memLp_mollify_sub (hε : 0 < ε) (u : ScalarL2 n) : |
| 495 | MemLp (fun x => mollify hε u x - u x) 2 volume := by |
| 496 | have hm := (continuous_mollify hε u).aestronglyMeasurable.sub (Lp.aestronglyMeasurable u) |
| 497 | apply (memLp_two_iff_integrable_sq hm).mpr |
| 498 | apply (integrable_mollifier_translation_sq hε u).integral_prod_right.mono' |
| 499 | (hm.pow 2) |
| 500 | apply Eventually.of_forall |
| 501 | intro x |
| 502 | change ‖(mollify hε u x - u x) ^ 2‖ ≤ _ |
| 503 | rw [Real.norm_eq_abs, abs_pow, sq_abs] |
| 504 | exact mollify_sub_sq_le_integral hε u x |
| 505 | |
| 506 | theorem memLp_mollify (hε : 0 < ε) (u : ScalarL2 n) : MemLp (mollify hε u) 2 volume := by |
| 507 | have h := (memLp_mollify_sub hε u).add (Lp.memLp u) |
| 508 | convert! h using 1 |
| 509 | funext x |
| 510 | simp only [Pi.add_apply, sub_add_cancel] |
| 511 | |
| 512 | def mollifyL2 (hε : 0 < ε) (u : ScalarL2 n) : ScalarL2 n := |
| 513 | (memLp_mollify hε u).toLp (mollify hε u) |
| 514 | |
| 515 | theorem mollifyL2_ae_eq (hε : 0 < ε) (u : ScalarL2 n) : |
| 516 | mollifyL2 hε u =ᵐ[volume] mollify hε u := (memLp_mollify hε u).coeFn_toLp |
| 517 | |
| 518 | /-- The normalized kernel averages the actual L2 translation error. -/ |
| 519 | theorem norm_mollifyL2_sub_sq_le (hε : 0 < ε) (u : ScalarL2 n) : |
| 520 | ‖mollifyL2 hε u - u‖ ^ 2 ≤ |
| 521 | ∫ y, mollifier hε y * ‖translateLp (-y) u - u‖ ^ 2 := by |
| 522 | have hi := integrable_mollifier_translation_sq hε u |
| 523 | calc |
| 524 | _ = ∫ x, (mollify hε u x - u x) ^ 2 := by |
| 525 | rw [scalarLp_norm_sq] |
| 526 | apply integral_congr_ae |
| 527 | filter_upwards [Lp.coeFn_sub (mollifyL2 hε u) u, mollifyL2_ae_eq hε u] |
| 528 | with x hsub hm |
| 529 | simp only [hsub, Pi.sub_apply, hm] |
| 530 | _ ≤ ∫ x, ∫ y, mollifier hε y * (u (x - y) - u x) ^ 2 := |
| 531 | integral_mono (memLp_mollify_sub hε u).integrable_sq hi.integral_prod_right |
| 532 | (mollify_sub_sq_le_integral hε u) |
| 533 | _ = ∫ y, ∫ x, mollifier hε y * (u (x - y) - u x) ^ 2 := |
| 534 | (integral_integral_swap hi).symm |
| 535 | _ = _ := by |
| 536 | apply integral_congr_ae |
| 537 | exact Eventually.of_forall (fun y => by |
| 538 | dsimp only |
| 539 | rw [integral_const_mul, integral_translation_difference_sq]) |
| 540 | |
| 541 | theorem norm_mollifyL2_sub_le_of_translate (hε : 0 < ε) (u : ScalarL2 n) |
| 542 | {δ : ℝ} (hδ : 0 ≤ δ) |
| 543 | (hbound : ∀ y : E, ‖y‖ ≤ ε → ‖translateLp (-y) u - u‖ ≤ δ) : |
| 544 | ‖mollifyL2 hε u - u‖ ≤ δ := by |
| 545 | apply (sq_le_sq₀ (norm_nonneg _) hδ).mp |
| 546 | apply (norm_mollifyL2_sub_sq_le hε u).trans |
| 547 | calc |
| 548 | _ ≤ ∫ y, mollifier hε y * δ ^ 2 := by |
| 549 | apply integral_mono |
| 550 | (integrable_mollifier_mul_continuous hε |
| 551 | ((((continuous_translateLp u).comp continuous_neg).sub continuous_const).norm.pow 2)) |
| 552 | ((mollifier_integrable hε).mul_const _) |
| 553 | intro y |
| 554 | by_cases hy : mollifier hε y = 0 |
| 555 | · simp only [hy, zero_mul, le_refl] |
| 556 | · exact mul_le_mul_of_nonneg_left |
| 557 | ((sq_le_sq₀ (norm_nonneg _) hδ).mpr |
| 558 | (hbound y (norm_le_of_mollifier_ne_zero hε hy))) (mollifier_nonneg hε y) |
| 559 | _ = δ ^ 2 := by rw [integral_mul_const, mollifier_integral, one_mul] |
| 560 | |
| 561 | theorem translateLp_zero (u : ScalarL2 n) : translateLp (0 : E) u = u := by |
| 562 | apply Lp.ext |
| 563 | simpa only [add_zero] using translateLp_ae_eq (0 : E) u |
| 564 | |
| 565 | /-- Every actual L2 class is strongly approximated by these normalized kernels. -/ |
| 566 | theorem tendsto_mollifyL2 (eps : ℕ → ℝ) (heps : ∀ j, 0 < eps j) |
| 567 | (heps0 : Tendsto eps atTop (𝓝 0)) (u : ScalarL2 n) : |
| 568 | Tendsto (fun j => mollifyL2 (heps j) u) atTop (𝓝 u) := by |
| 569 | apply Metric.tendsto_nhds.mpr |
| 570 | intro δ hδ |
| 571 | have hc : Continuous (fun y : E => ‖translateLp (-y) u - u‖) := |
| 572 | (((continuous_translateLp u).comp continuous_neg).sub continuous_const).norm |
| 573 | have hz : ‖translateLp (-(0 : E)) u - u‖ = 0 := by |
| 574 | rw [neg_zero, translateLp_zero, sub_self, norm_zero] |
| 575 | have hnear : ∀ᶠ y in 𝓝 (0 : E), ‖translateLp (-y) u - u‖ < δ / 2 := |
| 576 | (hc.continuousAt.tendsto.eventually (gt_mem_nhds (by rw [hz]; linarith))) |
| 577 | obtain ⟨r, hr, hball⟩ := Metric.mem_nhds_iff.mp hnear |
| 578 | filter_upwards [heps0.eventually (gt_mem_nhds hr)] with j hj |
| 579 | rw [dist_eq_norm] |
| 580 | apply (norm_mollifyL2_sub_le_of_translate (heps j) u (by linarith) ?_).trans_lt |
| 581 | (half_lt_self hδ) |
| 582 | intro y hy |
| 583 | exact (hball (by simpa only [Metric.mem_ball, dist_zero_right] using hy.trans_lt hj)).le |
| 584 | |
| 585 | theorem contDiff_mollify (hε : 0 < ε) (u : ScalarL2 n) : |
| 586 | ContDiff ℝ ∞ (mollify hε u) := by |
| 587 | have heq : mollify hε u = |
| 588 | (mollifier hε ⋆[ContinuousLinearMap.mul ℝ ℝ, volume] (u : E → ℝ)) := by |
| 589 | funext x |
| 590 | rw [mollify_integral] |
| 591 | rfl |
| 592 | rw [heq] |
| 593 | exact (mollifier_compactSupport hε).contDiff_convolution_left _ |
| 594 | (mollifier_contDiff hε) ((Lp.memLp u).locallyIntegrable (by norm_num)) |
| 595 | |
| 596 | theorem mollify_eq_zero_off_cthickening (hε : 0 < ε) (u : ScalarL2 n) {K : Set E} |
| 597 | (huK : ∀ᵐ y ∂volume, y ∉ K → u y = 0) {x : E} (hx : x ∉ cthickening ε K) : |
| 598 | mollify hε u x = 0 := by |
| 599 | rw [mollify_integral] |
| 600 | apply integral_eq_zero_of_ae |
| 601 | have hshift := (Measure.measurePreserving_sub_left volume x).quasiMeasurePreserving.ae huK |
| 602 | filter_upwards [hshift] with y hy |
| 603 | change mollifier hε y * u (x - y) = 0 |
| 604 | by_cases hρ : mollifier hε y = 0 |
| 605 | · rw [hρ, zero_mul] |
| 606 | · have hnot : x - y ∉ K := by |
| 607 | intro hK |
| 608 | apply hx |
| 609 | apply mem_cthickening_of_dist_le x (x - y) ε K hK |
| 610 | have heq : x - (x - y) = y := by abel |
| 611 | rw [dist_eq_norm, heq] |
| 612 | exact norm_le_of_mollifier_ne_zero hε hρ |
| 613 | rw [hy hnot, mul_zero] |
| 614 | |
| 615 | theorem tsupport_mollify_subset (hε : 0 < ε) (u : ScalarL2 n) {K : Set E} |
| 616 | (huK : ∀ᵐ y ∂volume, y ∉ K → u y = 0) : |
| 617 | tsupport (mollify hε u) ⊆ cthickening ε K := by |
| 618 | apply closure_minimal _ isClosed_cthickening |
| 619 | intro x hx |
| 620 | by_contra hxK |
| 621 | exact hx (mollify_eq_zero_off_cthickening hε u huK hxK) |
| 622 | |
| 623 | theorem hasCompactSupport_mollify (hε : 0 < ε) (u : ScalarL2 n) {K : Set E} |
| 624 | (hK : IsCompact K) (huK : ∀ᵐ y ∂volume, y ∉ K → u y = 0) : |
| 625 | HasCompactSupport (mollify hε u) := |
| 626 | (hK.cthickening (r := ε)).of_isClosed_subset (isClosed_tsupport _) |
| 627 | (tsupport_mollify_subset hε u huK) |
| 628 | |
| 629 | def mollifySchwartz (hε : 0 < ε) (u : ScalarL2 n) {K : Set E} |
| 630 | (hK : IsCompact K) (huK : ∀ᵐ y ∂volume, y ∉ K → u y = 0) : 𝓢(E, ℝ) := |
| 631 | (hasCompactSupport_mollify hε u hK huK).toSchwartzMap (contDiff_mollify hε u) |
| 632 | |
| 633 | theorem mollifySchwartz_toLp (hε : 0 < ε) (u : ScalarL2 n) {K : Set E} |
| 634 | (hK : IsCompact K) (huK : ∀ᵐ y ∂volume, y ∉ K → u y = 0) : |
| 635 | (mollifySchwartz hε u hK huK).toLp 2 volume = mollifyL2 hε u := by |
| 636 | apply Lp.ext |
| 637 | exact ((mollifySchwartz hε u hK huK).coeFn_toLp 2 volume).trans |
| 638 | (mollifyL2_ae_eq hε u).symm |
| 639 | |
| 640 | /-- The translated compact kernel identifies the mollified weak derivative for L2 data. -/ |
| 641 | theorem fderiv_mollify_of_weak_pairing (hε : 0 < ε) (u d : ScalarL2 n) (v : E) |
| 642 | (hweak : ∀ φ : 𝓢(E, ℝ), |
| 643 | inner ℝ d (φ.toLp 2 volume) = -(∫ y, u y * fderiv ℝ φ y v)) (x : E) : |
| 644 | fderiv ℝ (mollify hε u) x v = mollify hε d x := by |
| 645 | let φ : 𝓢(E, ℝ) := SchwartzMap.compSubConstCLM ℝ x |
| 646 | ((mollifier_compactSupport hε).toSchwartzMap (mollifier_contDiff hε)) |
| 647 | have hφ (y : E) : φ y = mollifier hε (y - x) := rfl |
| 648 | have hkernel : inner ℝ d (φ.toLp 2 volume) = mollify hε d x := by |
| 649 | rw [inner_schwartz, mollify_kernel_integral] |
| 650 | rfl |
| 651 | have heq : (fun t : ℝ => ∫ y, u y * φ (y - t • v)) = |
| 652 | (fun t : ℝ => mollify hε u (x + t • v)) := by |
| 653 | funext t |
| 654 | rw [mollify_kernel_integral] |
| 655 | apply integral_congr_ae |
| 656 | apply Eventually.of_forall |
| 657 | intro y |
| 658 | dsimp only |
| 659 | rw [hφ] |
| 660 | congr 2 |
| 661 | abel |
| 662 | have hφcompact : HasCompactSupport φ := |
| 663 | (mollifier_compactSupport hε).comp_homeomorph (Homeomorph.subRight x) |
| 664 | have hd := hasDerivAt_test_translation_pairing u v φ hφcompact |
| 665 | rw [heq, ← hweak φ, hkernel] at hd |
| 666 | have hc : HasDerivAt (fun t : ℝ => mollify hε u (x + t • v)) |
| 667 | (fderiv ℝ (mollify hε u) x v) 0 := by |
| 668 | convert! |
| 669 | (((contDiff_mollify hε u).differentiable (by simp)) |
| 670 | (x + (0 : ℝ) • v)).hasFDerivAt.comp_hasDerivAt 0 (hasDerivAt_segment x v 0) |
| 671 | using 1 <;> first | rfl | simp only [zero_smul, add_zero] |
| 672 | exact hc.unique hd |
| 673 | |
| 674 | /-- Translated kernel tests identify the actual derivative of the mollification. -/ |
| 675 | theorem fderiv_mollify_of_weak_derivative (hε : 0 < ε) (u d : ScalarL2 n) |
| 676 | (hu : Integrable (u : E → ℝ) volume) (v : E) |
| 677 | (hweak : ∀ φ : 𝓢(E, ℝ), |
| 678 | inner ℝ d (φ.toLp 2 volume) = -(∫ y, u y * fderiv ℝ φ y v)) (x : E) : |
| 679 | fderiv ℝ (mollify hε u) x v = mollify hε d x := |
| 680 | fderiv_mollify_of_weak_pairing hε u d v hweak x |
| 681 | |
| 682 | theorem lineDeriv_mollifySchwartz_toLp (hε : 0 < ε) (u d : ScalarL2 n) |
| 683 | {K : Set E} (hK : IsCompact K) (huK : ∀ᵐ y ∂volume, y ∉ K → u y = 0) |
| 684 | (v : E) (hweak : ∀ φ : 𝓢(E, ℝ), |
| 685 | inner ℝ d (φ.toLp 2 volume) = -(∫ y, u y * fderiv ℝ φ y v)) : |
| 686 | (∂_{v} (mollifySchwartz hε u hK huK)).toLp 2 volume = mollifyL2 hε d := by |
| 687 | apply Lp.ext |
| 688 | filter_upwards [(∂_{v} (mollifySchwartz hε u hK huK)).coeFn_toLp 2 volume, |
| 689 | mollifyL2_ae_eq hε d] with x hleft hright |
| 690 | rw [hleft, hright, SchwartzMap.lineDerivOp_apply_eq_fderiv] |
| 691 | change fderiv ℝ (mollify hε u) x v = mollify hε d x |
| 692 | exact fderiv_mollify_of_weak_derivative hε u d |
| 693 | (integrable_of_ae_compact_support u hK huK) v hweak x |
| 694 | |
| 695 | /-- Compactly supported weak first derivatives have actual compact smooth graph approximants. -/ |
| 696 | theorem exists_schwartz_approximation_of_weak_derivatives |
| 697 | (u : ScalarL2 n) (d : Fin n → ScalarL2 n) {K : Set E} |
| 698 | (hK : IsCompact K) (huK : ∀ᵐ y ∂volume, y ∉ K → u y = 0) |
| 699 | (hweak : ∀ i (φ : 𝓢(E, ℝ)), |
| 700 | inner ℝ (d i) (φ.toLp 2 volume) = |
| 701 | -(∫ y, u y * fderiv ℝ φ y (EuclideanSpace.single i 1))) |
| 702 | {r : ℝ} (hr : 0 < r) : |
| 703 | ∃ S : ℕ → 𝓢(E, ℝ), |
| 704 | (∀ j, HasCompactSupport (S j) ∧ tsupport (S j) ⊆ cthickening r K) ∧ |
| 705 | Tendsto (fun j => (S j).toLp 2 volume) atTop (𝓝 u) ∧ |
| 706 | ∀ i : Fin n, Tendsto (fun j => (∂_{EuclideanSpace.single i (1 : ℝ)} (S j)).toLp 2 volume) |
| 707 | atTop (𝓝 (d i)) := by |
| 708 | let eps : ℕ → ℝ := fun j => r / ((j : ℝ) + 1) |
| 709 | have heps (j : ℕ) : 0 < eps j := div_pos hr (by positivity) |
| 710 | have hepsr (j : ℕ) : eps j ≤ r := by |
| 711 | apply (div_le_iff₀ (by positivity : (0 : ℝ) < (j : ℝ) + 1)).mpr |
| 712 | nlinarith [Nat.cast_nonneg (α := ℝ) j] |
| 713 | have heps0 : Tendsto eps atTop (𝓝 0) := by |
| 714 | simpa only [eps, mul_one_div, mul_zero] using |
| 715 | (tendsto_const_nhds (x := r)).mul |
| 716 | (tendsto_one_div_add_atTop_nhds_zero_nat (𝕜 := ℝ)) |
| 717 | let S : ℕ → 𝓢(E, ℝ) := fun j => mollifySchwartz (heps j) u hK huK |
| 718 | refine ⟨S, ?_, ?_, ?_⟩ |
| 719 | · intro j |
| 720 | refine ⟨hasCompactSupport_mollify (heps j) u hK huK, ?_⟩ |
| 721 | exact (tsupport_mollify_subset (heps j) u huK).trans (cthickening_mono (hepsr j) K) |
| 722 | · simpa only [S, mollifySchwartz_toLp] using tendsto_mollifyL2 eps heps heps0 u |
| 723 | · intro i |
| 724 | have heq : (fun j => (∂_{EuclideanSpace.single i (1 : ℝ)} (S j)).toLp 2 volume) = |
| 725 | (fun j => mollifyL2 (heps j) (d i)) := by |
| 726 | funext j |
| 727 | exact lineDeriv_mollifySchwartz_toLp (heps j) u (d i) hK huK |
| 728 | (EuclideanSpace.single i 1) (hweak i) |
| 729 | rw [heq] |
| 730 | exact tendsto_mollifyL2 eps heps heps0 (d i) |
| 731 | |
| 732 | /-- Ordered derivatives keep the same order as the weak jet identities. -/ |
| 733 | def orderedSchwartzDerivative : List (Fin n) → 𝓢(E, ℝ) → 𝓢(E, ℝ) |
| 734 | | [], φ => φ |
| 735 | | i :: w, φ => ∂_{EuclideanSpace.single i (1 : ℝ)} (orderedSchwartzDerivative w φ) |
| 736 | |
| 737 | theorem orderedSchwartzDerivative_append (w v : List (Fin n)) (φ : 𝓢(E, ℝ)) : |
| 738 | orderedSchwartzDerivative (w ++ v) φ = |
| 739 | orderedSchwartzDerivative w (orderedSchwartzDerivative v φ) := by |
| 740 | induction w with |
| 741 | | nil => rfl |
| 742 | | cons i w ih => simp only [List.cons_append, orderedSchwartzDerivative, ih] |
| 743 | |
| 744 | /-- Repeated weak integration by parts reverses the derivative word on the test. -/ |
| 745 | theorem finite_weakJet_pairing (q : List (Fin n) → ScalarL2 n) (k : ℕ) |
| 746 | (hweak : ∀ w : List (Fin n), w.length < k → ∀ i (φ : 𝓢(E, ℝ)), |
| 747 | inner ℝ (q (i :: w)) (φ.toLp 2 volume) = |
| 748 | -inner ℝ (q w) ((∂_{EuclideanSpace.single i (1 : ℝ)} φ).toLp 2 volume)) |
| 749 | (w : List (Fin n)) (hw : w.length ≤ k) (φ : 𝓢(E, ℝ)) : |
| 750 | inner ℝ (q w) (φ.toLp 2 volume) = (-1 : ℝ) ^ w.length * |
| 751 | inner ℝ (q []) ((orderedSchwartzDerivative w.reverse φ).toLp 2 volume) := by |
| 752 | induction w generalizing φ with |
| 753 | | nil => simp only [List.length_nil, pow_zero, one_mul, List.reverse_nil, |
| 754 | orderedSchwartzDerivative] |
| 755 | | cons i w ih => |
| 756 | have hwk : w.length < k := by simp only [List.length_cons] at hw; omega |
| 757 | rw [hweak w hwk i φ, ih (by omega)] |
| 758 | simp only [List.length_cons, List.reverse_cons, orderedSchwartzDerivative_append, |
| 759 | orderedSchwartzDerivative, pow_succ] |
| 760 | ring |
| 761 | |
| 762 | theorem orderedSchwartzDerivative_mollifySchwartz |
| 763 | (hε : 0 < ε) (q : List (Fin n) → ScalarL2 n) (k : ℕ) |
| 764 | {K : Set E} (hK : IsCompact K) (hqK : ∀ᵐ y ∂volume, y ∉ K → q [] y = 0) |
| 765 | (hweak : ∀ w : List (Fin n), w.length < k → ∀ i (φ : 𝓢(E, ℝ)), |
| 766 | inner ℝ (q (i :: w)) (φ.toLp 2 volume) = |
| 767 | -(∫ y, q w y * fderiv ℝ φ y (EuclideanSpace.single i 1))) |
| 768 | (w : List (Fin n)) (hw : w.length ≤ k) (x : E) : |
| 769 | orderedSchwartzDerivative w (mollifySchwartz hε (q []) hK hqK) x = |
| 770 | mollify hε (q w) x := by |
| 771 | induction w generalizing x with |
| 772 | | nil => rfl |
| 773 | | cons i w ih => |
| 774 | have hwk : w.length < k := by simp only [List.length_cons] at hw; omega |
| 775 | have heq : (orderedSchwartzDerivative w (mollifySchwartz hε (q []) hK hqK) : E → ℝ) = |
| 776 | mollify hε (q w) := funext (fun y => ih (by omega) y) |
| 777 | change fderiv ℝ |
| 778 | (orderedSchwartzDerivative w (mollifySchwartz hε (q []) hK hqK)) x |
| 779 | (EuclideanSpace.single i (1 : ℝ)) = _ |
| 780 | rw [heq] |
| 781 | exact fderiv_mollify_of_weak_pairing hε (q w) (q (i :: w)) |
| 782 | (EuclideanSpace.single i 1) (hweak w hwk i) x |
| 783 | |
| 784 | theorem orderedSchwartzDerivative_mollifySchwartz_toLp |
| 785 | (hε : 0 < ε) (q : List (Fin n) → ScalarL2 n) (k : ℕ) |
| 786 | {K : Set E} (hK : IsCompact K) (hqK : ∀ᵐ y ∂volume, y ∉ K → q [] y = 0) |
| 787 | (hweak : ∀ w : List (Fin n), w.length < k → ∀ i (φ : 𝓢(E, ℝ)), |
| 788 | inner ℝ (q (i :: w)) (φ.toLp 2 volume) = |
| 789 | -(∫ y, q w y * fderiv ℝ φ y (EuclideanSpace.single i 1))) |
| 790 | (w : List (Fin n)) (hw : w.length ≤ k) : |
| 791 | (orderedSchwartzDerivative w (mollifySchwartz hε (q []) hK hqK)).toLp 2 volume = |
| 792 | mollifyL2 hε (q w) := by |
| 793 | apply Lp.ext |
| 794 | filter_upwards |
| 795 | [(orderedSchwartzDerivative w (mollifySchwartz hε (q []) hK hqK)).coeFn_toLp 2 volume, |
| 796 | mollifyL2_ae_eq hε (q w)] with x hleft hright |
| 797 | rw [hleft, hright] |
| 798 | exact orderedSchwartzDerivative_mollifySchwartz hε q k hK hqK hweak w hw x |
| 799 | |
| 800 | /-- One sequence approximates every actual weak derivative through the chosen finite order. -/ |
| 801 | theorem exists_schwartz_approximation_of_finite_weak_jets |
| 802 | (q : List (Fin n) → ScalarL2 n) (k : ℕ) |
| 803 | {K : Set E} (hK : IsCompact K) (hqK : ∀ᵐ y ∂volume, y ∉ K → q [] y = 0) |
| 804 | (hweak : ∀ w : List (Fin n), w.length < k → ∀ i (φ : 𝓢(E, ℝ)), |
| 805 | inner ℝ (q (i :: w)) (φ.toLp 2 volume) = |
| 806 | -(∫ y, q w y * fderiv ℝ φ y (EuclideanSpace.single i 1))) |
| 807 | {r : ℝ} (hr : 0 < r) : |
| 808 | ∃ S : ℕ → 𝓢(E, ℝ), |
| 809 | (∀ j, HasCompactSupport (S j) ∧ tsupport (S j) ⊆ cthickening r K) ∧ |
| 810 | ∀ w : List (Fin n), w.length ≤ k → |
| 811 | Tendsto (fun j => (orderedSchwartzDerivative w (S j)).toLp 2 volume) |
| 812 | atTop (𝓝 (q w)) := by |
| 813 | let eps : ℕ → ℝ := fun j => r / ((j : ℝ) + 1) |
| 814 | have heps (j : ℕ) : 0 < eps j := div_pos hr (by positivity) |
| 815 | have hepsr (j : ℕ) : eps j ≤ r := by |
| 816 | apply (div_le_iff₀ (by positivity : (0 : ℝ) < (j : ℝ) + 1)).mpr |
| 817 | nlinarith [Nat.cast_nonneg (α := ℝ) j] |
| 818 | have heps0 : Tendsto eps atTop (𝓝 0) := by |
| 819 | simpa only [eps, mul_one_div, mul_zero] using |
| 820 | (tendsto_const_nhds (x := r)).mul |
| 821 | (tendsto_one_div_add_atTop_nhds_zero_nat (𝕜 := ℝ)) |
| 822 | let S : ℕ → 𝓢(E, ℝ) := fun j => mollifySchwartz (heps j) (q []) hK hqK |
| 823 | refine ⟨S, ?_, ?_⟩ |
| 824 | · intro j |
| 825 | refine ⟨hasCompactSupport_mollify (heps j) (q []) hK hqK, ?_⟩ |
| 826 | exact (tsupport_mollify_subset (heps j) (q []) hqK).trans (cthickening_mono (hepsr j) K) |
| 827 | · intro w hw |
| 828 | have heq : (fun j => (orderedSchwartzDerivative w (S j)).toLp 2 volume) = |
| 829 | fun j => mollifyL2 (heps j) (q w) := by |
| 830 | funext j |
| 831 | exact orderedSchwartzDerivative_mollifySchwartz_toLp (heps j) q k hK hqK hweak w hw |
| 832 | rw [heq] |
| 833 | exact tendsto_mollifyL2 eps heps heps0 (q w) |
| 834 | |
| 835 | end WeakApproximation |
| 836 | |
| 837 | /-- Everywhere weak derivatives of a bounded state decoder form a bounded |
| 838 | linear map, with no separate norm estimate as a premise. -/ |
| 839 | theorem exists_continuous_weakJet |
| 840 | {X : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] [CompleteSpace X] |
| 841 | (U : X →L[ℝ] ScalarL2 n) (w : List (Fin n)) |
| 842 | (hex : ∀ z : X, ∃ d : ScalarL2 n, ∀ φ : 𝓢(E, ℝ), |
| 843 | inner ℝ d (φ.toLp 2 volume) = (-1 : ℝ) ^ w.length * |
| 844 | inner ℝ (U z) ((orderedSchwartzDerivative w.reverse φ).toLp 2 volume)) : |
| 845 | ∃ D : X →L[ℝ] ScalarL2 n, ∀ z : X, ∀ φ : 𝓢(E, ℝ), |
| 846 | inner ℝ (D z) (φ.toLp 2 volume) = (-1 : ℝ) ^ w.length * |
| 847 | inner ℝ (U z) ((orderedSchwartzDerivative w.reverse φ).toLp 2 volume) := by |
| 848 | classical |
| 849 | choose d hd using hex |
| 850 | have hext {a b : ScalarL2 n} |
| 851 | (h : ∀ φ : 𝓢(E, ℝ), inner ℝ a (φ.toLp 2 volume) = |
| 852 | inner ℝ b (φ.toLp 2 volume)) : a = b := |
| 853 | (SchwartzMap.denseRange_toLpCLM (F := ℝ) (μ := (volume : Measure E)) |
| 854 | (by norm_num : (2 : ENNReal) ≠ ⊤)).eq_of_inner_left ℝ h |
| 855 | let D : X →ₗ[ℝ] ScalarL2 n := { |
| 856 | toFun := d |
| 857 | map_add' := by |
| 858 | intro x y |
| 859 | apply hext |
| 860 | intro φ |
| 861 | rw [hd, map_add, inner_add_left, inner_add_left, hd, hd, mul_add] |
| 862 | map_smul' := by |
| 863 | intro c x |
| 864 | apply hext |
| 865 | intro φ |
| 866 | simp only [hd, map_smul, real_inner_smul_left, RingHom.id_apply] |
| 867 | ring } |
| 868 | have hD : Continuous D := by |
| 869 | apply D.continuous_of_seq_closed_graph |
| 870 | intro z x y hz hy |
| 871 | apply hext |
| 872 | intro φ |
| 873 | have hleft : Tendsto (fun j => inner ℝ (D (z j)) (φ.toLp 2 volume)) |
| 874 | atTop (𝓝 (inner ℝ y (φ.toLp 2 volume))) := |
| 875 | hy.inner tendsto_const_nhds |
| 876 | have hright : Tendsto (fun j => (-1 : ℝ) ^ w.length * |
| 877 | inner ℝ (U (z j)) ((orderedSchwartzDerivative w.reverse φ).toLp 2 volume)) |
| 878 | atTop (𝓝 ((-1 : ℝ) ^ w.length * |
| 879 | inner ℝ (U x) ((orderedSchwartzDerivative w.reverse φ).toLp 2 volume))) := |
| 880 | tendsto_const_nhds.mul (((U.continuous.tendsto x).comp hz).inner tendsto_const_nhds) |
| 881 | have hpair : (fun j => inner ℝ (D (z j)) (φ.toLp 2 volume)) = |
| 882 | fun j => (-1 : ℝ) ^ w.length * |
| 883 | inner ℝ (U (z j)) ((orderedSchwartzDerivative w.reverse φ).toLp 2 volume) := |
| 884 | funext (fun j => hd (z j) φ) |
| 885 | rw [← hpair] at hright |
| 886 | exact (tendsto_nhds_unique hleft hright).trans (hd x φ).symm |
| 887 | exact ⟨⟨D, hD⟩, hd⟩ |
| 888 | |
| 889 | /-- The actual finite weak jets, rather than separately chosen representatives, |
| 890 | are bounded linear functions of the complete state. -/ |
| 891 | theorem exists_continuous_finite_weakJets |
| 892 | {X : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] [CompleteSpace X] |
| 893 | (U : X →L[ℝ] ScalarL2 n) (q : X → List (Fin n) → ScalarL2 n) (k : ℕ) |
| 894 | (hzero : ∀ z : X, q z [] = U z) |
| 895 | (hweak : ∀ (z : X) (w : List (Fin n)), w.length < k → |
| 896 | ∀ i (φ : 𝓢(E, ℝ)), |
| 897 | inner ℝ (q z (i :: w)) (φ.toLp 2 volume) = |
| 898 | -inner ℝ (q z w) ((∂_{EuclideanSpace.single i (1 : ℝ)} φ).toLp 2 volume)) : |
| 899 | ∃ D : (w : List (Fin n)) → w.length ≤ k → X →L[ℝ] ScalarL2 n, |
| 900 | ∀ (w : List (Fin n)) (hw : w.length ≤ k) (z : X), D w hw z = q z w := by |
| 901 | classical |
| 902 | have hpair (w : List (Fin n)) (hw : w.length ≤ k) (z : X) (φ : 𝓢(E, ℝ)) : |
| 903 | inner ℝ (q z w) (φ.toLp 2 volume) = (-1 : ℝ) ^ w.length * |
| 904 | inner ℝ (U z) ((orderedSchwartzDerivative w.reverse φ).toLp 2 volume) := by |
| 905 | simpa only [hzero z] using finite_weakJet_pairing (q z) k (hweak z) w hw φ |
| 906 | have hex (w : List (Fin n)) (hw : w.length ≤ k) : |
| 907 | ∃ D : X →L[ℝ] ScalarL2 n, ∀ z : X, D z = q z w := by |
| 908 | obtain ⟨D, hD⟩ := exists_continuous_weakJet U w |
| 909 | (fun z => ⟨q z w, hpair w hw z⟩) |
| 910 | refine ⟨D, fun z => ?_⟩ |
| 911 | apply (SchwartzMap.denseRange_toLpCLM (F := ℝ) |
| 912 | (μ := (volume : Measure E)) (by norm_num : (2 : ENNReal) ≠ ⊤)).eq_of_inner_left ℝ |
| 913 | intro φ |
| 914 | exact (hD z φ).trans (hpair w hw z φ).symm |
| 915 | choose D hD using hex |
| 916 | exact ⟨D, hD⟩ |
| 917 | |
| 918 | /-- A single constant controls all actual weak derivatives through a fixed order. -/ |
| 919 | theorem exists_finite_weakJet_bound |
| 920 | {X : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] [CompleteSpace X] |
| 921 | (U : X →L[ℝ] ScalarL2 n) (q : X → List (Fin n) → ScalarL2 n) (k : ℕ) |
| 922 | (hzero : ∀ z : X, q z [] = U z) |
| 923 | (hweak : ∀ (z : X) (w : List (Fin n)), w.length < k → |
| 924 | ∀ i (φ : 𝓢(E, ℝ)), |
| 925 | inner ℝ (q z (i :: w)) (φ.toLp 2 volume) = |
| 926 | -inner ℝ (q z w) ((∂_{EuclideanSpace.single i (1 : ℝ)} φ).toLp 2 volume)) : |
| 927 | ∃ C : ℝ, 0 < C ∧ ∀ (z : X) (w : List (Fin n)), w.length ≤ k → |
| 928 | ‖q z w‖ ≤ C * ‖z‖ := by |
| 929 | classical |
| 930 | obtain ⟨D, hD⟩ := exists_continuous_finite_weakJets U q k hzero hweak |
| 931 | let W := {w : List (Fin n) // w.length ≤ k} |
| 932 | letI : Fintype W := (List.finite_length_le (Fin n) k).fintype |
| 933 | let C : ℝ := 1 + ∑ w : W, ‖D w.val w.property‖ |
| 934 | have hsum : 0 ≤ ∑ w : W, ‖D w.val w.property‖ := |
| 935 | Finset.sum_nonneg (fun _ _ => norm_nonneg _) |
| 936 | refine ⟨C, by dsimp [C]; linarith, ?_⟩ |
| 937 | intro z w hw |
| 938 | have hbound : ‖D w hw‖ ≤ C := by |
| 939 | have hterm := Finset.single_le_sum (s := Finset.univ) |
| 940 | (f := fun v : W => ‖D v.val v.property‖) |
| 941 | (fun v _ => norm_nonneg _) (Finset.mem_univ (⟨w, hw⟩ : W)) |
| 942 | dsimp [C] |
| 943 | linarith |
| 944 | rw [← hD w hw z] |
| 945 | exact ((D w hw).le_opNorm z).trans |
| 946 | (mul_le_mul_of_nonneg_right hbound (norm_nonneg z)) |
| 947 | |
| 948 | end PoincareMT.DeTurckDomainRegularityNative |
| 949 | |
| 950 | end |