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.SmoothPathFamily |
| 2 | import NavierStokes.ViscousPropagator |
| 3 | import Mathlib.Data.List.OfFn |
| 4 | |
| 5 | /-! |
| 6 | # Weighted estimates for actual parameter derivatives of linear ODE solutions |
| 7 | |
| 8 | Parameter derivatives are genuine iterated Fréchet derivatives in prescribed |
| 9 | directions. The differentiated Volterra equation gives a triangular system; |
| 10 | the energy estimate, rather than an uncontrolled inverse norm, estimates it. |
| 11 | -/ |
| 12 | |
| 13 | namespace NavierStokes.WeightedODEJets |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open Set Filter Function MeasureTheory |
| 18 | open scoped Topology ContDiff InnerProductSpace |
| 19 | |
| 20 | variable {P E F : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 21 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 22 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 23 | |
| 24 | /-- One actual parameter derivative in a fixed direction. -/ |
| 25 | noncomputable def directional (f : P → E) (v : P) : P → E := |
| 26 | fun p => fderiv ℝ f p v |
| 27 | |
| 28 | /-- Successive actual directional Fréchet derivatives. Directions are applied |
| 29 | from the head of the word to its tail; the empty word means order zero. -/ |
| 30 | noncomputable def jet (f : P → E) (l : List P) : P → E := |
| 31 | l.foldl (fun g v => directional g v) f |
| 32 | |
| 33 | @[simp] theorem jet_nil (f : P → E) : jet f [] = f := rfl |
| 34 | |
| 35 | @[simp] theorem jet_cons (f : P → E) (v : P) (l : List P) : |
| 36 | jet f (v :: l) = jet (directional f v) l := rfl |
| 37 | |
| 38 | /-- Restricting all directions to the unit ball converts the estimates to |
| 39 | uniform bounds for all mixed parameter derivatives of a given order. -/ |
| 40 | def UnitWord (l : List P) : Prop := ∀ v ∈ l, ‖v‖ ≤ 1 |
| 41 | |
| 42 | omit [NormedSpace ℝ P] in |
| 43 | @[simp] theorem unitWord_nil : UnitWord ([] : List P) := by simp [UnitWord] |
| 44 | |
| 45 | omit [NormedSpace ℝ P] in |
| 46 | @[simp] theorem unitWord_cons (v : P) (l : List P) : |
| 47 | UnitWord (v :: l) ↔ ‖v‖ ≤ 1 ∧ UnitWord l := by simp [UnitWord] |
| 48 | |
| 49 | theorem contDiffOn_directional {U : Set P} (hU : IsOpen U) {f : P → E} |
| 50 | (hf : ContDiffOn ℝ ∞ f U) (v : P) : |
| 51 | ContDiffOn ℝ ∞ (directional f v) U := by |
| 52 | exact ((contDiffOn_infty_iff_fderiv_of_isOpen hU).mp hf).2.clm_apply contDiffOn_const |
| 53 | |
| 54 | theorem contDiffOn_jet {U : Set P} (hU : IsOpen U) {f : P → E} |
| 55 | (hf : ContDiffOn ℝ ∞ f U) (l : List P) : ContDiffOn ℝ ∞ (jet f l) U := by |
| 56 | induction l generalizing f with |
| 57 | | nil => exact hf |
| 58 | | cons v l ih => exact ih (contDiffOn_directional hU hf v) |
| 59 | |
| 60 | theorem directional_congr {U : Set P} (hU : IsOpen U) {f g : P → E} |
| 61 | (heq : EqOn f g U) (v : P) : EqOn (directional f v) (directional g v) U := by |
| 62 | intro p hp |
| 63 | apply congrArg (fun L : P →L[ℝ] E => L v) |
| 64 | apply Filter.EventuallyEq.fderiv_eq |
| 65 | filter_upwards [hU.mem_nhds hp] with q hq |
| 66 | exact heq hq |
| 67 | |
| 68 | theorem jet_congr {U : Set P} (hU : IsOpen U) {f g : P → E} |
| 69 | (heq : EqOn f g U) (l : List P) : EqOn (jet f l) (jet g l) U := by |
| 70 | induction l generalizing f g with |
| 71 | | nil => exact heq |
| 72 | | cons v l ih => exact ih (directional_congr hU heq v) |
| 73 | |
| 74 | theorem directional_add {U : Set P} (hU : IsOpen U) {f g : P → E} |
| 75 | (hf : ContDiffOn ℝ ∞ f U) (hg : ContDiffOn ℝ ∞ g U) (v : P) : |
| 76 | EqOn (directional (fun p => f p + g p) v) |
| 77 | (fun p => directional f v p + directional g v p) U := by |
| 78 | intro p hp |
| 79 | have hdf := (hf p hp).contDiffAt (hU.mem_nhds hp) |
| 80 | have hdg := (hg p hp).contDiffAt (hU.mem_nhds hp) |
| 81 | exact congrArg (fun L : P →L[ℝ] E => L v) |
| 82 | (fderiv_fun_add (hdf.differentiableAt (by simp)) (hdg.differentiableAt (by simp))) |
| 83 | |
| 84 | theorem jet_add {U : Set P} (hU : IsOpen U) {f g : P → E} |
| 85 | (hf : ContDiffOn ℝ ∞ f U) (hg : ContDiffOn ℝ ∞ g U) (l : List P) : |
| 86 | EqOn (jet (fun p => f p + g p) l) (fun p => jet f l p + jet g l p) U := by |
| 87 | induction l generalizing f g with |
| 88 | | nil => intro p hp; rfl |
| 89 | | cons v l ih => |
| 90 | exact (jet_congr hU (directional_add hU hf hg v) l).trans |
| 91 | (ih (contDiffOn_directional hU hf v) (contDiffOn_directional hU hg v)) |
| 92 | |
| 93 | theorem directional_clm {U : Set P} (hU : IsOpen U) {f : P → E} |
| 94 | (hf : ContDiffOn ℝ ∞ f U) (L : E →L[ℝ] F) (v : P) : |
| 95 | EqOn (directional (fun p => L (f p)) v) (fun p => L (directional f v p)) U := by |
| 96 | intro p hp |
| 97 | have hdf := ((hf p hp).contDiffAt (hU.mem_nhds hp)).differentiableAt (by simp) |
| 98 | exact congrArg (fun M : P →L[ℝ] F => M v) (L.hasFDerivAt.comp p hdf.hasFDerivAt).fderiv |
| 99 | |
| 100 | theorem jet_clm {U : Set P} (hU : IsOpen U) {f : P → E} |
| 101 | (hf : ContDiffOn ℝ ∞ f U) (L : E →L[ℝ] F) (l : List P) : |
| 102 | EqOn (jet (fun p => L (f p)) l) (fun p => L (jet f l p)) U := by |
| 103 | induction l generalizing f with |
| 104 | | nil => intro p hp; rfl |
| 105 | | cons v l ih => |
| 106 | exact (jet_congr hU (directional_clm hU hf L v) l).trans |
| 107 | (ih (contDiffOn_directional hU hf v)) |
| 108 | |
| 109 | /-- The word formulation is exactly Mathlib's iterated Fréchet derivative, |
| 110 | with the reversal dictated by its convention for the order of arguments. -/ |
| 111 | theorem jet_ofFn_reverse {U : Set P} (hU : IsOpen U) {f : P → E} |
| 112 | (hf : ContDiffOn ℝ ∞ f U) (n : ℕ) (v : Fin n → P) {p : P} (hp : p ∈ U) : |
| 113 | jet f (List.ofFn v).reverse p = iteratedFDeriv ℝ n f p v := by |
| 114 | induction n generalizing f with |
| 115 | | zero => simp [jet] |
| 116 | | succ n ih => |
| 117 | rw [List.ofFn_succ', List.concat_eq_append, List.reverse_concat, jet_cons] |
| 118 | rw [ih (contDiffOn_directional hU hf (v (Fin.last n))) (fun i => v i.castSucc)] |
| 119 | rw [iteratedFDeriv_succ_apply_right] |
| 120 | have hdf := (contDiffOn_infty_iff_fderiv_of_isOpen hU).mp hf |>.2 |
| 121 | have hh := iteratedFDerivWithin_clm_apply_const_apply hU.uniqueDiffOn hdf |
| 122 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl n) hp |
| 123 | (u := v (Fin.last n)) (m := Fin.init v) |
| 124 | simp only [iteratedFDerivWithin_of_isOpen n hU hp] at hh |
| 125 | exact hh |
| 126 | |
| 127 | /-- A bound for the ordinary multilinear derivative controls every word of |
| 128 | unit directions, including the empty word. -/ |
| 129 | theorem norm_jet_le_iteratedFDeriv {U : Set P} (hU : IsOpen U) {f : P → E} |
| 130 | (hf : ContDiffOn ℝ ∞ f U) (l : List P) {p : P} (hp : p ∈ U) (hl : UnitWord l) : |
| 131 | ‖jet f l p‖ ≤ ‖iteratedFDeriv ℝ l.length f p‖ := by |
| 132 | have hv : ‖l.reverse.get‖ ≤ 1 := by |
| 133 | apply (pi_norm_le_iff_of_nonneg (by norm_num : (0 : ℝ) ≤ 1)).mpr |
| 134 | intro i |
| 135 | exact hl _ (List.mem_reverse.mp (l.reverse.get_mem i)) |
| 136 | have hnorm := (iteratedFDeriv ℝ l.reverse.length f p).unit_le_opNorm hv |
| 137 | rw [← jet_ofFn_reverse hU hf l.reverse.length l.reverse.get hp] at hnorm |
| 138 | have hh : ‖jet f l p‖ ≤ ‖iteratedFDeriv ℝ l.reverse.length f p‖ := by |
| 139 | simpa only [List.ofFn_get, List.reverse_reverse] using hnorm |
| 140 | exact hh.trans_eq (congrArg (fun k : ℕ => ‖iteratedFDeriv ℝ k f p‖) |
| 141 | (show l.reverse.length = l.length from List.length_reverse)) |
| 142 | |
| 143 | /-- Unit-direction bounds control the full multilinear norm, also at order zero. -/ |
| 144 | theorem multilinear_norm_le_of_unit {n : ℕ} (T : P [×n]→L[ℝ] E) |
| 145 | {B : ℝ} (hB : 0 ≤ B) |
| 146 | (hT : ∀ v : Fin n → P, (∀ i, ‖v i‖ ≤ 1) → ‖T v‖ ≤ B) : ‖T‖ ≤ B := by |
| 147 | apply T.opNorm_le_bound hB |
| 148 | intro v |
| 149 | let w : Fin n → P := fun i => ‖v i‖⁻¹ • v i |
| 150 | have hw (i : Fin n) : ‖w i‖ ≤ 1 := by |
| 151 | by_cases hz : v i = 0 |
| 152 | · simp [w, hz] |
| 153 | · simp [w, norm_smul, |
| 154 | inv_mul_cancel₀ (norm_ne_zero_iff.mpr hz)] |
| 155 | have hv : (fun i => ‖v i‖ • w i) = v := by |
| 156 | funext i |
| 157 | by_cases hz : v i = 0 |
| 158 | · simp [w, hz] |
| 159 | · simp [w, smul_smul, mul_inv_cancel₀ (norm_ne_zero_iff.mpr hz)] |
| 160 | have hp : 0 ≤ ∏ i, ‖v i‖ := Finset.prod_nonneg (fun i _ => norm_nonneg _) |
| 161 | calc |
| 162 | ‖T v‖ = ‖(∏ i, ‖v i‖) • T w‖ := by rw [← T.map_smul_univ, hv] |
| 163 | _ = (∏ i, ‖v i‖) * ‖T w‖ := by rw [norm_smul, Real.norm_eq_abs, abs_of_nonneg hp] |
| 164 | _ ≤ (∏ i, ‖v i‖) * B := mul_le_mul_of_nonneg_left (hT w hw) hp |
| 165 | _ = B * ∏ i, ‖v i‖ := mul_comm _ _ |
| 166 | |
| 167 | section Products |
| 168 | |
| 169 | open ParametricODE |
| 170 | |
| 171 | variable {a b : ℝ} |
| 172 | |
| 173 | /-- The full Leibniz expansion, retaining ordered differentiation and therefore |
| 174 | automatically retaining every mixed-term multiplicity. -/ |
| 175 | noncomputable def productJet (A : P → Coefficient a b E) (u : P → Curve a b E) |
| 176 | (l : List P) : P → Curve a b E := |
| 177 | (List.rec |
| 178 | (motive := fun _ : List P => |
| 179 | (P → Coefficient a b E) → (P → Curve a b E) → P → Curve a b E) |
| 180 | (fun B z p => applyCoefficient (B p) (z p)) |
| 181 | (fun v _ rec B z p => rec (directional B v) z p + rec B (directional z v) p) l) A u |
| 182 | |
| 183 | /-- The proper Leibniz terms: at least one derivative hits the coefficient, |
| 184 | so every solution derivative in this expression has strictly lower order. -/ |
| 185 | noncomputable def crossJet (A : P → Coefficient a b E) (u : P → Curve a b E) |
| 186 | (l : List P) : P → Curve a b E := |
| 187 | (List.rec |
| 188 | (motive := fun _ : List P => |
| 189 | (P → Coefficient a b E) → (P → Curve a b E) → P → Curve a b E) |
| 190 | (fun _ _ _ => 0) |
| 191 | (fun v tail rec B z p => productJet (directional B v) z tail p + |
| 192 | rec B (directional z v) p) l) A u |
| 193 | |
| 194 | theorem productJet_split (A : P → Coefficient a b E) (u : P → Curve a b E) |
| 195 | (l : List P) (p : P) : |
| 196 | productJet A u l p = applyCoefficient (A p) (jet u l p) + crossJet A u l p := by |
| 197 | induction l generalizing A u with |
| 198 | | nil => simp [productJet, crossJet] |
| 199 | | cons v l ih => |
| 200 | change productJet (directional A v) u l p + productJet A (directional u v) l p = |
| 201 | applyCoefficient (A p) (jet (directional u v) l p) + |
| 202 | (productJet (directional A v) u l p + crossJet A (directional u v) l p) |
| 203 | rw [ih A (directional u v)] |
| 204 | abel |
| 205 | |
| 206 | theorem directional_product {U : Set P} (hU : IsOpen U) |
| 207 | {A : P → Coefficient a b E} {u : P → Curve a b E} |
| 208 | (hA : ContDiffOn ℝ ∞ A U) (hu : ContDiffOn ℝ ∞ u U) (v : P) : |
| 209 | EqOn (directional (fun p => applyCoefficient (A p) (u p)) v) |
| 210 | (fun p => applyCoefficient (directional A v p) (u p) + |
| 211 | applyCoefficient (A p) (directional u v p)) U := by |
| 212 | intro p hp |
| 213 | have hdA := ((hA p hp).contDiffAt (hU.mem_nhds hp)).differentiableAt (by simp) |
| 214 | have hdu := ((hu p hp).contDiffAt (hU.mem_nhds hp)).differentiableAt (by simp) |
| 215 | have hmap : HasFDerivAt (coefficientAction (E := E) (a := a) (b := b)) |
| 216 | (coefficientAction (E := E)) (A p) := |
| 217 | ContinuousLinearMap.hasFDerivAt (𝕜 := ℝ) |
| 218 | (E := Coefficient a b E) (F := Curve a b E →L[ℝ] Curve a b E) |
| 219 | (coefficientAction (E := E)) |
| 220 | have hlin : HasFDerivAt |
| 221 | (fun q => coefficientAction (E := E) (A q)) |
| 222 | ((coefficientAction (E := E)).comp (fderiv ℝ A p)) p := |
| 223 | HasFDerivAt.comp (𝕜 := ℝ) (E := P) (F := Coefficient a b E) |
| 224 | (G := Curve a b E →L[ℝ] Curve a b E) p hmap hdA.hasFDerivAt |
| 225 | have h := congrArg (fun M : P →L[ℝ] Curve a b E => M v) |
| 226 | (hlin.clm_apply hdu.hasFDerivAt).fderiv |
| 227 | simp only [_root_.add_apply, ContinuousLinearMap.comp_apply, |
| 228 | ContinuousLinearMap.flip_apply, add_comm] at h |
| 229 | convert! h using 1 ; apply add_comm |
| 230 | |
| 231 | theorem jet_product {U : Set P} (hU : IsOpen U) |
| 232 | {A : P → Coefficient a b E} {u : P → Curve a b E} |
| 233 | (hA : ContDiffOn ℝ ∞ A U) (hu : ContDiffOn ℝ ∞ u U) (l : List P) : |
| 234 | EqOn (jet (fun p => applyCoefficient (A p) (u p)) l) (productJet A u l) U := by |
| 235 | induction l generalizing A u with |
| 236 | | nil => intro p hp; rfl |
| 237 | | cons v l ih => |
| 238 | have hdA := contDiffOn_directional hU hA v |
| 239 | have hdu := contDiffOn_directional hU hu v |
| 240 | have hcoeff : ContDiff ℝ ∞ (coefficientAction (E := E) (a := a) (b := b)) := |
| 241 | ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) |
| 242 | (E := Coefficient a b E) (F := Curve a b E →L[ℝ] Curve a b E) |
| 243 | (coefficientAction (E := E)) |
| 244 | have hleft : ContDiffOn ℝ ∞ (fun p => applyCoefficient (directional A v p) (u p)) U := |
| 245 | (hcoeff.comp_contDiffOn hdA).clm_apply hu |
| 246 | have hright : ContDiffOn ℝ ∞ (fun p => applyCoefficient (A p) (directional u v p)) U := |
| 247 | (hcoeff.comp_contDiffOn hA).clm_apply hdu |
| 248 | intro p hp |
| 249 | calc |
| 250 | jet (fun p => applyCoefficient (A p) (u p)) (v :: l) p = |
| 251 | jet (fun p => applyCoefficient (directional A v p) (u p) + |
| 252 | applyCoefficient (A p) (directional u v p)) l p := |
| 253 | jet_congr hU (directional_product hU hA hu v) l hp |
| 254 | _ = jet (fun p => applyCoefficient (directional A v p) (u p)) l p + |
| 255 | jet (fun p => applyCoefficient (A p) (directional u v p)) l p := |
| 256 | jet_add hU hleft hright l hp |
| 257 | _ = productJet A u (v :: l) p := by |
| 258 | rw [ih hdA hu hp, ih hA hdu hp] |
| 259 | rfl |
| 260 | |
| 261 | /-- Every term in the full Leibniz expansion has the product estimate. There |
| 262 | are `2^length` ordered choices of which factor receives each derivative. -/ |
| 263 | theorem norm_productJet_le |
| 264 | (A : P → Coefficient a b E) (u : P → Curve a b E) (l : List P) |
| 265 | (p : P) (t : Icc a b) {M B : ℝ} (hM : 0 ≤ M) (_hB : 0 ≤ B) |
| 266 | (hA : ∀ k : List P, k.length ≤ l.length → UnitWord k → ‖jet A k p t‖ ≤ M) |
| 267 | (hu : ∀ k : List P, k.length ≤ l.length → UnitWord k → ‖jet u k p t‖ ≤ B) |
| 268 | (hl : UnitWord l) : |
| 269 | ‖productJet A u l p t‖ ≤ (2 : ℝ) ^ l.length * M * B := by |
| 270 | induction l generalizing A u with |
| 271 | | nil => |
| 272 | change ‖A p t (u p t)‖ ≤ 2 ^ 0 * M * B |
| 273 | simpa only [pow_zero, one_mul] using |
| 274 | ((A p t).le_opNorm (u p t)).trans |
| 275 | (mul_le_mul (hA [] le_rfl unitWord_nil) (hu [] le_rfl unitWord_nil) |
| 276 | (norm_nonneg _) hM) |
| 277 | | cons v l ih => |
| 278 | obtain ⟨hv, hl⟩ := unitWord_cons v l |>.mp hl |
| 279 | have hDA (k : List P) (hk : k.length ≤ l.length) (hku : UnitWord k) : |
| 280 | ‖jet (directional A v) k p t‖ ≤ M := |
| 281 | hA (v :: k) (by simpa using hk) ((unitWord_cons v k).mpr ⟨hv, hku⟩) |
| 282 | have hDu (k : List P) (hk : k.length ≤ l.length) (hku : UnitWord k) : |
| 283 | ‖jet (directional u v) k p t‖ ≤ B := |
| 284 | hu (v :: k) (by simpa using hk) ((unitWord_cons v k).mpr ⟨hv, hku⟩) |
| 285 | have hA0 (k : List P) (hk : k.length ≤ l.length) (hku : UnitWord k) : |
| 286 | ‖jet A k p t‖ ≤ M := hA k (by simp only [List.length_cons]; omega) hku |
| 287 | have hu0 (k : List P) (hk : k.length ≤ l.length) (hku : UnitWord k) : |
| 288 | ‖jet u k p t‖ ≤ B := hu k (by simp only [List.length_cons]; omega) hku |
| 289 | change ‖productJet (directional A v) u l p t + productJet A (directional u v) l p t‖ ≤ _ |
| 290 | calc |
| 291 | _ ≤ ‖productJet (directional A v) u l p t‖ + |
| 292 | ‖productJet A (directional u v) l p t‖ := norm_add_le _ _ |
| 293 | _ ≤ 2 ^ l.length * M * B + 2 ^ l.length * M * B := |
| 294 | add_le_add (ih _ _ hDA hu0 hl) (ih _ _ hA0 hDu hl) |
| 295 | _ = _ := by simp only [List.length_cons, pow_succ]; ring |
| 296 | |
| 297 | /-- The proper Leibniz expansion only requires solution jets of strictly lower |
| 298 | order. This is the triangular property used by the weighted induction. -/ |
| 299 | theorem norm_crossJet_le |
| 300 | (A : P → Coefficient a b E) (u : P → Curve a b E) (l : List P) |
| 301 | (p : P) (t : Icc a b) {M B : ℝ} (hM : 0 ≤ M) (hB : 0 ≤ B) |
| 302 | (hA : ∀ k : List P, k.length ≤ l.length → UnitWord k → ‖jet A k p t‖ ≤ M) |
| 303 | (hu : ∀ k : List P, k.length < l.length → UnitWord k → ‖jet u k p t‖ ≤ B) |
| 304 | (hl : UnitWord l) : |
| 305 | ‖crossJet A u l p t‖ ≤ (2 : ℝ) ^ l.length * M * B := by |
| 306 | induction l generalizing A u with |
| 307 | | nil => simpa [crossJet] using mul_nonneg hM hB |
| 308 | | cons v l ih => |
| 309 | obtain ⟨hv, hl⟩ := unitWord_cons v l |>.mp hl |
| 310 | have hDA (k : List P) (hk : k.length ≤ l.length) (hku : UnitWord k) : |
| 311 | ‖jet (directional A v) k p t‖ ≤ M := |
| 312 | hA (v :: k) (by simpa using hk) ((unitWord_cons v k).mpr ⟨hv, hku⟩) |
| 313 | have hDu (k : List P) (hk : k.length < l.length) (hku : UnitWord k) : |
| 314 | ‖jet (directional u v) k p t‖ ≤ B := |
| 315 | hu (v :: k) (by simpa using hk) ((unitWord_cons v k).mpr ⟨hv, hku⟩) |
| 316 | have hA0 (k : List P) (hk : k.length ≤ l.length) (hku : UnitWord k) : |
| 317 | ‖jet A k p t‖ ≤ M := hA k (by simp only [List.length_cons]; omega) hku |
| 318 | have hu0 (k : List P) (hk : k.length ≤ l.length) (hku : UnitWord k) : |
| 319 | ‖jet u k p t‖ ≤ B := hu k (by simp only [List.length_cons]; omega) hku |
| 320 | change ‖productJet (directional A v) u l p t + crossJet A (directional u v) l p t‖ ≤ _ |
| 321 | calc |
| 322 | _ ≤ ‖productJet (directional A v) u l p t‖ + |
| 323 | ‖crossJet A (directional u v) l p t‖ := norm_add_le _ _ |
| 324 | _ ≤ 2 ^ l.length * M * B + 2 ^ l.length * M * B := |
| 325 | add_le_add (norm_productJet_le _ _ _ _ _ hM hB hDA hu0 hl) (ih _ _ hA0 hDu hl) |
| 326 | _ = _ := by simp only [List.length_cons, pow_succ]; ring |
| 327 | |
| 328 | /-- The actual inhomogeneity of the differentiated equation. -/ |
| 329 | noncomputable def jetSource (A : P → Coefficient a b E) (f u : P → Curve a b E) |
| 330 | (l : List P) (p : P) : Curve a b E := jet f l p + crossJet A u l p |
| 331 | |
| 332 | variable [CompleteSpace E] |
| 333 | |
| 334 | /-- Every actual parameter jet of the constructed solution is itself the |
| 335 | constructed solution of the corresponding triangular variational equation. |
| 336 | No existence or smoothness of solution jets is assumed. -/ |
| 337 | theorem jet_solution_eq_solution (hab : a ≤ b) {U : Set P} (hU : IsOpen U) |
| 338 | (A : P → Coefficient a b E) (x₀ : P → E) (f : P → Curve a b E) |
| 339 | (hA : ContDiffOn ℝ ∞ A U) (hx₀ : ContDiffOn ℝ ∞ x₀ U) |
| 340 | (hf : ContDiffOn ℝ ∞ f U) (l : List P) {p : P} (hp : p ∈ U) : |
| 341 | jet (fun q => solution hab (A q) (x₀ q) (f q)) l p = |
| 342 | solution hab (A p) (jet x₀ l p) |
| 343 | (jetSource A f (fun q => solution hab (A q) (x₀ q) (f q)) l p) := by |
| 344 | let u : P → Curve a b E := fun q => solution hab (A q) (x₀ q) (f q) |
| 345 | have hu : ContDiffOn ℝ ∞ u U := contDiffOn_solution_family hab A x₀ f hA hx₀ hf |
| 346 | have hcoeff : ContDiff ℝ ∞ (coefficientAction (E := E) (a := a) (b := b)) := |
| 347 | ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) |
| 348 | (E := Coefficient a b E) (F := Curve a b E →L[ℝ] Curve a b E) |
| 349 | (coefficientAction (E := E)) |
| 350 | have hAu : ContDiffOn ℝ ∞ (fun q => applyCoefficient (A q) (u q)) U := |
| 351 | (hcoeff.comp_contDiffOn hA).clm_apply hu |
| 352 | have hright : EqOn u |
| 353 | (fun q => constantCurve (x₀ q) + integrator hab (applyCoefficient (A q) (u q) + f q)) U := |
| 354 | fun q _ => solution_integralEquation hab (A q) (x₀ q) (f q) |
| 355 | have hC : ContDiffOn ℝ ∞ (fun q => (constantCurve (a := a) (b := b)) (x₀ q)) U := |
| 356 | (constantCurve (E := E)).contDiff.comp_contDiffOn hx₀ |
| 357 | have hI : ContDiffOn ℝ ∞ |
| 358 | (fun q => integrator hab (applyCoefficient (A q) (u q) + f q)) U := |
| 359 | (integrator (E := E) hab).contDiff.comp_contDiffOn (hAu.add hf) |
| 360 | have hj : jet u l p = constantCurve (jet x₀ l p) + |
| 361 | integrator hab (applyCoefficient (A p) (jet u l p) + jetSource A f u l p) := by |
| 362 | calc |
| 363 | jet u l p = jet |
| 364 | (fun q => constantCurve (x₀ q) + integrator hab (applyCoefficient (A q) (u q) + f q)) l p := |
| 365 | jet_congr hU hright l hp |
| 366 | _ = jet (fun q => constantCurve (x₀ q)) l p + |
| 367 | jet (fun q => integrator hab (applyCoefficient (A q) (u q) + f q)) l p := |
| 368 | jet_add hU hC hI l hp |
| 369 | _ = constantCurve (jet x₀ l p) + |
| 370 | integrator hab (jet (fun q => applyCoefficient (A q) (u q) + f q) l p) := by |
| 371 | rw [jet_clm hU hx₀ (constantCurve (E := E)) l hp, |
| 372 | jet_clm hU (hAu.add hf) (integrator (E := E) hab) l hp] |
| 373 | _ = constantCurve (jet x₀ l p) + |
| 374 | integrator hab (applyCoefficient (A p) (jet u l p) + jetSource A f u l p) := by |
| 375 | rw [jet_add hU hAu hf l hp] |
| 376 | dsimp only |
| 377 | rw [jet_product hU hA hu l hp, productJet_split] |
| 378 | congr 2 |
| 379 | unfold jetSource |
| 380 | abel |
| 381 | change jet u l p = (equationOperator hab (A p)).inverse |
| 382 | (constantCurve (jet x₀ l p) + integrator hab (jetSource A f u l p)) |
| 383 | symm |
| 384 | apply (equationOperator_isInvertible hab (A p)).inverse_apply_eq.mpr |
| 385 | change constantCurve (jet x₀ l p) + integrator hab (jetSource A f u l p) = |
| 386 | jet u l p - integrator hab (applyCoefficient (A p) (jet u l p)) |
| 387 | rw [(integrator hab).map_add] at hj |
| 388 | exact (eq_sub_iff_add_eq.mpr (by simpa only [add_assoc, add_comm, add_left_comm] using hj.symm)) |
| 389 | |
| 390 | /-- The time derivative of each actual parameter jet is its triangular |
| 391 | variational equation on the original closed interval. -/ |
| 392 | theorem jet_solution_hasDerivWithinAt (hab : a ≤ b) {U : Set P} (hU : IsOpen U) |
| 393 | (A : P → Coefficient a b E) (x₀ : P → E) (f : P → Curve a b E) |
| 394 | (hA : ContDiffOn ℝ ∞ A U) (hx₀ : ContDiffOn ℝ ∞ x₀ U) |
| 395 | (hf : ContDiffOn ℝ ∞ f U) (l : List P) {p : P} (hp : p ∈ U) (t : Icc a b) : |
| 396 | let u := fun q => solution hab (A q) (x₀ q) (f q) |
| 397 | HasDerivWithinAt (extend hab (jet u l p)) |
| 398 | (A p t (jet u l p t) + jetSource A f u l p t) (Icc a b) t := by |
| 399 | dsimp only |
| 400 | rw [jet_solution_eq_solution hab hU A x₀ f hA hx₀ hf l hp] |
| 401 | exact solution_hasDerivWithinAt hab _ _ _ t |
| 402 | |
| 403 | end Products |
| 404 | |
| 405 | section Weighted |
| 406 | |
| 407 | open ParametricODE |
| 408 | |
| 409 | variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] |
| 410 | {a b : ℝ} |
| 411 | |
| 412 | /-- The constructed solution retains a positive reference envelope. A uniform |
| 413 | bound for the error exponential gives a factor linear in the slot length. |
| 414 | The estimate follows from the proved energy inequality for the actual ODE. -/ |
| 415 | theorem norm_solution_le_envelope (hab : a ≤ b) |
| 416 | (A : Coefficient a b H) (x₀ : H) (f : Curve a b H) |
| 417 | (rate W : ℝ → ℝ) {μ C X F₀ : ℝ} (hμ : 0 ≤ μ) |
| 418 | (hW : ∀ t, 0 < W t) (hdW : ∀ t, HasDerivAt W (rate t * W t) t) |
| 419 | (henergy : ∀ t : Icc a b, ∀ x : H, ⟪x, A t x⟫_ℝ ≤ (rate t + μ) * ‖x‖ ^ 2) |
| 420 | (hC : Real.exp (μ * (b - a)) ≤ C) (hX : 0 ≤ X) (hF : 0 ≤ F₀) |
| 421 | (hx₀ : ‖x₀‖ ≤ X * W a) (hf : ∀ t : Icc a b, ‖f t‖ ≤ F₀ * W t) |
| 422 | (t : Icc a b) : |
| 423 | ‖solution hab A x₀ f t‖ ≤ C * (X + (b - a) * F₀) * W t := by |
| 424 | let u : Curve a b H := solution hab A x₀ f |
| 425 | have hode (s : ℝ) (hs : s ∈ Ico a b) : |
| 426 | HasDerivWithinAt (extend hab u) |
| 427 | (extend hab A s (extend hab u s) + extend hab f s) (Ici s) s := by |
| 428 | have hscc := Ico_subset_Icc_self hs |
| 429 | have hh := (solution_hasDerivWithinAt hab A x₀ f ⟨s, hscc⟩).mono_of_mem_nhdsWithin |
| 430 | (Icc_mem_nhdsGE_of_mem hs) |
| 431 | simpa only [u, ParametricODE.extend, projIcc_of_mem hab hscc] using hh |
| 432 | have he (s : ℝ) (hs : s ∈ Ico a b) (x : H) : |
| 433 | ⟪x, extend hab A s x⟫_ℝ ≤ (rate s + μ) * ‖x‖ ^ 2 := by |
| 434 | simpa only [ParametricODE.extend, projIcc_of_mem hab (Ico_subset_Icc_self hs)] |
| 435 | using henergy ⟨s, Ico_subset_Icc_self hs⟩ x |
| 436 | have hbase := ViscousPropagator.norm_le_envelope_mul_integral_on (extend hab A) |
| 437 | rate W hμ hW hdW (continuous_extend hab u).continuousOn |
| 438 | (continuous_extend hab f).continuousOn hode he |
| 439 | have hua : extend hab u a = x₀ := by |
| 440 | simpa only [ParametricODE.extend, projIcc_of_mem hab (show a ∈ Icc a b from ⟨le_rfl, hab⟩)] |
| 441 | using solution_initial hab A x₀ f |
| 442 | have hstart : ‖extend hab u a‖ / W a ≤ X := by |
| 443 | rw [hua] |
| 444 | exact (div_le_iff₀ (hW a)).mpr hx₀ |
| 445 | have hcW : Continuous W := continuous_iff_continuousAt.mpr fun s => (hdW s).continuousAt |
| 446 | have hcq : Continuous (fun s => ‖extend hab f s‖ / W s) := |
| 447 | (continuous_extend hab f).norm.div hcW (fun s => ne_of_gt (hW s)) |
| 448 | have hint : (∫ s in a..(t : ℝ), ‖extend hab f s‖ / W s) ≤ (b - a) * F₀ := by |
| 449 | have hm := intervalIntegral.integral_mono_on (μ := volume) t.2.1 |
| 450 | (hcq.intervalIntegrable a t) (continuous_const.intervalIntegrable a t) |
| 451 | (show ∀ s ∈ Icc a (t : ℝ), ‖extend hab f s‖ / W s ≤ F₀ from by |
| 452 | intro s hs |
| 453 | have hscc : s ∈ Icc a b := ⟨hs.1, hs.2.trans t.2.2⟩ |
| 454 | apply (div_le_iff₀ (hW s)).mpr |
| 455 | simpa only [ParametricODE.extend, projIcc_of_mem hab hscc] using hf ⟨s, hscc⟩) |
| 456 | calc |
| 457 | _ ≤ ((t : ℝ) - a) * F₀ := by |
| 458 | simpa only [intervalIntegral.integral_const, smul_eq_mul] using hm |
| 459 | _ ≤ (b - a) * F₀ := mul_le_mul_of_nonneg_right (sub_le_sub_right t.2.2 a) hF |
| 460 | have hExp : Real.exp (μ * ((t : ℝ) - a)) ≤ C := |
| 461 | (Real.exp_le_exp.mpr (mul_le_mul_of_nonneg_left (sub_le_sub_right t.2.2 a) hμ)).trans hC |
| 462 | have hnonneg : 0 ≤ X + (b - a) * F₀ := add_nonneg hX (mul_nonneg (sub_nonneg.mpr hab) hF) |
| 463 | calc |
| 464 | ‖solution hab A x₀ f t‖ ≤ Real.exp (μ * ((t : ℝ) - a)) * W t * |
| 465 | (‖extend hab u a‖ / W a + ∫ s in a..(t : ℝ), ‖extend hab f s‖ / W s) := by |
| 466 | simpa only [extend_coe, u] using hbase t t.2 |
| 467 | _ ≤ Real.exp (μ * ((t : ℝ) - a)) * W t * (X + (b - a) * F₀) := |
| 468 | mul_le_mul_of_nonneg_left (add_le_add hstart hint) |
| 469 | (mul_nonneg (Real.exp_pos _).le (hW t).le) |
| 470 | _ ≤ C * W t * (X + (b - a) * F₀) := |
| 471 | mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right hExp (hW t).le) hnonneg |
| 472 | _ = C * (X + (b - a) * F₀) * W t := by ring |
| 473 | |
| 474 | /-- A finite-order weighted estimate for every actual mixed parameter jet. |
| 475 | Only input jets are bounded in the hypotheses. The factor multiplying each |
| 476 | successive derivative is polynomial in the slot length and coefficient bound. -/ |
| 477 | theorem norm_jet_solution_le (hab : a ≤ b) {U : Set P} (hU : IsOpen U) |
| 478 | (A : P → Coefficient a b H) (x₀ : P → H) (f : P → Curve a b H) |
| 479 | (hA : ContDiffOn ℝ ∞ A U) (hx₀ : ContDiffOn ℝ ∞ x₀ U) |
| 480 | (hf : ContDiffOn ℝ ∞ f U) {p : P} (hp : p ∈ U) |
| 481 | (rate W : ℝ → ℝ) {μ C M X F₀ : ℝ} (hμ : 0 ≤ μ) |
| 482 | (hW : ∀ t, 0 < W t) (hdW : ∀ t, HasDerivAt W (rate t * W t) t) |
| 483 | (henergy : ∀ t : Icc a b, ∀ x : H, ⟪x, A p t x⟫_ℝ ≤ (rate t + μ) * ‖x‖ ^ 2) |
| 484 | (hC : Real.exp (μ * (b - a)) ≤ C) (hM : 0 ≤ M) (hX : 0 ≤ X) (hF : 0 ≤ F₀) |
| 485 | (N : ℕ) |
| 486 | (hAj : ∀ l : List P, l.length ≤ N → UnitWord l → ∀ t : Icc a b, ‖jet A l p t‖ ≤ M) |
| 487 | (hxj : ∀ l : List P, l.length ≤ N → UnitWord l → ‖jet x₀ l p‖ ≤ X * W a) |
| 488 | (hfj : ∀ l : List P, l.length ≤ N → UnitWord l → ∀ t : Icc a b, |
| 489 | ‖jet f l p t‖ ≤ F₀ * W t) |
| 490 | (l : List P) (hlN : l.length ≤ N) (hl : UnitWord l) (t : Icc a b) : |
| 491 | ‖jet (fun q => solution hab (A q) (x₀ q) (f q)) l p t‖ ≤ |
| 492 | C * (X + (b - a) * F₀) * (1 + C * (b - a) * ((2 : ℝ) ^ N * M)) ^ l.length * W t := by |
| 493 | let u : P → Curve a b H := fun q => solution hab (A q) (x₀ q) (f q) |
| 494 | let L := b - a |
| 495 | let B₀ := C * (X + L * F₀) |
| 496 | let K := (2 : ℝ) ^ N * M |
| 497 | let Q := 1 + C * L * K |
| 498 | have hL : 0 ≤ L := sub_nonneg.mpr hab |
| 499 | have hC0 : 0 ≤ C := (Real.exp_pos _).le.trans hC |
| 500 | have hB : 0 ≤ B₀ := mul_nonneg hC0 (add_nonneg hX (mul_nonneg hL hF)) |
| 501 | have hK : 0 ≤ K := mul_nonneg (pow_nonneg (by norm_num) _) hM |
| 502 | have hQ : 1 ≤ Q := le_add_of_nonneg_right (mul_nonneg (mul_nonneg hC0 hL) hK) |
| 503 | have hQ0 : 0 ≤ Q := zero_le_one.trans hQ |
| 504 | have hbound : ∀ n : ℕ, n ≤ N → ∀ k : List P, k.length = n → UnitWord k → |
| 505 | ∀ s : Icc a b, ‖jet u k p s‖ ≤ B₀ * Q ^ n * W s := by |
| 506 | intro n |
| 507 | induction n using Nat.strong_induction_on with |
| 508 | | h n ih => |
| 509 | intro hn k hk hku s |
| 510 | cases n with |
| 511 | | zero => |
| 512 | have hk0 : k = [] := List.length_eq_zero_iff.mp hk |
| 513 | subst k |
| 514 | have hh := norm_solution_le_envelope hab (A p) (x₀ p) (f p) rate W hμ hW hdW |
| 515 | henergy hC hX hF (hxj [] (by simp) unitWord_nil) |
| 516 | (hfj [] (by simp) unitWord_nil) s |
| 517 | simpa only [jet_nil, pow_zero, mul_one, B₀, L, u] using hh |
| 518 | | succ n => |
| 519 | have hlower (r : List P) (hr : r.length < k.length) (hru : UnitWord r) |
| 520 | (z : Icc a b) : ‖jet u r p z‖ ≤ B₀ * Q ^ n * W z := by |
| 521 | have hrn : r.length ≤ n := by omega |
| 522 | have hhi := ih r.length (by omega) (hrn.trans (Nat.le_of_succ_le hn)) r rfl hru z |
| 523 | exact hhi.trans (mul_le_mul_of_nonneg_right |
| 524 | (mul_le_mul_of_nonneg_left (pow_le_pow_right₀ hQ hrn) hB) (hW z).le) |
| 525 | have hforce (z : Icc a b) : |
| 526 | ‖jetSource A f u k p z‖ ≤ (F₀ + K * B₀ * Q ^ n) * W z := by |
| 527 | have hjA (r : List P) (hr : r.length ≤ k.length) (hru : UnitWord r) : |
| 528 | ‖jet A r p z‖ ≤ M := hAj r (by omega) hru z |
| 529 | have hcross := norm_crossJet_le A u k p z hM |
| 530 | (mul_nonneg (mul_nonneg hB (pow_nonneg hQ0 _)) (hW z).le) |
| 531 | hjA (fun r hr hru => hlower r hr hru z) hku |
| 532 | have hpow : (2 : ℝ) ^ k.length ≤ (2 : ℝ) ^ N := |
| 533 | pow_le_pow_right₀ (by norm_num) (by omega) |
| 534 | calc |
| 535 | ‖jetSource A f u k p z‖ ≤ ‖jet f k p z‖ + ‖crossJet A u k p z‖ := norm_add_le _ _ |
| 536 | _ ≤ F₀ * W z + (2 : ℝ) ^ k.length * M * (B₀ * Q ^ n * W z) := |
| 537 | add_le_add (hfj k (by omega) hku z) hcross |
| 538 | _ ≤ F₀ * W z + (2 : ℝ) ^ N * M * (B₀ * Q ^ n * W z) := by |
| 539 | exact add_le_add_right (mul_le_mul_of_nonneg_right |
| 540 | (mul_le_mul_of_nonneg_right hpow hM) |
| 541 | (mul_nonneg (mul_nonneg hB (pow_nonneg hQ0 _)) (hW z).le)) _ |
| 542 | _ = (F₀ + K * B₀ * Q ^ n) * W z := by dsimp [K]; ring |
| 543 | have hforce0 : 0 ≤ F₀ + K * B₀ * Q ^ n := by positivity |
| 544 | have hh := norm_solution_le_envelope hab (A p) (jet x₀ k p) (jetSource A f u k p) |
| 545 | rate W hμ hW hdW henergy hC hX hforce0 (hxj k (by omega) hku) hforce s |
| 546 | have hBpow : B₀ ≤ B₀ * Q ^ n := by |
| 547 | simpa only [mul_one] using mul_le_mul_of_nonneg_left (one_le_pow₀ hQ) hB |
| 548 | have hamp : C * (X + L * (F₀ + K * B₀ * Q ^ n)) ≤ B₀ * Q ^ (n + 1) := by |
| 549 | calc |
| 550 | _ = B₀ + (C * L * K) * (B₀ * Q ^ n) := by dsimp [B₀]; ring |
| 551 | _ ≤ B₀ * Q ^ n + (C * L * K) * (B₀ * Q ^ n) := add_le_add_left hBpow _ |
| 552 | _ = B₀ * Q ^ (n + 1) := by rw [pow_succ]; dsimp [Q]; ring |
| 553 | calc |
| 554 | ‖jet u k p s‖ = ‖solution hab (A p) (jet x₀ k p) (jetSource A f u k p) s‖ := by |
| 555 | rw [jet_solution_eq_solution hab hU A x₀ f hA hx₀ hf k hp] |
| 556 | _ ≤ C * (X + L * (F₀ + K * B₀ * Q ^ n)) * W s := hh |
| 557 | _ ≤ B₀ * Q ^ (n + 1) * W s := mul_le_mul_of_nonneg_right hamp (hW s).le |
| 558 | exact hbound l.length hlN l rfl hl t |
| 559 | |
| 560 | /-- Explicit polynomial bookkeeping. The nonnegative factor `w` appears only |
| 561 | once and is therefore preserved by every fixed differentiation order. -/ |
| 562 | theorem amplitude_le_polynomial {S K w L : ℝ} (hS : 1 ≤ S) (hK : 1 ≤ K) |
| 563 | (hw : 0 ≤ w) (hL : 0 ≤ L) (hLS : L ≤ K * S) (m N n : ℕ) : |
| 564 | K * (w * K * S ^ m + L * (w * K * S ^ m)) * |
| 565 | (1 + K * L * ((2 : ℝ) ^ N * (K * S ^ m))) ^ n ≤ |
| 566 | w * ((2 : ℝ) ^ (N + 1) * K ^ 3) ^ (n + 1) * S ^ ((m + 1) * (n + 1)) := by |
| 567 | let T := S ^ (m + 1) |
| 568 | let D := (2 : ℝ) ^ (N + 1) * K ^ 3 |
| 569 | let B := K * (w * K * S ^ m + L * (w * K * S ^ m)) |
| 570 | let Q := 1 + K * L * ((2 : ℝ) ^ N * (K * S ^ m)) |
| 571 | have hS0 : 0 ≤ S := zero_le_one.trans hS |
| 572 | have hK0 : 0 ≤ K := zero_le_one.trans hK |
| 573 | have hT : 1 ≤ T := one_le_pow₀ hS |
| 574 | have hT0 : 0 ≤ T := zero_le_one.trans hT |
| 575 | have hD0 : 0 ≤ D := by dsimp [D]; positivity |
| 576 | have hB0 : 0 ≤ B := by dsimp [B]; positivity |
| 577 | have hQ0 : 0 ≤ Q := by dsimp [Q]; positivity |
| 578 | have hKS : 1 ≤ K * S := one_le_mul_of_one_le_of_one_le hK hS |
| 579 | have htwopow : (2 : ℝ) ≤ (2 : ℝ) ^ (N + 1) := by |
| 580 | simpa only [pow_one] using pow_le_pow_right₀ (by norm_num : (1 : ℝ) ≤ 2) |
| 581 | (show 1 ≤ N + 1 by omega) |
| 582 | have hbase : B ≤ w * D * T := by |
| 583 | calc |
| 584 | B = (w * K ^ 2 * S ^ m) * (1 + L) := by dsimp [B]; ring |
| 585 | _ ≤ (w * K ^ 2 * S ^ m) * (2 * K * S) := |
| 586 | mul_le_mul_of_nonneg_left (by linarith) (by positivity) |
| 587 | _ = w * (2 * K ^ 3) * T := by dsimp [T]; rw [pow_succ]; ring |
| 588 | _ ≤ w * D * T := by dsimp [D]; gcongr |
| 589 | have hprod : 1 ≤ (2 : ℝ) ^ N * K ^ 3 * T := |
| 590 | one_le_mul_of_one_le_of_one_le |
| 591 | (one_le_mul_of_one_le_of_one_le (one_le_pow₀ (by norm_num : (1 : ℝ) ≤ 2)) |
| 592 | (one_le_pow₀ hK)) hT |
| 593 | have hstep : Q ≤ D * T := by |
| 594 | calc |
| 595 | Q ≤ 1 + K * (K * S) * ((2 : ℝ) ^ N * (K * S ^ m)) := by dsimp [Q]; gcongr |
| 596 | _ = 1 + (2 : ℝ) ^ N * K ^ 3 * T := by dsimp [T]; rw [pow_succ]; ring |
| 597 | _ ≤ 2 * ((2 : ℝ) ^ N * K ^ 3 * T) := by linarith |
| 598 | _ = D * T := by dsimp [D]; rw [pow_succ]; ring |
| 599 | calc |
| 600 | B * Q ^ n ≤ (w * D * T) * (D * T) ^ n := |
| 601 | mul_le_mul hbase (pow_le_pow_left₀ hQ0 hstep n) (pow_nonneg hQ0 _) (by positivity) |
| 602 | _ = w * D ^ (n + 1) * T ^ (n + 1) := by |
| 603 | rw [mul_pow] |
| 604 | simp only [pow_succ] |
| 605 | ring |
| 606 | _ = w * D ^ (n + 1) * S ^ ((m + 1) * (n + 1)) := by dsimp [T]; rw [pow_mul] |
| 607 | |
| 608 | /-- An error of order `1/S` on a slot of length at most `d*S` has a uniform |
| 609 | exponential factor, independent of `S`. -/ |
| 610 | theorem exp_error_le_of_inv_scale {μ S L c d : ℝ} (hS : 0 < S) |
| 611 | (hc : 0 ≤ c) (hμ : μ ≤ c / S) (hL : 0 ≤ L) (hslot : L ≤ d * S) : |
| 612 | Real.exp (μ * L) ≤ Real.exp (c * d) := by |
| 613 | apply Real.exp_le_exp.mpr |
| 614 | calc |
| 615 | μ * L ≤ (c / S) * L := mul_le_mul_of_nonneg_right hμ hL |
| 616 | _ ≤ (c / S) * (d * S) := mul_le_mul_of_nonneg_left hslot (div_nonneg hc hS.le) |
| 617 | _ = c * d := by field_simp |
| 618 | |
| 619 | /-- A concrete slot-polynomial estimate. `w` may be a small-scale power times |
| 620 | a slow-variable weight; no loss of its power occurs in the induction. -/ |
| 621 | theorem norm_jet_solution_le_polynomial (hab : a ≤ b) {U : Set P} (hU : IsOpen U) |
| 622 | (A : P → Coefficient a b H) (x₀ : P → H) (f : P → Curve a b H) |
| 623 | (hA : ContDiffOn ℝ ∞ A U) (hx₀ : ContDiffOn ℝ ∞ x₀ U) |
| 624 | (hf : ContDiffOn ℝ ∞ f U) {p : P} (hp : p ∈ U) |
| 625 | (rate W : ℝ → ℝ) {μ S K w : ℝ} (hμ : 0 ≤ μ) |
| 626 | (hW : ∀ t, 0 < W t) (hdW : ∀ t, HasDerivAt W (rate t * W t) t) |
| 627 | (henergy : ∀ t : Icc a b, ∀ x : H, ⟪x, A p t x⟫_ℝ ≤ (rate t + μ) * ‖x‖ ^ 2) |
| 628 | (hC : Real.exp (μ * (b - a)) ≤ K) (hS : 1 ≤ S) (hK : 1 ≤ K) (hw : 0 ≤ w) |
| 629 | (hslot : b - a ≤ K * S) (m N : ℕ) |
| 630 | (hAj : ∀ l : List P, l.length ≤ N → UnitWord l → ∀ t : Icc a b, |
| 631 | ‖jet A l p t‖ ≤ K * S ^ m) |
| 632 | (hxj : ∀ l : List P, l.length ≤ N → UnitWord l → ‖jet x₀ l p‖ ≤ w * K * S ^ m * W a) |
| 633 | (hfj : ∀ l : List P, l.length ≤ N → UnitWord l → ∀ t : Icc a b, |
| 634 | ‖jet f l p t‖ ≤ w * K * S ^ m * W t) |
| 635 | (l : List P) (hlN : l.length ≤ N) (hl : UnitWord l) (t : Icc a b) : |
| 636 | ‖jet (fun q => solution hab (A q) (x₀ q) (f q)) l p t‖ ≤ |
| 637 | w * ((2 : ℝ) ^ (N + 1) * K ^ 3) ^ (l.length + 1) * |
| 638 | S ^ ((m + 1) * (l.length + 1)) * W t := by |
| 639 | have hS0 : 0 ≤ S := zero_le_one.trans hS |
| 640 | have hK0 : 0 ≤ K := zero_le_one.trans hK |
| 641 | have hM : 0 ≤ K * S ^ m := by positivity |
| 642 | have hF : 0 ≤ w * K * S ^ m := by positivity |
| 643 | exact (norm_jet_solution_le hab hU A x₀ f hA hx₀ hf hp rate W hμ hW hdW henergy |
| 644 | hC hM hF hF N hAj hxj hfj l hlN hl t).trans |
| 645 | (mul_le_mul_of_nonneg_right |
| 646 | (amplitude_le_polynomial hS hK hw (sub_nonneg.mpr hab) hslot m N l.length) (hW t).le) |
| 647 | |
| 648 | end Weighted |
| 649 | |
| 650 | section Joint |
| 651 | |
| 652 | open ParametricODE SmoothPathFamily |
| 653 | |
| 654 | universe u |
| 655 | |
| 656 | variable {Q G : Type u} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 657 | [NormedAddCommGroup G] [NormedSpace ℝ G] {a b : ℝ} |
| 658 | |
| 659 | /-- Actual directional path jets evaluate to the corresponding jets of the |
| 660 | jointly supplied coefficient or source at each time. -/ |
| 661 | theorem jet_pathFamily_apply (U : Set Q) (V : Set ℝ) |
| 662 | (hU : IsOpen U) (hV : IsOpen V) (hI : Icc a b ⊆ V) |
| 663 | (F : Q × ℝ → G) (hF : ContDiffOn ℝ ∞ F (U ×ˢ V)) |
| 664 | {p : Q} (hp : p ∈ U) (l : List Q) (t : Icc a b) : |
| 665 | jet (pathFamily (a := a) (b := b) F) l p t = jet (fun q => F (q, t)) l p := by |
| 666 | have hpath := contDiffOn_pathFamily_of_joint U V hU hV hI F hF |
| 667 | have heq : EqOn (fun q => pathFamily (a := a) (b := b) F q t) (fun q => F (q, t)) U := by |
| 668 | intro q hq |
| 669 | exact pathFamily_apply F q |
| 670 | (slice_continuous (hF.continuousOn.mono (Set.prod_mono Subset.rfl hI)) hq) t |
| 671 | exact (jet_clm hU hpath (ContinuousMap.evalCLM ℝ t) l hp).symm.trans (jet_congr hU heq l hp) |
| 672 | |
| 673 | theorem norm_jet_pathFamily_le (U : Set Q) (V : Set ℝ) |
| 674 | (hU : IsOpen U) (hV : IsOpen V) (hI : Icc a b ⊆ V) |
| 675 | (F : Q × ℝ → G) (hF : ContDiffOn ℝ ∞ F (U ×ˢ V)) |
| 676 | {p : Q} (hp : p ∈ U) (l : List Q) (hl : UnitWord l) (t : Icc a b) : |
| 677 | ‖jet (pathFamily (a := a) (b := b) F) l p t‖ ≤ |
| 678 | ‖iteratedFDeriv ℝ l.length (fun q => F (q, t)) p‖ := by |
| 679 | rw [jet_pathFamily_apply U V hU hV hI F hF hp l t] |
| 680 | apply norm_jet_le_iteratedFDeriv hU _ l hp hl |
| 681 | exact hF.comp (contDiffOn_id.prodMk contDiffOn_const) (fun q hq => ⟨hq, hI t.2⟩) |
| 682 | |
| 683 | variable {H : Type u} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] |
| 684 | |
| 685 | /-- Jointly smooth physical inputs with polynomial bounds on their actual |
| 686 | Fréchet jets give polynomially bounded jets of the actual ODE solution. The |
| 687 | bound is for the full multilinear norm at each time, retaining the envelope. -/ |
| 688 | theorem norm_iteratedFDeriv_odeFamily_le_polynomial (hab : a ≤ b) |
| 689 | (U : Set Q) (V : Set ℝ) (hU : IsOpen U) (hV : IsOpen V) (hI : Icc a b ⊆ V) |
| 690 | (A : Q × ℝ → H →L[ℝ] H) (x₀ : Q → H) (f : Q × ℝ → H) |
| 691 | (hA : ContDiffOn ℝ ∞ A (U ×ˢ V)) (hx₀ : ContDiffOn ℝ ∞ x₀ U) |
| 692 | (hf : ContDiffOn ℝ ∞ f (U ×ˢ V)) {p : Q} (hp : p ∈ U) |
| 693 | (rate W : ℝ → ℝ) {μ S K w : ℝ} (hμ : 0 ≤ μ) |
| 694 | (hW : ∀ t, 0 < W t) (hdW : ∀ t, HasDerivAt W (rate t * W t) t) |
| 695 | (henergy : ∀ t : Icc a b, ∀ x : H, ⟪x, A (p, t) x⟫_ℝ ≤ (rate t + μ) * ‖x‖ ^ 2) |
| 696 | (hC : Real.exp (μ * (b - a)) ≤ K) (hS : 1 ≤ S) (hK : 1 ≤ K) (hw : 0 ≤ w) |
| 697 | (hslot : b - a ≤ K * S) (m N : ℕ) |
| 698 | (hAj : ∀ j : ℕ, j ≤ N → ∀ t : Icc a b, |
| 699 | ‖iteratedFDeriv ℝ j (fun q => A (q, t)) p‖ ≤ K * S ^ m) |
| 700 | (hxj : ∀ j : ℕ, j ≤ N → ‖iteratedFDeriv ℝ j x₀ p‖ ≤ w * K * S ^ m * W a) |
| 701 | (hfj : ∀ j : ℕ, j ≤ N → ∀ t : Icc a b, |
| 702 | ‖iteratedFDeriv ℝ j (fun q => f (q, t)) p‖ ≤ w * K * S ^ m * W t) |
| 703 | (n : ℕ) (hn : n ≤ N) (t : Icc a b) : |
| 704 | ‖iteratedFDeriv ℝ n (fun q => odeFamily hab A x₀ f q t) p‖ ≤ |
| 705 | w * ((2 : ℝ) ^ (N + 1) * K ^ 3) ^ (n + 1) * S ^ ((m + 1) * (n + 1)) * W t := by |
| 706 | let u : Q → Curve a b H := odeFamily hab A x₀ f |
| 707 | have hAc := contDiffOn_pathFamily_of_joint U V hU hV hI A hA |
| 708 | have hfc := contDiffOn_pathFamily_of_joint U V hU hV hI f hf |
| 709 | have hu : ContDiffOn ℝ ∞ u U := contDiffOn_odeFamily_of_joint hab U V hU hV hI A x₀ f hA hx₀ hf |
| 710 | have hslice : ContDiffOn ℝ ∞ (fun q => u q t) U := |
| 711 | (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) (E := Curve a b H) (F := H) |
| 712 | (ContinuousMap.evalCLM ℝ t)).comp_contDiffOn hu |
| 713 | have he : ∀ z : Icc a b, ∀ x : H, |
| 714 | ⟪x, pathFamily (a := a) (b := b) A p z x⟫_ℝ ≤ (rate z + μ) * ‖x‖ ^ 2 := by |
| 715 | intro z x |
| 716 | rw [pathFamily_apply A p |
| 717 | (slice_continuous (hA.continuousOn.mono (Set.prod_mono Subset.rfl hI)) hp)] |
| 718 | exact henergy z x |
| 719 | have hAw (l : List Q) (hlN : l.length ≤ N) (hl : UnitWord l) (z : Icc a b) : |
| 720 | ‖jet (pathFamily A) l p z‖ ≤ K * S ^ m := |
| 721 | (norm_jet_pathFamily_le U V hU hV hI A hA hp l hl z).trans (hAj l.length hlN z) |
| 722 | have hxw (l : List Q) (hlN : l.length ≤ N) (hl : UnitWord l) : |
| 723 | ‖jet x₀ l p‖ ≤ w * K * S ^ m * W a := |
| 724 | (norm_jet_le_iteratedFDeriv hU hx₀ l hp hl).trans (hxj l.length hlN) |
| 725 | have hfw (l : List Q) (hlN : l.length ≤ N) (hl : UnitWord l) (z : Icc a b) : |
| 726 | ‖jet (pathFamily f) l p z‖ ≤ w * K * S ^ m * W z := |
| 727 | (norm_jet_pathFamily_le U V hU hV hI f hf hp l hl z).trans (hfj l.length hlN z) |
| 728 | have hS0 : 0 ≤ S := zero_le_one.trans hS |
| 729 | have hK0 : 0 ≤ K := zero_le_one.trans hK |
| 730 | have hWt : 0 ≤ W t := (hW t).le |
| 731 | apply multilinear_norm_le_of_unit _ (by positivity) |
| 732 | intro v hv |
| 733 | let l := (List.ofFn v).reverse |
| 734 | have hl : UnitWord l := by |
| 735 | intro z hz |
| 736 | obtain ⟨i, rfl⟩ := List.mem_ofFn.mp (List.mem_reverse.mp hz) |
| 737 | exact hv i |
| 738 | have hlen : l.length = n := by simp only [l, List.length_reverse, List.length_ofFn] |
| 739 | have hbound := norm_jet_solution_le_polynomial hab hU (pathFamily A) x₀ (pathFamily f) |
| 740 | hAc hx₀ hfc hp rate W hμ hW hdW he hC hS hK hw hslot m N hAw hxw hfw l |
| 741 | (hlen.trans_le hn) hl t |
| 742 | have heval : jet (fun q => u q t) l p = jet u l p t := |
| 743 | jet_clm hU hu (ContinuousMap.evalCLM ℝ t) l hp |
| 744 | have hderiv : jet (fun q => u q t) l p = iteratedFDeriv ℝ n (fun q => u q t) p v := |
| 745 | jet_ofFn_reverse hU hslice n v hp |
| 746 | rw [← hderiv, heval] |
| 747 | simp only [hlen] at hbound |
| 748 | exact hbound |
| 749 | |
| 750 | end Joint |
| 751 | |
| 752 | end |
| 753 | |
| 754 | end NavierStokes.WeightedODEJets |