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.ParticularWaveAssembly |
| 2 | import NavierStokes.WaveEnvelopeTransport |
| 3 | import NavierStokes.LabelSumBounds |
| 4 | |
| 5 | /-! |
| 6 | # Whole-lift bounds from the actual native copies |
| 7 | |
| 8 | The copy meeting a point is allowed to depend on both the band and the point. |
| 9 | Closed, locally finite support cells give a genuine zero germ on their |
| 10 | complement, including all derivatives. Constants in the native estimates |
| 11 | are chosen before the band, copy, and evaluation point. |
| 12 | |
| 13 | The Gaussian error is assembled as the sum of cutoff-derivative terms plus |
| 14 | one uncovered-source term. In particular, the source is never summed once |
| 15 | for every inactive copy. |
| 16 | -/ |
| 17 | |
| 18 | noncomputable section |
| 19 | |
| 20 | namespace NavierStokes.PeriodizedWaveBounds |
| 21 | |
| 22 | open Set Function Filter WeightedClasses |
| 23 | open scoped Topology ContDiff BigOperators |
| 24 | |
| 25 | section LocalGluing |
| 26 | |
| 27 | variable {D E : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 28 | [NormedAddCommGroup E] [NormedSpace ℝ E] {I : Type*} |
| 29 | |
| 30 | /-- Closed support cells, with a unique cell at a point. Neither a finite |
| 31 | index set nor one cell covering the whole strip is required. -/ |
| 32 | structure Cells (D : Type*) [TopologicalSpace D] (I : Type*) where |
| 33 | carrier : ℕ → I → Set D |
| 34 | closed : ∀ n i, IsClosed (carrier n i) |
| 35 | locallyFinite : ∀ n, LocallyFinite (carrier n) |
| 36 | unique : ∀ n i j x, x ∈ carrier n i → x ∈ carrier n j → i = j |
| 37 | |
| 38 | /-- Native estimates on the actual functions. Smoothness is local at the |
| 39 | closed support cell; no continuation of the uncut function around the torus |
| 40 | is imposed. The weight is evaluated at the actual global point. -/ |
| 41 | structure LocalJets (s : StripData D) (w : ℕ → D → ℝ) (α : ℝ) |
| 42 | (K : ℕ → I → Set D) (f : ℕ → I → D → E) : Prop where |
| 43 | smooth : ∀ n i x, x ∈ s.domain → x ∈ K n i → ContDiffAt ℝ ∞ (f n i) x |
| 44 | bounds : ∀ m : ℕ, ∃ C : ℝ, 0 ≤ C ∧ ∃ p : ℕ, |
| 45 | ∀ n i x, x ∈ s.domain → x ∈ K n i → ∀ j : ℕ, j ≤ m → |
| 46 | ‖iteratedFDeriv ℝ j (f n i) x‖ ≤ majorant s w α C p n x |
| 47 | |
| 48 | theorem jets_eq_of_germ {f g : D → E} {x : D} (h : f =ᶠ[𝓝 x] g) (m : ℕ) : |
| 49 | iteratedFDeriv ℝ m f x = iteratedFDeriv ℝ m g x := by |
| 50 | have hw : f =ᶠ[𝓝[univ] x] g := by simpa only [nhdsWithin_univ] using h |
| 51 | simpa only [iteratedFDerivWithin_univ] using hw.iteratedFDerivWithin_eq h.self_of_nhds m |
| 52 | |
| 53 | /-- Gluing uses equality on neighborhoods, rather than equality of values or |
| 54 | pointwise derivative limits. -/ |
| 55 | theorem memClass_of_local_germs {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} |
| 56 | {K : ℕ → I → Set D} {f : ℕ → I → D → E} {F : ℕ → D → E} |
| 57 | (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) (hlocal : LocalJets s w α K f) |
| 58 | (hcover : ∀ n x, x ∈ s.domain → |
| 59 | (∃ i, x ∈ K n i ∧ F n =ᶠ[𝓝 x] f n i) ∨ F n =ᶠ[𝓝 x] fun _ => 0) : |
| 60 | MemClass s w α F := by |
| 61 | refine ⟨hw, ?_, ?_⟩ |
| 62 | · intro n |
| 63 | apply s.isOpen_domain.contDiffOn_iff.mpr |
| 64 | intro x hx |
| 65 | rcases hcover n x hx with ⟨i, hxi, hg⟩ | hg |
| 66 | · exact (hlocal.smooth n i x hx hxi).congr_of_eventuallyEq hg |
| 67 | · exact contDiffAt_const.congr_of_eventuallyEq hg |
| 68 | · intro m |
| 69 | obtain ⟨C, hC, p, hB⟩ := hlocal.bounds m |
| 70 | refine ⟨C, hC, p, ?_⟩ |
| 71 | intro n x hx j hj |
| 72 | rcases hcover n x hx with ⟨i, hxi, hg⟩ | hg |
| 73 | · rw [jets_eq_of_germ hg j] |
| 74 | exact hB n i x hx hxi j hj |
| 75 | · simp only [jets_eq_of_germ hg j, iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero] |
| 76 | exact majorant_nonneg s w α hC p n x (hw n x hx) |
| 77 | |
| 78 | /-- The actual locally finite copy sum. Local finiteness is proved from |
| 79 | support cells below; it is not encoded by replacing the sum with a selector. -/ |
| 80 | noncomputable def copySum (f : I → D → E) (x : D) : E := ∑' i, f i x |
| 81 | |
| 82 | omit [NormedSpace ℝ D] [NormedSpace ℝ E] in |
| 83 | theorem zero_germ_of_support {K : Set D} (hK : IsClosed K) {f : D → E} |
| 84 | (hf : support f ⊆ K) {x : D} (hx : x ∉ K) : f =ᶠ[𝓝 x] fun _ => 0 := by |
| 85 | filter_upwards [hK.isOpen_compl.mem_nhds hx] with y hy |
| 86 | by_contra hne |
| 87 | exact hy (hf hne) |
| 88 | |
| 89 | omit [NormedSpace ℝ D] [NormedSpace ℝ E] in |
| 90 | theorem copySum_germ (K : Cells D I) (n : ℕ) (f : I → D → E) |
| 91 | (hs : ∀ i, support (f i) ⊆ K.carrier n i) {i : I} {x : D} |
| 92 | (hx : x ∈ K.carrier n i) : copySum f =ᶠ[𝓝 x] f i := by |
| 93 | classical |
| 94 | have hn := (K.locallyFinite n).iInter_compl_mem_nhds (K.closed n) x |
| 95 | filter_upwards [hn] with y hy |
| 96 | apply tsum_eq_single i |
| 97 | intro j hji |
| 98 | have hxj : x ∉ K.carrier n j := fun hxj => hji (K.unique n j i x hxj hx) |
| 99 | by_contra hne |
| 100 | exact (mem_iInter₂.mp hy j hxj) (hs j hne) |
| 101 | |
| 102 | omit [NormedSpace ℝ D] [NormedSpace ℝ E] in |
| 103 | theorem copySum_zero_germ (K : Cells D I) (n : ℕ) (f : I → D → E) |
| 104 | (hs : ∀ i, support (f i) ⊆ K.carrier n i) {x : D} |
| 105 | (hx : ∀ i, x ∉ K.carrier n i) : copySum f =ᶠ[𝓝 x] fun _ => 0 := by |
| 106 | classical |
| 107 | have hn := (K.locallyFinite n).iInter_compl_mem_nhds (K.closed n) x |
| 108 | filter_upwards [hn] with y hy |
| 109 | have hz : ∀ i, f i y = 0 := by |
| 110 | intro i |
| 111 | by_contra hne |
| 112 | exact (mem_iInter₂.mp hy i (hx i)) (hs i hne) |
| 113 | simp only [copySum, hz, tsum_zero] |
| 114 | |
| 115 | omit [NormedSpace ℝ D] [NormedSpace ℝ E] in |
| 116 | theorem copySum_germ_cover (K : Cells D I) (n : ℕ) (f : I → D → E) |
| 117 | (hs : ∀ i, support (f i) ⊆ K.carrier n i) (x : D) : |
| 118 | (∃ i, x ∈ K.carrier n i ∧ copySum f =ᶠ[𝓝 x] f i) ∨ |
| 119 | copySum f =ᶠ[𝓝 x] fun _ => 0 := by |
| 120 | classical |
| 121 | by_cases h : ∃ i, x ∈ K.carrier n i |
| 122 | · obtain ⟨i, hi⟩ := h |
| 123 | exact Or.inl ⟨i, hi, copySum_germ K n f hs hi⟩ |
| 124 | · exact Or.inr (copySum_zero_germ K n f hs (not_exists.mp h)) |
| 125 | |
| 126 | theorem copySum_memClass {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} |
| 127 | (K : Cells D I) {f : ℕ → I → D → E} |
| 128 | (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) |
| 129 | (hs : ∀ n i, support (f n i) ⊆ K.carrier n i) |
| 130 | (hj : LocalJets s w α K.carrier f) : |
| 131 | MemClass s w α (fun n => copySum (f n)) := |
| 132 | memClass_of_local_germs hw hj (fun n x _ => copySum_germ_cover K n (f n) (hs n) x) |
| 133 | |
| 134 | omit [NormedSpace ℝ D] [NormedSpace ℝ E] in |
| 135 | theorem copySum_eventually_finite (K : Cells D I) (n : ℕ) (f : I → D → E) |
| 136 | (hs : ∀ i, support (f i) ⊆ K.carrier n i) (x : D) : |
| 137 | ∃ J : Finset I, copySum f =ᶠ[𝓝 x] fun y => ∑ i ∈ J, f i y := by |
| 138 | classical |
| 139 | obtain ⟨U, hU, hfin⟩ := K.locallyFinite n x |
| 140 | refine ⟨hfin.toFinset, ?_⟩ |
| 141 | filter_upwards [hU] with y hy |
| 142 | apply tsum_eq_sum |
| 143 | intro i hi |
| 144 | by_contra hne |
| 145 | apply hi |
| 146 | exact hfin.mem_toFinset.mpr ⟨y, hs i hne, hy⟩ |
| 147 | |
| 148 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] [NormedSpace ℝ E] in |
| 149 | theorem copySum_translate (f : I → D → E) (T : D → D) (e : I ≃ I) |
| 150 | (h : ∀ i x, f (e i) (T x) = f i x) (x : D) : |
| 151 | copySum f (T x) = copySum f x := by |
| 152 | unfold copySum |
| 153 | calc |
| 154 | _ = ∑' i, f (e i) (T x) := (e.tsum_eq (fun i => f i (T x))).symm |
| 155 | _ = _ := tsum_congr (fun i => h i x) |
| 156 | |
| 157 | /-- Only the primitive source is estimated on the uncovered set. This is |
| 158 | useful when coverage gives a small tail instead of an identically zero one. -/ |
| 159 | structure ComplementJets (s : StripData D) (w : ℕ → D → ℝ) (α : ℝ) |
| 160 | (K : ℕ → I → Set D) (f : ℕ → D → E) : Prop where |
| 161 | smooth : ∀ n x, x ∈ s.domain → (∀ i, x ∉ K n i) → ContDiffAt ℝ ∞ (f n) x |
| 162 | bounds : ∀ m : ℕ, ∃ C : ℝ, 0 ≤ C ∧ ∃ p : ℕ, |
| 163 | ∀ n x, x ∈ s.domain → (∀ i, x ∉ K n i) → ∀ j : ℕ, j ≤ m → |
| 164 | ‖iteratedFDeriv ℝ j (f n) x‖ ≤ majorant s w α C p n x |
| 165 | |
| 166 | theorem majorant_mono_constant (s : StripData D) (w : ℕ → D → ℝ) (α : ℝ) |
| 167 | {C B : ℝ} (hCB : C ≤ B) (p n : ℕ) (x : D) (hw : 0 ≤ w n x) : |
| 168 | majorant s w α C p n x ≤ majorant s w α B p n x := by |
| 169 | have hnonneg : 0 ≤ s.epsilon n ^ α * s.growth n x ^ p * w n x := |
| 170 | mul_nonneg (mul_nonneg (Real.rpow_pos_of_pos (s.epsilon_pos n) α).le |
| 171 | (pow_nonneg (s.growth_nonneg n x) p)) hw |
| 172 | simpa only [majorant, mul_assoc] using mul_le_mul_of_nonneg_right hCB hnonneg |
| 173 | |
| 174 | theorem memClass_of_local_and_complement_germs |
| 175 | {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} |
| 176 | {K : ℕ → I → Set D} {f : ℕ → I → D → E} {f₀ F : ℕ → D → E} |
| 177 | (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) |
| 178 | (hlocal : LocalJets s w α K f) (houtside : ComplementJets s w α K f₀) |
| 179 | (hactive : ∀ n i x, x ∈ s.domain → x ∈ K n i → F n =ᶠ[𝓝 x] f n i) |
| 180 | (hinactive : ∀ n x, x ∈ s.domain → (∀ i, x ∉ K n i) → F n =ᶠ[𝓝 x] f₀ n) : |
| 181 | MemClass s w α F := by |
| 182 | classical |
| 183 | refine ⟨hw, ?_, ?_⟩ |
| 184 | · intro n |
| 185 | apply s.isOpen_domain.contDiffOn_iff.mpr |
| 186 | intro x hx |
| 187 | by_cases h : ∃ i, x ∈ K n i |
| 188 | · obtain ⟨i, hi⟩ := h |
| 189 | exact (hlocal.smooth n i x hx hi).congr_of_eventuallyEq (hactive n i x hx hi) |
| 190 | · exact (houtside.smooth n x hx (not_exists.mp h)).congr_of_eventuallyEq |
| 191 | (hinactive n x hx (not_exists.mp h)) |
| 192 | · intro m |
| 193 | obtain ⟨C, hC, p, hB⟩ := hlocal.bounds m |
| 194 | obtain ⟨C₀, hC₀, p₀, hB₀⟩ := houtside.bounds m |
| 195 | refine ⟨C + C₀, add_nonneg hC hC₀, max p p₀, ?_⟩ |
| 196 | intro n x hx j hj |
| 197 | by_cases h : ∃ i, x ∈ K n i |
| 198 | · obtain ⟨i, hi⟩ := h |
| 199 | rw [jets_eq_of_germ (hactive n i x hx hi) j] |
| 200 | exact (hB n i x hx hi j hj).trans |
| 201 | ((majorant_mono_degree s w α hC (le_max_left _ _) n x (hw n x hx)).trans |
| 202 | (majorant_mono_constant s w α (le_add_of_nonneg_right hC₀) _ n x (hw n x hx))) |
| 203 | · rw [jets_eq_of_germ (hinactive n x hx (not_exists.mp h)) j] |
| 204 | exact (hB₀ n x hx (not_exists.mp h) j hj).trans |
| 205 | ((majorant_mono_degree s w α hC₀ (le_max_right _ _) n x (hw n x hx)).trans |
| 206 | (majorant_mono_constant s w α (le_add_of_nonneg_left hC) _ n x (hw n x hx))) |
| 207 | |
| 208 | end LocalGluing |
| 209 | |
| 210 | section UniformLabels |
| 211 | |
| 212 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 213 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] {L I : Type*} |
| 214 | |
| 215 | /-- Native bounds uniform also in an external spatial label. The lattice |
| 216 | copy remains a separate index, so overlap among different labels is not |
| 217 | mistaken for disjointness of copies of one label. -/ |
| 218 | structure UniformLocalJets (s : StripData D) (w : L → ℕ → D → ℝ) (α : ℝ) |
| 219 | (K : L → ℕ → I → Set D) (f : L → ℕ → I → D → E) : Prop where |
| 220 | smooth : ∀ l n i x, x ∈ s.domain → x ∈ K l n i → ContDiffAt ℝ ∞ (f l n i) x |
| 221 | bounds : ∀ m : ℕ, ∃ C : ℝ, 0 ≤ C ∧ ∃ p : ℕ, |
| 222 | ∀ l n i x, x ∈ s.domain → x ∈ K l n i → ∀ j : ℕ, j ≤ m → |
| 223 | ‖iteratedFDeriv ℝ j (f l n i) x‖ ≤ majorant s (w l) α C p n x |
| 224 | |
| 225 | theorem UniformLocalJets.each {s : StripData D} {w : L → ℕ → D → ℝ} {α : ℝ} |
| 226 | {K : L → ℕ → I → Set D} {f : L → ℕ → I → D → E} |
| 227 | (hf : UniformLocalJets s w α K f) (l : L) : LocalJets s (w l) α (K l) (f l) := by |
| 228 | refine ⟨hf.smooth l, ?_⟩ |
| 229 | intro m |
| 230 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 231 | exact ⟨C, hC, p, hb l⟩ |
| 232 | |
| 233 | theorem uniformClass_of_local_germs {s : StripData D} {w : L → ℕ → D → ℝ} {α : ℝ} |
| 234 | {K : L → ℕ → I → Set D} {f : L → ℕ → I → D → E} {F : L → ℕ → D → E} |
| 235 | (hw : ∀ l n x, x ∈ s.domain → 0 ≤ w l n x) (hj : UniformLocalJets s w α K f) |
| 236 | (hcover : ∀ l n x, x ∈ s.domain → |
| 237 | (∃ i, x ∈ K l n i ∧ F l n =ᶠ[𝓝 x] f l n i) ∨ F l n =ᶠ[𝓝 x] fun _ => 0) : |
| 238 | LabelSumBounds.UniformClass s w α F := by |
| 239 | refine ⟨hw, fun l => (memClass_of_local_germs (hw l) (hj.each l) (hcover l)).smooth, ?_⟩ |
| 240 | intro m |
| 241 | obtain ⟨C, hC, p, hb⟩ := hj.bounds m |
| 242 | refine ⟨C, hC, p, ?_⟩ |
| 243 | intro l n x hx j hjm |
| 244 | rcases hcover l n x hx with ⟨i, hi, hg⟩ | hg |
| 245 | · rw [jets_eq_of_germ hg j] |
| 246 | exact hb l n i x hx hi j hjm |
| 247 | · simp only [jets_eq_of_germ hg j, iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero] |
| 248 | exact majorant_nonneg s (w l) α hC p n x (hw l n x hx) |
| 249 | |
| 250 | theorem copySum_uniformClass {s : StripData D} {w : L → ℕ → D → ℝ} {α : ℝ} |
| 251 | (K : L → Cells D I) {f : L → ℕ → I → D → E} |
| 252 | (hw : ∀ l n x, x ∈ s.domain → 0 ≤ w l n x) |
| 253 | (hs : ∀ l n i, support (f l n i) ⊆ (K l).carrier n i) |
| 254 | (hj : UniformLocalJets s w α (fun l => (K l).carrier) f) : |
| 255 | LabelSumBounds.UniformClass s w α (fun l n => copySum (f l n)) := |
| 256 | uniformClass_of_local_germs hw hj (fun l n x _ => copySum_germ_cover (K l) n (f l n) (hs l n) x) |
| 257 | |
| 258 | end UniformLabels |
| 259 | |
| 260 | section NativeCells |
| 261 | |
| 262 | open CommonCoverSolve TorusInverse TorusAverages |
| 263 | |
| 264 | variable {P E : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 265 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 266 | |
| 267 | noncomputable def nativeCell (g : Geometry) (K : Set Plane) (k : Frequency) : Set (P × Plane) := |
| 268 | {z | g.coordinates k z.2 ∈ K} |
| 269 | |
| 270 | omit [NormedSpace ℝ P] in |
| 271 | theorem nativeCell_closed (g : Geometry) {K : Set Plane} (hK : IsClosed K) (k : Frequency) : |
| 272 | IsClosed (nativeCell (P := P) g K k) := |
| 273 | hK.preimage ((g.coordinates_contDiff k).continuous.comp continuous_snd) |
| 274 | |
| 275 | omit [NormedSpace ℝ P] in |
| 276 | /-- Compact native cells have a locally finite family of all lattice copies. |
| 277 | This applies to a rectangle as well as the actual closed cutoff support. -/ |
| 278 | theorem nativeCell_locallyFinite (g : Geometry) {K : Set Plane} (hK : IsCompact K) : |
| 279 | LocallyFinite (nativeCell (P := P) g K) := by |
| 280 | classical |
| 281 | let κ : Plane → ℝ := K.indicator (fun _ => 1) |
| 282 | have hκ : HasCompactSupport κ := |
| 283 | HasCompactSupport.intro' (K := K) hK hK.isClosed (fun z hz => by simp [κ, hz]) |
| 284 | intro z |
| 285 | obtain ⟨s, hs⟩ := g.finite_copy_cutoffs hκ (‖z.2‖ + 1) |
| 286 | refine ⟨{y : P × Plane | ‖y.2‖ < ‖z.2‖ + 1}, |
| 287 | (isOpen_lt continuous_snd.norm continuous_const).mem_nhds (by simp), ?_⟩ |
| 288 | apply s.finite_toSet.subset |
| 289 | intro k hk |
| 290 | obtain ⟨y, hy, hnorm⟩ := hk |
| 291 | by_contra hnot |
| 292 | have hh := hs y.2 hnorm.le k hnot |
| 293 | change g.coordinates k y.2 ∈ K at hy |
| 294 | simp [κ, hy] at hh |
| 295 | |
| 296 | noncomputable def nativeCells (g : ℕ → Geometry) (K : ℕ → Set Plane) |
| 297 | (hK : ∀ n, IsCompact (K n)) |
| 298 | (hinj : ∀ n, InjOn quotientPoint ((fun z => (g n).center + (g n).basis z) '' K n)) : |
| 299 | Cells (P × Plane) Frequency where |
| 300 | carrier n := nativeCell (g n) (K n) |
| 301 | closed n := nativeCell_closed (g n) (hK n).isClosed |
| 302 | locallyFinite n := nativeCell_locallyFinite (g n) (hK n) |
| 303 | unique n _ _ _ hi hj := ParticularWaveAssembly.native_copy_unique (g n) (hinj n) hi hj |
| 304 | |
| 305 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] in |
| 306 | theorem native_cutoff_support (g : Geometry) {K : Set Plane} {κ : Plane → ℝ} |
| 307 | (hκ : support κ ⊆ K) (k : Frequency) : |
| 308 | support (fun z : P × Plane => κ (g.coordinates k z.2)) ⊆ nativeCell g K k := |
| 309 | fun _ hx => hκ hx |
| 310 | |
| 311 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] in |
| 312 | theorem native_localized_support (g : Geometry) {K : Set Plane} {κ : Plane → ℝ} |
| 313 | (hκ : support κ ⊆ K) (f : Frequency → P × Plane → E) (k : Frequency) : |
| 314 | support (fun z => κ (g.coordinates k z.2) • f k z) ⊆ nativeCell g K k := by |
| 315 | intro z hz |
| 316 | apply hκ |
| 317 | intro he |
| 318 | exact hz (by simp only [he, zero_smul]) |
| 319 | |
| 320 | end NativeCells |
| 321 | |
| 322 | section NativeJetOperations |
| 323 | |
| 324 | variable {D E F G : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 325 | [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 326 | [NormedAddCommGroup G] [NormedSpace ℝ G] {I : Type*} |
| 327 | |
| 328 | private theorem finite_le_infty (m : ℕ) : (m : WithTop ℕ∞) ≤ ∞ := |
| 329 | WithTop.coe_le_coe.mpr le_top |
| 330 | |
| 331 | private theorem bilinear_jet_at (L : E →L[ℝ] F →L[ℝ] G) |
| 332 | {u : D → E} {v : D → F} {x : D} (hu : ContDiffAt ℝ ∞ u x) |
| 333 | (hv : ContDiffAt ℝ ∞ v x) {A B : ℝ} (hA : 0 ≤ A) (hB : 0 ≤ B) |
| 334 | {m j : ℕ} (hj : j ≤ m) |
| 335 | (hbu : ∀ k ≤ m, ‖iteratedFDeriv ℝ k u x‖ ≤ A) |
| 336 | (hbv : ∀ k ≤ m, ‖iteratedFDeriv ℝ k v x‖ ≤ B) : |
| 337 | ‖iteratedFDeriv ℝ j (fun y => L (u y) (v y)) x‖ ≤ ‖L‖ * (2 : ℝ) ^ m * A * B := by |
| 338 | obtain ⟨U, hU, huU⟩ := hu.contDiffOn (finite_le_infty j) (by simp) |
| 339 | obtain ⟨V, hV, hvV⟩ := hv.contDiffOn (finite_le_infty j) (by simp) |
| 340 | obtain ⟨O, hOsub, hO, hxO⟩ := mem_nhds_iff.mp (inter_mem hU hV) |
| 341 | have hle := JetBounds.norm_iteratedFDeriv_bilinear_le_on L hO |
| 342 | (huU.mono (hOsub.trans inter_subset_left)) |
| 343 | (hvV.mono (hOsub.trans inter_subset_right)) hxO (le_refl (j : WithTop ℕ∞)) |
| 344 | have hsum : (∑ k ∈ Finset.range (j + 1), (j.choose k : ℝ) * |
| 345 | ‖iteratedFDeriv ℝ k u x‖ * ‖iteratedFDeriv ℝ (j - k) v x‖) ≤ (2 : ℝ) ^ m * A * B := by |
| 346 | calc |
| 347 | _ ≤ ∑ k ∈ Finset.range (j + 1), (j.choose k : ℝ) * A * B := by |
| 348 | apply Finset.sum_le_sum |
| 349 | intro k hk |
| 350 | have hkj : k ≤ j := Nat.le_of_lt_succ (Finset.mem_range.mp hk) |
| 351 | exact mul_le_mul (mul_le_mul_of_nonneg_left (hbu k (hkj.trans hj)) (Nat.cast_nonneg _)) |
| 352 | (hbv (j - k) ((Nat.sub_le _ _).trans hj)) (norm_nonneg _) |
| 353 | (mul_nonneg (Nat.cast_nonneg _) hA) |
| 354 | _ = (2 : ℝ) ^ j * A * B := by |
| 355 | rw [← Finset.sum_mul, ← Finset.sum_mul] |
| 356 | have hchoose : (∑ k ∈ Finset.range (j + 1), (j.choose k : ℝ)) = (2 : ℝ) ^ j := by |
| 357 | exact_mod_cast Nat.sum_range_choose j |
| 358 | rw [hchoose] |
| 359 | _ ≤ _ := mul_le_mul_of_nonneg_right |
| 360 | (mul_le_mul_of_nonneg_right (pow_le_pow_right₀ (by norm_num) hj) hA) hB |
| 361 | exact hle.trans (by |
| 362 | calc |
| 363 | _ ≤ ‖L‖ * ((2 : ℝ) ^ m * A * B) := mul_le_mul_of_nonneg_left hsum (norm_nonneg L) |
| 364 | _ = _ := by ring) |
| 365 | |
| 366 | namespace LocalJets |
| 367 | |
| 368 | variable {s : StripData D} {w v : ℕ → D → ℝ} {α β : ℝ} |
| 369 | {K : ℕ → I → Set D} {f g : ℕ → I → D → E} |
| 370 | |
| 371 | theorem of_memClass {f₀ : ℕ → D → E} (hf : MemClass s w α f₀) : |
| 372 | LocalJets s w α K (fun n _ => f₀ n) := by |
| 373 | refine ⟨fun n _ x hx _ => (hf.smooth n).contDiffAt (s.isOpen_domain.mem_nhds hx), ?_⟩ |
| 374 | intro m |
| 375 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 376 | exact ⟨C, hC, p, fun n _ x hx _ j hj => hb n x hx j hj⟩ |
| 377 | |
| 378 | theorem map (hf : LocalJets s w α K f) (L : E →L[ℝ] F) : |
| 379 | LocalJets s w α K (fun n i x => L (f n i x)) := by |
| 380 | refine ⟨fun n i x hx hi => L.contDiff.contDiffAt.comp x (hf.smooth n i x hx hi), ?_⟩ |
| 381 | intro m |
| 382 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 383 | refine ⟨‖L‖ * C, mul_nonneg (norm_nonneg _) hC, p, ?_⟩ |
| 384 | intro n i x hx hi j hj |
| 385 | change ‖iteratedFDeriv ℝ j (L ∘ f n i) x‖ ≤ _ |
| 386 | rw [L.iteratedFDeriv_comp_left ((hf.smooth n i x hx hi).of_le (finite_le_infty j)) le_rfl] |
| 387 | calc |
| 388 | _ ≤ ‖L‖ * ‖iteratedFDeriv ℝ j (f n i) x‖ := L.norm_compContinuousMultilinearMap_le _ |
| 389 | _ ≤ ‖L‖ * majorant s w α C p n x := mul_le_mul_of_nonneg_left (hb n i x hx hi j hj) (norm_nonneg _) |
| 390 | _ = _ := by unfold majorant; ring |
| 391 | |
| 392 | theorem add (hf : LocalJets s w α K f) (hg : LocalJets s w α K g) |
| 393 | (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) : |
| 394 | LocalJets s w α K (fun n i x => f n i x + g n i x) := by |
| 395 | refine ⟨fun n i x hx hi => (hf.smooth n i x hx hi).add (hg.smooth n i x hx hi), ?_⟩ |
| 396 | intro m |
| 397 | obtain ⟨A, hA, p, ha⟩ := hf.bounds m |
| 398 | obtain ⟨B, hB, q, hb⟩ := hg.bounds m |
| 399 | refine ⟨A + B, add_nonneg hA hB, p + q, ?_⟩ |
| 400 | intro n i x hx hi j hj |
| 401 | rw [fun_iteratedFDeriv_add_apply ((hf.smooth n i x hx hi).of_le (finite_le_infty j)) |
| 402 | ((hg.smooth n i x hx hi).of_le (finite_le_infty j))] |
| 403 | calc |
| 404 | _ ≤ ‖iteratedFDeriv ℝ j (f n i) x‖ + ‖iteratedFDeriv ℝ j (g n i) x‖ := norm_add_le _ _ |
| 405 | _ ≤ majorant s w α A p n x + majorant s w α B q n x := |
| 406 | add_le_add (ha n i x hx hi j hj) (hb n i x hx hi j hj) |
| 407 | _ ≤ majorant s w α A (p + q) n x + majorant s w α B (p + q) n x := |
| 408 | add_le_add (majorant_mono_degree s w α hA (Nat.le_add_right _ _) n x (hw n x hx)) |
| 409 | (majorant_mono_degree s w α hB (Nat.le_add_left _ _) n x (hw n x hx)) |
| 410 | _ = _ := by unfold majorant; ring |
| 411 | |
| 412 | theorem fderiv (hf : LocalJets s w α K f) : |
| 413 | LocalJets s w α K (fun n i => _root_.fderiv ℝ (f n i)) := by |
| 414 | refine ⟨fun n i x hx hi => (hf.smooth n i x hx hi).fderiv_right (by simp), ?_⟩ |
| 415 | intro m |
| 416 | obtain ⟨C, hC, p, hb⟩ := hf.bounds (m + 1) |
| 417 | refine ⟨C, hC, p, ?_⟩ |
| 418 | intro n i x hx hi j hj |
| 419 | rw [norm_iteratedFDeriv_fderiv] |
| 420 | exact hb n i x hx hi (j + 1) (Nat.add_le_add_right hj 1) |
| 421 | |
| 422 | theorem bilinear {u : ℕ → I → D → F} (hf : LocalJets s w α K f) |
| 423 | (hu : LocalJets s v β K u) (L : E →L[ℝ] F →L[ℝ] G) |
| 424 | (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) |
| 425 | (hv : ∀ n x, x ∈ s.domain → 0 ≤ v n x) : |
| 426 | LocalJets s (fun n x => w n x * v n x) (α + β) K |
| 427 | (fun n i x => L (f n i x) (u n i x)) := by |
| 428 | refine ⟨fun n i x hx hi => (L.contDiff.contDiffAt.comp x (hf.smooth n i x hx hi)).clm_apply |
| 429 | (hu.smooth n i x hx hi), ?_⟩ |
| 430 | intro m |
| 431 | obtain ⟨A, hA, p, ha⟩ := hf.bounds m |
| 432 | obtain ⟨B, hB, q, hb⟩ := hu.bounds m |
| 433 | refine ⟨‖L‖ * (2 : ℝ) ^ m * A * B, by positivity, p + q, ?_⟩ |
| 434 | intro n i x hx hi j hj |
| 435 | calc |
| 436 | _ ≤ ‖L‖ * (2 : ℝ) ^ m * majorant s w α A p n x * majorant s v β B q n x := |
| 437 | bilinear_jet_at L (hf.smooth n i x hx hi) (hu.smooth n i x hx hi) |
| 438 | (majorant_nonneg s w α hA p n x (hw n x hx)) |
| 439 | (majorant_nonneg s v β hB q n x (hv n x hx)) hj |
| 440 | (fun k hk => ha n i x hx hi k hk) (fun k hk => hb n i x hx hi k hk) |
| 441 | _ = (‖L‖ * (2 : ℝ) ^ m) * (majorant s w α A p n x * majorant s v β B q n x) := by ring |
| 442 | _ = _ := by rw [majorant_mul]; unfold majorant; ring |
| 443 | |
| 444 | theorem smul {r : ℕ → I → D → ℝ} (hr : LocalJets s (fun _ _ => 1) 0 K r) |
| 445 | (hf : LocalJets s w α K f) (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) : |
| 446 | LocalJets s w α K (fun n i x => r n i x • f n i x) := by |
| 447 | have h := hr.bilinear hf (ContinuousLinearMap.lsmul ℝ ℝ) (fun _ _ _ => zero_le_one) hw |
| 448 | simp only [one_mul, zero_add] at h |
| 449 | exact h |
| 450 | |
| 451 | theorem band_smul {r : ℕ → ℝ} (hf : LocalJets s w α K f) |
| 452 | (hr : BandBound s 0 r) (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) : |
| 453 | LocalJets s w α K (fun n i x => r n • f n i x) := by |
| 454 | have hc : UnweightedClass s 0 (fun n (_ : D) => r n) := by |
| 455 | have h := (unweighted_const s (1 : ℝ)).band_smul hr |
| 456 | simpa using h |
| 457 | exact (LocalJets.of_memClass hc).smul hf hw |
| 458 | |
| 459 | end LocalJets |
| 460 | |
| 461 | end NativeJetOperations |
| 462 | |
| 463 | section NativeGaussianEstimates |
| 464 | |
| 465 | open GaussianTailFlat |
| 466 | |
| 467 | variable {D E : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 468 | [NormedAddCommGroup E] [NormedSpace ℝ E] {I : Type*} |
| 469 | |
| 470 | /-- The Gaussian absorption argument is uniform in the native copy. Its |
| 471 | only local field estimate is the weighted jet bound before absorption. -/ |
| 472 | theorem local_gaussian_tail_bound {s : StripData D} {K : ℕ → I → Set D} |
| 473 | {W : ℕ → D → ℝ} {α c : ℝ} {f : ℕ → I → D → E} |
| 474 | (hf : LocalJets s (fun n x => Real.sqrt (s.zeta x) * W n x) α K f) |
| 475 | (edges : FlatEdges s) (scales : BandScaleControl s) |
| 476 | (θ : ℕ → I → D → ℝ) (L : ℕ → ℝ) (hL : ∀ n, 0 < L n) |
| 477 | (ell : ℝ) (hell : 0 < ell) (hLell : ∀ n, ell * ChartScales.S n ≤ L n) (hc : 0 < c) |
| 478 | (hW : ∀ n i x, x ∈ s.domain → x ∈ K n i → |
| 479 | W n x ≤ Real.exp (-c * (θ n i x - 1 / 2) ^ 2 * L n)) |
| 480 | (hzero : ∀ n i x, x ∈ s.domain → x ∈ K n i → |
| 481 | |θ n i x - 1 / 2| < 1 / 5 → f n i =ᶠ[𝓝 x] fun _ => 0) |
| 482 | (m : ℕ) : ∃ C : ℝ, 0 ≤ C ∧ ∃ p : ℕ, ∀ n i x, x ∈ s.domain → x ∈ K n i → |
| 483 | ∀ j ≤ m, ‖iteratedFDeriv ℝ j (f n i) x‖ ≤ |
| 484 | C * (1 + ChartScales.S n) ^ p * Real.exp (-(c * ell / 50) * ChartScales.S n) := by |
| 485 | obtain ⟨A, hA, p, hb⟩ := hf.bounds m |
| 486 | obtain ⟨B, hB, hweight⟩ := edges.uniform_weight p |
| 487 | have hconstant := scales.constant_one_le |
| 488 | have hdec : 0 < c * ell / 25 := by positivity |
| 489 | obtain ⟨C, hC, hgauss⟩ := fixed_power_gaussian_bound hdec (scales.power * α) |
| 490 | refine ⟨A * B * scales.constant ^ p * C, by positivity, scales.degree * p, ?_⟩ |
| 491 | intro n i x hx hi j hj |
| 492 | have hQ := ChartScales.Q_pos n |
| 493 | by_cases hmid : |θ n i x - 1 / 2| < 1 / 5 |
| 494 | · rw [jets_eq_of_germ (hzero n i x hx hi hmid) j] |
| 495 | simp only [iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero] |
| 496 | have hS : 0 ≤ ChartScales.S n := sq_nonneg _ |
| 497 | positivity |
| 498 | have htail : 1 / 5 ≤ |θ n i x - 1 / 2| := le_of_not_gt hmid |
| 499 | have hsq : (1 / 25 : ℝ) ≤ (θ n i x - 1 / 2) ^ 2 := by |
| 500 | have hh := pow_le_pow_left₀ (by norm_num : (0 : ℝ) ≤ 1 / 5) htail 2 |
| 501 | norm_num [sq_abs] at hh ⊢ |
| 502 | exact hh |
| 503 | have hPg : W n x ≤ Real.exp (-(c * ell / 25) * ChartScales.S n) := by |
| 504 | apply (hW n i x hx hi).trans |
| 505 | apply (Real.exp_le_exp.2 ?_).trans (gaussian_length_comparison hc.le (hLell n)) |
| 506 | nlinarith [mul_le_mul_of_nonneg_left hsq (mul_nonneg hc.le (hL n).le)] |
| 507 | have hslow0 : 0 ≤ s.slow n := zero_le_one.trans (s.one_le_slow n) |
| 508 | have hK0 : 0 ≤ scales.constant := zero_le_one.trans scales.constant_one_le |
| 509 | have hslowp : s.slow n ^ p ≤ |
| 510 | scales.constant ^ p * (1 + ChartScales.S n) ^ (scales.degree * p) := by |
| 511 | simpa only [mul_pow, ← pow_mul] using pow_le_pow_left₀ hslow0 (scales.slow_le n) p |
| 512 | have hmajor : majorant s (fun n x => Real.sqrt (s.zeta x) * W n x) α A p n x ≤ |
| 513 | (A * B * scales.constant ^ p) * ChartScales.Q n ^ (scales.power * α) * |
| 514 | ((1 + ChartScales.S n) ^ (scales.degree * p) * |
| 515 | Real.exp (-(c * ell / 25) * ChartScales.S n)) := by |
| 516 | rw [majorant, StripData.growth, mul_pow, scales.epsilon_eq, ← Real.rpow_mul hQ.le] |
| 517 | calc |
| 518 | _ = (A * ChartScales.Q n ^ (scales.power * α) * s.slow n ^ p) * |
| 519 | (Real.sqrt (s.zeta x) * max 1 (s.delta x)⁻¹ ^ p) * W n x := by ring |
| 520 | _ ≤ (A * ChartScales.Q n ^ (scales.power * α) * s.slow n ^ p) * |
| 521 | (Real.sqrt (s.zeta x) * max 1 (s.delta x)⁻¹ ^ p) * |
| 522 | Real.exp (-(c * ell / 25) * ChartScales.S n) := |
| 523 | mul_le_mul_of_nonneg_left hPg (by positivity) |
| 524 | _ ≤ (A * ChartScales.Q n ^ (scales.power * α) * s.slow n ^ p) * B * |
| 525 | Real.exp (-(c * ell / 25) * ChartScales.S n) := by |
| 526 | gcongr |
| 527 | exact hweight x hx |
| 528 | _ ≤ (A * ChartScales.Q n ^ (scales.power * α) * |
| 529 | (scales.constant ^ p * (1 + ChartScales.S n) ^ (scales.degree * p))) * B * |
| 530 | Real.exp (-(c * ell / 25) * ChartScales.S n) := by gcongr |
| 531 | _ = _ := by ring |
| 532 | calc |
| 533 | _ ≤ majorant s (fun n x => Real.sqrt (s.zeta x) * W n x) α A p n x := hb n i x hx hi j hj |
| 534 | _ ≤ _ := hmajor |
| 535 | _ = (A * B * scales.constant ^ p) * (1 + ChartScales.S n) ^ (scales.degree * p) * |
| 536 | (ChartScales.Q n ^ (scales.power * α) * |
| 537 | Real.exp (-(c * ell / 25) * ChartScales.S n)) := by ring |
| 538 | _ ≤ (A * B * scales.constant ^ p) * (1 + ChartScales.S n) ^ (scales.degree * p) * |
| 539 | (C * Real.exp (-((c * ell / 25) / 2) * ChartScales.S n)) := by |
| 540 | have hS : 0 ≤ ChartScales.S n := sq_nonneg _ |
| 541 | exact mul_le_mul_of_nonneg_left (hgauss n) (by positivity) |
| 542 | _ = _ := by |
| 543 | rw [show c * ell / 25 / 2 = c * ell / 50 by ring] |
| 544 | ring |
| 545 | |
| 546 | theorem local_gaussian_all_gains {s : StripData D} {K : ℕ → I → Set D} |
| 547 | {W : ℕ → D → ℝ} {α c : ℝ} {f : ℕ → I → D → E} |
| 548 | (hf : LocalJets s (fun n x => Real.sqrt (s.zeta x) * W n x) α K f) |
| 549 | (edges : FlatEdges s) (scales : BandScaleControl s) |
| 550 | (θ : ℕ → I → D → ℝ) (L : ℕ → ℝ) (hL : ∀ n, 0 < L n) |
| 551 | (ell : ℝ) (hell : 0 < ell) (hLell : ∀ n, ell * ChartScales.S n ≤ L n) (hc : 0 < c) |
| 552 | (hW : ∀ n i x, x ∈ s.domain → x ∈ K n i → |
| 553 | W n x ≤ Real.exp (-c * (θ n i x - 1 / 2) ^ 2 * L n)) |
| 554 | (hzero : ∀ n i x, x ∈ s.domain → x ∈ K n i → |
| 555 | |θ n i x - 1 / 2| < 1 / 5 → f n i =ᶠ[𝓝 x] fun _ => 0) |
| 556 | (β : ℝ) : LocalJets s (fun _ _ => 1) β K f := by |
| 557 | refine ⟨hf.smooth, ?_⟩ |
| 558 | intro m |
| 559 | obtain ⟨A, hA, p, hb⟩ := local_gaussian_tail_bound hf edges scales θ L hL ell hell hLell hc hW hzero m |
| 560 | obtain ⟨B, hB, hflat⟩ := gaussian_beats_Q_power (by positivity : 0 < c * ell / 50) p (scales.power * β) |
| 561 | refine ⟨A * B, mul_nonneg hA hB.le, 0, ?_⟩ |
| 562 | intro n i x hx hi j hj |
| 563 | have ht := (hb n i x hx hi j hj).trans |
| 564 | (show A * (1 + ChartScales.S n) ^ p * Real.exp (-(c * ell / 50) * ChartScales.S n) ≤ |
| 565 | (A * B) * ChartScales.Q n ^ (scales.power * β) by |
| 566 | calc |
| 567 | _ = A * ((1 + ChartScales.S n) ^ p * Real.exp (-(c * ell / 50) * ChartScales.S n)) := by ring |
| 568 | _ ≤ A * (B * ChartScales.Q n ^ (scales.power * β)) := mul_le_mul_of_nonneg_left (hflat n) hA |
| 569 | _ = _ := by ring) |
| 570 | simpa only [majorant, pow_zero, mul_one, scales.epsilon_eq, |
| 571 | ← Real.rpow_mul (ChartScales.Q_pos n).le] using ht |
| 572 | |
| 573 | end NativeGaussianEstimates |
| 574 | |
| 575 | section DifferentialGerms |
| 576 | |
| 577 | open HarmonicCalculus LinearWaveResidual |
| 578 | open CurlClassBounds hiding ComplexVector |
| 579 | open ParticularWaveAssembly |
| 580 | |
| 581 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 582 | |
| 583 | theorem principal_germ {a b : D → ComplexVector} {p q : D → ℂ} {x : D} |
| 584 | (ha : a =ᶠ[𝓝 x] b) (hp : p =ᶠ[𝓝 x] q) |
| 585 | (ε K : ℝ) (R F G Φ : D → ℝ) (Vr Vθ Vz Vf : D → D) : |
| 586 | LinearWaveResidual.principal ε K R F G Vr Vθ Vz Vf Φ a p =ᶠ[𝓝 x] |
| 587 | LinearWaveResidual.principal ε K R F G Vr Vθ Vz Vf Φ b q := by |
| 588 | have ht (i : Fin 3) := along_germ (ha.fun_comp (fun v => v i)) Vf |
| 589 | filter_upwards [ha, hp, Filter.eventually_all.mpr ht] with y hay hpy hty |
| 590 | dsimp only [Function.comp_def] at hty |
| 591 | funext i |
| 592 | simp only [LinearWaveResidual.principal, shear, hty, hay, hpy] |
| 593 | |
| 594 | theorem remainder_germ {a b : D → ComplexVector} {p q : D → ℂ} {x : D} |
| 595 | (ha : a =ᶠ[𝓝 x] b) (hp : p =ᶠ[𝓝 x] q) |
| 596 | (ε K : ℝ) (R B F G Φ : D → ℝ) (Vr Vθ Vz Vf Vs : D → D) : |
| 597 | LinearWaveResidual.remainder ε K R B F G Vr Vθ Vz Vf Vs Φ a p =ᶠ[𝓝 x] |
| 598 | LinearWaveResidual.remainder ε K R B F G Vr Vθ Vz Vf Vs Φ b q := by |
| 599 | have hr (i : Fin 3) := along_germ (ha.fun_comp (fun v => v i)) Vr |
| 600 | have hz (i : Fin 3) := along_germ (ha.fun_comp (fun v => v i)) Vz |
| 601 | have hs (i : Fin 3) := along_germ (ha.fun_comp (fun v => v i)) Vs |
| 602 | have hrr (i : Fin 3) := along_germ (hr i) Vr |
| 603 | have hzz (i : Fin 3) := along_germ (hz i) Vz |
| 604 | filter_upwards [ha, Filter.eventually_all.mpr hr, Filter.eventually_all.mpr hz, |
| 605 | Filter.eventually_all.mpr hs, Filter.eventually_all.mpr hrr, Filter.eventually_all.mpr hzz, |
| 606 | along_germ hp Vr, along_germ hp Vz] with y hay hry hzy hsy hrry hzzy hpr hpz |
| 607 | dsimp only [Function.comp_def] at hry hzy hsy hrry hzzy |
| 608 | funext i |
| 609 | simp only [LinearWaveResidual.remainder, slowTransport, baseDerivativeRemainder, |
| 610 | strippedPressureGradient, viscousRemainder, hry, hzy, hsy, hrry, hzzy, hpr, hpz, hay] |
| 611 | |
| 612 | theorem curlCorrection_germ {a b : D → ComplexVector} {x : D} |
| 613 | (ha : a =ᶠ[𝓝 x] b) (K : ℝ) (R Φ : D → ℝ) (Vr Vθ Vz : D → D) : |
| 614 | curlRemainder K R Vr Vθ Vz (coefficient R Vr Vθ Vz Φ a) =ᶠ[𝓝 x] |
| 615 | curlRemainder K R Vr Vθ Vz (coefficient R Vr Vθ Vz Φ b) := by |
| 616 | have hc : coefficient R Vr Vθ Vz Φ a =ᶠ[𝓝 x] coefficient R Vr Vθ Vz Φ b := by |
| 617 | filter_upwards [ha] with y hy |
| 618 | simp only [coefficient, hy] |
| 619 | filter_upwards [curl_germ hc R Vr Vθ Vz] with y hy |
| 620 | simp only [curlRemainder, hy] |
| 621 | |
| 622 | theorem potential_germ {a b : D → ComplexVector} {x : D} |
| 623 | (ha : a =ᶠ[𝓝 x] b) (K : ℝ) (R Φ : D → ℝ) (Vr Vθ Vz : D → D) : |
| 624 | vectorPotential K R Vr Vθ Vz Φ a =ᶠ[𝓝 x] vectorPotential K R Vr Vθ Vz Φ b := by |
| 625 | filter_upwards [ha] with y hy |
| 626 | ext i |
| 627 | simp only [vectorPotential, HarmonicCalculus.vectorMode, HarmonicCalculus.mode, coefficient, hy] |
| 628 | |
| 629 | theorem divergence_germ {a b : D → ComplexVector} {x : D} |
| 630 | (ha : a =ᶠ[𝓝 x] b) (R : D → ℝ) (Vr Vθ Vz : D → D) : |
| 631 | cylindricalDivergence R Vr Vθ Vz a =ᶠ[𝓝 x] cylindricalDivergence R Vr Vθ Vz b := by |
| 632 | filter_upwards [ha, along_germ (ha.fun_comp (fun v => v 0)) Vr, |
| 633 | along_germ (ha.fun_comp (fun v => v 1)) Vθ, |
| 634 | along_germ (ha.fun_comp (fun v => v 2)) Vz] with y hy hr hθ hz |
| 635 | dsimp only [Function.comp_def] at hr hθ hz |
| 636 | simp only [cylindricalDivergence, hr, hθ, hz, hy] |
| 637 | |
| 638 | @[simp] theorem normalCoefficient_zero (N : RealVector) : normalCoefficient N 0 = 0 := by |
| 639 | simp [normalCoefficient, normalCross] |
| 640 | |
| 641 | @[simp] theorem coefficient_zero (R Φ : D → ℝ) (Vr Vθ Vz : D → D) : |
| 642 | coefficient R Vr Vθ Vz Φ (fun _ => 0) = fun _ => 0 := by |
| 643 | funext x |
| 644 | simp only [coefficient, normalCoefficient_zero] |
| 645 | |
| 646 | @[simp] theorem cylindricalCurl_zero (R : D → ℝ) (Vr Vθ Vz : D → D) : |
| 647 | cylindricalCurl R Vr Vθ Vz (fun _ => 0) = fun _ => 0 := by |
| 648 | funext x i |
| 649 | fin_cases i <;> simp [cylindricalCurl, along] |
| 650 | |
| 651 | @[simp] theorem curlRemainder_zero (K : ℝ) (R : D → ℝ) (Vr Vθ Vz : D → D) : |
| 652 | curlRemainder K R Vr Vθ Vz (fun _ => 0) = fun _ => 0 := by |
| 653 | funext x |
| 654 | simp only [curlRemainder, cylindricalCurl_zero, smul_zero] |
| 655 | |
| 656 | @[simp] theorem realizedCoefficient_zero (K : ℝ) (R Φ : D → ℝ) (Vr Vθ Vz : D → D) : |
| 657 | realizedCoefficient K R Vr Vθ Vz Φ (fun _ => 0) = fun _ => 0 := by |
| 658 | funext x |
| 659 | simp only [realizedCoefficient, coefficient_zero, curlRemainder_zero, add_zero] |
| 660 | |
| 661 | @[simp] theorem vectorPotential_zero (K : ℝ) (R Φ : D → ℝ) (Vr Vθ Vz : D → D) : |
| 662 | vectorPotential K R Vr Vθ Vz Φ (fun _ => 0) = fun _ => 0 := by |
| 663 | funext x i |
| 664 | simp [vectorPotential, coefficient_zero, vectorMode, mode] |
| 665 | |
| 666 | @[simp] theorem principal_zero (ε K : ℝ) (R F G Φ : D → ℝ) (Vr Vθ Vz Vf : D → D) : |
| 667 | LinearWaveResidual.principal ε K R F G Vr Vθ Vz Vf Φ |
| 668 | (fun _ => 0) (fun _ => 0) = fun _ => 0 := by |
| 669 | funext x i |
| 670 | fin_cases i <;> simp [LinearWaveResidual.principal, shear, along] |
| 671 | |
| 672 | @[simp] theorem along_zero (V : D → D) : |
| 673 | along V (fun _ : D => (0 : ℂ)) = fun _ => 0 := by |
| 674 | funext x |
| 675 | simp [along] |
| 676 | |
| 677 | @[simp] theorem remainder_zero (ε K : ℝ) (R B F G Φ : D → ℝ) (Vr Vθ Vz Vf Vs : D → D) : |
| 678 | LinearWaveResidual.remainder ε K R B F G Vr Vθ Vz Vf Vs Φ |
| 679 | (fun _ => 0) (fun _ => 0) = fun _ => 0 := by |
| 680 | funext x i |
| 681 | fin_cases i <;> simp [LinearWaveResidual.remainder, slowTransport, baseDerivativeRemainder, |
| 682 | strippedPressureGradient, viscousRemainder, angularGenerator, along_zero, along] |
| 683 | |
| 684 | @[simp] theorem linearResidual_zero (ε : ℝ) (R : D → ℝ) (Vr Vθ Vz Vt : D → D) |
| 685 | (B : D → ComplexVector) : |
| 686 | linearResidual ε R Vr Vθ Vz Vt B (fun _ => 0) (fun _ => 0) = fun _ => 0 := by |
| 687 | funext x i |
| 688 | fin_cases i <;> simp [linearResidual, transport, gradient, cylindricalVectorLaplacian, |
| 689 | cylindricalLaplacian, angularGenerator, along_zero, along] |
| 690 | |
| 691 | @[simp] theorem cylindricalDivergence_zero (R : D → ℝ) (Vr Vθ Vz : D → D) : |
| 692 | cylindricalDivergence R Vr Vθ Vz (fun _ => 0) = fun _ => 0 := by |
| 693 | funext x |
| 694 | simp [cylindricalDivergence, along] |
| 695 | |
| 696 | end DifferentialGerms |
| 697 | |
| 698 | section WaveData |
| 699 | |
| 700 | open HarmonicCalculus LinearWaveBounds |
| 701 | open CurlClassBounds hiding ComplexVector |
| 702 | open ParticularWaveAssembly |
| 703 | |
| 704 | variable {D I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 705 | |
| 706 | /-- Local raw copies share one physical carrier and background. Their |
| 707 | amplitudes and pressures may differ in every copy and need not be periodic. -/ |
| 708 | structure CopyData (D I : Type) where |
| 709 | background : WaveCoefficients D |
| 710 | amplitude : ℕ → I → D → ComplexVector |
| 711 | pressure : ℕ → I → D → ℂ |
| 712 | cutoff : ℕ → I → D → ℝ |
| 713 | source : ℕ → D → ComplexVector |
| 714 | |
| 715 | namespace CopyData |
| 716 | |
| 717 | variable (a : CopyData D I) |
| 718 | |
| 719 | noncomputable def raw (i : I) : WaveCoefficients D := |
| 720 | { a.background with amplitude := fun n => a.amplitude n i |
| 721 | pressure := fun n => a.pressure n i } |
| 722 | |
| 723 | noncomputable def localized (i : I) : WaveCoefficients D := |
| 724 | (a.raw i).withCutoff (fun n => a.cutoff n i) |
| 725 | |
| 726 | noncomputable def corrected (s : StripData D) (d : GraphDirections D) (i : I) : |
| 727 | WaveCoefficients D := (a.raw i).corrected s d (fun n => a.cutoff n i) |
| 728 | |
| 729 | noncomputable def localGood (s : StripData D) (d : GraphDirections D) (n : ℕ) (i : I) : |
| 730 | D → ComplexVector := (a.raw i).constructedGood s d (fun n => a.cutoff n i) n |
| 731 | |
| 732 | noncomputable def localTail (d : GraphDirections D) (n : ℕ) (i : I) (x : D) : ComplexVector := |
| 733 | d.Dfast (fun n => a.cutoff n i) n x • a.amplitude n i x |
| 734 | |
| 735 | noncomputable def localGaussian (d : GraphDirections D) (n : ℕ) (i : I) : D → ComplexVector := |
| 736 | excludedSlotError d (fun n => a.cutoff n i) (fun n => a.amplitude n i) a.source n |
| 737 | |
| 738 | /-- The single native cutoff is applied before periodization and curl. -/ |
| 739 | noncomputable def common : WaveCoefficients D := |
| 740 | { a.background with |
| 741 | amplitude := fun n => copySum (fun i => (a.localized i).amplitude n) |
| 742 | pressure := fun n => copySum (fun i => (a.localized i).pressure n) } |
| 743 | |
| 744 | noncomputable def commonCorrected (s : StripData D) (d : GraphDirections D) : |
| 745 | WaveCoefficients D := a.common.addAmplitude (a.common.curlCorrection s d) |
| 746 | |
| 747 | /-- An actual global good coefficient, assembled from the cutoff-and-curl |
| 748 | formula on each native copy. -/ |
| 749 | noncomputable def globalGood (s : StripData D) (d : GraphDirections D) (n : ℕ) : |
| 750 | D → ComplexVector := copySum (a.localGood s d n) |
| 751 | |
| 752 | noncomputable def cutoffSum (n : ℕ) : D → ℝ := copySum (a.cutoff n) |
| 753 | |
| 754 | noncomputable def globalTail (d : GraphDirections D) (n : ℕ) : D → ComplexVector := |
| 755 | copySum (a.localTail d n) |
| 756 | |
| 757 | /-- The shared source occurs once. This definition also makes sense off |
| 758 | every native patch and preserves the uncovered-source term there. -/ |
| 759 | noncomputable def globalGaussian (d : GraphDirections D) (n : ℕ) (x : D) : ComplexVector := |
| 760 | a.globalTail d n x + (1 - a.cutoffSum n x) • a.source n x |
| 761 | |
| 762 | theorem localGaussian_eq (d : GraphDirections D) (n : ℕ) (i : I) (x : D) : |
| 763 | a.localGaussian d n i x = a.localTail d n i x + (1 - a.cutoff n i x) • a.source n x := rfl |
| 764 | |
| 765 | omit [NormedSpace ℝ D] in |
| 766 | theorem common_amplitude_germ (K : Cells D I) |
| 767 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 768 | (n : ℕ) {i : I} {x : D} (hx : x ∈ K.carrier n i) : |
| 769 | a.common.amplitude n =ᶠ[𝓝 x] (a.localized i).amplitude n := by |
| 770 | apply copySum_germ K n _ _ hx |
| 771 | intro j y hy |
| 772 | apply hs n j |
| 773 | intro he |
| 774 | exact hy (by simp [localized, raw, WaveCoefficients.withCutoff, he]) |
| 775 | |
| 776 | omit [NormedSpace ℝ D] in |
| 777 | theorem common_pressure_germ (K : Cells D I) |
| 778 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 779 | (n : ℕ) {i : I} {x : D} (hx : x ∈ K.carrier n i) : |
| 780 | a.common.pressure n =ᶠ[𝓝 x] (a.localized i).pressure n := by |
| 781 | apply copySum_germ K n _ _ hx |
| 782 | intro j y hy |
| 783 | apply hs n j |
| 784 | intro he |
| 785 | exact hy (by simp [localized, raw, WaveCoefficients.withCutoff, he]) |
| 786 | |
| 787 | theorem commonCorrected_amplitude_germ (K : Cells D I) |
| 788 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 789 | (s : StripData D) (d : GraphDirections D) (n : ℕ) {i : I} {x : D} |
| 790 | (hx : x ∈ K.carrier n i) : |
| 791 | (a.commonCorrected s d).amplitude n =ᶠ[𝓝 x] (a.corrected s d i).amplitude n := |
| 792 | realizedCoefficient_germ (a.common_amplitude_germ K hs n hx) (a.background.frequency n) |
| 793 | (a.background.radius n) (d.radialField n) (fun _ => d.angular) |
| 794 | (d.axialField s n) (a.background.phase n) |
| 795 | |
| 796 | theorem commonCorrected_residual_germ (K : Cells D I) |
| 797 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 798 | (s : StripData D) (d : GraphDirections D) (n : ℕ) {i : I} {x : D} |
| 799 | (hx : x ∈ K.carrier n i) : |
| 800 | (a.commonCorrected s d).harmonicResidual s d n =ᶠ[𝓝 x] |
| 801 | (a.corrected s d i).harmonicResidual s d n := |
| 802 | linearResidual_germ |
| 803 | (vectorMode_germ (a.commonCorrected_amplitude_germ K hs s d n hx) |
| 804 | (a.background.frequency n) (a.background.phase n)) |
| 805 | (mode_germ (a.common_pressure_germ K hs n hx) |
| 806 | (a.background.frequency n) (a.background.phase n)) |
| 807 | (s.epsilon n) (a.background.radius n) (d.radialField n) (fun _ => d.angular) |
| 808 | (d.axialField s n) |
| 809 | (LinearWaveResidual.timeDirection (s.epsilon n) (d.fastField n) (fun _ => d.slow)) |
| 810 | (LinearWaveResidual.complexBase (a.background.radius n) (a.background.radialBase n) |
| 811 | (a.background.frequencyBase n) (a.background.axialBase n)) |
| 812 | |
| 813 | omit [NormedSpace ℝ D] in |
| 814 | theorem localized_amplitude_support (K : Cells D I) |
| 815 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) (n : ℕ) (i : I) : |
| 816 | support ((a.localized i).amplitude n) ⊆ K.carrier n i := by |
| 817 | intro x hx |
| 818 | apply hs n i |
| 819 | intro hz |
| 820 | exact hx (by simp [localized, raw, WaveCoefficients.withCutoff, hz]) |
| 821 | |
| 822 | omit [NormedSpace ℝ D] in |
| 823 | theorem localized_pressure_support (K : Cells D I) |
| 824 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) (n : ℕ) (i : I) : |
| 825 | support ((a.localized i).pressure n) ⊆ K.carrier n i := by |
| 826 | intro x hx |
| 827 | apply hs n i |
| 828 | intro hz |
| 829 | exact hx (by simp [localized, raw, WaveCoefficients.withCutoff, hz]) |
| 830 | |
| 831 | omit [NormedSpace ℝ D] in |
| 832 | theorem localized_zero_germs {n : ℕ} {i : I} {x : D} |
| 833 | (hψ : a.cutoff n i =ᶠ[𝓝 x] fun _ => 0) : |
| 834 | (a.localized i).amplitude n =ᶠ[𝓝 x] (fun _ => 0) ∧ |
| 835 | (a.localized i).pressure n =ᶠ[𝓝 x] (fun _ => 0) := by |
| 836 | constructor <;> filter_upwards [hψ] with y hy <;> |
| 837 | simp [localized, raw, WaveCoefficients.withCutoff, hy] |
| 838 | |
| 839 | theorem localized_correction_zero_germ (s : StripData D) (d : GraphDirections D) |
| 840 | {n : ℕ} {i : I} {x : D} (hψ : a.cutoff n i =ᶠ[𝓝 x] fun _ => 0) : |
| 841 | (a.localized i).curlCorrection s d n =ᶠ[𝓝 x] fun _ => 0 := by |
| 842 | have h := curlCorrection_germ (a.localized_zero_germs hψ).1 |
| 843 | (a.background.frequency n) (a.background.radius n) (a.background.phase n) |
| 844 | (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 845 | simp only [coefficient_zero, curlRemainder_zero] at h |
| 846 | exact h |
| 847 | |
| 848 | theorem corrected_zero_germ (s : StripData D) (d : GraphDirections D) |
| 849 | {n : ℕ} {i : I} {x : D} (hψ : a.cutoff n i =ᶠ[𝓝 x] fun _ => 0) : |
| 850 | (a.corrected s d i).amplitude n =ᶠ[𝓝 x] fun _ => 0 := by |
| 851 | have h := realizedCoefficient_germ (a.localized_zero_germs hψ).1 |
| 852 | (a.background.frequency n) (a.background.radius n) (d.radialField n) |
| 853 | (fun _ => d.angular) (d.axialField s n) (a.background.phase n) |
| 854 | simp only [realizedCoefficient_zero] at h |
| 855 | exact h |
| 856 | |
| 857 | theorem localGood_zero_germ (s : StripData D) (d : GraphDirections D) |
| 858 | {n : ℕ} {i : I} {x : D} (hψ : a.cutoff n i =ᶠ[𝓝 x] fun _ => 0) : |
| 859 | a.localGood s d n i =ᶠ[𝓝 x] fun _ => 0 := by |
| 860 | have hc := a.localized_correction_zero_germ s d hψ |
| 861 | have hp := principal_germ hc (Filter.EventuallyEq.refl (𝓝 x) (fun _ : D => (0 : ℂ))) |
| 862 | (s.epsilon n) (a.background.frequency n) (a.background.radius n) |
| 863 | (a.background.frequencyBase n) (a.background.axialBase n) (a.background.phase n) |
| 864 | (d.radialField n) (fun _ => d.angular) (d.axialField s n) (d.fastField n) |
| 865 | have hr := remainder_germ (a.corrected_zero_germ s d hψ) (a.localized_zero_germs hψ).2 |
| 866 | (s.epsilon n) (a.background.frequency n) (a.background.radius n) |
| 867 | (a.background.radialBase n) (a.background.frequencyBase n) (a.background.axialBase n) |
| 868 | (a.background.phase n) (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 869 | (d.fastField n) (fun _ => d.slow) |
| 870 | simp only [principal_zero] at hp |
| 871 | simp only [remainder_zero] at hr |
| 872 | filter_upwards [hp, hr] with y hpy hry |
| 873 | change (a.raw i).principalVelocity s d ((a.localized i).curlCorrection s d) n y + |
| 874 | (a.corrected s d i).remainder s d n y = 0 |
| 875 | change (a.raw i).principalVelocity s d ((a.localized i).curlCorrection s d) n y = 0 at hpy |
| 876 | change (a.corrected s d i).remainder s d n y = 0 at hry |
| 877 | rw [hpy, hry, add_zero] |
| 878 | |
| 879 | theorem localTail_zero_germ (d : GraphDirections D) |
| 880 | {n : ℕ} {i : I} {x : D} (hψ : a.cutoff n i =ᶠ[𝓝 x] fun _ => 0) : |
| 881 | a.localTail d n i =ᶠ[𝓝 x] fun _ => 0 := by |
| 882 | have hD := along_germ hψ (d.fastField n) |
| 883 | filter_upwards [hD] with y hy |
| 884 | change along (d.fastField n) (a.cutoff n i) y • _ = 0 |
| 885 | rw [hy] |
| 886 | simp [HarmonicCalculus.along] |
| 887 | |
| 888 | theorem localGood_support (K : Cells D I) |
| 889 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 890 | (s : StripData D) (d : GraphDirections D) (n : ℕ) (i : I) : |
| 891 | support (a.localGood s d n i) ⊆ K.carrier n i := by |
| 892 | intro x hx |
| 893 | by_contra hn |
| 894 | exact hx (a.localGood_zero_germ s d (zero_germ_of_support (K.closed n i) (hs n i) hn)).self_of_nhds |
| 895 | |
| 896 | theorem localTail_support (K : Cells D I) |
| 897 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 898 | (d : GraphDirections D) (n : ℕ) (i : I) : |
| 899 | support (a.localTail d n i) ⊆ K.carrier n i := by |
| 900 | intro x hx |
| 901 | by_contra hn |
| 902 | exact hx (a.localTail_zero_germ d (zero_germ_of_support (K.closed n i) (hs n i) hn)).self_of_nhds |
| 903 | |
| 904 | omit [NormedSpace ℝ D] in |
| 905 | theorem common_zero_germs (K : Cells D I) |
| 906 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 907 | {n : ℕ} {x : D} (hx : ∀ i, x ∉ K.carrier n i) : |
| 908 | a.common.amplitude n =ᶠ[𝓝 x] (fun _ => 0) ∧ |
| 909 | a.common.pressure n =ᶠ[𝓝 x] (fun _ => 0) := |
| 910 | ⟨copySum_zero_germ K n _ (a.localized_amplitude_support K hs n) hx, |
| 911 | copySum_zero_germ K n _ (a.localized_pressure_support K hs n) hx⟩ |
| 912 | |
| 913 | theorem commonCorrected_zero_germ (K : Cells D I) |
| 914 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 915 | (s : StripData D) (d : GraphDirections D) {n : ℕ} {x : D} |
| 916 | (hx : ∀ i, x ∉ K.carrier n i) : |
| 917 | (a.commonCorrected s d).amplitude n =ᶠ[𝓝 x] fun _ => 0 := by |
| 918 | have h := realizedCoefficient_germ (a.common_zero_germs K hs hx).1 |
| 919 | (a.background.frequency n) (a.background.radius n) (d.radialField n) |
| 920 | (fun _ => d.angular) (d.axialField s n) (a.background.phase n) |
| 921 | simp only [realizedCoefficient_zero] at h |
| 922 | exact h |
| 923 | |
| 924 | theorem commonResidual_zero_germ (K : Cells D I) |
| 925 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 926 | (s : StripData D) (d : GraphDirections D) {n : ℕ} {x : D} |
| 927 | (hx : ∀ i, x ∉ K.carrier n i) : |
| 928 | (a.commonCorrected s d).harmonicResidual s d n =ᶠ[𝓝 x] fun _ => 0 := by |
| 929 | have hu : vectorMode (a.background.frequency n) (a.background.phase n) |
| 930 | ((a.commonCorrected s d).amplitude n) =ᶠ[𝓝 x] (fun _ => 0) := by |
| 931 | filter_upwards [a.commonCorrected_zero_germ K hs s d hx] with y hy |
| 932 | ext i |
| 933 | simp only [vectorMode, mode, hy, Pi.zero_apply, zero_mul] |
| 934 | have hp : mode (a.background.frequency n) (a.background.phase n) |
| 935 | (a.common.pressure n) =ᶠ[𝓝 x] (fun _ => 0) := by |
| 936 | filter_upwards [(a.common_zero_germs K hs hx).2] with y hy |
| 937 | simp only [mode, hy, zero_mul] |
| 938 | have h := linearResidual_germ hu hp (s.epsilon n) (a.background.radius n) |
| 939 | (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 940 | (LinearWaveResidual.timeDirection (s.epsilon n) (d.fastField n) (fun _ => d.slow)) |
| 941 | (LinearWaveResidual.complexBase (a.background.radius n) (a.background.radialBase n) |
| 942 | (a.background.frequencyBase n) (a.background.axialBase n)) |
| 943 | simp only [linearResidual_zero] at h |
| 944 | exact h |
| 945 | |
| 946 | theorem globalGood_germ (K : Cells D I) |
| 947 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 948 | (s : StripData D) (d : GraphDirections D) (n : ℕ) {i : I} {x : D} |
| 949 | (hx : x ∈ K.carrier n i) : a.globalGood s d n =ᶠ[𝓝 x] a.localGood s d n i := |
| 950 | copySum_germ K n _ (a.localGood_support K hs s d n) hx |
| 951 | |
| 952 | theorem globalGood_zero_germ (K : Cells D I) |
| 953 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 954 | (s : StripData D) (d : GraphDirections D) {n : ℕ} {x : D} |
| 955 | (hx : ∀ i, x ∉ K.carrier n i) : a.globalGood s d n =ᶠ[𝓝 x] fun _ => 0 := |
| 956 | copySum_zero_germ K n _ (a.localGood_support K hs s d n) hx |
| 957 | |
| 958 | /-- The global Gaussian field has the full native error as its germ, with |
| 959 | both terms and all cutoff derivatives unchanged. -/ |
| 960 | theorem globalGaussian_germ (K : Cells D I) |
| 961 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 962 | (d : GraphDirections D) (n : ℕ) {i : I} {x : D} (hx : x ∈ K.carrier n i) : |
| 963 | a.globalGaussian d n =ᶠ[𝓝 x] a.localGaussian d n i := by |
| 964 | have hT := copySum_germ K n _ (a.localTail_support K hs d n) hx |
| 965 | have hψ := copySum_germ K n (a.cutoff n) (hs n) hx |
| 966 | filter_upwards [hT, hψ] with y hTy hψy |
| 967 | change copySum (a.localTail d n) y + (1 - copySum (a.cutoff n) y) • a.source n y = |
| 968 | a.localTail d n i y + (1 - a.cutoff n i y) • a.source n y |
| 969 | rw [hTy, hψy] |
| 970 | |
| 971 | /-- The exact uncovered-source term persists outside the cutoff cells. -/ |
| 972 | theorem globalGaussian_uncovered_germ (K : Cells D I) |
| 973 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 974 | (d : GraphDirections D) {n : ℕ} {x : D} (hx : ∀ i, x ∉ K.carrier n i) : |
| 975 | a.globalGaussian d n =ᶠ[𝓝 x] a.source n := by |
| 976 | have hT := copySum_zero_germ K n _ (a.localTail_support K hs d n) hx |
| 977 | have hψ := copySum_zero_germ K n (a.cutoff n) (hs n) hx |
| 978 | filter_upwards [hT, hψ] with y hTy hψy |
| 979 | change copySum (a.localTail d n) y + (1 - copySum (a.cutoff n) y) • a.source n y = _ |
| 980 | rw [hTy, hψy] |
| 981 | simp only [sub_zero, one_smul, zero_add] |
| 982 | |
| 983 | /-- Local native cancellation implies cancellation everywhere on the |
| 984 | whole lift. The source need not vanish on the uncovered complement. -/ |
| 985 | theorem common_cancellation (K : Cells D I) |
| 986 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 987 | (s : StripData D) (d : GraphDirections D) |
| 988 | (hlocal : ∀ n i x, x ∈ s.domain → x ∈ K.carrier n i → |
| 989 | (a.corrected s d i).harmonicResidual s d n x + |
| 990 | (fun j => a.source n x j * carrier (a.background.frequency n) (a.background.phase n) x) = |
| 991 | (fun j => (a.localGood s d n i x j + a.localGaussian d n i x j) * |
| 992 | carrier (a.background.frequency n) (a.background.phase n) x)) |
| 993 | (n : ℕ) {x : D} (hx : x ∈ s.domain) : |
| 994 | (a.commonCorrected s d).harmonicResidual s d n x + |
| 995 | (fun j => a.source n x j * carrier (a.background.frequency n) (a.background.phase n) x) = |
| 996 | (fun j => (a.globalGood s d n x j + a.globalGaussian d n x j) * |
| 997 | carrier (a.background.frequency n) (a.background.phase n) x) := by |
| 998 | classical |
| 999 | by_cases h : ∃ i, x ∈ K.carrier n i |
| 1000 | · obtain ⟨i, hi⟩ := h |
| 1001 | rw [(a.commonCorrected_residual_germ K hs s d n hi).self_of_nhds, |
| 1002 | (a.globalGood_germ K hs s d n hi).self_of_nhds, |
| 1003 | (a.globalGaussian_germ K hs d n hi).self_of_nhds] |
| 1004 | exact hlocal n i x hx hi |
| 1005 | · have hn := not_exists.mp h |
| 1006 | rw [(a.commonResidual_zero_germ K hs s d hn).self_of_nhds, |
| 1007 | (a.globalGood_zero_germ K hs s d hn).self_of_nhds, |
| 1008 | (a.globalGaussian_uncovered_germ K hs d hn).self_of_nhds] |
| 1009 | simp only [zero_add, Pi.zero_apply] |
| 1010 | |
| 1011 | /-- Global classes for the actually localized common velocity and pressure. |
| 1012 | The input fields need be smooth only at their own native support cells. -/ |
| 1013 | theorem common_classes (K : Cells D I) |
| 1014 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1015 | {s : StripData D} {w : ℕ → D → ℝ} {α β : ℝ} |
| 1016 | (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) |
| 1017 | (ha : LocalJets s w α K.carrier (fun n i => (a.localized i).amplitude n)) |
| 1018 | (hp : LocalJets s w β K.carrier (fun n i => (a.localized i).pressure n)) : |
| 1019 | MemClass s w α a.common.amplitude ∧ MemClass s w β a.common.pressure := |
| 1020 | ⟨copySum_memClass K hw (a.localized_amplitude_support K hs) ha, |
| 1021 | copySum_memClass K hw (a.localized_pressure_support K hs) hp⟩ |
| 1022 | |
| 1023 | theorem commonCorrected_class_of_native (K : Cells D I) |
| 1024 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1025 | {s : StripData D} (d : GraphDirections D) {w : ℕ → D → ℝ} {α : ℝ} |
| 1026 | (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) |
| 1027 | (ha : LocalJets s w α K.carrier (fun n i => (a.corrected s d i).amplitude n)) : |
| 1028 | MemClass s w α (a.commonCorrected s d).amplitude := by |
| 1029 | apply memClass_of_local_germs hw ha |
| 1030 | intro n x _ |
| 1031 | classical |
| 1032 | by_cases h : ∃ i, x ∈ K.carrier n i |
| 1033 | · obtain ⟨i, hi⟩ := h |
| 1034 | exact Or.inl ⟨i, hi, a.commonCorrected_amplitude_germ K hs s d n hi⟩ |
| 1035 | · exact Or.inr (a.commonCorrected_zero_germ K hs s d (not_exists.mp h)) |
| 1036 | |
| 1037 | theorem globalGood_class_of_native (K : Cells D I) |
| 1038 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1039 | {s : StripData D} (d : GraphDirections D) {w : ℕ → D → ℝ} {α : ℝ} |
| 1040 | (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) |
| 1041 | (hg : LocalJets s w α K.carrier (a.localGood s d)) : |
| 1042 | MemClass s w α (a.globalGood s d) := |
| 1043 | copySum_memClass K hw (a.localGood_support K hs s d) hg |
| 1044 | |
| 1045 | /-- A nonzero uncovered source is retained and estimated from its own |
| 1046 | primitive jets on that complement. -/ |
| 1047 | theorem globalGaussian_class_with_complement (K : Cells D I) |
| 1048 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1049 | {s : StripData D} (d : GraphDirections D) {w : ℕ → D → ℝ} {α : ℝ} |
| 1050 | (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) |
| 1051 | (hg : LocalJets s w α K.carrier (a.localGaussian d)) |
| 1052 | (hf : ComplementJets s w α K.carrier a.source) : |
| 1053 | MemClass s w α (a.globalGaussian d) := |
| 1054 | memClass_of_local_and_complement_germs hw hg hf |
| 1055 | (fun n _ _ _ hx => a.globalGaussian_germ K hs d n hx) |
| 1056 | (fun _ _ _ hx => a.globalGaussian_uncovered_germ K hs d hx) |
| 1057 | |
| 1058 | /-- The homogeneous construction has only the periodized derivative tail. -/ |
| 1059 | theorem globalGaussian_of_source_zero (d : GraphDirections D) |
| 1060 | (hf : a.source = fun _ _ => 0) : a.globalGaussian d = a.globalTail d := by |
| 1061 | funext n x |
| 1062 | simp [globalGaussian, hf] |
| 1063 | |
| 1064 | /-- The global differential formula corresponding to the sum of native |
| 1065 | good terms. Its equality with that sum is proved from actual germs. -/ |
| 1066 | noncomputable def differentialGood (s : StripData D) (d : GraphDirections D) (n : ℕ) (x : D) : |
| 1067 | ComplexVector := |
| 1068 | a.common.principalVelocity s d (a.common.curlCorrection s d) n x + |
| 1069 | (a.commonCorrected s d).remainder s d n x |
| 1070 | |
| 1071 | theorem differentialGood_germ (K : Cells D I) |
| 1072 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1073 | (s : StripData D) (d : GraphDirections D) (n : ℕ) {i : I} {x : D} |
| 1074 | (hx : x ∈ K.carrier n i) : |
| 1075 | a.differentialGood s d n =ᶠ[𝓝 x] a.localGood s d n i := by |
| 1076 | have hc := curlCorrection_germ (a.common_amplitude_germ K hs n hx) |
| 1077 | (a.background.frequency n) (a.background.radius n) (a.background.phase n) |
| 1078 | (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 1079 | have hp := principal_germ hc (Filter.EventuallyEq.refl (𝓝 x) (fun _ : D => (0 : ℂ))) |
| 1080 | (s.epsilon n) (a.background.frequency n) (a.background.radius n) |
| 1081 | (a.background.frequencyBase n) (a.background.axialBase n) (a.background.phase n) |
| 1082 | (d.radialField n) (fun _ => d.angular) (d.axialField s n) (d.fastField n) |
| 1083 | have hr := remainder_germ (a.commonCorrected_amplitude_germ K hs s d n hx) |
| 1084 | (a.common_pressure_germ K hs n hx) |
| 1085 | (s.epsilon n) (a.background.frequency n) (a.background.radius n) |
| 1086 | (a.background.radialBase n) (a.background.frequencyBase n) (a.background.axialBase n) |
| 1087 | (a.background.phase n) (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 1088 | (d.fastField n) (fun _ => d.slow) |
| 1089 | filter_upwards [hp, hr] with y hpy hry |
| 1090 | exact congrArg₂ (· + ·) hpy hry |
| 1091 | |
| 1092 | theorem differentialGood_zero_germ (K : Cells D I) |
| 1093 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1094 | (s : StripData D) (d : GraphDirections D) {n : ℕ} {x : D} |
| 1095 | (hx : ∀ i, x ∉ K.carrier n i) : |
| 1096 | a.differentialGood s d n =ᶠ[𝓝 x] fun _ => 0 := by |
| 1097 | have hc := curlCorrection_germ (a.common_zero_germs K hs hx).1 |
| 1098 | (a.background.frequency n) (a.background.radius n) (a.background.phase n) |
| 1099 | (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 1100 | simp only [coefficient_zero, curlRemainder_zero] at hc |
| 1101 | have hp := principal_germ hc (Filter.EventuallyEq.refl (𝓝 x) (fun _ : D => (0 : ℂ))) |
| 1102 | (s.epsilon n) (a.background.frequency n) (a.background.radius n) |
| 1103 | (a.background.frequencyBase n) (a.background.axialBase n) (a.background.phase n) |
| 1104 | (d.radialField n) (fun _ => d.angular) (d.axialField s n) (d.fastField n) |
| 1105 | have hr := remainder_germ (a.commonCorrected_zero_germ K hs s d hx) (a.common_zero_germs K hs hx).2 |
| 1106 | (s.epsilon n) (a.background.frequency n) (a.background.radius n) |
| 1107 | (a.background.radialBase n) (a.background.frequencyBase n) (a.background.axialBase n) |
| 1108 | (a.background.phase n) (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 1109 | (d.fastField n) (fun _ => d.slow) |
| 1110 | simp only [principal_zero] at hp |
| 1111 | simp only [remainder_zero] at hr |
| 1112 | filter_upwards [hp, hr] with y hpy hry |
| 1113 | exact (congrArg₂ (· + ·) hpy hry).trans (zero_add 0) |
| 1114 | |
| 1115 | theorem globalGood_eq_differentialGood (K : Cells D I) |
| 1116 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1117 | (s : StripData D) (d : GraphDirections D) : |
| 1118 | a.globalGood s d = a.differentialGood s d := by |
| 1119 | classical |
| 1120 | funext n x |
| 1121 | by_cases h : ∃ i, x ∈ K.carrier n i |
| 1122 | · obtain ⟨i, hi⟩ := h |
| 1123 | exact (a.globalGood_germ K hs s d n hi).self_of_nhds.trans |
| 1124 | (a.differentialGood_germ K hs s d n hi).self_of_nhds.symm |
| 1125 | · exact (a.globalGood_zero_germ K hs s d (not_exists.mp h)).self_of_nhds.trans |
| 1126 | (a.differentialGood_zero_germ K hs s d (not_exists.mp h)).self_of_nhds.symm |
| 1127 | |
| 1128 | /-- Only the carrier, geometry, and base fields of this coefficient are |
| 1129 | used in the background estimates. -/ |
| 1130 | noncomputable def backgroundOnly : WaveCoefficients D := |
| 1131 | { a.background with amplitude := fun _ _ => 0, pressure := fun _ _ => 0 } |
| 1132 | |
| 1133 | theorem common_inputBounds (K : Cells D I) |
| 1134 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1135 | {s : StripData D} {d : GraphDirections D} {W : ℕ → D → ℝ} {α κ : ℝ} |
| 1136 | (hb : InputBounds s W α κ d a.backgroundOnly) |
| 1137 | (ha : LocalJets s (fun n x => Real.sqrt (s.zeta x) * W n x) α K.carrier |
| 1138 | (fun n i => (a.localized i).amplitude n)) |
| 1139 | (hp : LocalJets s (fun n x => Real.sqrt (s.zeta x) * W n x) (α + 1 / 2) K.carrier |
| 1140 | (fun n i => (a.localized i).pressure n)) : |
| 1141 | InputBounds s W α κ d a.common := by |
| 1142 | obtain ⟨hva, hvp⟩ := a.common_classes K hs (hb.amplitude 0).weight_nonneg ha hp |
| 1143 | exact { hb with amplitude := fun i => hva.map (ContinuousLinearMap.proj i), pressure := hvp } |
| 1144 | |
| 1145 | /-- Primitive background estimates and native localized velocity/pressure |
| 1146 | jets imply the actual global curl correction and good-remainder classes. |
| 1147 | Neither a local nor a global remainder-class hypothesis is used. -/ |
| 1148 | theorem common_bounds_from_native (K : Cells D I) |
| 1149 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1150 | {s : StripData D} {d : GraphDirections D} {W : ℕ → D → ℝ} {α κ : ℝ} |
| 1151 | (hb : InputBounds s W α κ d a.backgroundOnly) |
| 1152 | (ha : LocalJets s (fun n x => Real.sqrt (s.zeta x) * W n x) α K.carrier |
| 1153 | (fun n i => (a.localized i).amplitude n)) |
| 1154 | (hp : LocalJets s (fun n x => Real.sqrt (s.zeta x) * W n x) (α + 1 / 2) K.carrier |
| 1155 | (fun n i => (a.localized i).pressure n)) |
| 1156 | (hκ : κ ≤ 1 / 2) {R : D → ℝ} (hR : a.background.radius = fun _ => R) |
| 1157 | (hN : PhaseJetBounds.PolynomialJets (phaseDomain s) (a.background.normal s d)) |
| 1158 | {b M : ℝ} (hpos : 0 < b) |
| 1159 | (hlower : ∀ n x, x ∈ s.domain → b ≤ ‖a.background.normal s d n x‖) |
| 1160 | (hupper : ∀ n x, x ∈ s.domain → ‖a.background.normal s d n x‖ ≤ M) |
| 1161 | (hK : BandBound s (1 / 2) (fun n => 1 / a.background.frequency n)) : |
| 1162 | WaveClass s W α a.common.amplitude ∧ |
| 1163 | WaveClass s W α (a.commonCorrected s d).amplitude ∧ |
| 1164 | WaveClass s W (α + 1 / 2) a.common.pressure ∧ |
| 1165 | WaveClass s W (α + 1 / 2 - κ) (a.common.curlCorrection s d) ∧ |
| 1166 | WaveClass s W (α + 1 / 2 - 3 * κ) (a.globalGood s d) := by |
| 1167 | have h := a.common_inputBounds K hs hb ha hp |
| 1168 | have hc := h.curlCorrection_class hR hN hpos hlower hupper hK |
| 1169 | have hci i := hc.map (ContinuousLinearMap.proj i) |
| 1170 | have hcorrected := h.add_curl_amplitude hκ hci |
| 1171 | refine ⟨component_classes h.amplitude, component_classes hcorrected.amplitude, |
| 1172 | h.pressure, hc, ?_⟩ |
| 1173 | rw [a.globalGood_eq_differentialGood K hs s d] |
| 1174 | exact (h.curl_principal_gain hci).add hcorrected.remainder_class |
| 1175 | |
| 1176 | theorem localGaussian_wave_jets {s : StripData D} (d : GraphDirections D) |
| 1177 | {K : ℕ → I → Set D} {w : ℕ → D → ℝ} {α : ℝ} |
| 1178 | (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) |
| 1179 | (hψ : LocalJets s (fun _ _ => 1) 0 K a.cutoff) |
| 1180 | (hfast : BandBound s 0 d.fastScale) |
| 1181 | (hu : LocalJets s w α K a.amplitude) |
| 1182 | (hf : LocalJets s w α K (fun n _ => a.source n)) : |
| 1183 | LocalJets s w α K (a.localGaussian d) := by |
| 1184 | have hdir := (hψ.fderiv.map (ContinuousLinearMap.apply ℝ ℝ d.fast)).band_smul hfast |
| 1185 | (fun _ _ _ => zero_le_one) |
| 1186 | have hD : LocalJets s (fun _ _ => 1) 0 K |
| 1187 | (fun n i => d.Dfast (fun n => a.cutoff n i) n) := by |
| 1188 | convert! hdir using 1 |
| 1189 | funext n i x |
| 1190 | simp [GraphDirections.Dfast, GraphDirections.fastField, HarmonicCalculus.along] |
| 1191 | have hconst : LocalJets s (fun _ _ => 1) 0 K (fun _ _ (_ : D) => (1 : ℝ)) := |
| 1192 | LocalJets.of_memClass (unweighted_const s 1) |
| 1193 | have hneg := hψ.map (-ContinuousLinearMap.id ℝ ℝ) |
| 1194 | have hminus : LocalJets s (fun _ _ => 1) 0 K (fun n i x => 1 - a.cutoff n i x) := by |
| 1195 | simpa only [_root_.neg_apply, ContinuousLinearMap.id_apply, sub_eq_add_neg] using |
| 1196 | hconst.add hneg (fun _ _ _ => zero_le_one) |
| 1197 | exact (hD.smul hu hw).add (hminus.smul hf hw) hw |
| 1198 | |
| 1199 | theorem localGaussian_zero_of_cutoff_one (d : GraphDirections D) |
| 1200 | {n : ℕ} {i : I} {x : D} (hψ : a.cutoff n i =ᶠ[𝓝 x] fun _ => 1) : |
| 1201 | a.localGaussian d n i =ᶠ[𝓝 x] fun _ => 0 := by |
| 1202 | have hD := along_germ hψ (d.fastField n) |
| 1203 | filter_upwards [hψ, hD] with y hψy hDy |
| 1204 | change along (d.fastField n) (a.cutoff n i) y • _ + (1 - a.cutoff n i y) • _ = 0 |
| 1205 | rw [hDy, hψy] |
| 1206 | simp [along] |
| 1207 | |
| 1208 | theorem localGaussian_zero_of_fields (d : GraphDirections D) |
| 1209 | {n : ℕ} {i : I} {x : D} |
| 1210 | (hu : a.amplitude n i =ᶠ[𝓝 x] fun _ => 0) (hf : a.source n =ᶠ[𝓝 x] fun _ => 0) : |
| 1211 | a.localGaussian d n i =ᶠ[𝓝 x] fun _ => 0 := by |
| 1212 | filter_upwards [hu, hf] with y huy hfy |
| 1213 | simp only [localGaussian, excludedSlotError, huy, hfy, smul_zero, add_zero] |
| 1214 | |
| 1215 | /-- Primitive native amplitude/source/cutoff jets and a Gaussian envelope |
| 1216 | prove flatness of the actual two cutoff products, uniformly over every copy. |
| 1217 | The central alternative allows transverse regions where both fields vanish. -/ |
| 1218 | theorem localGaussian_all_gains_from_native {s : StripData D} (d : GraphDirections D) |
| 1219 | {K : ℕ → I → Set D} {W : ℕ → D → ℝ} {α c : ℝ} |
| 1220 | (hWnonneg : ∀ n x, x ∈ s.domain → 0 ≤ W n x) |
| 1221 | (hψ : LocalJets s (fun _ _ => 1) 0 K a.cutoff) |
| 1222 | (hfast : BandBound s 0 d.fastScale) |
| 1223 | (hu : LocalJets s (fun n x => Real.sqrt (s.zeta x) * W n x) α K a.amplitude) |
| 1224 | (hf : LocalJets s (fun n x => Real.sqrt (s.zeta x) * W n x) α K (fun n _ => a.source n)) |
| 1225 | (edges : GaussianTailFlat.FlatEdges s) (scales : GaussianTailFlat.BandScaleControl s) |
| 1226 | (θ : ℕ → I → D → ℝ) (L : ℕ → ℝ) (hL : ∀ n, 0 < L n) |
| 1227 | (ell : ℝ) (hell : 0 < ell) (hLell : ∀ n, ell * ChartScales.S n ≤ L n) (hc : 0 < c) |
| 1228 | (hW : ∀ n i x, x ∈ s.domain → x ∈ K n i → |
| 1229 | W n x ≤ Real.exp (-c * (θ n i x - 1 / 2) ^ 2 * L n)) |
| 1230 | (hcentral : ∀ n i x, x ∈ s.domain → x ∈ K n i → |θ n i x - 1 / 2| < 1 / 5 → |
| 1231 | (a.cutoff n i =ᶠ[𝓝 x] fun _ => 1) ∨ |
| 1232 | ((a.amplitude n i =ᶠ[𝓝 x] fun _ => 0) ∧ (a.source n =ᶠ[𝓝 x] fun _ => 0))) |
| 1233 | (β : ℝ) : LocalJets s (fun _ _ => 1) β K (a.localGaussian d) := by |
| 1234 | have hj := a.localGaussian_wave_jets d |
| 1235 | (fun n x hx => mul_nonneg (Real.sqrt_nonneg _) (hWnonneg n x hx)) hψ hfast hu hf |
| 1236 | apply local_gaussian_all_gains hj edges scales θ L hL ell hell hLell hc hW _ β |
| 1237 | intro n i x hx hi hmid |
| 1238 | rcases hcentral n i x hx hi hmid with hone | ⟨hu0, hf0⟩ |
| 1239 | · exact a.localGaussian_zero_of_cutoff_one d hone |
| 1240 | · exact a.localGaussian_zero_of_fields d hu0 hf0 |
| 1241 | |
| 1242 | theorem common_potential_germ (K : Cells D I) |
| 1243 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1244 | (s : StripData D) (d : GraphDirections D) (n : ℕ) {i : I} {x : D} |
| 1245 | (hx : x ∈ K.carrier n i) : |
| 1246 | a.common.curlPotential s d n =ᶠ[𝓝 x] (a.localized i).curlPotential s d n := |
| 1247 | potential_germ (a.common_amplitude_germ K hs n hx) (a.background.frequency n) |
| 1248 | (a.background.radius n) (a.background.phase n) (d.radialField n) |
| 1249 | (fun _ => d.angular) (d.axialField s n) |
| 1250 | |
| 1251 | theorem common_potential_zero_germ (K : Cells D I) |
| 1252 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1253 | (s : StripData D) (d : GraphDirections D) {n : ℕ} {x : D} |
| 1254 | (hx : ∀ i, x ∉ K.carrier n i) : |
| 1255 | a.common.curlPotential s d n =ᶠ[𝓝 x] fun _ => 0 := by |
| 1256 | have h := potential_germ (a.common_zero_germs K hs hx).1 (a.background.frequency n) |
| 1257 | (a.background.radius n) (a.background.phase n) (d.radialField n) |
| 1258 | (fun _ => d.angular) (d.axialField s n) |
| 1259 | simp only [vectorPotential_zero] at h |
| 1260 | exact h |
| 1261 | |
| 1262 | /-- The globally assembled velocity is the actual curl of the globally |
| 1263 | assembled potential whenever the native construction has that identity. -/ |
| 1264 | theorem common_realizes_curl (K : Cells D I) |
| 1265 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1266 | (s : StripData D) (d : GraphDirections D) |
| 1267 | (hnative : ∀ n i x, x ∈ s.domain → x ∈ K.carrier n i → |
| 1268 | cylindricalCurl (a.background.radius n) (d.radialField n) (fun _ => d.angular) |
| 1269 | (d.axialField s n) ((a.localized i).curlPotential s d n) x = |
| 1270 | vectorMode (a.background.frequency n) (a.background.phase n) |
| 1271 | ((a.corrected s d i).amplitude n) x) |
| 1272 | (n : ℕ) {x : D} (hx : x ∈ s.domain) : |
| 1273 | cylindricalCurl (a.background.radius n) (d.radialField n) (fun _ => d.angular) |
| 1274 | (d.axialField s n) (a.common.curlPotential s d n) x = |
| 1275 | vectorMode (a.background.frequency n) (a.background.phase n) |
| 1276 | ((a.commonCorrected s d).amplitude n) x := by |
| 1277 | classical |
| 1278 | by_cases h : ∃ i, x ∈ K.carrier n i |
| 1279 | · obtain ⟨i, hi⟩ := h |
| 1280 | rw [(curl_germ (a.common_potential_germ K hs s d n hi) (a.background.radius n) |
| 1281 | (d.radialField n) (fun _ => d.angular) (d.axialField s n)).self_of_nhds] |
| 1282 | rw [(vectorMode_germ (a.commonCorrected_amplitude_germ K hs s d n hi) |
| 1283 | (a.background.frequency n) (a.background.phase n)).self_of_nhds] |
| 1284 | exact hnative n i x hx hi |
| 1285 | · have hn := not_exists.mp h |
| 1286 | rw [(curl_germ (a.common_potential_zero_germ K hs s d hn) (a.background.radius n) |
| 1287 | (d.radialField n) (fun _ => d.angular) (d.axialField s n)).self_of_nhds] |
| 1288 | rw [(vectorMode_germ (a.commonCorrected_zero_germ K hs s d hn) |
| 1289 | (a.background.frequency n) (a.background.phase n)).self_of_nhds] |
| 1290 | ext i |
| 1291 | simp [cylindricalCurl_zero, HarmonicCalculus.vectorMode, HarmonicCalculus.mode] |
| 1292 | |
| 1293 | /-- A local differential identity is transported through full neighborhood |
| 1294 | germs, so the support boundary contributes no extra divergence. -/ |
| 1295 | theorem common_divergence_zero (K : Cells D I) |
| 1296 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1297 | (s : StripData D) (d : GraphDirections D) |
| 1298 | (hnative : ∀ n i x, x ∈ s.domain → x ∈ K.carrier n i → |
| 1299 | cylindricalDivergence (a.background.radius n) (d.radialField n) (fun _ => d.angular) |
| 1300 | (d.axialField s n) (vectorMode (a.background.frequency n) (a.background.phase n) |
| 1301 | ((a.corrected s d i).amplitude n)) x = 0) |
| 1302 | (n : ℕ) {x : D} (hx : x ∈ s.domain) : |
| 1303 | cylindricalDivergence (a.background.radius n) (d.radialField n) (fun _ => d.angular) |
| 1304 | (d.axialField s n) (vectorMode (a.background.frequency n) (a.background.phase n) |
| 1305 | ((a.commonCorrected s d).amplitude n)) x = 0 := by |
| 1306 | classical |
| 1307 | by_cases h : ∃ i, x ∈ K.carrier n i |
| 1308 | · obtain ⟨i, hi⟩ := h |
| 1309 | have hg := divergence_germ (vectorMode_germ (a.commonCorrected_amplitude_germ K hs s d n hi) |
| 1310 | (a.background.frequency n) (a.background.phase n)) (a.background.radius n) |
| 1311 | (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 1312 | exact hg.self_of_nhds.trans (hnative n i x hx hi) |
| 1313 | · have hu : vectorMode (a.background.frequency n) (a.background.phase n) |
| 1314 | ((a.commonCorrected s d).amplitude n) =ᶠ[𝓝 x] (fun _ => 0) := by |
| 1315 | filter_upwards [a.commonCorrected_zero_germ K hs s d (not_exists.mp h)] with y hy |
| 1316 | ext i |
| 1317 | simp only [HarmonicCalculus.vectorMode, HarmonicCalculus.mode, hy, Pi.zero_apply, zero_mul] |
| 1318 | have hg := divergence_germ hu (a.background.radius n) (d.radialField n) |
| 1319 | (fun _ => d.angular) (d.axialField s n) |
| 1320 | simpa only [cylindricalDivergence_zero] using hg.self_of_nhds |
| 1321 | |
| 1322 | open CopyAngularInvariance in |
| 1323 | theorem common_amplitude_invariant (v : D) |
| 1324 | (hψ : ∀ n i, Invariant v (a.cutoff n i)) |
| 1325 | (hu : ∀ n i, Invariant v (a.amplitude n i)) (n : ℕ) : |
| 1326 | Invariant v (a.common.amplitude n) := |
| 1327 | Invariant.tsum_invariant (fun i => (hψ n i).map₂ (hu n i) (fun r u => r • u)) |
| 1328 | |
| 1329 | open CopyAngularInvariance in |
| 1330 | theorem common_pressure_invariant (v : D) |
| 1331 | (hψ : ∀ n i, Invariant v (a.cutoff n i)) |
| 1332 | (hp : ∀ n i, Invariant v (a.pressure n i)) (n : ℕ) : |
| 1333 | Invariant v (a.common.pressure n) := |
| 1334 | Invariant.tsum_invariant (fun i => (hψ n i).map₂ (hp n i) (fun r p => (r : ℂ) * p)) |
| 1335 | |
| 1336 | open CopyAngularInvariance in |
| 1337 | theorem commonCorrected_invariant (s : StripData D) (d : GraphDirections D) (v : D) |
| 1338 | (hψ : ∀ n i, Invariant v (a.cutoff n i)) |
| 1339 | (hu : ∀ n i, Invariant v (a.amplitude n i)) |
| 1340 | (hR : ∀ n, Invariant v (a.background.radius n)) |
| 1341 | (hr : ∀ n, Invariant v (d.radialField n)) |
| 1342 | (hz : ∀ n, Invariant v (d.axialField s n)) |
| 1343 | (hΦ : ∀ n, ∃ m, AffinePhase v m (a.background.phase n)) (n : ℕ) : |
| 1344 | Invariant v ((a.commonCorrected s d).amplitude n) := by |
| 1345 | obtain ⟨m, hm⟩ := hΦ n |
| 1346 | exact realizedCoefficient_invariant (hR n) (hr n) (Invariant.const _) (hz n) hm |
| 1347 | (a.common_amplitude_invariant v hψ hu n) (a.background.frequency n) |
| 1348 | |
| 1349 | open CopyAngularInvariance in |
| 1350 | theorem globalGaussian_invariant (d : GraphDirections D) (v : D) |
| 1351 | (hψ : ∀ n i, Invariant v (a.cutoff n i)) |
| 1352 | (hu : ∀ n i, Invariant v (a.amplitude n i)) |
| 1353 | (hf : ∀ n, Invariant v (a.source n)) (n : ℕ) : |
| 1354 | Invariant v (a.globalGaussian d n) := by |
| 1355 | have hT : Invariant v (a.globalTail d n) := Invariant.tsum_invariant (fun i => |
| 1356 | ((hψ n i).along (Invariant.const _)).map₂ (hu n i) (fun r u => r • u)) |
| 1357 | have hS : Invariant v (a.cutoffSum n) := Invariant.tsum_invariant (hψ n) |
| 1358 | exact hT.map₂ (hS.map₂ (hf n) (fun r f => (1 - r) • f)) (fun u w => u + w) |
| 1359 | |
| 1360 | open CopyAngularInvariance in |
| 1361 | theorem globalGood_invariant (s : StripData D) (d : GraphDirections D) |
| 1362 | (hψ : ∀ n i, Invariant d.angular (a.cutoff n i)) |
| 1363 | (hu : ∀ n i, Invariant d.angular (a.amplitude n i)) |
| 1364 | (hp : ∀ n i, Invariant d.angular (a.pressure n i)) |
| 1365 | (hR : ∀ n, Invariant d.angular (a.background.radius n)) |
| 1366 | (hb : ∀ n, Invariant d.angular (a.background.radialBase n)) |
| 1367 | (hF : ∀ n, Invariant d.angular (a.background.frequencyBase n)) |
| 1368 | (hG : ∀ n, Invariant d.angular (a.background.axialBase n)) |
| 1369 | (hr : ∀ n, Invariant d.angular (d.radialField n)) |
| 1370 | (hz : ∀ n, Invariant d.angular (d.axialField s n)) |
| 1371 | (hΦ : ∀ n, ∃ m, AffinePhase d.angular m (a.background.phase n)) (n : ℕ) : |
| 1372 | Invariant d.angular (a.globalGood s d n) := |
| 1373 | Invariant.tsum_invariant (fun i => constructedGood_invariant (a := a.raw i) |
| 1374 | (fun n => a.cutoff n i) hR hb hF hG hr hz hΦ (fun n => hu n i) (fun n => hp n i) |
| 1375 | (fun n => hψ n i) n) |
| 1376 | |
| 1377 | end CopyData |
| 1378 | |
| 1379 | end WaveData |
| 1380 | |
| 1381 | section ActualParticularData |
| 1382 | |
| 1383 | open CommonCoverSolve TorusInverse TorusAverages ParticularWaveBounds |
| 1384 | open ParticularWaveAssembly HarmonicCalculus LinearWaveBounds |
| 1385 | open CorrectionState ErrorHarmonics |
| 1386 | |
| 1387 | variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 1388 | |
| 1389 | /-- Actual complex copy solves with arbitrary band-dependent entry/exit |
| 1390 | times. In particular, a transported clock may use `exit = length / clock`. |
| 1391 | The tangent coefficients, source, geometry, and frequency are the actual |
| 1392 | inputs of `complexCopyVelocity` and its projected pressure. -/ |
| 1393 | noncomputable def complexCopyData (base : WaveCoefficients (P × Plane)) |
| 1394 | (t : ℕ → TangentData P ProblemStatement.Space) (source : ℕ → P × Plane → ComplexVector) |
| 1395 | (g : ℕ → Geometry) (entry exit : ℕ → ℝ) (hab : ∀ n, entry n ≤ exit n) |
| 1396 | (κ : ℕ → Plane → ℝ) : CopyData (P × Plane) Frequency where |
| 1397 | background := base |
| 1398 | amplitude n k := complexCopyVelocity (t n) (source n) (g n) (hab n) k |
| 1399 | pressure n k := complexCopyPressure (t n) (source n) (g n) (hab n) k (base.frequency n) |
| 1400 | cutoff n k z := κ n ((g n).coordinates k z.2) |
| 1401 | source := source |
| 1402 | |
| 1403 | end ActualParticularData |
| 1404 | |
| 1405 | end NavierStokes.PeriodizedWaveBounds |