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.ResidualCalculus |
| 2 | import NavierStokes.ResidualRegularity |
| 3 | import NavierStokes.SpatialCurl |
| 4 | import NavierStokes.JetBounds |
| 5 | import NavierStokes.Flatness |
| 6 | import Mathlib.Analysis.Calculus.FDeriv.Prod |
| 7 | |
| 8 | /-! |
| 9 | # Stability of the actual Navier--Stokes residual under flat perturbations |
| 10 | |
| 11 | Flatness and power growth below are bounds on norms of actual iterated |
| 12 | Fréchet derivatives. The differential and bilinear closure lemmas are proved |
| 13 | from the derivative identities and Leibniz estimates, not assumed. |
| 14 | -/ |
| 15 | |
| 16 | noncomputable section |
| 17 | |
| 18 | namespace NavierStokes.ResidualStability |
| 19 | |
| 20 | open Set Filter Function |
| 21 | open scoped Topology BigOperators ContDiff |
| 22 | |
| 23 | section Scalar |
| 24 | |
| 25 | variable {X : Type*} {l : Filter X} {q f g : X → ℝ} |
| 26 | |
| 27 | theorem scalarFlat_mono (hf : Flatness.PowerFlat l q f) |
| 28 | (hgf : ∀ᶠ x in l, |g x| ≤ |f x|) : Flatness.PowerFlat l q g := by |
| 29 | intro N |
| 30 | obtain ⟨C, hC, hb⟩ := hf N |
| 31 | exact ⟨C, hC, by filter_upwards [hgf, hb] with x h₁ h₂; exact h₁.trans h₂⟩ |
| 32 | |
| 33 | theorem scalarFlat_const_mul (c : ℝ) (hf : Flatness.PowerFlat l q f) : |
| 34 | Flatness.PowerFlat l q (fun x => c * f x) := by |
| 35 | intro N |
| 36 | obtain ⟨C, hC, hb⟩ := hf N |
| 37 | refine ⟨|c| * C, mul_nonneg (abs_nonneg c) hC, ?_⟩ |
| 38 | filter_upwards [hb] with x hx |
| 39 | simpa only [abs_mul, mul_assoc] using mul_le_mul_of_nonneg_left hx (abs_nonneg c) |
| 40 | |
| 41 | theorem scalarFlat_zero : Flatness.PowerFlat l q (fun _ => 0) := by |
| 42 | intro N |
| 43 | exact ⟨0, le_rfl, Filter.Eventually.of_forall (fun _ => by simp)⟩ |
| 44 | |
| 45 | theorem scalarFlat_sum {ι : Type*} (s : Finset ι) (f : ι → X → ℝ) |
| 46 | (hf : ∀ i ∈ s, Flatness.PowerFlat l q (f i)) : |
| 47 | Flatness.PowerFlat l q (fun x => ∑ i ∈ s, f i x) := by |
| 48 | classical |
| 49 | induction s using Finset.induction_on with |
| 50 | | empty => simpa using (scalarFlat_zero (l := l) (q := q)) |
| 51 | | @insert i s hi ih => |
| 52 | simpa only [Finset.sum_insert hi] using |
| 53 | (hf i (Finset.mem_insert_self _ _)).add |
| 54 | (ih (fun j hj => hf j (Finset.mem_insert_of_mem hj))) |
| 55 | |
| 56 | end Scalar |
| 57 | |
| 58 | section Jets |
| 59 | |
| 60 | variable {D E F G : Type*} |
| 61 | [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 62 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 63 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 64 | [NormedAddCommGroup G] [NormedSpace ℝ G] |
| 65 | |
| 66 | /-- Every actual derivative decays faster than each fixed natural power. -/ |
| 67 | def AllJetsFlat (l : Filter D) (q : D → ℝ) (f : D → E) : Prop := |
| 68 | ∀ m : ℕ, Flatness.PowerFlat l q (fun x => ‖iteratedFDeriv ℝ m f x‖) |
| 69 | |
| 70 | /-- Each actual derivative has a fixed inverse-power bound. The power and |
| 71 | constant may depend on the derivative order, but not on the point. -/ |
| 72 | def AllJetsGrowth (l : Filter D) (q : D → ℝ) (f : D → E) : Prop := |
| 73 | ∀ m : ℕ, ∃ K : ℕ, ∃ C : ℝ, 0 ≤ C ∧ |
| 74 | ∀ᶠ x in l, ‖iteratedFDeriv ℝ m f x‖ ≤ C / |q x| ^ K |
| 75 | |
| 76 | variable {l : Filter D} {q : D → ℝ} {f : D → E} {g : D → F} {U : Set D} |
| 77 | |
| 78 | theorem AllJetsFlat.fderiv (hf : AllJetsFlat l q f) : AllJetsFlat l q (fderiv ℝ f) := by |
| 79 | intro m |
| 80 | simpa only [norm_iteratedFDeriv_fderiv] using hf (m + 1) |
| 81 | |
| 82 | theorem AllJetsGrowth.fderiv (hf : AllJetsGrowth l q f) : |
| 83 | AllJetsGrowth l q (fderiv ℝ f) := by |
| 84 | intro m |
| 85 | simpa only [norm_iteratedFDeriv_fderiv] using hf (m + 1) |
| 86 | |
| 87 | theorem AllJetsFlat.growth (hf : AllJetsFlat l q f) : AllJetsGrowth l q f := by |
| 88 | intro m |
| 89 | obtain ⟨C, hC, hb⟩ := hf m 0 |
| 90 | exact ⟨0, C, hC, by simpa only [abs_norm, pow_zero, mul_one, div_one] using hb⟩ |
| 91 | |
| 92 | theorem iteratedFDeriv_eqOn {f g : D → E} (hU : IsOpen U) (hfg : EqOn f g U) |
| 93 | (m : ℕ) : EqOn (iteratedFDeriv ℝ m f) (iteratedFDeriv ℝ m g) U := by |
| 94 | intro x hx |
| 95 | have h : f =ᶠ[𝓝 x] g := by |
| 96 | filter_upwards [hU.mem_nhds hx] with y hy |
| 97 | exact hfg hy |
| 98 | have h' : f =ᶠ[𝓝[univ] x] g := by simpa only [nhdsWithin_univ] using h |
| 99 | simpa only [iteratedFDerivWithin_univ] using |
| 100 | h'.iteratedFDerivWithin_eq h.self_of_nhds m |
| 101 | |
| 102 | theorem AllJetsFlat.congr_on {g : D → E} (hf : AllJetsFlat l q f) |
| 103 | (hU : IsOpen U) (hl : ∀ᶠ x in l, x ∈ U) (hfg : EqOn f g U) : |
| 104 | AllJetsFlat l q g := by |
| 105 | intro m |
| 106 | apply scalarFlat_mono (hf m) |
| 107 | filter_upwards [hl] with x hx |
| 108 | rw [iteratedFDeriv_eqOn hU hfg m hx] |
| 109 | |
| 110 | theorem AllJetsGrowth.congr_on {g : D → E} (hf : AllJetsGrowth l q f) |
| 111 | (hU : IsOpen U) (hl : ∀ᶠ x in l, x ∈ U) (hfg : EqOn f g U) : |
| 112 | AllJetsGrowth l q g := by |
| 113 | intro m |
| 114 | obtain ⟨K, C, hC, hb⟩ := hf m |
| 115 | refine ⟨K, C, hC, ?_⟩ |
| 116 | filter_upwards [hl, hb] with x hx hbound |
| 117 | rwa [iteratedFDeriv_eqOn hU hfg m hx] at hbound |
| 118 | |
| 119 | theorem norm_jet_linear_map (L : E →L[ℝ] F) (hU : IsOpen U) |
| 120 | (hf : ContDiffOn ℝ ∞ f U) {x : D} (hx : x ∈ U) (m : ℕ) : |
| 121 | ‖iteratedFDeriv ℝ m (fun y => L (f y)) x‖ ≤ ‖L‖ * ‖iteratedFDeriv ℝ m f x‖ := by |
| 122 | change ‖iteratedFDeriv ℝ m (L ∘ f) x‖ ≤ _ |
| 123 | rw [L.iteratedFDeriv_comp_left (hf.contDiffAt (hU.mem_nhds hx)) |
| 124 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl m)] |
| 125 | exact L.norm_compContinuousMultilinearMap_le _ |
| 126 | |
| 127 | theorem AllJetsFlat.linear_map (hf : AllJetsFlat l q f) (L : E →L[ℝ] F) |
| 128 | (hU : IsOpen U) (hl : ∀ᶠ x in l, x ∈ U) (hs : ContDiffOn ℝ ∞ f U) : |
| 129 | AllJetsFlat l q (fun x => L (f x)) := by |
| 130 | intro m |
| 131 | apply scalarFlat_mono (scalarFlat_const_mul ‖L‖ (hf m)) |
| 132 | filter_upwards [hl] with x hx |
| 133 | rw [abs_norm] |
| 134 | exact (norm_jet_linear_map L hU hs hx m).trans (le_abs_self _) |
| 135 | |
| 136 | theorem AllJetsGrowth.linear_map (hf : AllJetsGrowth l q f) (L : E →L[ℝ] F) |
| 137 | (hU : IsOpen U) (hl : ∀ᶠ x in l, x ∈ U) (hs : ContDiffOn ℝ ∞ f U) : |
| 138 | AllJetsGrowth l q (fun x => L (f x)) := by |
| 139 | intro m |
| 140 | obtain ⟨K, C, hC, hb⟩ := hf m |
| 141 | refine ⟨K, ‖L‖ * C, mul_nonneg (norm_nonneg _) hC, ?_⟩ |
| 142 | filter_upwards [hl, hb] with x hx hbound |
| 143 | calc |
| 144 | _ ≤ ‖L‖ * ‖iteratedFDeriv ℝ m f x‖ := norm_jet_linear_map L hU hs hx m |
| 145 | _ ≤ ‖L‖ * (C / |q x| ^ K) := mul_le_mul_of_nonneg_left hbound (norm_nonneg _) |
| 146 | _ = (‖L‖ * C) / |q x| ^ K := by ring |
| 147 | |
| 148 | theorem AllJetsFlat.add {g : D → E} (hf : AllJetsFlat l q f) (hg : AllJetsFlat l q g) |
| 149 | (hU : IsOpen U) (hl : ∀ᶠ x in l, x ∈ U) |
| 150 | (hsf : ContDiffOn ℝ ∞ f U) (hsg : ContDiffOn ℝ ∞ g U) : |
| 151 | AllJetsFlat l q (fun x => f x + g x) := by |
| 152 | intro m |
| 153 | apply scalarFlat_mono ((hf m).add (hg m)) |
| 154 | filter_upwards [hl] with x hx |
| 155 | have hfm := (hsf.contDiffAt (hU.mem_nhds hx)).of_le |
| 156 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl m) |
| 157 | have hgm := (hsg.contDiffAt (hU.mem_nhds hx)).of_le |
| 158 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl m) |
| 159 | rw [abs_norm, fun_iteratedFDeriv_add_apply hfm hgm] |
| 160 | exact (norm_add_le _ _).trans (le_abs_self _) |
| 161 | |
| 162 | theorem AllJetsFlat.neg (hf : AllJetsFlat l q f) |
| 163 | (hU : IsOpen U) (hl : ∀ᶠ x in l, x ∈ U) (hs : ContDiffOn ℝ ∞ f U) : |
| 164 | AllJetsFlat l q (fun x => -f x) := by |
| 165 | simpa using hf.linear_map (-ContinuousLinearMap.id ℝ E) hU hl hs |
| 166 | |
| 167 | theorem AllJetsFlat.sub {g : D → E} (hf : AllJetsFlat l q f) (hg : AllJetsFlat l q g) |
| 168 | (hU : IsOpen U) (hl : ∀ᶠ x in l, x ∈ U) |
| 169 | (hsf : ContDiffOn ℝ ∞ f U) (hsg : ContDiffOn ℝ ∞ g U) : |
| 170 | AllJetsFlat l q (fun x => f x - g x) := by |
| 171 | simpa only [sub_eq_add_neg] using hf.add (hg.neg hU hl hsg) hU hl hsf hsg.neg |
| 172 | |
| 173 | theorem AllJetsFlat.zero : AllJetsFlat l q (fun _ : D => (0 : E)) := by |
| 174 | intro m |
| 175 | simpa only [iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero] using |
| 176 | (scalarFlat_zero (l := l) (q := q)) |
| 177 | |
| 178 | theorem AllJetsFlat.sum {ι : Type*} (s : Finset ι) (f : ι → D → E) |
| 179 | (hU : IsOpen U) (hl : ∀ᶠ x in l, x ∈ U) |
| 180 | (hs : ∀ i ∈ s, ContDiffOn ℝ ∞ (f i) U) (hf : ∀ i ∈ s, AllJetsFlat l q (f i)) : |
| 181 | AllJetsFlat l q (fun x => ∑ i ∈ s, f i x) := by |
| 182 | classical |
| 183 | induction s using Finset.induction_on with |
| 184 | | empty => simpa using (AllJetsFlat.zero (l := l) (q := q) (E := E)) |
| 185 | | @insert i s hi ih => |
| 186 | simpa only [Finset.sum_insert hi] using |
| 187 | (hf i (Finset.mem_insert_self _ _)).add |
| 188 | (ih (fun j hj => hs j (Finset.mem_insert_of_mem hj)) |
| 189 | (fun j hj => hf j (Finset.mem_insert_of_mem hj))) hU hl |
| 190 | (hs i (Finset.mem_insert_self _ _)) |
| 191 | (ContDiffOn.sum (fun j hj => hs j (Finset.mem_insert_of_mem hj))) |
| 192 | |
| 193 | /-- Leibniz plus a fixed power loss in one factor gives flatness of the actual |
| 194 | bilinear product. The bound uses only jets through the requested order. -/ |
| 195 | theorem AllJetsFlat.bilinear_growth_left (hg : AllJetsFlat l q g) |
| 196 | (hf : AllJetsGrowth l q f) (L : E →L[ℝ] F →L[ℝ] G) |
| 197 | (hU : IsOpen U) (hl : ∀ᶠ x in l, x ∈ U) (hq : ∀ᶠ x in l, q x ≠ 0) |
| 198 | (hsf : ContDiffOn ℝ ∞ f U) (hsg : ContDiffOn ℝ ∞ g U) : |
| 199 | AllJetsFlat l q (fun x => L (f x) (g x)) := by |
| 200 | intro m |
| 201 | have hterm (i : ℕ) : Flatness.PowerFlat l q (fun x => (m.choose i : ℝ) * |
| 202 | ‖iteratedFDeriv ℝ i f x‖ * ‖iteratedFDeriv ℝ (m - i) g x‖) := by |
| 203 | obtain ⟨K, C, hC, hb⟩ := hf i |
| 204 | have hprod := (hg (m - i)).mul_of_power_bound |
| 205 | (g := fun x => ‖iteratedFDeriv ℝ i f x‖) hq K hC |
| 206 | (by simpa only [abs_norm] using hb) |
| 207 | have hscale := scalarFlat_const_mul (m.choose i : ℝ) hprod |
| 208 | convert! hscale using 1 |
| 209 | ext x |
| 210 | ring |
| 211 | apply scalarFlat_mono (scalarFlat_const_mul ‖L‖ |
| 212 | (scalarFlat_sum (Finset.range (m + 1)) _ (fun i _ => hterm i))) |
| 213 | filter_upwards [hl] with x hx |
| 214 | rw [abs_norm] |
| 215 | exact (JetBounds.norm_iteratedFDeriv_bilinear_le_on L hU hsf hsg hx |
| 216 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl m)).trans (le_abs_self _) |
| 217 | |
| 218 | theorem AllJetsFlat.bilinear_growth_right (hf : AllJetsFlat l q f) |
| 219 | (hg : AllJetsGrowth l q g) (L : E →L[ℝ] F →L[ℝ] G) |
| 220 | (hU : IsOpen U) (hl : ∀ᶠ x in l, x ∈ U) (hq : ∀ᶠ x in l, q x ≠ 0) |
| 221 | (hsf : ContDiffOn ℝ ∞ f U) (hsg : ContDiffOn ℝ ∞ g U) : |
| 222 | AllJetsFlat l q (fun x => L (f x) (g x)) := |
| 223 | hf.bilinear_growth_left hg L.flip hU hl hq hsg hsf |
| 224 | |
| 225 | end Jets |
| 226 | |
| 227 | section PhysicalOperators |
| 228 | |
| 229 | open ProblemStatement |
| 230 | |
| 231 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 232 | |
| 233 | /-- Restrict a full spacetime derivative to the spatial directions. -/ |
| 234 | def spaceRestriction (V : Type*) [NormedAddCommGroup V] [NormedSpace ℝ V] : |
| 235 | (SpaceTime →L[ℝ] V) →L[ℝ] (Space →L[ℝ] V) := |
| 236 | (ContinuousLinearMap.compL ℝ Space SpaceTime V).flip (ContinuousLinearMap.inr ℝ ℝ Space) |
| 237 | |
| 238 | theorem space_fderiv_eq_full {f : SpaceTime → V} {z : SpaceTime} |
| 239 | (hf : DifferentiableAt ℝ f z) : |
| 240 | fderiv ℝ (fun y : Space => f (z.1, y)) z.2 = spaceRestriction V (fderiv ℝ f z) := |
| 241 | (hf.hasFDerivAt.comp z.2 (hasFDerivAt_prodMk_right z.1 z.2)).fderiv |
| 242 | |
| 243 | theorem temporalDerivative_eq_full {f : VelocityField} {z : SpaceTime} |
| 244 | (hf : DifferentiableAt ℝ f z) : |
| 245 | temporalDerivative f z.1 z.2 = fderiv ℝ f z (1, 0) := by |
| 246 | have h : fderiv ℝ (fun t : ℝ => f (t, z.2)) z.1 = |
| 247 | (fderiv ℝ f z).comp (ContinuousLinearMap.inl ℝ ℝ Space) := |
| 248 | (hf.hasFDerivAt.comp z.1 (hasFDerivAt_prodMk_left (𝕜 := ℝ) z.1 z.2)).fderiv |
| 249 | exact congrArg (fun L : ℝ →L[ℝ] Space => L 1) h |
| 250 | |
| 251 | variable {l : Filter SpaceTime} {q : SpaceTime → ℝ} {U : Set SpaceTime} |
| 252 | |
| 253 | theorem AllJetsFlat.space_fderiv {f : SpaceTime → V} (hf : AllJetsFlat l q f) |
| 254 | (hU : IsOpen U) (hl : ∀ᶠ z in l, z ∈ U) (hs : ContDiffOn ℝ ∞ f U) : |
| 255 | AllJetsFlat l q (fun z => _root_.fderiv ℝ (fun y : Space => f (z.1, y)) z.2) := by |
| 256 | have hfull : ContDiffOn ℝ ∞ (_root_.fderiv ℝ f) U := hs.fderiv_of_isOpen hU (by simp) |
| 257 | apply (hf.fderiv.linear_map (spaceRestriction V) hU hl hfull).congr_on hU hl |
| 258 | intro z hz |
| 259 | exact (space_fderiv_eq_full ((hs.contDiffAt (hU.mem_nhds hz)).differentiableAt (by simp))).symm |
| 260 | |
| 261 | theorem AllJetsGrowth.space_fderiv {f : SpaceTime → V} (hf : AllJetsGrowth l q f) |
| 262 | (hU : IsOpen U) (hl : ∀ᶠ z in l, z ∈ U) (hs : ContDiffOn ℝ ∞ f U) : |
| 263 | AllJetsGrowth l q (fun z => _root_.fderiv ℝ (fun y : Space => f (z.1, y)) z.2) := by |
| 264 | have hfull : ContDiffOn ℝ ∞ (_root_.fderiv ℝ f) U := hs.fderiv_of_isOpen hU (by simp) |
| 265 | apply (hf.fderiv.linear_map (spaceRestriction V) hU hl hfull).congr_on hU hl |
| 266 | intro z hz |
| 267 | exact (space_fderiv_eq_full ((hs.contDiffAt (hU.mem_nhds hz)).differentiableAt (by simp))).symm |
| 268 | |
| 269 | theorem AllJetsFlat.temporalDerivative {f : VelocityField} (hf : AllJetsFlat l q f) |
| 270 | (hU : IsOpen U) (hl : ∀ᶠ z in l, z ∈ U) (hs : ContDiffOn ℝ ∞ f U) : |
| 271 | AllJetsFlat l q (fun z => temporalDerivative f z.1 z.2) := by |
| 272 | have hfull : ContDiffOn ℝ ∞ (_root_.fderiv ℝ f) U := hs.fderiv_of_isOpen hU (by simp) |
| 273 | apply (hf.fderiv.linear_map (ContinuousLinearMap.apply ℝ Space (1, 0)) hU hl hfull).congr_on hU hl |
| 274 | intro z hz |
| 275 | exact (temporalDerivative_eq_full |
| 276 | ((hs.contDiffAt (hU.mem_nhds hz)).differentiableAt (by simp))).symm |
| 277 | |
| 278 | theorem AllJetsFlat.pressureGradient {p : PressureField} (hp : AllJetsFlat l q p) |
| 279 | (hU : IsOpen U) (hl : ∀ᶠ z in l, z ∈ U) (hs : ContDiffOn ℝ ∞ p U) : |
| 280 | AllJetsFlat l q (fun z => pressureGradient p z.1 z.2) := by |
| 281 | have hD := ResidualRegularity.contDiffOn_space_fderiv hU hs (m := ∞) (by simp) |
| 282 | have hflatD := hp.space_fderiv hU hl hs |
| 283 | unfold ProblemStatement.pressureGradient |
| 284 | apply AllJetsFlat.sum Finset.univ _ hU hl |
| 285 | · intro i _ |
| 286 | exact (hD.clm_apply contDiffOn_const).smul contDiffOn_const |
| 287 | · intro i _ |
| 288 | have hi := hflatD.linear_map (ContinuousLinearMap.apply ℝ ℝ (coordinateVector i)) hU hl hD |
| 289 | exact hi.linear_map ((ContinuousLinearMap.id ℝ ℝ).smulRight (coordinateVector i)) |
| 290 | hU hl (hD.clm_apply contDiffOn_const) |
| 291 | |
| 292 | theorem AllJetsFlat.spatialLaplacian {f : VelocityField} (hf : AllJetsFlat l q f) |
| 293 | (hU : IsOpen U) (hl : ∀ᶠ z in l, z ∈ U) (hs : ContDiffOn ℝ ∞ f U) : |
| 294 | AllJetsFlat l q (fun z => spatialLaplacian f z.1 z.2) := by |
| 295 | have hD := ResidualRegularity.contDiffOn_spatialDerivative hU hs |
| 296 | have hflatD := hf.space_fderiv hU hl hs |
| 297 | unfold ProblemStatement.spatialLaplacian |
| 298 | apply AllJetsFlat.sum Finset.univ _ hU hl |
| 299 | · intro i _ |
| 300 | exact (ResidualRegularity.contDiffOn_space_fderiv hU |
| 301 | (hD.clm_apply contDiffOn_const) (m := ∞) (by simp)).clm_apply contDiffOn_const |
| 302 | · intro i _ |
| 303 | have hi := hflatD.linear_map (ContinuousLinearMap.apply ℝ Space (coordinateVector i)) hU hl hD |
| 304 | have his : ContDiffOn ℝ ∞ |
| 305 | (fun z => spatialDerivative f z.1 z.2 (coordinateVector i)) U := |
| 306 | hD.clm_apply contDiffOn_const |
| 307 | exact (hi.space_fderiv hU hl his).linear_map |
| 308 | (ContinuousLinearMap.apply ℝ Space (coordinateVector i)) hU hl |
| 309 | (ResidualRegularity.contDiffOn_space_fderiv hU his (m := ∞) (by simp)) |
| 310 | |
| 311 | theorem spatialSlice_differentiable {f : SpaceTime → V} |
| 312 | (hU : IsOpen U) (hf : ContDiffOn ℝ ∞ f U) {z : SpaceTime} (hz : z ∈ U) : |
| 313 | DifferentiableAt ℝ (fun y : Space => f (z.1, y)) z.2 := |
| 314 | ((hf.contDiffAt (hU.mem_nhds hz)).differentiableAt (by simp)).comp z.2 |
| 315 | (hasFDerivAt_prodMk_right z.1 z.2).differentiableAt |
| 316 | |
| 317 | theorem timeSlice_differentiable {f : SpaceTime → V} |
| 318 | (hU : IsOpen U) (hf : ContDiffOn ℝ ∞ f U) {z : SpaceTime} (hz : z ∈ U) : |
| 319 | DifferentiableAt ℝ (fun t : ℝ => f (t, z.2)) z.1 := |
| 320 | ((hf.contDiffAt (hU.mem_nhds hz)).differentiableAt (by simp)).comp z.1 |
| 321 | (hasFDerivAt_prodMk_left z.1 z.2).differentiableAt |
| 322 | |
| 323 | /-- Local version of the Laplacian additivity used in `ResidualCalculus`. |
| 324 | Only smoothness on the open domain is needed, not on an entire spatial slice. -/ |
| 325 | theorem spatialLaplacian_add_on {u w : VelocityField} (hU : IsOpen U) |
| 326 | (hu : ContDiffOn ℝ ∞ u U) (hw : ContDiffOn ℝ ∞ w U) |
| 327 | {z : SpaceTime} (hz : z ∈ U) : |
| 328 | spatialLaplacian (fun y => u y + w y) z.1 z.2 = |
| 329 | spatialLaplacian u z.1 z.2 + spatialLaplacian w z.1 z.2 := by |
| 330 | unfold spatialLaplacian |
| 331 | rw [← Finset.sum_add_distrib] |
| 332 | apply Finset.sum_congr rfl |
| 333 | intro i _ |
| 334 | have heq : (fun y : Space => spatialDerivative (fun z => u z + w z) z.1 y (coordinateVector i)) |
| 335 | =ᶠ[𝓝 z.2] (fun y => spatialDerivative u z.1 y (coordinateVector i) + |
| 336 | spatialDerivative w z.1 y (coordinateVector i)) := by |
| 337 | have hmem : ∀ᶠ y : Space in 𝓝 z.2, (z.1, y) ∈ U := |
| 338 | (continuousAt_const.prodMk continuousAt_id) (hU.mem_nhds hz) |
| 339 | filter_upwards [hmem] with y hy |
| 340 | rw [ResidualCalculus.spatialDerivative_add u w z.1 y |
| 341 | (spatialSlice_differentiable hU hu hy) (spatialSlice_differentiable hU hw hy)] |
| 342 | rfl |
| 343 | have hdu : ContDiffOn ℝ ∞ |
| 344 | (fun y => spatialDerivative u y.1 y.2 (coordinateVector i)) U := |
| 345 | (ResidualRegularity.contDiffOn_spatialDerivative hU hu).clm_apply contDiffOn_const |
| 346 | have hdw : ContDiffOn ℝ ∞ |
| 347 | (fun y => spatialDerivative w y.1 y.2 (coordinateVector i)) U := |
| 348 | (ResidualRegularity.contDiffOn_spatialDerivative hU hw).clm_apply contDiffOn_const |
| 349 | rw [heq.fderiv_eq, fderiv_fun_add |
| 350 | (spatialSlice_differentiable hU hdu hz) (spatialSlice_differentiable hU hdw hz)] |
| 351 | rfl |
| 352 | |
| 353 | /-- The exact perturbation identity now holds on an arbitrary open spacetime |
| 354 | domain, using the concrete first-order identities from `ResidualCalculus`. -/ |
| 355 | theorem residual_add_sub_on {u w : VelocityField} {p r : PressureField} |
| 356 | (hU : IsOpen U) (hu : ContDiffOn ℝ ∞ u U) (hw : ContDiffOn ℝ ∞ w U) |
| 357 | (hp : ContDiffOn ℝ ∞ p U) (hr : ContDiffOn ℝ ∞ r U) |
| 358 | {z : SpaceTime} (hz : z ∈ U) : |
| 359 | navierStokesResidual (fun y => u y + w y) (fun y => p y + r y) z.1 z.2 - |
| 360 | navierStokesResidual u p z.1 z.2 = |
| 361 | temporalDerivative w z.1 z.2 - spatialLaplacian w z.1 z.2 + pressureGradient r z.1 z.2 + |
| 362 | spatialDerivative u z.1 z.2 (w z) + spatialDerivative w z.1 z.2 (u z) + |
| 363 | spatialDerivative w z.1 z.2 (w z) := by |
| 364 | unfold navierStokesResidual |
| 365 | rw [ResidualCalculus.temporalDerivative_add u w z.1 z.2 |
| 366 | (timeSlice_differentiable hU hu hz) (timeSlice_differentiable hU hw hz), |
| 367 | ResidualCalculus.advection_add u w z.1 z.2 |
| 368 | (spatialSlice_differentiable hU hu hz) (spatialSlice_differentiable hU hw hz), |
| 369 | spatialLaplacian_add_on hU hu hw hz, |
| 370 | ResidualCalculus.pressureGradient_add p r z.1 z.2 |
| 371 | (spatialSlice_differentiable hU hp hz) (spatialSlice_differentiable hU hr hz)] |
| 372 | unfold advection |
| 373 | abel |
| 374 | |
| 375 | /-- The difference of the two actual viscosity-one Navier--Stokes residuals. -/ |
| 376 | def residualDifference (u w : VelocityField) (p r : PressureField) : VelocityField := |
| 377 | fun z => navierStokesResidual (fun y => u y + w y) (fun y => p y + r y) z.1 z.2 - |
| 378 | navierStokesResidual u p z.1 z.2 |
| 379 | |
| 380 | /-- Flat perturbations preserve all-jet residual flatness relative to any |
| 381 | smooth background with fixed-power jet growth. No residual estimate is an |
| 382 | input. The linear terms use at most two extra derivatives of the perturbation; |
| 383 | the transport products use at most one extra derivative. -/ |
| 384 | theorem allJetsFlat_residualDifference {u w : VelocityField} {p r : PressureField} |
| 385 | (hU : IsOpen U) (hl : ∀ᶠ z in l, z ∈ U) (hq : ∀ᶠ z in l, q z ≠ 0) |
| 386 | (hu : ContDiffOn ℝ ∞ u U) (hw : ContDiffOn ℝ ∞ w U) |
| 387 | (hp : ContDiffOn ℝ ∞ p U) (hr : ContDiffOn ℝ ∞ r U) |
| 388 | (hgrowth : AllJetsGrowth l q u) (hwflat : AllJetsFlat l q w) |
| 389 | (hrflat : AllJetsFlat l q r) : AllJetsFlat l q (residualDifference u w p r) := by |
| 390 | let L : (Space →L[ℝ] Space) →L[ℝ] Space →L[ℝ] Space := |
| 391 | (ContinuousLinearMap.apply ℝ Space).flip |
| 392 | have hDu := ResidualRegularity.contDiffOn_spatialDerivative hU hu |
| 393 | have hDw := ResidualRegularity.contDiffOn_spatialDerivative hU hw |
| 394 | have hDug := hgrowth.space_fderiv hU hl hu |
| 395 | have hDwf := hwflat.space_fderiv hU hl hw |
| 396 | have hcross₁ : AllJetsFlat l q (fun z => spatialDerivative u z.1 z.2 (w z)) := |
| 397 | hwflat.bilinear_growth_left hDug L hU hl hq hDu hw |
| 398 | have hcross₂ : AllJetsFlat l q (fun z => spatialDerivative w z.1 z.2 (u z)) := |
| 399 | hDwf.bilinear_growth_right hgrowth L hU hl hq hDw hu |
| 400 | have hself : AllJetsFlat l q (fun z => spatialDerivative w z.1 z.2 (w z)) := |
| 401 | hwflat.bilinear_growth_left hDwf.growth L hU hl hq hDw hw |
| 402 | have htime := ResidualRegularity.contDiffOn_temporalDerivative hU hw |
| 403 | have hlap := ResidualRegularity.contDiffOn_spatialLaplacian hU hw |
| 404 | have hgrad := ResidualRegularity.contDiffOn_pressureGradient hU hr |
| 405 | have hlinear := ((hwflat.temporalDerivative hU hl hw).sub |
| 406 | (hwflat.spatialLaplacian hU hl hw) hU hl htime hlap).add |
| 407 | (hrflat.pressureGradient hU hl hr) hU hl (htime.sub hlap) hgrad |
| 408 | have hfirst := hlinear.add hcross₁ hU hl ((htime.sub hlap).add hgrad) (hDu.clm_apply hw) |
| 409 | have hsecond := hfirst.add hcross₂ hU hl |
| 410 | (((htime.sub hlap).add hgrad).add (hDu.clm_apply hw)) (hDw.clm_apply hu) |
| 411 | have hall := hsecond.add hself hU hl |
| 412 | ((((htime.sub hlap).add hgrad).add (hDu.clm_apply hw)).add (hDw.clm_apply hu)) |
| 413 | (hDw.clm_apply hw) |
| 414 | apply hall.congr_on hU hl |
| 415 | intro z hz |
| 416 | exact (residual_add_sub_on hU hu hw hp hr hz).symm |
| 417 | |
| 418 | end PhysicalOperators |
| 419 | |
| 420 | section QuantitativeJetAlgebra |
| 421 | |
| 422 | variable {D E F G : Type*} |
| 423 | [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 424 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 425 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 426 | [NormedAddCommGroup G] [NormedSpace ℝ G] |
| 427 | |
| 428 | theorem norm_jet_add_le {U : Set D} {f g : D → E} (hU : IsOpen U) |
| 429 | (hf : ContDiffOn ℝ ∞ f U) (hg : ContDiffOn ℝ ∞ g U) {x : D} (hx : x ∈ U) (m : ℕ) : |
| 430 | ‖iteratedFDeriv ℝ m (fun y => f y + g y) x‖ ≤ |
| 431 | ‖iteratedFDeriv ℝ m f x‖ + ‖iteratedFDeriv ℝ m g x‖ := by |
| 432 | rw [fun_iteratedFDeriv_add_apply |
| 433 | ((hf.contDiffAt (hU.mem_nhds hx)).of_le |
| 434 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl m)) |
| 435 | ((hg.contDiffAt (hU.mem_nhds hx)).of_le |
| 436 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl m))] |
| 437 | exact norm_add_le _ _ |
| 438 | |
| 439 | theorem norm_jet_neg (f : D → E) (x : D) (m : ℕ) : |
| 440 | ‖iteratedFDeriv ℝ m (fun y => -f y) x‖ = ‖iteratedFDeriv ℝ m f x‖ := by |
| 441 | change ‖iteratedFDeriv ℝ m (-f) x‖ = _ |
| 442 | rw [iteratedFDeriv_neg_apply, norm_neg] |
| 443 | |
| 444 | theorem norm_jet_sub_le {U : Set D} {f g : D → E} (hU : IsOpen U) |
| 445 | (hf : ContDiffOn ℝ ∞ f U) (hg : ContDiffOn ℝ ∞ g U) {x : D} (hx : x ∈ U) (m : ℕ) : |
| 446 | ‖iteratedFDeriv ℝ m (fun y => f y - g y) x‖ ≤ |
| 447 | ‖iteratedFDeriv ℝ m f x‖ + ‖iteratedFDeriv ℝ m g x‖ := by |
| 448 | simpa only [sub_eq_add_neg, norm_jet_neg] using norm_jet_add_le hU hf hg.neg hx m |
| 449 | |
| 450 | theorem norm_jet_linear_map_fderiv (L : (D →L[ℝ] E) →L[ℝ] F) |
| 451 | {U : Set D} {f : D → E} (hU : IsOpen U) (hf : ContDiffOn ℝ ∞ f U) |
| 452 | {x : D} (hx : x ∈ U) (m : ℕ) : |
| 453 | ‖iteratedFDeriv ℝ m (fun y => L (fderiv ℝ f y)) x‖ ≤ |
| 454 | ‖L‖ * ‖iteratedFDeriv ℝ (m + 1) f x‖ := by |
| 455 | have h := norm_jet_linear_map L hU (hf.fderiv_of_isOpen hU (by simp)) hx m |
| 456 | simpa only [norm_iteratedFDeriv_fderiv] using h |
| 457 | |
| 458 | /-- The pointwise finite-order form of the Leibniz estimate. The majorants |
| 459 | need only bound jets at this point; they may depend on the point and stage. -/ |
| 460 | theorem norm_jet_bilinear_bound (L : E →L[ℝ] F →L[ℝ] G) {U : Set D} |
| 461 | {f : D → E} {g : D → F} (hU : IsOpen U) |
| 462 | (hf : ContDiffOn ℝ ∞ f U) (hg : ContDiffOn ℝ ∞ g U) |
| 463 | {x : D} (hx : x ∈ U) (m : ℕ) {A B : ℝ} |
| 464 | (hA : ∀ k : ℕ, k ≤ m → ‖iteratedFDeriv ℝ k f x‖ ≤ A) |
| 465 | (hB : ∀ k : ℕ, k ≤ m → ‖iteratedFDeriv ℝ k g x‖ ≤ B) : |
| 466 | ‖iteratedFDeriv ℝ m (fun y => L (f y) (g y)) x‖ ≤ ‖L‖ * (2 : ℝ) ^ m * A * B := by |
| 467 | have hA0 : 0 ≤ A := (norm_nonneg _).trans (hA 0 (Nat.zero_le _)) |
| 468 | have hsum : (∑ i ∈ Finset.range (m + 1), (m.choose i : ℝ) * |
| 469 | ‖iteratedFDeriv ℝ i f x‖ * ‖iteratedFDeriv ℝ (m - i) g x‖) ≤ |
| 470 | (2 : ℝ) ^ m * A * B := by |
| 471 | calc |
| 472 | _ ≤ ∑ i ∈ Finset.range (m + 1), (m.choose i : ℝ) * A * B := by |
| 473 | apply Finset.sum_le_sum |
| 474 | intro i hi |
| 475 | exact mul_le_mul |
| 476 | (mul_le_mul_of_nonneg_left (hA i (Nat.le_of_lt_succ (Finset.mem_range.mp hi))) |
| 477 | (Nat.cast_nonneg _)) |
| 478 | (hB (m - i) (Nat.sub_le _ _)) (norm_nonneg _) |
| 479 | (mul_nonneg (Nat.cast_nonneg _) hA0) |
| 480 | _ = (2 : ℝ) ^ m * A * B := by |
| 481 | rw [← Finset.sum_mul, ← Finset.sum_mul] |
| 482 | congr 2 |
| 483 | exact_mod_cast Nat.sum_range_choose m |
| 484 | exact (JetBounds.norm_iteratedFDeriv_bilinear_le_on L hU hf hg hx |
| 485 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl m)).trans |
| 486 | ((mul_le_mul_of_nonneg_left hsum (norm_nonneg L)).trans_eq (by ring)) |
| 487 | |
| 488 | end QuantitativeJetAlgebra |
| 489 | |
| 490 | -- The norm of a linear functional on the second-derivative space has three |
| 491 | -- nested continuous-linear-map types. |
| 492 | |
| 493 | section FullJetExpression |
| 494 | |
| 495 | open ProblemStatement |
| 496 | |
| 497 | private local instance : NormedAddCommGroup (SpaceTime →L[ℝ] SpaceTime →L[ℝ] Space) := |
| 498 | inferInstance |
| 499 | private local instance : NormedSpace ℝ (SpaceTime →L[ℝ] SpaceTime →L[ℝ] Space) := |
| 500 | inferInstance |
| 501 | |
| 502 | theorem norm_iteratedFDeriv_spatialCurl_le {U : Set SpaceTime} {A : VelocityField} |
| 503 | (hU : IsOpen U) (hA : ContDiffOn ℝ ∞ A U) {z : SpaceTime} (hz : z ∈ U) (m : ℕ) : |
| 504 | ‖iteratedFDeriv ℝ m (SpatialCurl.spatialCurl A) z‖ ≤ |
| 505 | ‖SpatialCurl.curlLinear.comp (spaceRestriction Space)‖ * |
| 506 | ‖iteratedFDeriv ℝ (m + 1) A z‖ := by |
| 507 | have heq : EqOn (SpatialCurl.spatialCurl A) |
| 508 | (fun y => (SpatialCurl.curlLinear.comp (spaceRestriction Space)) (fderiv ℝ A y)) U := by |
| 509 | intro y hy |
| 510 | unfold SpatialCurl.spatialCurl SpatialCurl.curl |
| 511 | rw [space_fderiv_eq_full ((hA.contDiffAt (hU.mem_nhds hy)).differentiableAt (by simp))] |
| 512 | rfl |
| 513 | rw [iteratedFDeriv_eqOn hU heq m hz] |
| 514 | exact norm_jet_linear_map_fderiv _ hU hA hz m |
| 515 | |
| 516 | def timeJet : (SpaceTime →L[ℝ] Space) →L[ℝ] Space := |
| 517 | ContinuousLinearMap.apply ℝ Space (1, 0) |
| 518 | |
| 519 | def laplaceJet : (SpaceTime →L[ℝ] SpaceTime →L[ℝ] Space) →L[ℝ] Space := |
| 520 | ∑ i : Fin 3, |
| 521 | (ContinuousLinearMap.apply ℝ Space (0, coordinateVector i)).comp |
| 522 | (ContinuousLinearMap.apply ℝ (SpaceTime →L[ℝ] Space) (0, coordinateVector i)) |
| 523 | |
| 524 | def pressureJet : (SpaceTime →L[ℝ] ℝ) →L[ℝ] Space := |
| 525 | ∑ i : Fin 3, |
| 526 | ((ContinuousLinearMap.id ℝ ℝ).smulRight (coordinateVector i)).comp |
| 527 | (ContinuousLinearMap.apply ℝ ℝ (0, coordinateVector i)) |
| 528 | |
| 529 | @[simp] theorem laplaceJet_apply (L : SpaceTime →L[ℝ] SpaceTime →L[ℝ] Space) : |
| 530 | laplaceJet L = ∑ i : Fin 3, L (0, coordinateVector i) (0, coordinateVector i) := by |
| 531 | simp [laplaceJet] |
| 532 | |
| 533 | @[simp] theorem pressureJet_apply (L : SpaceTime →L[ℝ] ℝ) : |
| 534 | pressureJet L = ∑ i : Fin 3, L (0, coordinateVector i) • coordinateVector i := by |
| 535 | simp [pressureJet] |
| 536 | |
| 537 | theorem spatialLaplacian_eq_full {U : Set SpaceTime} {w : VelocityField} |
| 538 | (hU : IsOpen U) (hw : ContDiffOn ℝ ∞ w U) {z : SpaceTime} (hz : z ∈ U) : |
| 539 | spatialLaplacian w z.1 z.2 = laplaceJet (fderiv ℝ (fderiv ℝ w) z) := by |
| 540 | rw [laplaceJet_apply] |
| 541 | unfold spatialLaplacian |
| 542 | apply Finset.sum_congr rfl |
| 543 | intro i _ |
| 544 | have heq : (fun y : SpaceTime => spatialDerivative w y.1 y.2 (coordinateVector i)) |
| 545 | =ᶠ[𝓝 z] (fun y => fderiv ℝ w y (0, coordinateVector i)) := by |
| 546 | filter_upwards [hU.mem_nhds hz] with y hy |
| 547 | unfold spatialDerivative |
| 548 | rw [space_fderiv_eq_full ((hw.contDiffAt (hU.mem_nhds hy)).differentiableAt (by simp))] |
| 549 | rfl |
| 550 | have hD : ContDiffOn ℝ ∞ (fderiv ℝ w) U := hw.fderiv_of_isOpen hU (by simp) |
| 551 | have hfirst : HasFDerivAt (fun y : SpaceTime => fderiv ℝ w y (0, coordinateVector i)) |
| 552 | ((ContinuousLinearMap.apply ℝ Space (0, coordinateVector i)).comp |
| 553 | (fderiv ℝ (fderiv ℝ w) z)) z := by |
| 554 | let ev : (SpaceTime →L[ℝ] Space) →L[ℝ] Space := |
| 555 | ContinuousLinearMap.apply ℝ Space (0, coordinateVector i) |
| 556 | change HasFDerivAt (ev ∘ fderiv ℝ w) (ev.comp (fderiv ℝ (fderiv ℝ w) z)) z |
| 557 | exact ev.hasFDerivAt.comp z |
| 558 | ((hD.contDiffAt (hU.mem_nhds hz)).differentiableAt (by simp)).hasFDerivAt |
| 559 | have hslice := hfirst.comp z.2 (hasFDerivAt_prodMk_right (𝕜 := ℝ) z.1 z.2) |
| 560 | rw [ResidualRegularity.space_fderiv_congr heq] |
| 561 | simpa only [Function.comp_def, ContinuousLinearMap.comp_apply, |
| 562 | ContinuousLinearMap.apply_apply, ContinuousLinearMap.inr_apply] using |
| 563 | congrArg (fun L : Space →L[ℝ] Space => L (coordinateVector i)) hslice.fderiv |
| 564 | |
| 565 | theorem pressureGradient_eq_full {U : Set SpaceTime} {r : PressureField} |
| 566 | (hU : IsOpen U) (hr : ContDiffOn ℝ ∞ r U) {z : SpaceTime} (hz : z ∈ U) : |
| 567 | pressureGradient r z.1 z.2 = pressureJet (fderiv ℝ r z) := by |
| 568 | rw [pressureJet_apply] |
| 569 | unfold pressureGradient |
| 570 | rw [space_fderiv_eq_full ((hr.contDiffAt (hU.mem_nhds hz)).differentiableAt (by simp))] |
| 571 | rfl |
| 572 | |
| 573 | def residualJetExpression (u w : VelocityField) (r : PressureField) : VelocityField := |
| 574 | fun z => timeJet (fderiv ℝ w z) - laplaceJet (fderiv ℝ (fderiv ℝ w) z) + |
| 575 | pressureJet (fderiv ℝ r z) + |
| 576 | spaceRestriction Space (fderiv ℝ u z) (w z) + |
| 577 | spaceRestriction Space (fderiv ℝ w z) (u z) + |
| 578 | spaceRestriction Space (fderiv ℝ w z) (w z) |
| 579 | |
| 580 | theorem residualDifference_eq_jetExpression {U : Set SpaceTime} |
| 581 | {u w : VelocityField} {p r : PressureField} (hU : IsOpen U) |
| 582 | (hu : ContDiffOn ℝ ∞ u U) (hw : ContDiffOn ℝ ∞ w U) |
| 583 | (hp : ContDiffOn ℝ ∞ p U) (hr : ContDiffOn ℝ ∞ r U) : |
| 584 | EqOn (residualDifference u w p r) (residualJetExpression u w r) U := by |
| 585 | intro z hz |
| 586 | unfold residualDifference residualJetExpression |
| 587 | rw [residual_add_sub_on hU hu hw hp hr hz, |
| 588 | temporalDerivative_eq_full ((hw.contDiffAt (hU.mem_nhds hz)).differentiableAt (by simp)), |
| 589 | spatialLaplacian_eq_full hU hw hz, pressureGradient_eq_full hU hr hz] |
| 590 | unfold spatialDerivative |
| 591 | rw [space_fderiv_eq_full ((hu.contDiffAt (hU.mem_nhds hz)).differentiableAt (by simp)), |
| 592 | space_fderiv_eq_full ((hw.contDiffAt (hU.mem_nhds hz)).differentiableAt (by simp))] |
| 593 | rfl |
| 594 | |
| 595 | /-- Quantitative fixed-order stability, with only pointwise hypotheses on the |
| 596 | actual jets. The background needs `m+1` derivatives, the velocity perturbation |
| 597 | `m+2`, and the pressure perturbation `m+1`. The three majorants may depend on |
| 598 | the point and on a truncation stage. Every displayed operator norm is fixed |
| 599 | independently of the fields, stage, and physical scale. -/ |
| 600 | theorem residualDifference_jet_bound {U : Set SpaceTime} |
| 601 | {u w : VelocityField} {p r : PressureField} (hU : IsOpen U) |
| 602 | (hu : ContDiffOn ℝ ∞ u U) (hw : ContDiffOn ℝ ∞ w U) |
| 603 | (hp : ContDiffOn ℝ ∞ p U) (hr : ContDiffOn ℝ ∞ r U) |
| 604 | {z : SpaceTime} (hz : z ∈ U) (m : ℕ) {A W P : ℝ} |
| 605 | (huBound : ∀ k : ℕ, k ≤ m + 1 → ‖iteratedFDeriv ℝ k u z‖ ≤ A) |
| 606 | (hwBound : ∀ k : ℕ, k ≤ m + 2 → ‖iteratedFDeriv ℝ k w z‖ ≤ W) |
| 607 | (hrBound : ∀ k : ℕ, k ≤ m + 1 → ‖iteratedFDeriv ℝ k r z‖ ≤ P) : |
| 608 | ‖iteratedFDeriv ℝ m (residualDifference u w p r) z‖ ≤ |
| 609 | ‖timeJet‖ * W + ‖laplaceJet‖ * W + ‖pressureJet‖ * P + |
| 610 | ‖spaceRestriction Space‖ * (2 : ℝ) ^ m * A * W + |
| 611 | ‖spaceRestriction Space‖ * (2 : ℝ) ^ m * W * A + |
| 612 | ‖spaceRestriction Space‖ * (2 : ℝ) ^ m * W * W := by |
| 613 | let T : VelocityField := fun y => timeJet (fderiv ℝ w y) |
| 614 | let L : VelocityField := fun y => laplaceJet (fderiv ℝ (fderiv ℝ w) y) |
| 615 | let R : VelocityField := fun y => pressureJet (fderiv ℝ r y) |
| 616 | let C₁ : VelocityField := fun y => spaceRestriction Space (fderiv ℝ u y) (w y) |
| 617 | let C₂ : VelocityField := fun y => spaceRestriction Space (fderiv ℝ w y) (u y) |
| 618 | let C₃ : VelocityField := fun y => spaceRestriction Space (fderiv ℝ w y) (w y) |
| 619 | have hDu : ContDiffOn ℝ ∞ (fderiv ℝ u) U := hu.fderiv_of_isOpen hU (by simp) |
| 620 | have hDw : ContDiffOn ℝ ∞ (fderiv ℝ w) U := hw.fderiv_of_isOpen hU (by simp) |
| 621 | have hDDw : ContDiffOn ℝ ∞ (fderiv ℝ (fderiv ℝ w)) U := |
| 622 | hDw.fderiv_of_isOpen hU (by simp) |
| 623 | have hDr : ContDiffOn ℝ ∞ (fderiv ℝ r) U := hr.fderiv_of_isOpen hU (by simp) |
| 624 | have hTs : ContDiffOn ℝ ∞ T U := hDw.continuousLinearMap_comp timeJet |
| 625 | have hLs : ContDiffOn ℝ ∞ L U := hDDw.continuousLinearMap_comp laplaceJet |
| 626 | have hRs : ContDiffOn ℝ ∞ R U := hDr.continuousLinearMap_comp pressureJet |
| 627 | have hC₁s : ContDiffOn ℝ ∞ C₁ U := |
| 628 | (hDu.continuousLinearMap_comp (spaceRestriction Space)).clm_apply hw |
| 629 | have hC₂s : ContDiffOn ℝ ∞ C₂ U := |
| 630 | (hDw.continuousLinearMap_comp (spaceRestriction Space)).clm_apply hu |
| 631 | have hC₃s : ContDiffOn ℝ ∞ C₃ U := |
| 632 | (hDw.continuousLinearMap_comp (spaceRestriction Space)).clm_apply hw |
| 633 | have hT : ‖iteratedFDeriv ℝ m T z‖ ≤ ‖timeJet‖ * W := by |
| 634 | apply (norm_jet_linear_map timeJet hU hDw hz m).trans |
| 635 | apply mul_le_mul_of_nonneg_left _ (norm_nonneg _) |
| 636 | rw [norm_iteratedFDeriv_fderiv] |
| 637 | exact hwBound (m + 1) (by omega) |
| 638 | have hL : ‖iteratedFDeriv ℝ m L z‖ ≤ ‖laplaceJet‖ * W := by |
| 639 | apply (norm_jet_linear_map laplaceJet hU hDDw hz m).trans |
| 640 | apply mul_le_mul_of_nonneg_left _ (norm_nonneg _) |
| 641 | rw [norm_iteratedFDeriv_fderiv, norm_iteratedFDeriv_fderiv] |
| 642 | exact hwBound (m + 1 + 1) (by omega) |
| 643 | have hR : ‖iteratedFDeriv ℝ m R z‖ ≤ ‖pressureJet‖ * P := by |
| 644 | apply (norm_jet_linear_map pressureJet hU hDr hz m).trans |
| 645 | apply mul_le_mul_of_nonneg_left _ (norm_nonneg _) |
| 646 | rw [norm_iteratedFDeriv_fderiv] |
| 647 | exact hrBound (m + 1) le_rfl |
| 648 | have hu₀ : ∀ k : ℕ, k ≤ m → ‖iteratedFDeriv ℝ k u z‖ ≤ A := |
| 649 | fun k hk => huBound k (by omega) |
| 650 | have hw₀ : ∀ k : ℕ, k ≤ m → ‖iteratedFDeriv ℝ k w z‖ ≤ W := |
| 651 | fun k hk => hwBound k (by omega) |
| 652 | have hu₁ : ∀ k : ℕ, k ≤ m → ‖iteratedFDeriv ℝ k (fderiv ℝ u) z‖ ≤ A := by |
| 653 | intro k hk |
| 654 | rw [norm_iteratedFDeriv_fderiv] |
| 655 | exact huBound (k + 1) (by omega) |
| 656 | have hw₁ : ∀ k : ℕ, k ≤ m → ‖iteratedFDeriv ℝ k (fderiv ℝ w) z‖ ≤ W := by |
| 657 | intro k hk |
| 658 | rw [norm_iteratedFDeriv_fderiv] |
| 659 | exact hwBound (k + 1) (by omega) |
| 660 | have hC₁ : ‖iteratedFDeriv ℝ m C₁ z‖ ≤ |
| 661 | ‖spaceRestriction Space‖ * (2 : ℝ) ^ m * A * W := |
| 662 | norm_jet_bilinear_bound (spaceRestriction Space) hU hDu hw hz m hu₁ hw₀ |
| 663 | have hC₂ : ‖iteratedFDeriv ℝ m C₂ z‖ ≤ |
| 664 | ‖spaceRestriction Space‖ * (2 : ℝ) ^ m * W * A := |
| 665 | norm_jet_bilinear_bound (spaceRestriction Space) hU hDw hu hz m hw₁ hu₀ |
| 666 | have hC₃ : ‖iteratedFDeriv ℝ m C₃ z‖ ≤ |
| 667 | ‖spaceRestriction Space‖ * (2 : ℝ) ^ m * W * W := |
| 668 | norm_jet_bilinear_bound (spaceRestriction Space) hU hDw hw hz m hw₁ hw₀ |
| 669 | have hTL := (norm_jet_sub_le hU hTs hLs hz m).trans (add_le_add hT hL) |
| 670 | have hTLR := (norm_jet_add_le hU (hTs.sub hLs) hRs hz m).trans (add_le_add hTL hR) |
| 671 | have h₁ := (norm_jet_add_le hU ((hTs.sub hLs).add hRs) hC₁s hz m).trans |
| 672 | (add_le_add hTLR hC₁) |
| 673 | have h₂ := (norm_jet_add_le hU (((hTs.sub hLs).add hRs).add hC₁s) hC₂s hz m).trans |
| 674 | (add_le_add h₁ hC₂) |
| 675 | have h₃ := (norm_jet_add_le hU ((((hTs.sub hLs).add hRs).add hC₁s).add hC₂s) hC₃s hz m).trans |
| 676 | (add_le_add h₂ hC₃) |
| 677 | rw [iteratedFDeriv_eqOn hU (residualDifference_eq_jetExpression hU hu hw hp hr) m hz] |
| 678 | exact h₃ |
| 679 | |
| 680 | end FullJetExpression |
| 681 | |
| 682 | section ScaleDomain |
| 683 | |
| 684 | open ProblemStatement |
| 685 | |
| 686 | /-- Approach `q = 0` through positive scales while staying in the domain. -/ |
| 687 | def scaleFilter (U : Set SpaceTime) (q : SpaceTime → ℝ) : Filter SpaceTime := |
| 688 | Filter.principal U ⊓ Filter.comap q (𝓝[>] (0 : ℝ)) |
| 689 | |
| 690 | theorem eventually_mem_scaleFilter (U : Set SpaceTime) (q : SpaceTime → ℝ) : |
| 691 | ∀ᶠ z in scaleFilter U q, z ∈ U := |
| 692 | (show ∀ᶠ z in Filter.principal U, z ∈ U from by simp).filter_mono inf_le_left |
| 693 | |
| 694 | theorem tendsto_scaleFilter (U : Set SpaceTime) (q : SpaceTime → ℝ) : |
| 695 | Tendsto q (scaleFilter U q) (𝓝[>] (0 : ℝ)) := |
| 696 | tendsto_comap.mono_left inf_le_right |
| 697 | |
| 698 | /-- Domain/scale form of the actual nonlinear stability theorem. All |
| 699 | asymptotics concern the displayed norms of actual physical derivatives. -/ |
| 700 | theorem residualDifference_flat_at_scale {U : Set SpaceTime} {q : SpaceTime → ℝ} |
| 701 | {u w : VelocityField} {p r : PressureField} (hU : IsOpen U) |
| 702 | (hq : ∀ z ∈ U, 0 < q z) |
| 703 | (hu : ContDiffOn ℝ ∞ u U) (hw : ContDiffOn ℝ ∞ w U) |
| 704 | (hp : ContDiffOn ℝ ∞ p U) (hr : ContDiffOn ℝ ∞ r U) |
| 705 | (hgrowth : AllJetsGrowth (scaleFilter U q) q u) |
| 706 | (hwflat : AllJetsFlat (scaleFilter U q) q w) |
| 707 | (hrflat : AllJetsFlat (scaleFilter U q) q r) : |
| 708 | AllJetsFlat (scaleFilter U q) q (residualDifference u w p r) := by |
| 709 | apply allJetsFlat_residualDifference hU (eventually_mem_scaleFilter U q) _ |
| 710 | hu hw hp hr hgrowth hwflat hrflat |
| 711 | filter_upwards [eventually_mem_scaleFilter U q] with z hz |
| 712 | exact ne_of_gt (hq z hz) |
| 713 | |
| 714 | end ScaleDomain |
| 715 | |
| 716 | end NavierStokes.ResidualStability |