Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

| 1 | import NavierStokes.RadialAlias |
| 2 | import Mathlib.Analysis.Calculus.ParametricIntervalIntegral |
| 3 | import Mathlib.Analysis.Calculus.FDeriv.Mul |
| 4 | import Mathlib.Analysis.Calculus.ContDiff.Bounds |
| 5 | import Mathlib.Analysis.SpecialFunctions.SmoothTransition |
| 6 | import Mathlib.Analysis.Normed.Group.Bounded |
| 7 | |
| 8 | /-! |
| 9 | # Actual shifted transport primitives |
| 10 | |
| 11 | The source is integrated along a fixed translation direction. All integrals are |
| 12 | Bochner integrals. Compact radial support is used to justify local fixed finite |
| 13 | integration intervals, so ordinary derivatives pass under the integral without |
| 14 | differentiating the translation parameter. |
| 15 | -/ |
| 16 | |
| 17 | noncomputable section |
| 18 | |
| 19 | open Set Function MeasureTheory Filter |
| 20 | open scoped ContDiff Interval Topology |
| 21 | |
| 22 | namespace NavierStokes.TransportPrimitive |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | section ParameterIntegral |
| 27 | |
| 28 | variable {H G : Type u} [NormedAddCommGroup H] [NormedSpace ℝ H] |
| 29 | [NormedAddCommGroup G] [NormedSpace ℝ G] |
| 30 | |
| 31 | omit [NormedSpace ℝ H] [NormedSpace ℝ G] in |
| 32 | /-- Continuity gives a uniform bound near a parameter value on a compact interval. |
| 33 | The parameter space need not be finite dimensional. -/ |
| 34 | theorem uniform_local_bound {g : H × ℝ → G} (hg : Continuous g) (x : H) (a b : ℝ) : |
| 35 | ∃ ε > 0, ∃ C : ℝ, ∀ y ∈ Metric.ball x ε, ∀ u ∈ uIcc a b, ‖g (y, u)‖ ≤ C := by |
| 36 | obtain ⟨C, hC⟩ := isCompact_uIcc.exists_bound_of_continuousOn |
| 37 | (hg.comp (continuous_const.prodMk continuous_id)).continuousOn |
| 38 | let S : Set (H × ℝ) := {z | ‖g z‖ < C + 1} |
| 39 | have hS : IsOpen S := isOpen_lt hg.norm continuous_const |
| 40 | have hsub : ({x} : Set H) ×ˢ uIcc a b ⊆ S := by |
| 41 | rintro ⟨y, u⟩ ⟨hy, hu⟩ |
| 42 | simp only [mem_singleton_iff] at hy |
| 43 | subst y |
| 44 | exact lt_of_le_of_lt (hC u hu) (lt_add_one C) |
| 45 | obtain ⟨V, W, hV, _, hxV, hW, hVW⟩ := |
| 46 | generalized_tube_lemma isCompact_singleton isCompact_uIcc hS hsub |
| 47 | obtain ⟨ε, hε, hball⟩ := Metric.mem_nhds_iff.mp (hV.mem_nhds (hxV (mem_singleton x))) |
| 48 | exact ⟨ε, hε, C + 1, fun y hy u hu => (hVW ⟨hball hy, hW hu⟩).le⟩ |
| 49 | |
| 50 | /-- The parameter derivative of a jointly smooth integrand. -/ |
| 51 | noncomputable def parameterDerivative (g : H × ℝ → G) (z : H × ℝ) : H →L[ℝ] G := |
| 52 | (fderiv ℝ g z).comp (ContinuousLinearMap.inl ℝ H ℝ) |
| 53 | |
| 54 | theorem parameterDerivative_contDiff {g : H × ℝ → G} (hg : ContDiff ℝ ∞ g) : |
| 55 | ContDiff ℝ ∞ (parameterDerivative g) := by |
| 56 | exact (hg.fderiv_right (by simp)).clm_comp contDiff_const |
| 57 | |
| 58 | theorem parameter_hasFDerivAt {g : H × ℝ → G} (hg : ContDiff ℝ ∞ g) |
| 59 | (x : H) (u : ℝ) : |
| 60 | HasFDerivAt (fun y => g (y, u)) (parameterDerivative g (x, u)) x := by |
| 61 | simpa only [Function.comp_def, parameterDerivative] using |
| 62 | ((hg.differentiable (by simp)) (x, u)).hasFDerivAt.comp x |
| 63 | ((hasFDerivAt_id x).prodMk (hasFDerivAt_const u x)) |
| 64 | |
| 65 | theorem parameterIntegral_hasFDerivAt {g : H × ℝ → G} (hg : ContDiff ℝ ∞ g) |
| 66 | (a b : ℝ) (x : H) : |
| 67 | HasFDerivAt (fun y => ∫ u in a..b, g (y, u)) |
| 68 | (∫ u in a..b, parameterDerivative g (x, u)) x := by |
| 69 | obtain ⟨ε, hε, C, hC⟩ := uniform_local_bound |
| 70 | (parameterDerivative_contDiff hg).continuous x a b |
| 71 | apply intervalIntegral.hasFDerivAt_integral_of_dominated_of_fderiv_le |
| 72 | (F' := fun y u => parameterDerivative g (y, u)) (bound := fun _ => C) (Metric.ball_mem_nhds _ hε) |
| 73 | · exact Eventually.of_forall fun y => |
| 74 | (hg.continuous.comp (continuous_const.prodMk continuous_id)).aestronglyMeasurable |
| 75 | · exact (hg.continuous.comp (continuous_const.prodMk continuous_id)).intervalIntegrable a b |
| 76 | · exact ((parameterDerivative_contDiff hg).continuous.comp |
| 77 | (continuous_const.prodMk continuous_id)).aestronglyMeasurable |
| 78 | · exact Eventually.of_forall fun u hu y hy => hC y hy u (uIoc_subset_uIcc hu) |
| 79 | · exact intervalIntegrable_const |
| 80 | · exact Eventually.of_forall fun u _ y _ => parameter_hasFDerivAt hg y u |
| 81 | |
| 82 | /-- Smoothness of a genuine integral over a fixed finite interval, with arbitrary |
| 83 | normed parameter space and Banach-valued output. -/ |
| 84 | theorem parameterIntegral_contDiff_nat (n : ℕ) : |
| 85 | ∀ {G : Type u} [NormedAddCommGroup G] [NormedSpace ℝ G] [CompleteSpace G] |
| 86 | {g : H × ℝ → G}, ContDiff ℝ ∞ g → ∀ a b : ℝ, |
| 87 | ContDiff ℝ (n : ℕ∞) (fun y => ∫ u in a..b, g (y, u)) := by |
| 88 | induction n with |
| 89 | | zero => |
| 90 | intro G _ _ _ g hg a b |
| 91 | exact contDiff_zero.mpr (continuous_iff_continuousAt.mpr fun x => |
| 92 | (parameterIntegral_hasFDerivAt hg a b x).continuousAt) |
| 93 | | succ n ih => |
| 94 | intro G _ _ _ g hg a b |
| 95 | rw [show ((n + 1 : ℕ) : ℕ∞) = (n : ℕ∞) + 1 by simp] |
| 96 | apply contDiff_succ_iff_hasFDerivAt.mpr |
| 97 | exact ⟨fun x => ∫ u in a..b, parameterDerivative g (x, u), |
| 98 | ih (parameterDerivative_contDiff hg) a b, parameterIntegral_hasFDerivAt hg a b⟩ |
| 99 | |
| 100 | theorem parameterIntegral_contDiff [CompleteSpace G] {g : H × ℝ → G} |
| 101 | (hg : ContDiff ℝ ∞ g) (a b : ℝ) : |
| 102 | ContDiff ℝ ∞ (fun y => ∫ u in a..b, g (y, u)) := |
| 103 | contDiff_infty.mpr fun n => parameterIntegral_contDiff_nat n hg a b |
| 104 | |
| 105 | end ParameterIntegral |
| 106 | |
| 107 | section Shifted |
| 108 | |
| 109 | variable {E F : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 110 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 111 | |
| 112 | /-- A fixed translation along the transport direction. -/ |
| 113 | noncomputable def shift (M : ℝ) (v : E) (z : ℝ × E) (u : ℝ) : ℝ × E := |
| 114 | z + (u, (M * u) • v) |
| 115 | |
| 116 | /-- The past half-line primitive, in fixed integration coordinates. -/ |
| 117 | noncomputable def pastIntegral (M : ℝ) (v : E) (f : ℝ × E → F) (z : ℝ × E) : F := |
| 118 | ∫ u in Iic (0 : ℝ), f (shift M v z u) |
| 119 | |
| 120 | /-- The complete translated radial integral. -/ |
| 121 | noncomputable def totalIntegral (M : ℝ) (v : E) (f : ℝ × E → F) (z : ℝ × E) : F := |
| 122 | ∫ u : ℝ, f (shift M v z u) |
| 123 | |
| 124 | /-- Compactification with a fixed radial cutoff. -/ |
| 125 | noncomputable def compactIntegral (χ : ℝ → ℝ) (M : ℝ) (v : E) |
| 126 | (f : ℝ × E → F) (z : ℝ × E) : F := |
| 127 | pastIntegral M v f z - χ z.1 • totalIntegral M v f z |
| 128 | |
| 129 | @[simp] theorem shift_fst (M : ℝ) (v : E) (z : ℝ × E) (u : ℝ) : |
| 130 | (shift M v z u).1 = z.1 + u := rfl |
| 131 | |
| 132 | @[simp] theorem shift_snd (M : ℝ) (v : E) (z : ℝ × E) (u : ℝ) : |
| 133 | (shift M v z u).2 = z.2 + (M * u) • v := rfl |
| 134 | |
| 135 | @[simp] theorem shift_zero (M : ℝ) (v : E) (z : ℝ × E) : shift M v z 0 = z := by |
| 136 | simp [shift] |
| 137 | |
| 138 | theorem shift_contDiff (M : ℝ) (v : E) : |
| 139 | ContDiff ℝ ∞ (fun p : (ℝ × E) × ℝ => shift M v p.1 p.2) := by |
| 140 | dsimp only [shift] |
| 141 | exact contDiff_fst.add (contDiff_snd.prodMk |
| 142 | ((contDiff_const.mul contDiff_snd).smul contDiff_const)) |
| 143 | |
| 144 | omit [NormedSpace ℝ F] in |
| 145 | theorem shifted_continuous {f : ℝ × E → F} (hf : Continuous f) |
| 146 | (M : ℝ) (v : E) (z : ℝ × E) : Continuous (fun u => f (shift M v z u)) := by |
| 147 | exact hf.comp ((shift_contDiff M v).continuous.comp (continuous_const.prodMk continuous_id)) |
| 148 | |
| 149 | omit [NormedSpace ℝ F] in |
| 150 | theorem shifted_support_subset {a b M : ℝ} {v : E} {f : ℝ × E → F} |
| 151 | (hs : RadialAlias.RadiallySupported a b f) (z : ℝ × E) : |
| 152 | support (fun u => f (shift M v z u)) ⊆ Icc (a - z.1) (b - z.1) := by |
| 153 | intro u hu |
| 154 | have h := hs hu |
| 155 | change a ≤ z.1 + u ∧ z.1 + u ≤ b at h |
| 156 | constructor <;> linarith [h.1, h.2] |
| 157 | |
| 158 | omit [NormedSpace ℝ F] in |
| 159 | theorem shifted_integrable {a b M : ℝ} {v : E} {f : ℝ × E → F} |
| 160 | (hf : Continuous f) (hs : RadialAlias.RadiallySupported a b f) (z : ℝ × E) : |
| 161 | Integrable (fun u => f (shift M v z u)) := by |
| 162 | exact (shifted_continuous hf M v z).integrable_of_hasCompactSupport |
| 163 | (HasCompactSupport.of_support_subset_isCompact isCompact_Icc (shifted_support_subset hs z)) |
| 164 | |
| 165 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedSpace ℝ F] in |
| 166 | theorem radial_zero_of_lt {a b : ℝ} {f : ℝ × E → F} |
| 167 | (hs : RadialAlias.RadiallySupported a b f) {z : ℝ × E} (hz : z.1 < a) : f z = 0 := by |
| 168 | by_contra hn |
| 169 | exact (not_le_of_gt hz) (hs hn).1 |
| 170 | |
| 171 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedSpace ℝ F] in |
| 172 | theorem radial_zero_of_gt {a b : ℝ} {f : ℝ × E → F} |
| 173 | (hs : RadialAlias.RadiallySupported a b f) {z : ℝ × E} (hz : b < z.1) : f z = 0 := by |
| 174 | by_contra hn |
| 175 | exact (not_le_of_gt hz) (hs hn).2 |
| 176 | |
| 177 | /-- The past integral is locally a finite interval integral with fixed endpoints. -/ |
| 178 | theorem pastIntegral_eq_interval {a b M c : ℝ} {v : E} {f : ℝ × E → F} |
| 179 | (hf : Continuous f) (hs : RadialAlias.RadiallySupported a b f) |
| 180 | (z : ℝ × E) (hc : z.1 + c < a) : |
| 181 | pastIntegral M v f z = ∫ u in c..0, f (shift M v z u) := by |
| 182 | have hi := shifted_integrable (M := M) (v := v) hf hs z |
| 183 | have hz : (∫ u in Iic c, f (shift M v z u)) = 0 := |
| 184 | setIntegral_eq_zero_of_forall_eq_zero fun u hu => |
| 185 | radial_zero_of_lt hs (by change u ≤ c at hu; simp only [shift_fst]; linarith) |
| 186 | simpa only [hz, sub_zero, pastIntegral] using |
| 187 | intervalIntegral.integral_Iic_sub_Iic (hi.integrableOn (s := Iic c)) |
| 188 | (hi.integrableOn (s := Iic 0)) |
| 189 | |
| 190 | theorem totalIntegral_eq_interval {a b M c d : ℝ} {v : E} {f : ℝ × E → F} |
| 191 | (hs : RadialAlias.RadiallySupported a b f) (z : ℝ × E) |
| 192 | (hc : z.1 + c < a) (hd : b ≤ z.1 + d) : |
| 193 | totalIntegral M v f z = ∫ u in c..d, f (shift M v z u) := by |
| 194 | symm |
| 195 | apply intervalIntegral.integral_eq_integral_of_support_subset |
| 196 | intro u hu |
| 197 | have h := hs hu |
| 198 | change a ≤ z.1 + u ∧ z.1 + u ≤ b at h |
| 199 | exact ⟨by linarith [h.1], by linarith [h.2]⟩ |
| 200 | |
| 201 | theorem pastIntegral_eventually_eq_interval {a b M : ℝ} {v : E} {f : ℝ × E → F} |
| 202 | (hf : Continuous f) (hs : RadialAlias.RadiallySupported a b f) (z : ℝ × E) : |
| 203 | pastIntegral M v f =ᶠ[𝓝 z] |
| 204 | (fun y => ∫ u in (a - z.1 - 1)..0, f (shift M v y u)) := by |
| 205 | have hn : {y : ℝ × E | y.1 < z.1 + 1} ∈ 𝓝 z := |
| 206 | (isOpen_lt continuous_fst continuous_const).mem_nhds (by dsimp; linarith) |
| 207 | filter_upwards [hn] with y hy |
| 208 | exact pastIntegral_eq_interval hf hs y (by change y.1 < z.1 + 1 at hy; linarith) |
| 209 | |
| 210 | theorem totalIntegral_eventually_eq_interval {a b M : ℝ} {v : E} {f : ℝ × E → F} |
| 211 | (hs : RadialAlias.RadiallySupported a b f) (z : ℝ × E) : |
| 212 | totalIntegral M v f =ᶠ[𝓝 z] |
| 213 | (fun y => ∫ u in (a - z.1 - 1)..(b - z.1 + 1), f (shift M v y u)) := by |
| 214 | have hn : {y : ℝ × E | z.1 - 1 < y.1 ∧ y.1 < z.1 + 1} ∈ 𝓝 z := |
| 215 | ((isOpen_lt continuous_const continuous_fst).inter |
| 216 | (isOpen_lt continuous_fst continuous_const)).mem_nhds (by constructor <;> dsimp <;> linarith) |
| 217 | filter_upwards [hn] with y hy |
| 218 | change z.1 - 1 < y.1 ∧ y.1 < z.1 + 1 at hy |
| 219 | exact totalIntegral_eq_interval hs y (by linarith [hy.2]) (by linarith [hy.1]) |
| 220 | |
| 221 | theorem pastIntegral_contDiff [CompleteSpace F] {a b M : ℝ} {v : E} {f : ℝ × E → F} |
| 222 | (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) : |
| 223 | ContDiff ℝ ∞ (pastIntegral M v f) := by |
| 224 | apply contDiff_iff_contDiffAt.mpr |
| 225 | intro z |
| 226 | exact (parameterIntegral_contDiff (hf.comp (shift_contDiff M v)) |
| 227 | (a - z.1 - 1) 0).contDiffAt.congr_of_eventuallyEq |
| 228 | (pastIntegral_eventually_eq_interval hf.continuous hs z) |
| 229 | |
| 230 | theorem totalIntegral_contDiff [CompleteSpace F] {a b M : ℝ} {v : E} {f : ℝ × E → F} |
| 231 | (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) : |
| 232 | ContDiff ℝ ∞ (totalIntegral M v f) := by |
| 233 | apply contDiff_iff_contDiffAt.mpr |
| 234 | intro z |
| 235 | exact (parameterIntegral_contDiff (hf.comp (shift_contDiff M v)) |
| 236 | (a - z.1 - 1) (b - z.1 + 1)).contDiffAt.congr_of_eventuallyEq |
| 237 | (totalIntegral_eventually_eq_interval hs z) |
| 238 | |
| 239 | theorem compactIntegral_contDiff [CompleteSpace F] {a b M : ℝ} {v : E} |
| 240 | {f : ℝ × E → F} {χ : ℝ → ℝ} (hχ : ContDiff ℝ ∞ χ) |
| 241 | (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) : |
| 242 | ContDiff ℝ ∞ (compactIntegral χ M v f) := |
| 243 | (pastIntegral_contDiff hf hs).sub ((hχ.comp contDiff_fst).smul (totalIntegral_contDiff hf hs)) |
| 244 | |
| 245 | /-- All actual Fréchet derivatives retain radial support. -/ |
| 246 | theorem radialSupport_fderiv {a b : ℝ} {f : ℝ × E → F} |
| 247 | (hs : RadialAlias.RadiallySupported a b f) : |
| 248 | RadialAlias.RadiallySupported a b (fderiv ℝ f) := by |
| 249 | have hts : tsupport f ⊆ Prod.fst ⁻¹' Icc a b := |
| 250 | closure_minimal hs (isClosed_Icc.preimage continuous_fst) |
| 251 | intro z hz |
| 252 | by_contra hn |
| 253 | exact hz (fderiv_of_notMem_tsupport ℝ (fun h => hn (hts h))) |
| 254 | |
| 255 | theorem parameterDerivative_shifted {f : ℝ × E → F} (hf : ContDiff ℝ ∞ f) |
| 256 | (M : ℝ) (v : E) (z : ℝ × E) (u : ℝ) : |
| 257 | parameterDerivative (fun p : (ℝ × E) × ℝ => f (shift M v p.1 p.2)) (z, u) = |
| 258 | fderiv ℝ f (shift M v z u) := by |
| 259 | apply (parameter_hasFDerivAt (hf.comp (shift_contDiff M v)) z u).unique |
| 260 | simpa only [id_eq, shift, ContinuousLinearMap.comp_id, Function.comp_def] using |
| 261 | ((hf.differentiable (by simp)) (shift M v z u)).hasFDerivAt.comp z |
| 262 | ((hasFDerivAt_id z).add_const (u, (M * u) • v)) |
| 263 | |
| 264 | /-- The entire Fréchet derivative commutes with the fixed-u past integral. -/ |
| 265 | theorem pastIntegral_hasFDerivAt [CompleteSpace F] {a b M : ℝ} {v : E} |
| 266 | {f : ℝ × E → F} (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) |
| 267 | (z : ℝ × E) : |
| 268 | HasFDerivAt (pastIntegral M v f) (pastIntegral M v (fderiv ℝ f) z) z := by |
| 269 | have h := parameterIntegral_hasFDerivAt (hf.comp (shift_contDiff M v)) (a - z.1 - 1) 0 z |
| 270 | dsimp only [Function.comp_def] at h |
| 271 | simp_rw [parameterDerivative_shifted hf] at h |
| 272 | rw [← pastIntegral_eq_interval (hf.fderiv_right (m := ∞) (by simp)).continuous |
| 273 | (radialSupport_fderiv hs) z (by linarith : z.1 + (a - z.1 - 1) < a)] at h |
| 274 | exact h.congr_of_eventuallyEq (pastIntegral_eventually_eq_interval hf.continuous hs z) |
| 275 | |
| 276 | theorem totalIntegral_hasFDerivAt [CompleteSpace F] {a b M : ℝ} {v : E} |
| 277 | {f : ℝ × E → F} (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) |
| 278 | (z : ℝ × E) : |
| 279 | HasFDerivAt (totalIntegral M v f) (totalIntegral M v (fderiv ℝ f) z) z := by |
| 280 | have h := parameterIntegral_hasFDerivAt (hf.comp (shift_contDiff M v)) |
| 281 | (a - z.1 - 1) (b - z.1 + 1) z |
| 282 | dsimp only [Function.comp_def] at h |
| 283 | simp_rw [parameterDerivative_shifted hf] at h |
| 284 | rw [← totalIntegral_eq_interval (radialSupport_fderiv hs) z |
| 285 | (by linarith : z.1 + (a - z.1 - 1) < a) |
| 286 | (by linarith : b ≤ z.1 + (b - z.1 + 1))] at h |
| 287 | exact h.congr_of_eventuallyEq (totalIntegral_eventually_eq_interval hs z) |
| 288 | |
| 289 | /-- An ordinary derivative in any fixed direction, including a slow parameter. -/ |
| 290 | noncomputable def fixedDeriv (w : ℝ × E) (f : ℝ × E → F) (z : ℝ × E) : F := |
| 291 | fderiv ℝ f z w |
| 292 | |
| 293 | theorem fixedDeriv_contDiff {f : ℝ × E → F} (hf : ContDiff ℝ ∞ f) (w : ℝ × E) : |
| 294 | ContDiff ℝ ∞ (fixedDeriv w f) := |
| 295 | (hf.fderiv_right (by simp)).clm_apply contDiff_const |
| 296 | |
| 297 | theorem fixedDeriv_supported {a b : ℝ} {f : ℝ × E → F} |
| 298 | (hs : RadialAlias.RadiallySupported a b f) (w : ℝ × E) : |
| 299 | RadialAlias.RadiallySupported a b (fixedDeriv w f) := |
| 300 | RadialAlias.radialSupport_fderiv_apply hs w |
| 301 | |
| 302 | theorem fixedDeriv_pastIntegral [CompleteSpace F] {a b M : ℝ} {v : E} |
| 303 | {f : ℝ × E → F} (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) |
| 304 | (w z : ℝ × E) : |
| 305 | fixedDeriv w (pastIntegral M v f) z = pastIntegral M v (fixedDeriv w f) z := by |
| 306 | rw [fixedDeriv, (pastIntegral_hasFDerivAt hf hs z).fderiv] |
| 307 | exact ContinuousLinearMap.integral_apply |
| 308 | ((shifted_integrable (M := M) (v := v) (hf.fderiv_right (m := ∞) (by simp)).continuous |
| 309 | (radialSupport_fderiv hs) z).integrableOn) w |
| 310 | |
| 311 | theorem fixedDeriv_totalIntegral [CompleteSpace F] {a b M : ℝ} {v : E} |
| 312 | {f : ℝ × E → F} (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) |
| 313 | (w z : ℝ × E) : |
| 314 | fixedDeriv w (totalIntegral M v f) z = totalIntegral M v (fixedDeriv w f) z := by |
| 315 | rw [fixedDeriv, (totalIntegral_hasFDerivAt hf hs z).fderiv] |
| 316 | exact ContinuousLinearMap.integral_apply |
| 317 | (shifted_integrable (M := M) (v := v) (hf.fderiv_right (m := ∞) (by simp)).continuous |
| 318 | (radialSupport_fderiv hs) z) w |
| 319 | |
| 320 | theorem shift_hasDerivAt (M : ℝ) (v : E) (z : ℝ × E) (u : ℝ) : |
| 321 | HasDerivAt (shift M v z) (1, M • v) u := by |
| 322 | unfold shift |
| 323 | have h := ((hasDerivAt_const u z.1).add (hasDerivAt_id u)).prodMk |
| 324 | ((hasDerivAt_const u z.2).add (((hasDerivAt_id u).const_mul M).smul_const v)) |
| 325 | simpa only [id_eq, Pi.add_apply, shift, zero_add, mul_one, Prod.add_def] using h |
| 326 | |
| 327 | theorem shifted_hasDerivAt {f : ℝ × E → F} (hf : ContDiff ℝ ∞ f) |
| 328 | (M : ℝ) (v : E) (z : ℝ × E) (u : ℝ) : |
| 329 | HasDerivAt (fun t => f (shift M v z t)) |
| 330 | (fixedDeriv (1, M • v) f (shift M v z u)) u := |
| 331 | ((hf.differentiable (by simp)) _).hasFDerivAt.comp_hasDerivAt u (shift_hasDerivAt M v z u) |
| 332 | |
| 333 | /-- The exact transport identity, proved by the fundamental theorem of calculus. -/ |
| 334 | theorem transport_pastIntegral [CompleteSpace F] {a b M : ℝ} {v : E} |
| 335 | {f : ℝ × E → F} (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) |
| 336 | (z : ℝ × E) : fixedDeriv (1, M • v) (pastIntegral M v f) z = f z := by |
| 337 | rw [fixedDeriv_pastIntegral hf hs] |
| 338 | rw [pastIntegral_eq_interval (fixedDeriv_contDiff hf _).continuous |
| 339 | (fixedDeriv_supported hs _) z (c := a - z.1 - 1) (by linarith)] |
| 340 | rw [intervalIntegral.integral_eq_sub_of_hasDerivAt |
| 341 | (fun u _ => shifted_hasDerivAt hf M v z u) |
| 342 | ((shifted_continuous (fixedDeriv_contDiff hf _).continuous M v z).intervalIntegrable _ _)] |
| 343 | rw [shift_zero, radial_zero_of_lt (z := shift M v z (a - z.1 - 1)) hs |
| 344 | (by simp only [shift_fst]; linarith), sub_zero] |
| 345 | |
| 346 | /-- The complete translated integral is constant along each transport line. -/ |
| 347 | theorem transport_totalIntegral [CompleteSpace F] {a b M : ℝ} {v : E} |
| 348 | {f : ℝ × E → F} (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) |
| 349 | (z : ℝ × E) : fixedDeriv (1, M • v) (totalIntegral M v f) z = 0 := by |
| 350 | rw [fixedDeriv_totalIntegral hf hs] |
| 351 | rw [totalIntegral_eq_interval (fixedDeriv_supported hs _) z |
| 352 | (c := a - z.1 - 1) (d := b - z.1 + 1) (by linarith) (by linarith)] |
| 353 | rw [intervalIntegral.integral_eq_sub_of_hasDerivAt |
| 354 | (fun u _ => shifted_hasDerivAt hf M v z u) |
| 355 | ((shifted_continuous (fixedDeriv_contDiff hf _).continuous M v z).intervalIntegrable _ _)] |
| 356 | rw [radial_zero_of_gt (z := shift M v z (b - z.1 + 1)) hs |
| 357 | (by simp only [shift_fst]; linarith), |
| 358 | radial_zero_of_lt (z := shift M v z (a - z.1 - 1)) hs |
| 359 | (by simp only [shift_fst]; linarith), sub_self] |
| 360 | |
| 361 | /-- This derivative is exactly `∂U + M v·∂Y`. -/ |
| 362 | theorem transport_eq_partials (M : ℝ) (v : E) (f : ℝ × E → F) (z : ℝ × E) : |
| 363 | fixedDeriv (1, M • v) f z = fixedDeriv (1, 0) f z + M • fixedDeriv (0, v) f z := by |
| 364 | have hv : ((1 : ℝ), M • v) = (1, (0 : E)) + M • ((0 : ℝ), v) := by |
| 365 | ext <;> simp |
| 366 | simp only [fixedDeriv, hv, map_add, map_smul] |
| 367 | |
| 368 | /-- The cutoff product rule retains the actual ordinary radial derivative. -/ |
| 369 | theorem fixedDeriv_compactIntegral [CompleteSpace F] {a b M : ℝ} {v : E} |
| 370 | {f : ℝ × E → F} {χ : ℝ → ℝ} (hχ : ContDiff ℝ ∞ χ) |
| 371 | (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) |
| 372 | (w z : ℝ × E) : |
| 373 | fixedDeriv w (compactIntegral χ M v f) z = |
| 374 | compactIntegral χ M v (fixedDeriv w f) z - |
| 375 | (deriv χ z.1 * w.1) • totalIntegral M v f z := by |
| 376 | have hχd := ((hχ.differentiable (by simp)) z.1).hasFDerivAt.comp z |
| 377 | hasFDerivAt_fst |
| 378 | have h := (pastIntegral_hasFDerivAt (M := M) (v := v) hf hs z).sub |
| 379 | (hχd.smul (totalIntegral_hasFDerivAt (M := M) (v := v) hf hs z)) |
| 380 | change HasFDerivAt (compactIntegral χ M v f) _ z at h |
| 381 | have hi := fixedDeriv_pastIntegral (M := M) (v := v) hf hs w z |
| 382 | have hj := fixedDeriv_totalIntegral (M := M) (v := v) hf hs w z |
| 383 | change (fderiv ℝ (pastIntegral M v f) z) w = _ at hi |
| 384 | change (fderiv ℝ (totalIntegral M v f) z) w = _ at hj |
| 385 | rw [(pastIntegral_hasFDerivAt hf hs z).fderiv] at hi |
| 386 | rw [(totalIntegral_hasFDerivAt hf hs z).fderiv] at hj |
| 387 | change (fderiv ℝ (compactIntegral χ M v f) z) w = _ |
| 388 | rw [h.fderiv] |
| 389 | simp only [_root_.sub_apply, _root_.add_apply, |
| 390 | _root_.smul_apply, ContinuousLinearMap.smulRight_apply, |
| 391 | ContinuousLinearMap.comp_apply, ContinuousLinearMap.coe_fst', fderiv_eq_deriv_mul, |
| 392 | Function.comp_apply, hi, hj, compactIntegral] |
| 393 | abel |
| 394 | |
| 395 | theorem transport_compactIntegral [CompleteSpace F] {a b M : ℝ} {v : E} |
| 396 | {f : ℝ × E → F} {χ : ℝ → ℝ} (hχ : ContDiff ℝ ∞ χ) |
| 397 | (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) |
| 398 | (z : ℝ × E) : |
| 399 | fixedDeriv (1, M • v) (compactIntegral χ M v f) z = |
| 400 | f z - deriv χ z.1 • totalIntegral M v f z := by |
| 401 | rw [fixedDeriv_compactIntegral hχ hf hs] |
| 402 | unfold compactIntegral |
| 403 | rw [← fixedDeriv_pastIntegral hf hs, ← fixedDeriv_totalIntegral hf hs, |
| 404 | transport_pastIntegral hf hs, transport_totalIntegral hf hs] |
| 405 | simp |
| 406 | |
| 407 | theorem auxiliaryDeriv_compactIntegral [CompleteSpace F] {a b M : ℝ} {v : E} |
| 408 | {f : ℝ × E → F} {χ : ℝ → ℝ} (hχ : ContDiff ℝ ∞ χ) |
| 409 | (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) |
| 410 | (w : E) (z : ℝ × E) : |
| 411 | fixedDeriv (0, w) (compactIntegral χ M v f) z = |
| 412 | compactIntegral χ M v (fixedDeriv (0, w) f) z := by |
| 413 | simpa only [mul_zero, zero_smul, sub_zero] using fixedDeriv_compactIntegral hχ hf hs (0, w) z |
| 414 | |
| 415 | omit [NormedSpace ℝ E] [NormedSpace ℝ F] in |
| 416 | theorem radial_zero_of_le {a b : ℝ} {f : ℝ × E → F} |
| 417 | (hf : Continuous f) (hs : RadialAlias.RadiallySupported a b f) |
| 418 | {z : ℝ × E} (hz : z.1 ≤ a) : f z = 0 := by |
| 419 | have hc : Continuous (fun u : ℝ => f (u, z.2)) := |
| 420 | hf.comp (continuous_id.prodMk continuous_const) |
| 421 | have hsupport : support (fun u : ℝ => f (u, z.2)) ⊆ Ioo a b := by |
| 422 | simpa only [interior_Icc] using hc.isOpen_support.subset_interior_iff.mpr |
| 423 | (show support (fun u : ℝ => f (u, z.2)) ⊆ Icc a b from fun u hu => hs hu) |
| 424 | by_contra hn |
| 425 | exact (not_lt_of_ge hz) (hsupport hn).1 |
| 426 | |
| 427 | theorem pastIntegral_eq_zero_of_le {a b M : ℝ} {v : E} {f : ℝ × E → F} |
| 428 | (hf : Continuous f) (hs : RadialAlias.RadiallySupported a b f) |
| 429 | (z : ℝ × E) (hz : z.1 ≤ a) : pastIntegral M v f z = 0 := by |
| 430 | exact setIntegral_eq_zero_of_forall_eq_zero fun u hu => |
| 431 | radial_zero_of_le hf hs (by change u ≤ 0 at hu; simp only [shift_fst]; linarith) |
| 432 | |
| 433 | theorem pastIntegral_eq_total_of_ge {a b M : ℝ} {v : E} {f : ℝ × E → F} |
| 434 | (hs : RadialAlias.RadiallySupported a b f) |
| 435 | (z : ℝ × E) (hz : b ≤ z.1) : pastIntegral M v f z = totalIntegral M v f z := by |
| 436 | apply setIntegral_eq_integral_of_forall_compl_eq_zero |
| 437 | intro u hu |
| 438 | have hu' : 0 < u := not_le.mp hu |
| 439 | exact radial_zero_of_gt hs (by simp only [shift_fst]; linarith) |
| 440 | |
| 441 | theorem compactIntegral_supported {a b M : ℝ} {v : E} {f : ℝ × E → F} {χ : ℝ → ℝ} |
| 442 | (hf : Continuous f) (hs : RadialAlias.RadiallySupported a b f) |
| 443 | (hleft : ∀ u ≤ a, χ u = 0) (hright : ∀ u, b ≤ u → χ u = 1) : |
| 444 | RadialAlias.RadiallySupported a b (compactIntegral χ M v f) := by |
| 445 | intro z hz |
| 446 | change compactIntegral χ M v f z ≠ 0 at hz |
| 447 | constructor |
| 448 | · by_contra hn |
| 449 | have hza : z.1 ≤ a := le_of_not_ge hn |
| 450 | exact hz (by simp [compactIntegral, pastIntegral_eq_zero_of_le hf hs z hza, hleft _ hza]) |
| 451 | · by_contra hn |
| 452 | have hzb : b ≤ z.1 := le_of_not_ge hn |
| 453 | exact hz (by simp [compactIntegral, pastIntegral_eq_total_of_ge hs z hzb, hright _ hzb]) |
| 454 | |
| 455 | /-- An explicit smooth transition with specified plateau thresholds. -/ |
| 456 | noncomputable def cutoff (c d : ℝ) (u : ℝ) : ℝ := |
| 457 | Real.smoothTransition ((u - c) / (d - c)) |
| 458 | |
| 459 | theorem cutoff_contDiff (c d : ℝ) : ContDiff ℝ ∞ (cutoff c d) := |
| 460 | Real.smoothTransition.contDiff.comp ((contDiff_id.sub contDiff_const).div_const _) |
| 461 | |
| 462 | theorem cutoff_zero {c d u : ℝ} (hcd : c < d) (hu : u ≤ c) : cutoff c d u = 0 := |
| 463 | Real.smoothTransition.zero_of_nonpos (div_nonpos_of_nonpos_of_nonneg (sub_nonpos.mpr hu) |
| 464 | (sub_nonneg.mpr hcd.le)) |
| 465 | |
| 466 | theorem cutoff_one {c d u : ℝ} (hcd : c < d) (hu : d ≤ u) : cutoff c d u = 1 := |
| 467 | Real.smoothTransition.one_of_one_le ((one_le_div (sub_pos.mpr hcd)).mpr (by linarith)) |
| 468 | |
| 469 | theorem cutoff_mem_Icc (c d u : ℝ) : cutoff c d u ∈ Icc (0 : ℝ) 1 := |
| 470 | ⟨Real.smoothTransition.nonneg _, Real.smoothTransition.le_one _⟩ |
| 471 | |
| 472 | /-- The canonical cutoff has both plateaus strictly inside the support interval. -/ |
| 473 | noncomputable def interiorCutoff (a b : ℝ) : ℝ → ℝ := |
| 474 | cutoff ((2 * a + b) / 3) ((a + 2 * b) / 3) |
| 475 | |
| 476 | theorem interiorCutoff_contDiff (a b : ℝ) : ContDiff ℝ ∞ (interiorCutoff a b) := |
| 477 | cutoff_contDiff _ _ |
| 478 | |
| 479 | theorem interiorCutoff_zero {a b u : ℝ} (hab : a < b) (hu : u ≤ (2 * a + b) / 3) : |
| 480 | interiorCutoff a b u = 0 := cutoff_zero (by linarith) hu |
| 481 | |
| 482 | theorem interiorCutoff_one {a b u : ℝ} (hab : a < b) (hu : (a + 2 * b) / 3 ≤ u) : |
| 483 | interiorCutoff a b u = 1 := cutoff_one (by linarith) hu |
| 484 | |
| 485 | theorem canonicalCompact_supported {a b M : ℝ} {v : E} {f : ℝ × E → F} |
| 486 | (hab : a < b) (hf : Continuous f) (hs : RadialAlias.RadiallySupported a b f) : |
| 487 | RadialAlias.RadiallySupported a b (compactIntegral (interiorCutoff a b) M v f) := |
| 488 | compactIntegral_supported hf hs |
| 489 | (fun u hu => interiorCutoff_zero hab (by linarith)) |
| 490 | (fun u hu => interiorCutoff_one hab (by linarith)) |
| 491 | |
| 492 | /-- The complementary future integral used at the right support edge. -/ |
| 493 | noncomputable def futureIntegral (M : ℝ) (v : E) (f : ℝ × E → F) (z : ℝ × E) : F := |
| 494 | ∫ u in Ioi (0 : ℝ), f (shift M v z u) |
| 495 | |
| 496 | theorem past_add_future {a b M : ℝ} {v : E} {f : ℝ × E → F} |
| 497 | (hf : Continuous f) (hs : RadialAlias.RadiallySupported a b f) (z : ℝ × E) : |
| 498 | pastIntegral M v f z + futureIntegral M v f z = totalIntegral M v f z := |
| 499 | intervalIntegral.integral_Iic_add_Ioi (shifted_integrable hf hs z).integrableOn |
| 500 | (shifted_integrable hf hs z).integrableOn |
| 501 | |
| 502 | theorem compactIntegral_eq_neg_future {a b M : ℝ} {v : E} |
| 503 | {f : ℝ × E → F} {χ : ℝ → ℝ} (hf : Continuous f) |
| 504 | (hs : RadialAlias.RadiallySupported a b f) (z : ℝ × E) (hχ : χ z.1 = 1) : |
| 505 | compactIntegral χ M v f z = -futureIntegral M v f z := by |
| 506 | rw [compactIntegral, hχ, one_smul, ← past_add_future hf hs] |
| 507 | abel |
| 508 | |
| 509 | theorem pastIntegral_eq_supportInterval {a b M : ℝ} {v : E} {f : ℝ × E → F} |
| 510 | (hf : Continuous f) (hs : RadialAlias.RadiallySupported a b f) (z : ℝ × E) : |
| 511 | pastIntegral M v f z = ∫ u in (a - z.1)..0, f (shift M v z u) := by |
| 512 | have hi := shifted_integrable (M := M) (v := v) hf hs z |
| 513 | have hz : (∫ u in Iic (a - z.1), f (shift M v z u)) = 0 := |
| 514 | setIntegral_eq_zero_of_forall_eq_zero fun u hu => |
| 515 | radial_zero_of_le hf hs |
| 516 | (by change u ≤ a - z.1 at hu; simp only [shift_fst]; linarith) |
| 517 | simpa only [hz, sub_zero, pastIntegral] using |
| 518 | intervalIntegral.integral_Iic_sub_Iic (hi.integrableOn (s := Iic (a - z.1))) |
| 519 | (hi.integrableOn (s := Iic 0)) |
| 520 | |
| 521 | theorem totalIntegral_eq_supportInterval {a b M : ℝ} {v : E} {f : ℝ × E → F} |
| 522 | (hf : Continuous f) (hs : RadialAlias.RadiallySupported a b f) (z : ℝ × E) : |
| 523 | totalIntegral M v f z = ∫ u in (a - z.1)..(b - z.1), f (shift M v z u) := by |
| 524 | symm |
| 525 | apply intervalIntegral.integral_eq_integral_of_support_subset |
| 526 | have ho : support (fun u => f (shift M v z u)) ⊆ Ioo (a - z.1) (b - z.1) := by |
| 527 | simpa only [interior_Icc] using |
| 528 | (shifted_continuous hf M v z).isOpen_support.subset_interior_iff.mpr |
| 529 | (shifted_support_subset hs z) |
| 530 | exact ho.trans Ioo_subset_Ioc_self |
| 531 | |
| 532 | /-- The alternative radial-coordinate formula is derived by translation. -/ |
| 533 | theorem pastIntegral_eq_radialInterval {a b M : ℝ} {v : E} {f : ℝ × E → F} |
| 534 | (hf : Continuous f) (hs : RadialAlias.RadiallySupported a b f) (z : ℝ × E) : |
| 535 | pastIntegral M v f z = ∫ s in a..z.1, f (s, z.2 + (M * (s - z.1)) • v) := by |
| 536 | rw [pastIntegral_eq_supportInterval hf hs] |
| 537 | have heq : (fun u => f (shift M v z u)) = |
| 538 | (fun u => f (u + z.1, z.2 + (M * ((u + z.1) - z.1)) • v)) := by |
| 539 | funext u |
| 540 | congr 1 |
| 541 | ext <;> simp [shift, add_comm] |
| 542 | rw [heq] |
| 543 | simpa only [sub_add_cancel, zero_add] using |
| 544 | (intervalIntegral.integral_comp_add_right |
| 545 | (fun s => f (s, z.2 + (M * (s - z.1)) • v)) z.1 (a := a - z.1) (b := 0)) |
| 546 | |
| 547 | theorem totalIntegral_eq_radialInterval {a b M : ℝ} {v : E} {f : ℝ × E → F} |
| 548 | (hf : Continuous f) (hs : RadialAlias.RadiallySupported a b f) (z : ℝ × E) : |
| 549 | totalIntegral M v f z = ∫ s in a..b, f (s, z.2 + (M * (s - z.1)) • v) := by |
| 550 | rw [totalIntegral_eq_supportInterval hf hs] |
| 551 | have heq : (fun u => f (shift M v z u)) = |
| 552 | (fun u => f (u + z.1, z.2 + (M * ((u + z.1) - z.1)) • v)) := by |
| 553 | funext u |
| 554 | congr 1 |
| 555 | ext <;> simp [shift, add_comm] |
| 556 | rw [heq] |
| 557 | simpa only [sub_add_cancel] using |
| 558 | (intervalIntegral.integral_comp_add_right |
| 559 | (fun s => f (s, z.2 + (M * (s - z.1)) • v)) z.1 (a := a - z.1) (b := b - z.1)) |
| 560 | |
| 561 | theorem futureIntegral_eq_radialInterval {a b M : ℝ} {v : E} {f : ℝ × E → F} |
| 562 | (hf : Continuous f) (hs : RadialAlias.RadiallySupported a b f) (z : ℝ × E) : |
| 563 | futureIntegral M v f z = ∫ s in z.1..b, f (s, z.2 + (M * (s - z.1)) • v) := by |
| 564 | have hc : Continuous (fun s : ℝ => f (s, z.2 + (M * (s - z.1)) • v)) := by |
| 565 | exact hf.comp (continuous_id.prodMk |
| 566 | (continuous_const.add ((continuous_const.mul (continuous_id.sub continuous_const)).smul |
| 567 | continuous_const))) |
| 568 | have h := past_add_future (M := M) (v := v) hf hs z |
| 569 | rw [pastIntegral_eq_radialInterval hf hs, totalIntegral_eq_radialInterval hf hs] at h |
| 570 | rw [← intervalIntegral.integral_add_adjacent_intervals (hc.intervalIntegrable a z.1) |
| 571 | (hc.intervalIntegrable z.1 b)] at h |
| 572 | exact add_left_cancel h |
| 573 | |
| 574 | theorem totalIntegral_norm_le {a b M C : ℝ} {v : E} {f : ℝ × E → F} |
| 575 | (hab : a ≤ b) (hf : Continuous f) (hs : RadialAlias.RadiallySupported a b f) |
| 576 | (hbound : ∀ s ∈ Icc a b, ∀ Y : E, ‖f (s, Y)‖ ≤ C) (z : ℝ × E) : |
| 577 | ‖totalIntegral M v f z‖ ≤ C * (b - a) := by |
| 578 | rw [totalIntegral_eq_radialInterval hf hs] |
| 579 | have h := intervalIntegral.norm_integral_le_of_norm_le_const (C := C) |
| 580 | (f := fun s => f (s, z.2 + (M * (s - z.1)) • v)) (a := a) (b := b) |
| 581 | (fun s hs => hbound s (by simpa only [uIcc_of_le hab] using uIoc_subset_uIcc hs) _) |
| 582 | simpa only [abs_of_nonneg (sub_nonneg.mpr hab)] using h |
| 583 | |
| 584 | /-- Only the radial support length enters; there is no power of M in this bound. -/ |
| 585 | theorem pastIntegral_norm_le {a b M C : ℝ} {v : E} {f : ℝ × E → F} |
| 586 | (hab : a ≤ b) (hf : Continuous f) (hs : RadialAlias.RadiallySupported a b f) |
| 587 | (hbound : ∀ s ∈ Icc a b, ∀ Y : E, ‖f (s, Y)‖ ≤ C) (z : ℝ × E) : |
| 588 | ‖pastIntegral M v f z‖ ≤ C * (b - a) := by |
| 589 | have hnorm : RadialAlias.RadiallySupported a b (fun x => ‖f x‖) := by |
| 590 | intro x hx |
| 591 | exact hs (norm_ne_zero_iff.mp hx) |
| 592 | calc |
| 593 | ‖pastIntegral M v f z‖ ≤ ∫ u in Iic (0 : ℝ), ‖f (shift M v z u)‖ := |
| 594 | norm_integral_le_integral_norm _ |
| 595 | _ ≤ ∫ u : ℝ, ‖f (shift M v z u)‖ := |
| 596 | setIntegral_le_integral (shifted_integrable hf hs z).norm |
| 597 | (Eventually.of_forall fun _ => norm_nonneg _) |
| 598 | _ ≤ ‖totalIntegral M v (fun x => ‖f x‖) z‖ := Real.le_norm_self _ |
| 599 | _ ≤ C * (b - a) := totalIntegral_norm_le (f := fun x => ‖f x‖) hab hf.norm hnorm |
| 600 | (fun s hs Y => by simpa only [norm_norm] using hbound s hs Y) z |
| 601 | |
| 602 | theorem compactIntegral_norm_le {a b M C K : ℝ} {v : E} {f : ℝ × E → F} {χ : ℝ → ℝ} |
| 603 | (hab : a ≤ b) (hf : Continuous f) (hs : RadialAlias.RadiallySupported a b f) |
| 604 | (hbound : ∀ s ∈ Icc a b, ∀ Y : E, ‖f (s, Y)‖ ≤ C) |
| 605 | (hK : 0 ≤ K) (hχ : ∀ u, |χ u| ≤ K) (z : ℝ × E) : |
| 606 | ‖compactIntegral χ M v f z‖ ≤ (1 + K) * C * (b - a) := by |
| 607 | have hC : 0 ≤ C := (norm_nonneg (f (a, 0))).trans (hbound a ⟨le_rfl, hab⟩ 0) |
| 608 | calc |
| 609 | ‖compactIntegral χ M v f z‖ ≤ ‖pastIntegral M v f z‖ + |
| 610 | |χ z.1| * ‖totalIntegral M v f z‖ := by |
| 611 | simpa only [compactIntegral, norm_smul, Real.norm_eq_abs] using |
| 612 | norm_sub_le (pastIntegral M v f z) (χ z.1 • totalIntegral M v f z) |
| 613 | _ ≤ C * (b - a) + K * (C * (b - a)) := by |
| 614 | exact add_le_add (pastIntegral_norm_le hab hf hs hbound z) |
| 615 | (mul_le_mul (hχ _) (totalIntegral_norm_le hab hf hs hbound z) (norm_nonneg _) hK) |
| 616 | _ = (1 + K) * C * (b - a) := by ring |
| 617 | |
| 618 | theorem pastIntegral_add {a b M : ℝ} {v : E} {f g : ℝ × E → F} |
| 619 | (hf : Continuous f) (hg : Continuous g) |
| 620 | (hsf : RadialAlias.RadiallySupported a b f) (hsg : RadialAlias.RadiallySupported a b g) |
| 621 | (z : ℝ × E) : |
| 622 | pastIntegral M v (fun x => f x + g x) z = pastIntegral M v f z + pastIntegral M v g z := |
| 623 | integral_add (shifted_integrable hf hsf z).integrableOn (shifted_integrable hg hsg z).integrableOn |
| 624 | |
| 625 | theorem totalIntegral_add {a b M : ℝ} {v : E} {f g : ℝ × E → F} |
| 626 | (hf : Continuous f) (hg : Continuous g) |
| 627 | (hsf : RadialAlias.RadiallySupported a b f) (hsg : RadialAlias.RadiallySupported a b g) |
| 628 | (z : ℝ × E) : |
| 629 | totalIntegral M v (fun x => f x + g x) z = totalIntegral M v f z + totalIntegral M v g z := |
| 630 | integral_add (shifted_integrable hf hsf z) (shifted_integrable hg hsg z) |
| 631 | |
| 632 | theorem compactIntegral_add {a b M : ℝ} {v : E} {f g : ℝ × E → F} |
| 633 | (hf : Continuous f) (hg : Continuous g) |
| 634 | (hsf : RadialAlias.RadiallySupported a b f) (hsg : RadialAlias.RadiallySupported a b g) |
| 635 | (χ : ℝ → ℝ) (z : ℝ × E) : |
| 636 | compactIntegral χ M v (fun x => f x + g x) z = |
| 637 | compactIntegral χ M v f z + compactIntegral χ M v g z := by |
| 638 | simp only [compactIntegral, pastIntegral_add hf hg hsf hsg, |
| 639 | totalIntegral_add hf hg hsf hsg, smul_add] |
| 640 | abel |
| 641 | |
| 642 | theorem pastIntegral_smul (M c : ℝ) (v : E) (f : ℝ × E → F) (z : ℝ × E) : |
| 643 | pastIntegral M v (fun x => c • f x) z = c • pastIntegral M v f z := integral_smul c _ |
| 644 | |
| 645 | theorem totalIntegral_smul (M c : ℝ) (v : E) (f : ℝ × E → F) (z : ℝ × E) : |
| 646 | totalIntegral M v (fun x => c • f x) z = c • totalIntegral M v f z := integral_smul c _ |
| 647 | |
| 648 | theorem compactIntegral_smul (χ : ℝ → ℝ) (M c : ℝ) (v : E) (f : ℝ × E → F) (z : ℝ × E) : |
| 649 | compactIntegral χ M v (fun x => c • f x) z = c • compactIntegral χ M v f z := by |
| 650 | simp only [compactIntegral, pastIntegral_smul, totalIntegral_smul, smul_sub] |
| 651 | rw [smul_comm] |
| 652 | |
| 653 | theorem iteratedFDeriv_supported {a b : ℝ} {f : ℝ × E → F} |
| 654 | (hs : RadialAlias.RadiallySupported a b f) (n : ℕ) : |
| 655 | RadialAlias.RadiallySupported a b (iteratedFDeriv ℝ n f) := |
| 656 | (support_iteratedFDeriv_subset n).trans |
| 657 | (closure_minimal hs (isClosed_Icc.preimage continuous_fst)) |
| 658 | |
| 659 | theorem iteratedFDeriv_contDiff {f : ℝ × E → F} (hf : ContDiff ℝ ∞ f) (n : ℕ) : |
| 660 | ContDiff ℝ ∞ (iteratedFDeriv ℝ n f) := |
| 661 | hf.iteratedFDeriv_right (by exact_mod_cast (le_top : (⊤ : ℕ∞) + (n : ℕ∞) ≤ ⊤)) |
| 662 | |
| 663 | /-- Every order of the actual multilinear Fréchet derivative commutes with I. -/ |
| 664 | theorem iteratedFDeriv_pastIntegral [CompleteSpace F] {a b M : ℝ} {v : E} |
| 665 | {f : ℝ × E → F} (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) |
| 666 | (n : ℕ) (z : ℝ × E) : |
| 667 | iteratedFDeriv ℝ n (pastIntegral M v f) z = pastIntegral M v (iteratedFDeriv ℝ n f) z := by |
| 668 | induction n generalizing z with |
| 669 | | zero => |
| 670 | let L := (continuousMultilinearCurryFin0 ℝ (ℝ × E) F).symm |
| 671 | change L (∫ u in Iic (0 : ℝ), f (shift M v z u)) = |
| 672 | ∫ u in Iic (0 : ℝ), L (f (shift M v z u)) |
| 673 | exact (L.toContinuousLinearEquiv.integral_comp_comm _).symm |
| 674 | | succ n ih => |
| 675 | let L := (continuousMultilinearCurryLeftEquiv ℝ (fun _ : Fin (n + 1) => ℝ × E) F).symm |
| 676 | have heq : iteratedFDeriv ℝ n (pastIntegral M v f) = |
| 677 | pastIntegral M v (iteratedFDeriv ℝ n f) := funext ih |
| 678 | change L (fderiv ℝ (iteratedFDeriv ℝ n (pastIntegral M v f)) z) = |
| 679 | ∫ u in Iic (0 : ℝ), L (fderiv ℝ (iteratedFDeriv ℝ n f) (shift M v z u)) |
| 680 | rw [heq, (pastIntegral_hasFDerivAt (iteratedFDeriv_contDiff hf n) |
| 681 | (iteratedFDeriv_supported hs n) z).fderiv] |
| 682 | exact (L.toContinuousLinearEquiv.integral_comp_comm |
| 683 | (E := (ℝ × E) →L[ℝ] ContinuousMultilinearMap ℝ (fun _ : Fin n => ℝ × E) F) |
| 684 | (F := ContinuousMultilinearMap ℝ (fun _ : Fin (n + 1) => ℝ × E) F) (𝕜 := ℝ) |
| 685 | (μ := volume.restrict (Iic (0 : ℝ))) |
| 686 | (fun u : ℝ => fderiv ℝ (iteratedFDeriv ℝ n f) (shift M v z u))).symm |
| 687 | |
| 688 | /-- Every order of the actual multilinear Fréchet derivative commutes with J. -/ |
| 689 | theorem iteratedFDeriv_totalIntegral [CompleteSpace F] {a b M : ℝ} {v : E} |
| 690 | {f : ℝ × E → F} (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) |
| 691 | (n : ℕ) (z : ℝ × E) : |
| 692 | iteratedFDeriv ℝ n (totalIntegral M v f) z = totalIntegral M v (iteratedFDeriv ℝ n f) z := by |
| 693 | induction n generalizing z with |
| 694 | | zero => |
| 695 | let L := (continuousMultilinearCurryFin0 ℝ (ℝ × E) F).symm |
| 696 | change L (∫ u : ℝ, f (shift M v z u)) = ∫ u : ℝ, L (f (shift M v z u)) |
| 697 | exact (L.toContinuousLinearEquiv.integral_comp_comm _).symm |
| 698 | | succ n ih => |
| 699 | let L := (continuousMultilinearCurryLeftEquiv ℝ (fun _ : Fin (n + 1) => ℝ × E) F).symm |
| 700 | have heq : iteratedFDeriv ℝ n (totalIntegral M v f) = |
| 701 | totalIntegral M v (iteratedFDeriv ℝ n f) := funext ih |
| 702 | change L (fderiv ℝ (iteratedFDeriv ℝ n (totalIntegral M v f)) z) = |
| 703 | ∫ u : ℝ, L (fderiv ℝ (iteratedFDeriv ℝ n f) (shift M v z u)) |
| 704 | rw [heq, (totalIntegral_hasFDerivAt (iteratedFDeriv_contDiff hf n) |
| 705 | (iteratedFDeriv_supported hs n) z).fderiv] |
| 706 | exact (L.toContinuousLinearEquiv.integral_comp_comm |
| 707 | (E := (ℝ × E) →L[ℝ] ContinuousMultilinearMap ℝ (fun _ : Fin n => ℝ × E) F) |
| 708 | (F := ContinuousMultilinearMap ℝ (fun _ : Fin (n + 1) => ℝ × E) F) (𝕜 := ℝ) (μ := volume) |
| 709 | (fun u : ℝ => fderiv ℝ (iteratedFDeriv ℝ n f) (shift M v z u))).symm |
| 710 | |
| 711 | theorem iteratedFDeriv_pastIntegral_norm_le [CompleteSpace F] {a b M C : ℝ} {v : E} |
| 712 | {f : ℝ × E → F} (hab : a ≤ b) (hf : ContDiff ℝ ∞ f) |
| 713 | (hs : RadialAlias.RadiallySupported a b f) (n : ℕ) |
| 714 | (hbound : ∀ s ∈ Icc a b, ∀ Y : E, ‖iteratedFDeriv ℝ n f (s, Y)‖ ≤ C) (z : ℝ × E) : |
| 715 | ‖iteratedFDeriv ℝ n (pastIntegral M v f) z‖ ≤ C * (b - a) := by |
| 716 | rw [iteratedFDeriv_pastIntegral hf hs] |
| 717 | exact pastIntegral_norm_le hab (iteratedFDeriv_contDiff hf n).continuous |
| 718 | (iteratedFDeriv_supported hs n) hbound z |
| 719 | |
| 720 | theorem iteratedFDeriv_totalIntegral_norm_le [CompleteSpace F] {a b M C : ℝ} {v : E} |
| 721 | {f : ℝ × E → F} (hab : a ≤ b) (hf : ContDiff ℝ ∞ f) |
| 722 | (hs : RadialAlias.RadiallySupported a b f) (n : ℕ) |
| 723 | (hbound : ∀ s ∈ Icc a b, ∀ Y : E, ‖iteratedFDeriv ℝ n f (s, Y)‖ ≤ C) (z : ℝ × E) : |
| 724 | ‖iteratedFDeriv ℝ n (totalIntegral M v f) z‖ ≤ C * (b - a) := by |
| 725 | rw [iteratedFDeriv_totalIntegral hf hs] |
| 726 | exact totalIntegral_norm_le hab (iteratedFDeriv_contDiff hf n).continuous |
| 727 | (iteratedFDeriv_supported hs n) hbound z |
| 728 | |
| 729 | theorem iteratedFDeriv_compactIntegral_eq [CompleteSpace F] {a b M : ℝ} {v : E} |
| 730 | {f : ℝ × E → F} {χ : ℝ → ℝ} (hχ : ContDiff ℝ ∞ χ) |
| 731 | (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) (n : ℕ) (z : ℝ × E) : |
| 732 | iteratedFDeriv ℝ n (compactIntegral χ M v f) z = |
| 733 | iteratedFDeriv ℝ n (pastIntegral M v f) z - |
| 734 | iteratedFDeriv ℝ n (fun y => χ y.1 • totalIntegral M v f y) z := by |
| 735 | have heq : compactIntegral χ M v f = |
| 736 | pastIntegral M v f + -(fun y => χ y.1 • totalIntegral M v f y) := by |
| 737 | funext y |
| 738 | exact sub_eq_add_neg _ _ |
| 739 | have hi : ContDiff ℝ n (pastIntegral M v f) := |
| 740 | (pastIntegral_contDiff hf hs).of_le (by exact_mod_cast (le_top : (n : ℕ∞) ≤ ⊤)) |
| 741 | have hg : ContDiff ℝ n (fun y => χ y.1 • totalIntegral M v f y) := |
| 742 | ((hχ.comp contDiff_fst).smul (totalIntegral_contDiff hf hs)).of_le |
| 743 | (by exact_mod_cast (le_top : (n : ℕ∞) ≤ ⊤)) |
| 744 | rw [heq] |
| 745 | have hadd := iteratedFDeriv_add_apply (i := n) (x := z) |
| 746 | (f := pastIntegral M v f) (g := -(fun y => χ y.1 • totalIntegral M v f y)) |
| 747 | hi.contDiffAt hg.neg.contDiffAt |
| 748 | rw [hadd, iteratedFDeriv_neg_apply] |
| 749 | exact (sub_eq_add_neg _ _).symm |
| 750 | |
| 751 | /-- Full binomial Leibniz bound. Every derivative of the cutoff is retained. -/ |
| 752 | theorem iteratedFDeriv_compactIntegral_norm_le [CompleteSpace F] {a b M : ℝ} {v : E} |
| 753 | {f : ℝ × E → F} {χ : ℝ → ℝ} (hχ : ContDiff ℝ ∞ χ) |
| 754 | (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) (n : ℕ) (z : ℝ × E) : |
| 755 | ‖iteratedFDeriv ℝ n (compactIntegral χ M v f) z‖ ≤ |
| 756 | ‖pastIntegral M v (iteratedFDeriv ℝ n f) z‖ + |
| 757 | ∑ i ∈ Finset.range (n + 1), (n.choose i : ℝ) * |
| 758 | ‖iteratedFDeriv ℝ i (fun y : ℝ × E => χ y.1) z‖ * |
| 759 | ‖totalIntegral M v (iteratedFDeriv ℝ (n - i) f) z‖ := by |
| 760 | have hb := norm_iteratedFDeriv_smul_le (𝕜 := ℝ) |
| 761 | (hχ.comp (contDiff_fst : ContDiff ℝ ∞ (Prod.fst : ℝ × E → ℝ))) |
| 762 | (totalIntegral_contDiff (M := M) (v := v) hf hs) z |
| 763 | (n := n) (by exact_mod_cast (le_top : (n : ℕ∞) ≤ ⊤)) |
| 764 | simp_rw [iteratedFDeriv_totalIntegral hf hs] at hb |
| 765 | rw [iteratedFDeriv_compactIntegral_eq hχ hf hs, iteratedFDeriv_pastIntegral hf hs] |
| 766 | exact (norm_sub_le _ _).trans (add_le_add_right hb _) |
| 767 | |
| 768 | /-- Uniform all-order operator-norm estimate from a finite list of genuine source |
| 769 | and cutoff derivative bounds. The constant contains no translation parameter. -/ |
| 770 | theorem iteratedFDeriv_compactIntegral_uniform [CompleteSpace F] {a b M : ℝ} {v : E} |
| 771 | {f : ℝ × E → F} {χ : ℝ → ℝ} (hab : a ≤ b) (hχ : ContDiff ℝ ∞ χ) |
| 772 | (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) (n : ℕ) |
| 773 | (A B : ℕ → ℝ) (hB : ∀ i ≤ n, 0 ≤ B i) |
| 774 | (hsource : ∀ j ≤ n, ∀ s ∈ Icc a b, ∀ Y : E, ‖iteratedFDeriv ℝ j f (s, Y)‖ ≤ A j) |
| 775 | (hcutoff : ∀ i ≤ n, ∀ z : ℝ × E, ‖iteratedFDeriv ℝ i (fun y : ℝ × E => χ y.1) z‖ ≤ B i) |
| 776 | (z : ℝ × E) : |
| 777 | ‖iteratedFDeriv ℝ n (compactIntegral χ M v f) z‖ ≤ |
| 778 | (A n + ∑ i ∈ Finset.range (n + 1), (n.choose i : ℝ) * B i * A (n - i)) * (b - a) := by |
| 779 | have hp : ‖pastIntegral M v (iteratedFDeriv ℝ n f) z‖ ≤ A n * (b - a) := |
| 780 | pastIntegral_norm_le hab (iteratedFDeriv_contDiff hf n).continuous |
| 781 | (iteratedFDeriv_supported hs n) (hsource n le_rfl) z |
| 782 | have ht : ∀ i ∈ Finset.range (n + 1), |
| 783 | (n.choose i : ℝ) * ‖iteratedFDeriv ℝ i (fun y : ℝ × E => χ y.1) z‖ * |
| 784 | ‖totalIntegral M v (iteratedFDeriv ℝ (n - i) f) z‖ ≤ |
| 785 | ((n.choose i : ℝ) * B i * A (n - i)) * (b - a) := by |
| 786 | intro i hi |
| 787 | have hin : i ≤ n := Nat.le_of_lt_succ (Finset.mem_range.mp hi) |
| 788 | have hj := totalIntegral_norm_le (M := M) (v := v) hab |
| 789 | (iteratedFDeriv_contDiff hf (n - i)).continuous |
| 790 | (iteratedFDeriv_supported hs (n - i)) (hsource (n - i) (Nat.sub_le _ _)) z |
| 791 | calc |
| 792 | _ ≤ ((n.choose i : ℝ) * B i) * (A (n - i) * (b - a)) := |
| 793 | mul_le_mul (mul_le_mul_of_nonneg_left (hcutoff i hin z) (Nat.cast_nonneg _)) hj |
| 794 | (norm_nonneg _) (mul_nonneg (Nat.cast_nonneg _) (hB i hin)) |
| 795 | _ = _ := by ring |
| 796 | calc |
| 797 | _ ≤ ‖pastIntegral M v (iteratedFDeriv ℝ n f) z‖ + |
| 798 | ∑ i ∈ Finset.range (n + 1), (n.choose i : ℝ) * |
| 799 | ‖iteratedFDeriv ℝ i (fun y : ℝ × E => χ y.1) z‖ * |
| 800 | ‖totalIntegral M v (iteratedFDeriv ℝ (n - i) f) z‖ := |
| 801 | iteratedFDeriv_compactIntegral_norm_le hχ hf hs n z |
| 802 | _ ≤ A n * (b - a) + ∑ i ∈ Finset.range (n + 1), |
| 803 | ((n.choose i : ℝ) * B i * A (n - i)) * (b - a) := |
| 804 | add_le_add hp (Finset.sum_le_sum ht) |
| 805 | _ = _ := by rw [add_mul, Finset.sum_mul] |
| 806 | |
| 807 | theorem futureIntegral_eq_total_sub_past {a b M : ℝ} {v : E} {f : ℝ × E → F} |
| 808 | (hf : Continuous f) (hs : RadialAlias.RadiallySupported a b f) (z : ℝ × E) : |
| 809 | futureIntegral M v f z = totalIntegral M v f z - pastIntegral M v f z := by |
| 810 | have h := past_add_future (M := M) (v := v) hf hs z |
| 811 | exact eq_sub_iff_add_eq.mpr (by simpa only [add_comm] using h) |
| 812 | |
| 813 | theorem futureIntegral_contDiff [CompleteSpace F] {a b M : ℝ} {v : E} {f : ℝ × E → F} |
| 814 | (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) : |
| 815 | ContDiff ℝ ∞ (futureIntegral M v f) := by |
| 816 | have heq : futureIntegral M v f = fun z => totalIntegral M v f z - pastIntegral M v f z := |
| 817 | funext (futureIntegral_eq_total_sub_past hf.continuous hs) |
| 818 | rw [heq] |
| 819 | exact (totalIntegral_contDiff hf hs).sub (pastIntegral_contDiff hf hs) |
| 820 | |
| 821 | theorem iteratedFDeriv_sub_of_smooth {f g : ℝ × E → F} |
| 822 | (hf : ContDiff ℝ ∞ f) (hg : ContDiff ℝ ∞ g) (n : ℕ) (z : ℝ × E) : |
| 823 | iteratedFDeriv ℝ n (fun y => f y - g y) z = |
| 824 | iteratedFDeriv ℝ n f z - iteratedFDeriv ℝ n g z := by |
| 825 | have hf' : ContDiff ℝ n f := hf.of_le (by exact_mod_cast (le_top : (n : ℕ∞) ≤ ⊤)) |
| 826 | have hg' : ContDiff ℝ n g := hg.of_le (by exact_mod_cast (le_top : (n : ℕ∞) ≤ ⊤)) |
| 827 | have heq : (fun y => f y - g y) = f + -g := by |
| 828 | funext y |
| 829 | exact sub_eq_add_neg _ _ |
| 830 | rw [heq] |
| 831 | have hadd := iteratedFDeriv_add_apply (i := n) (x := z) (f := f) (g := -g) |
| 832 | hf'.contDiffAt hg'.neg.contDiffAt |
| 833 | rw [hadd, iteratedFDeriv_neg_apply] |
| 834 | exact (sub_eq_add_neg _ _).symm |
| 835 | |
| 836 | /-- The future primitive has the same derivative commutation as the past primitive. -/ |
| 837 | theorem iteratedFDeriv_futureIntegral [CompleteSpace F] {a b M : ℝ} {v : E} |
| 838 | {f : ℝ × E → F} (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) |
| 839 | (n : ℕ) (z : ℝ × E) : |
| 840 | iteratedFDeriv ℝ n (futureIntegral M v f) z = |
| 841 | futureIntegral M v (iteratedFDeriv ℝ n f) z := by |
| 842 | have heq : futureIntegral M v f = fun z => totalIntegral M v f z - pastIntegral M v f z := |
| 843 | funext (futureIntegral_eq_total_sub_past hf.continuous hs) |
| 844 | rw [heq, iteratedFDeriv_sub_of_smooth (totalIntegral_contDiff hf hs) |
| 845 | (pastIntegral_contDiff hf hs), iteratedFDeriv_totalIntegral hf hs, |
| 846 | iteratedFDeriv_pastIntegral hf hs] |
| 847 | exact (futureIntegral_eq_total_sub_past (iteratedFDeriv_contDiff hf n).continuous |
| 848 | (iteratedFDeriv_supported hs n) z).symm |
| 849 | |
| 850 | theorem futureIntegral_norm_le {a b M C : ℝ} {v : E} {f : ℝ × E → F} |
| 851 | (hab : a ≤ b) (hf : Continuous f) (hs : RadialAlias.RadiallySupported a b f) |
| 852 | (hbound : ∀ s ∈ Icc a b, ∀ Y : E, ‖f (s, Y)‖ ≤ C) (z : ℝ × E) : |
| 853 | ‖futureIntegral M v f z‖ ≤ C * (b - a) := by |
| 854 | have hnorm : RadialAlias.RadiallySupported a b (fun x => ‖f x‖) := by |
| 855 | intro x hx |
| 856 | exact hs (norm_ne_zero_iff.mp hx) |
| 857 | calc |
| 858 | ‖futureIntegral M v f z‖ ≤ ∫ u in Ioi (0 : ℝ), ‖f (shift M v z u)‖ := |
| 859 | norm_integral_le_integral_norm _ |
| 860 | _ ≤ ∫ u : ℝ, ‖f (shift M v z u)‖ := |
| 861 | setIntegral_le_integral (shifted_integrable hf hs z).norm |
| 862 | (Eventually.of_forall fun _ => norm_nonneg _) |
| 863 | _ ≤ ‖totalIntegral M v (fun x => ‖f x‖) z‖ := Real.le_norm_self _ |
| 864 | _ ≤ C * (b - a) := totalIntegral_norm_le (f := fun x => ‖f x‖) hab hf.norm hnorm |
| 865 | (fun s hs Y => by simpa only [norm_norm] using hbound s hs Y) z |
| 866 | |
| 867 | theorem iteratedFDeriv_futureIntegral_norm_le [CompleteSpace F] {a b M C : ℝ} {v : E} |
| 868 | {f : ℝ × E → F} (hab : a ≤ b) (hf : ContDiff ℝ ∞ f) |
| 869 | (hs : RadialAlias.RadiallySupported a b f) (n : ℕ) |
| 870 | (hbound : ∀ s ∈ Icc a b, ∀ Y : E, ‖iteratedFDeriv ℝ n f (s, Y)‖ ≤ C) (z : ℝ × E) : |
| 871 | ‖iteratedFDeriv ℝ n (futureIntegral M v f) z‖ ≤ C * (b - a) := by |
| 872 | rw [iteratedFDeriv_futureIntegral hf hs] |
| 873 | exact futureIntegral_norm_le hab (iteratedFDeriv_contDiff hf n).continuous |
| 874 | (iteratedFDeriv_supported hs n) hbound z |
| 875 | |
| 876 | /-- The total integral agrees with the separately formalized radial alias. -/ |
| 877 | theorem totalIntegral_eq_wholeAlias {a b M : ℝ} {v : E} {f : ℝ × E → F} |
| 878 | (hf : Continuous f) (hs : RadialAlias.RadiallySupported a b f) (z : ℝ × E) : |
| 879 | totalIntegral M v f z = RadialAlias.wholeAlias M v (z.2 - (M * z.1) • v) f := by |
| 880 | rw [totalIntegral_eq_radialInterval hf hs, |
| 881 | ← RadialAlias.aliasIntegral_eq_wholeAlias hf hs] |
| 882 | apply intervalIntegral.integral_congr |
| 883 | intro s _ |
| 884 | apply congrArg f |
| 885 | change (s, z.2 + (M * (s - z.1)) • v) = |
| 886 | (s, z.2 - (M * z.1) • v + (M * s) • v) |
| 887 | apply congrArg (fun y : E => (s, y)) |
| 888 | rw [mul_sub, sub_smul] |
| 889 | abel |
| 890 | |
| 891 | end Shifted |
| 892 | |
| 893 | end NavierStokes.TransportPrimitive |