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 | /-- The proof also gives the very same prefix constants globally. -/ |
| 135 | theorem copySum_jet_bound (K : Cells D I) {s : StripData D} {w : ℕ → D → ℝ} |
| 136 | {α C : ℝ} {p m : ℕ} (hC : 0 ≤ C) (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) |
| 137 | {f : ℕ → I → D → E} (hs : ∀ n i, support (f n i) ⊆ K.carrier n i) |
| 138 | (hb : ∀ n i x, x ∈ s.domain → x ∈ K.carrier n i → ∀ j ≤ m, |
| 139 | ‖iteratedFDeriv ℝ j (f n i) x‖ ≤ majorant s w α C p n x) |
| 140 | (n : ℕ) {x : D} (hx : x ∈ s.domain) (j : ℕ) (hj : j ≤ m) : |
| 141 | ‖iteratedFDeriv ℝ j (copySum (f n)) x‖ ≤ majorant s w α C p n x := by |
| 142 | rcases copySum_germ_cover K n (f n) (hs n) x with ⟨i, hxi, hg⟩ | hg |
| 143 | · rw [jets_eq_of_germ hg j] |
| 144 | exact hb n i x hx hxi j hj |
| 145 | · simp only [jets_eq_of_germ hg j, iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero] |
| 146 | exact majorant_nonneg s w α hC p n x (hw n x hx) |
| 147 | |
| 148 | omit [NormedSpace ℝ D] [NormedSpace ℝ E] in |
| 149 | theorem copySum_support (K : Cells D I) (n : ℕ) (f : I → D → E) |
| 150 | (hs : ∀ i, support (f i) ⊆ K.carrier n i) : |
| 151 | support (copySum f) ⊆ ⋃ i, K.carrier n i := by |
| 152 | intro x hx |
| 153 | by_contra hn |
| 154 | have hz := copySum_zero_germ K n f hs (by simpa using hn) |
| 155 | exact hx hz.self_of_nhds |
| 156 | |
| 157 | omit [NormedSpace ℝ D] [NormedSpace ℝ E] in |
| 158 | theorem copySum_eventually_finite (K : Cells D I) (n : ℕ) (f : I → D → E) |
| 159 | (hs : ∀ i, support (f i) ⊆ K.carrier n i) (x : D) : |
| 160 | ∃ J : Finset I, copySum f =ᶠ[𝓝 x] fun y => ∑ i ∈ J, f i y := by |
| 161 | classical |
| 162 | obtain ⟨U, hU, hfin⟩ := K.locallyFinite n x |
| 163 | refine ⟨hfin.toFinset, ?_⟩ |
| 164 | filter_upwards [hU] with y hy |
| 165 | apply tsum_eq_sum |
| 166 | intro i hi |
| 167 | by_contra hne |
| 168 | apply hi |
| 169 | exact hfin.mem_toFinset.mpr ⟨y, hs i hne, hy⟩ |
| 170 | |
| 171 | omit [NormedSpace ℝ D] [NormedSpace ℝ E] in |
| 172 | theorem copySum_tsupport (K : Cells D I) (n : ℕ) (f : I → D → E) |
| 173 | (hs : ∀ i, support (f i) ⊆ K.carrier n i) : |
| 174 | tsupport (copySum f) ⊆ ⋃ i, K.carrier n i := |
| 175 | closure_minimal (copySum_support K n f hs) ((K.locallyFinite n).isClosed_iUnion (K.closed n)) |
| 176 | |
| 177 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] [NormedSpace ℝ E] in |
| 178 | theorem copySum_translate (f : I → D → E) (T : D → D) (e : I ≃ I) |
| 179 | (h : ∀ i x, f (e i) (T x) = f i x) (x : D) : |
| 180 | copySum f (T x) = copySum f x := by |
| 181 | unfold copySum |
| 182 | calc |
| 183 | _ = ∑' i, f (e i) (T x) := (e.tsum_eq (fun i => f i (T x))).symm |
| 184 | _ = _ := tsum_congr (fun i => h i x) |
| 185 | |
| 186 | /-- Only the primitive source is estimated on the uncovered set. This is |
| 187 | useful when coverage gives a small tail instead of an identically zero one. -/ |
| 188 | structure ComplementJets (s : StripData D) (w : ℕ → D → ℝ) (α : ℝ) |
| 189 | (K : ℕ → I → Set D) (f : ℕ → D → E) : Prop where |
| 190 | smooth : ∀ n x, x ∈ s.domain → (∀ i, x ∉ K n i) → ContDiffAt ℝ ∞ (f n) x |
| 191 | bounds : ∀ m : ℕ, ∃ C : ℝ, 0 ≤ C ∧ ∃ p : ℕ, |
| 192 | ∀ n x, x ∈ s.domain → (∀ i, x ∉ K n i) → ∀ j : ℕ, j ≤ m → |
| 193 | ‖iteratedFDeriv ℝ j (f n) x‖ ≤ majorant s w α C p n x |
| 194 | |
| 195 | theorem majorant_mono_constant (s : StripData D) (w : ℕ → D → ℝ) (α : ℝ) |
| 196 | {C B : ℝ} (hCB : C ≤ B) (p n : ℕ) (x : D) (hw : 0 ≤ w n x) : |
| 197 | majorant s w α C p n x ≤ majorant s w α B p n x := by |
| 198 | have hnonneg : 0 ≤ s.epsilon n ^ α * s.growth n x ^ p * w n x := |
| 199 | mul_nonneg (mul_nonneg (Real.rpow_pos_of_pos (s.epsilon_pos n) α).le |
| 200 | (pow_nonneg (s.growth_nonneg n x) p)) hw |
| 201 | simpa only [majorant, mul_assoc] using mul_le_mul_of_nonneg_right hCB hnonneg |
| 202 | |
| 203 | theorem memClass_of_local_and_complement_germs |
| 204 | {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} |
| 205 | {K : ℕ → I → Set D} {f : ℕ → I → D → E} {f₀ F : ℕ → D → E} |
| 206 | (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) |
| 207 | (hlocal : LocalJets s w α K f) (houtside : ComplementJets s w α K f₀) |
| 208 | (hactive : ∀ n i x, x ∈ s.domain → x ∈ K n i → F n =ᶠ[𝓝 x] f n i) |
| 209 | (hinactive : ∀ n x, x ∈ s.domain → (∀ i, x ∉ K n i) → F n =ᶠ[𝓝 x] f₀ n) : |
| 210 | MemClass s w α F := by |
| 211 | classical |
| 212 | refine ⟨hw, ?_, ?_⟩ |
| 213 | · intro n |
| 214 | apply s.isOpen_domain.contDiffOn_iff.mpr |
| 215 | intro x hx |
| 216 | by_cases h : ∃ i, x ∈ K n i |
| 217 | · obtain ⟨i, hi⟩ := h |
| 218 | exact (hlocal.smooth n i x hx hi).congr_of_eventuallyEq (hactive n i x hx hi) |
| 219 | · exact (houtside.smooth n x hx (not_exists.mp h)).congr_of_eventuallyEq |
| 220 | (hinactive n x hx (not_exists.mp h)) |
| 221 | · intro m |
| 222 | obtain ⟨C, hC, p, hB⟩ := hlocal.bounds m |
| 223 | obtain ⟨C₀, hC₀, p₀, hB₀⟩ := houtside.bounds m |
| 224 | refine ⟨C + C₀, add_nonneg hC hC₀, max p p₀, ?_⟩ |
| 225 | intro n x hx j hj |
| 226 | by_cases h : ∃ i, x ∈ K n i |
| 227 | · obtain ⟨i, hi⟩ := h |
| 228 | rw [jets_eq_of_germ (hactive n i x hx hi) j] |
| 229 | exact (hB n i x hx hi j hj).trans |
| 230 | ((majorant_mono_degree s w α hC (le_max_left _ _) n x (hw n x hx)).trans |
| 231 | (majorant_mono_constant s w α (le_add_of_nonneg_right hC₀) _ n x (hw n x hx))) |
| 232 | · rw [jets_eq_of_germ (hinactive n x hx (not_exists.mp h)) j] |
| 233 | exact (hB₀ n x hx (not_exists.mp h) j hj).trans |
| 234 | ((majorant_mono_degree s w α hC₀ (le_max_right _ _) n x (hw n x hx)).trans |
| 235 | (majorant_mono_constant s w α (le_add_of_nonneg_left hC) _ n x (hw n x hx))) |
| 236 | |
| 237 | omit [NormedSpace ℝ D] [NormedSpace ℝ E] in |
| 238 | theorem source_zero_germ (K : Cells D I) {f : ℕ → D → E} |
| 239 | (hs : ∀ n, support (f n) ⊆ ⋃ i, K.carrier n i) {n : ℕ} {x : D} |
| 240 | (hx : ∀ i, x ∉ K.carrier n i) : f n =ᶠ[𝓝 x] fun _ => 0 := |
| 241 | zero_germ_of_support ((K.locallyFinite n).isClosed_iUnion (K.closed n)) (hs n) |
| 242 | (by simpa only [mem_iUnion, not_exists] using hx) |
| 243 | |
| 244 | end LocalGluing |
| 245 | |
| 246 | section UniformLabels |
| 247 | |
| 248 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 249 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] {L I : Type*} |
| 250 | |
| 251 | /-- Native bounds uniform also in an external spatial label. The lattice |
| 252 | copy remains a separate index, so overlap among different labels is not |
| 253 | mistaken for disjointness of copies of one label. -/ |
| 254 | structure UniformLocalJets (s : StripData D) (w : L → ℕ → D → ℝ) (α : ℝ) |
| 255 | (K : L → ℕ → I → Set D) (f : L → ℕ → I → D → E) : Prop where |
| 256 | smooth : ∀ l n i x, x ∈ s.domain → x ∈ K l n i → ContDiffAt ℝ ∞ (f l n i) x |
| 257 | bounds : ∀ m : ℕ, ∃ C : ℝ, 0 ≤ C ∧ ∃ p : ℕ, |
| 258 | ∀ l n i x, x ∈ s.domain → x ∈ K l n i → ∀ j : ℕ, j ≤ m → |
| 259 | ‖iteratedFDeriv ℝ j (f l n i) x‖ ≤ majorant s (w l) α C p n x |
| 260 | |
| 261 | theorem UniformLocalJets.each {s : StripData D} {w : L → ℕ → D → ℝ} {α : ℝ} |
| 262 | {K : L → ℕ → I → Set D} {f : L → ℕ → I → D → E} |
| 263 | (hf : UniformLocalJets s w α K f) (l : L) : LocalJets s (w l) α (K l) (f l) := by |
| 264 | refine ⟨hf.smooth l, ?_⟩ |
| 265 | intro m |
| 266 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 267 | exact ⟨C, hC, p, hb l⟩ |
| 268 | |
| 269 | theorem uniformClass_of_local_germs {s : StripData D} {w : L → ℕ → D → ℝ} {α : ℝ} |
| 270 | {K : L → ℕ → I → Set D} {f : L → ℕ → I → D → E} {F : L → ℕ → D → E} |
| 271 | (hw : ∀ l n x, x ∈ s.domain → 0 ≤ w l n x) (hj : UniformLocalJets s w α K f) |
| 272 | (hcover : ∀ l n x, x ∈ s.domain → |
| 273 | (∃ i, x ∈ K l n i ∧ F l n =ᶠ[𝓝 x] f l n i) ∨ F l n =ᶠ[𝓝 x] fun _ => 0) : |
| 274 | LabelSumBounds.UniformClass s w α F := by |
| 275 | refine ⟨hw, fun l => (memClass_of_local_germs (hw l) (hj.each l) (hcover l)).smooth, ?_⟩ |
| 276 | intro m |
| 277 | obtain ⟨C, hC, p, hb⟩ := hj.bounds m |
| 278 | refine ⟨C, hC, p, ?_⟩ |
| 279 | intro l n x hx j hjm |
| 280 | rcases hcover l n x hx with ⟨i, hi, hg⟩ | hg |
| 281 | · rw [jets_eq_of_germ hg j] |
| 282 | exact hb l n i x hx hi j hjm |
| 283 | · simp only [jets_eq_of_germ hg j, iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero] |
| 284 | exact majorant_nonneg s (w l) α hC p n x (hw l n x hx) |
| 285 | |
| 286 | theorem copySum_uniformClass {s : StripData D} {w : L → ℕ → D → ℝ} {α : ℝ} |
| 287 | (K : L → Cells D I) {f : L → ℕ → I → D → E} |
| 288 | (hw : ∀ l n x, x ∈ s.domain → 0 ≤ w l n x) |
| 289 | (hs : ∀ l n i, support (f l n i) ⊆ (K l).carrier n i) |
| 290 | (hj : UniformLocalJets s w α (fun l => (K l).carrier) f) : |
| 291 | LabelSumBounds.UniformClass s w α (fun l n => copySum (f l n)) := |
| 292 | uniformClass_of_local_germs hw hj (fun l n x _ => copySum_germ_cover (K l) n (f l n) (hs l n) x) |
| 293 | |
| 294 | end UniformLabels |
| 295 | |
| 296 | section NativeCells |
| 297 | |
| 298 | open CommonCoverSolve TorusInverse TorusAverages |
| 299 | |
| 300 | variable {P E : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 301 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 302 | |
| 303 | noncomputable def nativeCell (g : Geometry) (K : Set Plane) (k : Frequency) : Set (P × Plane) := |
| 304 | {z | g.coordinates k z.2 ∈ K} |
| 305 | |
| 306 | omit [NormedSpace ℝ P] in |
| 307 | theorem nativeCell_closed (g : Geometry) {K : Set Plane} (hK : IsClosed K) (k : Frequency) : |
| 308 | IsClosed (nativeCell (P := P) g K k) := |
| 309 | hK.preimage ((g.coordinates_contDiff k).continuous.comp continuous_snd) |
| 310 | |
| 311 | omit [NormedSpace ℝ P] in |
| 312 | /-- Compact native cells have a locally finite family of all lattice copies. |
| 313 | This applies to a rectangle as well as the actual closed cutoff support. -/ |
| 314 | theorem nativeCell_locallyFinite (g : Geometry) {K : Set Plane} (hK : IsCompact K) : |
| 315 | LocallyFinite (nativeCell (P := P) g K) := by |
| 316 | classical |
| 317 | let κ : Plane → ℝ := K.indicator (fun _ => 1) |
| 318 | have hκ : HasCompactSupport κ := |
| 319 | HasCompactSupport.intro' (K := K) hK hK.isClosed (fun z hz => by simp [κ, hz]) |
| 320 | intro z |
| 321 | obtain ⟨s, hs⟩ := g.finite_copy_cutoffs hκ (‖z.2‖ + 1) |
| 322 | refine ⟨{y : P × Plane | ‖y.2‖ < ‖z.2‖ + 1}, |
| 323 | (isOpen_lt continuous_snd.norm continuous_const).mem_nhds (by simp), ?_⟩ |
| 324 | apply s.finite_toSet.subset |
| 325 | intro k hk |
| 326 | obtain ⟨y, hy, hnorm⟩ := hk |
| 327 | by_contra hnot |
| 328 | have hh := hs y.2 hnorm.le k hnot |
| 329 | change g.coordinates k y.2 ∈ K at hy |
| 330 | simp [κ, hy] at hh |
| 331 | |
| 332 | noncomputable def nativeCells (g : ℕ → Geometry) (K : ℕ → Set Plane) |
| 333 | (hK : ∀ n, IsCompact (K n)) |
| 334 | (hinj : ∀ n, InjOn quotientPoint ((fun z => (g n).center + (g n).basis z) '' K n)) : |
| 335 | Cells (P × Plane) Frequency where |
| 336 | carrier n := nativeCell (g n) (K n) |
| 337 | closed n := nativeCell_closed (g n) (hK n).isClosed |
| 338 | locallyFinite n := nativeCell_locallyFinite (g n) (hK n) |
| 339 | unique n _ _ _ hi hj := ParticularWaveAssembly.native_copy_unique (g n) (hinj n) hi hj |
| 340 | |
| 341 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] in |
| 342 | theorem native_cutoff_support (g : Geometry) {K : Set Plane} {κ : Plane → ℝ} |
| 343 | (hκ : support κ ⊆ K) (k : Frequency) : |
| 344 | support (fun z : P × Plane => κ (g.coordinates k z.2)) ⊆ nativeCell g K k := |
| 345 | fun _ hx => hκ hx |
| 346 | |
| 347 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] in |
| 348 | theorem native_localized_support (g : Geometry) {K : Set Plane} {κ : Plane → ℝ} |
| 349 | (hκ : support κ ⊆ K) (f : Frequency → P × Plane → E) (k : Frequency) : |
| 350 | support (fun z => κ (g.coordinates k z.2) • f k z) ⊆ nativeCell g K k := by |
| 351 | intro z hz |
| 352 | apply hκ |
| 353 | intro he |
| 354 | exact hz (by simp only [he, zero_smul]) |
| 355 | |
| 356 | /-- Whole-lift weighted bounds for the literal common-copy sum. The native |
| 357 | smoothness and all-jet estimates are needed only on their own support cell. -/ |
| 358 | theorem periodizedCopies_memClass {s : StripData (P × Plane)} {w : ℕ → P × Plane → ℝ} |
| 359 | {α : ℝ} (g : ℕ → Geometry) (K : ℕ → Set Plane) (hK : ∀ n, IsCompact (K n)) |
| 360 | (hinj : ∀ n, InjOn quotientPoint ((fun z => (g n).center + (g n).basis z) '' K n)) |
| 361 | (κ : ℕ → Plane → ℝ) (hκ : ∀ n, support (κ n) ⊆ K n) |
| 362 | (f : ℕ → Frequency → P × Plane → E) |
| 363 | (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) |
| 364 | (hj : LocalJets s w α (fun n => nativeCell (g n) (K n)) |
| 365 | (fun n k x => κ n ((g n).coordinates k x.2) • f n k x)) : |
| 366 | MemClass s w α (fun n => ParticularWaveBounds.periodizedCopies (g n) (κ n) (f n)) := |
| 367 | copySum_memClass (s := s) (w := w) (α := α) (nativeCells (P := P) g K hK hinj) hw |
| 368 | (fun n => native_localized_support (g n) (hκ n) (f n)) hj |
| 369 | |
| 370 | end NativeCells |
| 371 | |
| 372 | section NativeJetOperations |
| 373 | |
| 374 | variable {D E F G : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 375 | [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 376 | [NormedAddCommGroup G] [NormedSpace ℝ G] {I : Type*} |
| 377 | |
| 378 | private theorem finite_le_infty (m : ℕ) : (m : WithTop ℕ∞) ≤ ∞ := |
| 379 | WithTop.coe_le_coe.mpr le_top |
| 380 | |
| 381 | private theorem bilinear_jet_at (L : E →L[ℝ] F →L[ℝ] G) |
| 382 | {u : D → E} {v : D → F} {x : D} (hu : ContDiffAt ℝ ∞ u x) |
| 383 | (hv : ContDiffAt ℝ ∞ v x) {A B : ℝ} (hA : 0 ≤ A) (hB : 0 ≤ B) |
| 384 | {m j : ℕ} (hj : j ≤ m) |
| 385 | (hbu : ∀ k ≤ m, ‖iteratedFDeriv ℝ k u x‖ ≤ A) |
| 386 | (hbv : ∀ k ≤ m, ‖iteratedFDeriv ℝ k v x‖ ≤ B) : |
| 387 | ‖iteratedFDeriv ℝ j (fun y => L (u y) (v y)) x‖ ≤ ‖L‖ * (2 : ℝ) ^ m * A * B := by |
| 388 | obtain ⟨U, hU, huU⟩ := hu.contDiffOn (finite_le_infty j) (by simp) |
| 389 | obtain ⟨V, hV, hvV⟩ := hv.contDiffOn (finite_le_infty j) (by simp) |
| 390 | obtain ⟨O, hOsub, hO, hxO⟩ := mem_nhds_iff.mp (inter_mem hU hV) |
| 391 | have hle := JetBounds.norm_iteratedFDeriv_bilinear_le_on L hO |
| 392 | (huU.mono (hOsub.trans inter_subset_left)) |
| 393 | (hvV.mono (hOsub.trans inter_subset_right)) hxO (le_refl (j : WithTop ℕ∞)) |
| 394 | have hsum : (∑ k ∈ Finset.range (j + 1), (j.choose k : ℝ) * |
| 395 | ‖iteratedFDeriv ℝ k u x‖ * ‖iteratedFDeriv ℝ (j - k) v x‖) ≤ (2 : ℝ) ^ m * A * B := by |
| 396 | calc |
| 397 | _ ≤ ∑ k ∈ Finset.range (j + 1), (j.choose k : ℝ) * A * B := by |
| 398 | apply Finset.sum_le_sum |
| 399 | intro k hk |
| 400 | have hkj : k ≤ j := Nat.le_of_lt_succ (Finset.mem_range.mp hk) |
| 401 | exact mul_le_mul (mul_le_mul_of_nonneg_left (hbu k (hkj.trans hj)) (Nat.cast_nonneg _)) |
| 402 | (hbv (j - k) ((Nat.sub_le _ _).trans hj)) (norm_nonneg _) |
| 403 | (mul_nonneg (Nat.cast_nonneg _) hA) |
| 404 | _ = (2 : ℝ) ^ j * A * B := by |
| 405 | rw [← Finset.sum_mul, ← Finset.sum_mul] |
| 406 | have hchoose : (∑ k ∈ Finset.range (j + 1), (j.choose k : ℝ)) = (2 : ℝ) ^ j := by |
| 407 | exact_mod_cast Nat.sum_range_choose j |
| 408 | rw [hchoose] |
| 409 | _ ≤ _ := mul_le_mul_of_nonneg_right |
| 410 | (mul_le_mul_of_nonneg_right (pow_le_pow_right₀ (by norm_num) hj) hA) hB |
| 411 | exact hle.trans (by |
| 412 | calc |
| 413 | _ ≤ ‖L‖ * ((2 : ℝ) ^ m * A * B) := mul_le_mul_of_nonneg_left hsum (norm_nonneg L) |
| 414 | _ = _ := by ring) |
| 415 | |
| 416 | namespace LocalJets |
| 417 | |
| 418 | variable {s : StripData D} {w v : ℕ → D → ℝ} {α β : ℝ} |
| 419 | {K : ℕ → I → Set D} {f g : ℕ → I → D → E} |
| 420 | |
| 421 | theorem of_memClass {f₀ : ℕ → D → E} (hf : MemClass s w α f₀) : |
| 422 | LocalJets s w α K (fun n _ => f₀ n) := by |
| 423 | refine ⟨fun n _ x hx _ => (hf.smooth n).contDiffAt (s.isOpen_domain.mem_nhds hx), ?_⟩ |
| 424 | intro m |
| 425 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 426 | exact ⟨C, hC, p, fun n _ x hx _ j hj => hb n x hx j hj⟩ |
| 427 | |
| 428 | theorem map (hf : LocalJets s w α K f) (L : E →L[ℝ] F) : |
| 429 | LocalJets s w α K (fun n i x => L (f n i x)) := by |
| 430 | refine ⟨fun n i x hx hi => L.contDiff.contDiffAt.comp x (hf.smooth n i x hx hi), ?_⟩ |
| 431 | intro m |
| 432 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 433 | refine ⟨‖L‖ * C, mul_nonneg (norm_nonneg _) hC, p, ?_⟩ |
| 434 | intro n i x hx hi j hj |
| 435 | change ‖iteratedFDeriv ℝ j (L ∘ f n i) x‖ ≤ _ |
| 436 | rw [L.iteratedFDeriv_comp_left ((hf.smooth n i x hx hi).of_le (finite_le_infty j)) le_rfl] |
| 437 | calc |
| 438 | _ ≤ ‖L‖ * ‖iteratedFDeriv ℝ j (f n i) x‖ := L.norm_compContinuousMultilinearMap_le _ |
| 439 | _ ≤ ‖L‖ * majorant s w α C p n x := mul_le_mul_of_nonneg_left (hb n i x hx hi j hj) (norm_nonneg _) |
| 440 | _ = _ := by unfold majorant; ring |
| 441 | |
| 442 | theorem add (hf : LocalJets s w α K f) (hg : LocalJets s w α K g) |
| 443 | (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) : |
| 444 | LocalJets s w α K (fun n i x => f n i x + g n i x) := by |
| 445 | refine ⟨fun n i x hx hi => (hf.smooth n i x hx hi).add (hg.smooth n i x hx hi), ?_⟩ |
| 446 | intro m |
| 447 | obtain ⟨A, hA, p, ha⟩ := hf.bounds m |
| 448 | obtain ⟨B, hB, q, hb⟩ := hg.bounds m |
| 449 | refine ⟨A + B, add_nonneg hA hB, p + q, ?_⟩ |
| 450 | intro n i x hx hi j hj |
| 451 | rw [fun_iteratedFDeriv_add_apply ((hf.smooth n i x hx hi).of_le (finite_le_infty j)) |
| 452 | ((hg.smooth n i x hx hi).of_le (finite_le_infty j))] |
| 453 | calc |
| 454 | _ ≤ ‖iteratedFDeriv ℝ j (f n i) x‖ + ‖iteratedFDeriv ℝ j (g n i) x‖ := norm_add_le _ _ |
| 455 | _ ≤ majorant s w α A p n x + majorant s w α B q n x := |
| 456 | add_le_add (ha n i x hx hi j hj) (hb n i x hx hi j hj) |
| 457 | _ ≤ majorant s w α A (p + q) n x + majorant s w α B (p + q) n x := |
| 458 | add_le_add (majorant_mono_degree s w α hA (Nat.le_add_right _ _) n x (hw n x hx)) |
| 459 | (majorant_mono_degree s w α hB (Nat.le_add_left _ _) n x (hw n x hx)) |
| 460 | _ = _ := by unfold majorant; ring |
| 461 | |
| 462 | theorem fderiv (hf : LocalJets s w α K f) : |
| 463 | LocalJets s w α K (fun n i => _root_.fderiv ℝ (f n i)) := by |
| 464 | refine ⟨fun n i x hx hi => (hf.smooth n i x hx hi).fderiv_right (by simp), ?_⟩ |
| 465 | intro m |
| 466 | obtain ⟨C, hC, p, hb⟩ := hf.bounds (m + 1) |
| 467 | refine ⟨C, hC, p, ?_⟩ |
| 468 | intro n i x hx hi j hj |
| 469 | rw [norm_iteratedFDeriv_fderiv] |
| 470 | exact hb n i x hx hi (j + 1) (Nat.add_le_add_right hj 1) |
| 471 | |
| 472 | theorem bilinear {u : ℕ → I → D → F} (hf : LocalJets s w α K f) |
| 473 | (hu : LocalJets s v β K u) (L : E →L[ℝ] F →L[ℝ] G) |
| 474 | (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) |
| 475 | (hv : ∀ n x, x ∈ s.domain → 0 ≤ v n x) : |
| 476 | LocalJets s (fun n x => w n x * v n x) (α + β) K |
| 477 | (fun n i x => L (f n i x) (u n i x)) := by |
| 478 | refine ⟨fun n i x hx hi => (L.contDiff.contDiffAt.comp x (hf.smooth n i x hx hi)).clm_apply |
| 479 | (hu.smooth n i x hx hi), ?_⟩ |
| 480 | intro m |
| 481 | obtain ⟨A, hA, p, ha⟩ := hf.bounds m |
| 482 | obtain ⟨B, hB, q, hb⟩ := hu.bounds m |
| 483 | refine ⟨‖L‖ * (2 : ℝ) ^ m * A * B, by positivity, p + q, ?_⟩ |
| 484 | intro n i x hx hi j hj |
| 485 | calc |
| 486 | _ ≤ ‖L‖ * (2 : ℝ) ^ m * majorant s w α A p n x * majorant s v β B q n x := |
| 487 | bilinear_jet_at L (hf.smooth n i x hx hi) (hu.smooth n i x hx hi) |
| 488 | (majorant_nonneg s w α hA p n x (hw n x hx)) |
| 489 | (majorant_nonneg s v β hB q n x (hv n x hx)) hj |
| 490 | (fun k hk => ha n i x hx hi k hk) (fun k hk => hb n i x hx hi k hk) |
| 491 | _ = (‖L‖ * (2 : ℝ) ^ m) * (majorant s w α A p n x * majorant s v β B q n x) := by ring |
| 492 | _ = _ := by rw [majorant_mul]; unfold majorant; ring |
| 493 | |
| 494 | theorem smul {r : ℕ → I → D → ℝ} (hr : LocalJets s (fun _ _ => 1) 0 K r) |
| 495 | (hf : LocalJets s w α K f) (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) : |
| 496 | LocalJets s w α K (fun n i x => r n i x • f n i x) := by |
| 497 | have h := hr.bilinear hf (ContinuousLinearMap.lsmul ℝ ℝ) (fun _ _ _ => zero_le_one) hw |
| 498 | simp only [one_mul, zero_add] at h |
| 499 | exact h |
| 500 | |
| 501 | theorem band_smul {r : ℕ → ℝ} (hf : LocalJets s w α K f) |
| 502 | (hr : BandBound s 0 r) (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) : |
| 503 | LocalJets s w α K (fun n i x => r n • f n i x) := by |
| 504 | have hc : UnweightedClass s 0 (fun n (_ : D) => r n) := by |
| 505 | have h := (unweighted_const s (1 : ℝ)).band_smul hr |
| 506 | simpa using h |
| 507 | exact (LocalJets.of_memClass hc).smul hf hw |
| 508 | |
| 509 | end LocalJets |
| 510 | |
| 511 | end NativeJetOperations |
| 512 | |
| 513 | section NativeGaussianEstimates |
| 514 | |
| 515 | open GaussianTailFlat |
| 516 | |
| 517 | variable {D E : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 518 | [NormedAddCommGroup E] [NormedSpace ℝ E] {I : Type*} |
| 519 | |
| 520 | /-- The Gaussian absorption argument is uniform in the native copy. Its |
| 521 | only local field estimate is the weighted jet bound before absorption. -/ |
| 522 | theorem local_gaussian_tail_bound {s : StripData D} {K : ℕ → I → Set D} |
| 523 | {W : ℕ → D → ℝ} {α c : ℝ} {f : ℕ → I → D → E} |
| 524 | (hf : LocalJets s (fun n x => Real.sqrt (s.zeta x) * W n x) α K f) |
| 525 | (edges : FlatEdges s) (scales : BandScaleControl s) |
| 526 | (θ : ℕ → I → D → ℝ) (L : ℕ → ℝ) (hL : ∀ n, 0 < L n) |
| 527 | (ell : ℝ) (hell : 0 < ell) (hLell : ∀ n, ell * ChartScales.S n ≤ L n) (hc : 0 < c) |
| 528 | (hW : ∀ n i x, x ∈ s.domain → x ∈ K n i → |
| 529 | W n x ≤ Real.exp (-c * (θ n i x - 1 / 2) ^ 2 * L n)) |
| 530 | (hzero : ∀ n i x, x ∈ s.domain → x ∈ K n i → |
| 531 | |θ n i x - 1 / 2| < 1 / 5 → f n i =ᶠ[𝓝 x] fun _ => 0) |
| 532 | (m : ℕ) : ∃ C : ℝ, 0 ≤ C ∧ ∃ p : ℕ, ∀ n i x, x ∈ s.domain → x ∈ K n i → |
| 533 | ∀ j ≤ m, ‖iteratedFDeriv ℝ j (f n i) x‖ ≤ |
| 534 | C * (1 + ChartScales.S n) ^ p * Real.exp (-(c * ell / 50) * ChartScales.S n) := by |
| 535 | obtain ⟨A, hA, p, hb⟩ := hf.bounds m |
| 536 | obtain ⟨B, hB, hweight⟩ := edges.uniform_weight p |
| 537 | have hconstant := scales.constant_one_le |
| 538 | have hdec : 0 < c * ell / 25 := by positivity |
| 539 | obtain ⟨C, hC, hgauss⟩ := fixed_power_gaussian_bound hdec (scales.power * α) |
| 540 | refine ⟨A * B * scales.constant ^ p * C, by positivity, scales.degree * p, ?_⟩ |
| 541 | intro n i x hx hi j hj |
| 542 | have hQ := ChartScales.Q_pos n |
| 543 | by_cases hmid : |θ n i x - 1 / 2| < 1 / 5 |
| 544 | · rw [jets_eq_of_germ (hzero n i x hx hi hmid) j] |
| 545 | simp only [iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero] |
| 546 | have hS : 0 ≤ ChartScales.S n := sq_nonneg _ |
| 547 | positivity |
| 548 | have htail : 1 / 5 ≤ |θ n i x - 1 / 2| := le_of_not_gt hmid |
| 549 | have hsq : (1 / 25 : ℝ) ≤ (θ n i x - 1 / 2) ^ 2 := by |
| 550 | have hh := pow_le_pow_left₀ (by norm_num : (0 : ℝ) ≤ 1 / 5) htail 2 |
| 551 | norm_num [sq_abs] at hh ⊢ |
| 552 | exact hh |
| 553 | have hPg : W n x ≤ Real.exp (-(c * ell / 25) * ChartScales.S n) := by |
| 554 | apply (hW n i x hx hi).trans |
| 555 | apply (Real.exp_le_exp.2 ?_).trans (gaussian_length_comparison hc.le (hLell n)) |
| 556 | nlinarith [mul_le_mul_of_nonneg_left hsq (mul_nonneg hc.le (hL n).le)] |
| 557 | have hslow0 : 0 ≤ s.slow n := zero_le_one.trans (s.one_le_slow n) |
| 558 | have hK0 : 0 ≤ scales.constant := zero_le_one.trans scales.constant_one_le |
| 559 | have hslowp : s.slow n ^ p ≤ |
| 560 | scales.constant ^ p * (1 + ChartScales.S n) ^ (scales.degree * p) := by |
| 561 | simpa only [mul_pow, ← pow_mul] using pow_le_pow_left₀ hslow0 (scales.slow_le n) p |
| 562 | have hmajor : majorant s (fun n x => Real.sqrt (s.zeta x) * W n x) α A p n x ≤ |
| 563 | (A * B * scales.constant ^ p) * ChartScales.Q n ^ (scales.power * α) * |
| 564 | ((1 + ChartScales.S n) ^ (scales.degree * p) * |
| 565 | Real.exp (-(c * ell / 25) * ChartScales.S n)) := by |
| 566 | rw [majorant, StripData.growth, mul_pow, scales.epsilon_eq, ← Real.rpow_mul hQ.le] |
| 567 | calc |
| 568 | _ = (A * ChartScales.Q n ^ (scales.power * α) * s.slow n ^ p) * |
| 569 | (Real.sqrt (s.zeta x) * max 1 (s.delta x)⁻¹ ^ p) * W n x := by ring |
| 570 | _ ≤ (A * ChartScales.Q n ^ (scales.power * α) * s.slow n ^ p) * |
| 571 | (Real.sqrt (s.zeta x) * max 1 (s.delta x)⁻¹ ^ p) * |
| 572 | Real.exp (-(c * ell / 25) * ChartScales.S n) := |
| 573 | mul_le_mul_of_nonneg_left hPg (by positivity) |
| 574 | _ ≤ (A * ChartScales.Q n ^ (scales.power * α) * s.slow n ^ p) * B * |
| 575 | Real.exp (-(c * ell / 25) * ChartScales.S n) := by |
| 576 | gcongr |
| 577 | exact hweight x hx |
| 578 | _ ≤ (A * ChartScales.Q n ^ (scales.power * α) * |
| 579 | (scales.constant ^ p * (1 + ChartScales.S n) ^ (scales.degree * p))) * B * |
| 580 | Real.exp (-(c * ell / 25) * ChartScales.S n) := by gcongr |
| 581 | _ = _ := by ring |
| 582 | calc |
| 583 | _ ≤ 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 |
| 584 | _ ≤ _ := hmajor |
| 585 | _ = (A * B * scales.constant ^ p) * (1 + ChartScales.S n) ^ (scales.degree * p) * |
| 586 | (ChartScales.Q n ^ (scales.power * α) * |
| 587 | Real.exp (-(c * ell / 25) * ChartScales.S n)) := by ring |
| 588 | _ ≤ (A * B * scales.constant ^ p) * (1 + ChartScales.S n) ^ (scales.degree * p) * |
| 589 | (C * Real.exp (-((c * ell / 25) / 2) * ChartScales.S n)) := by |
| 590 | have hS : 0 ≤ ChartScales.S n := sq_nonneg _ |
| 591 | exact mul_le_mul_of_nonneg_left (hgauss n) (by positivity) |
| 592 | _ = _ := by |
| 593 | rw [show c * ell / 25 / 2 = c * ell / 50 by ring] |
| 594 | ring |
| 595 | |
| 596 | theorem local_gaussian_all_gains {s : StripData D} {K : ℕ → I → Set D} |
| 597 | {W : ℕ → D → ℝ} {α c : ℝ} {f : ℕ → I → D → E} |
| 598 | (hf : LocalJets s (fun n x => Real.sqrt (s.zeta x) * W n x) α K f) |
| 599 | (edges : FlatEdges s) (scales : BandScaleControl s) |
| 600 | (θ : ℕ → I → D → ℝ) (L : ℕ → ℝ) (hL : ∀ n, 0 < L n) |
| 601 | (ell : ℝ) (hell : 0 < ell) (hLell : ∀ n, ell * ChartScales.S n ≤ L n) (hc : 0 < c) |
| 602 | (hW : ∀ n i x, x ∈ s.domain → x ∈ K n i → |
| 603 | W n x ≤ Real.exp (-c * (θ n i x - 1 / 2) ^ 2 * L n)) |
| 604 | (hzero : ∀ n i x, x ∈ s.domain → x ∈ K n i → |
| 605 | |θ n i x - 1 / 2| < 1 / 5 → f n i =ᶠ[𝓝 x] fun _ => 0) |
| 606 | (β : ℝ) : LocalJets s (fun _ _ => 1) β K f := by |
| 607 | refine ⟨hf.smooth, ?_⟩ |
| 608 | intro m |
| 609 | obtain ⟨A, hA, p, hb⟩ := local_gaussian_tail_bound hf edges scales θ L hL ell hell hLell hc hW hzero m |
| 610 | obtain ⟨B, hB, hflat⟩ := gaussian_beats_Q_power (by positivity : 0 < c * ell / 50) p (scales.power * β) |
| 611 | refine ⟨A * B, mul_nonneg hA hB.le, 0, ?_⟩ |
| 612 | intro n i x hx hi j hj |
| 613 | have ht := (hb n i x hx hi j hj).trans |
| 614 | (show A * (1 + ChartScales.S n) ^ p * Real.exp (-(c * ell / 50) * ChartScales.S n) ≤ |
| 615 | (A * B) * ChartScales.Q n ^ (scales.power * β) by |
| 616 | calc |
| 617 | _ = A * ((1 + ChartScales.S n) ^ p * Real.exp (-(c * ell / 50) * ChartScales.S n)) := by ring |
| 618 | _ ≤ A * (B * ChartScales.Q n ^ (scales.power * β)) := mul_le_mul_of_nonneg_left (hflat n) hA |
| 619 | _ = _ := by ring) |
| 620 | simpa only [majorant, pow_zero, mul_one, scales.epsilon_eq, |
| 621 | ← Real.rpow_mul (ChartScales.Q_pos n).le] using ht |
| 622 | |
| 623 | end NativeGaussianEstimates |
| 624 | |
| 625 | section DifferentialGerms |
| 626 | |
| 627 | open HarmonicCalculus LinearWaveResidual |
| 628 | open CurlClassBounds hiding ComplexVector |
| 629 | open ParticularWaveAssembly |
| 630 | |
| 631 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 632 | |
| 633 | theorem principal_germ {a b : D → ComplexVector} {p q : D → ℂ} {x : D} |
| 634 | (ha : a =ᶠ[𝓝 x] b) (hp : p =ᶠ[𝓝 x] q) |
| 635 | (ε K : ℝ) (R F G Φ : D → ℝ) (Vr Vθ Vz Vf : D → D) : |
| 636 | LinearWaveResidual.principal ε K R F G Vr Vθ Vz Vf Φ a p =ᶠ[𝓝 x] |
| 637 | LinearWaveResidual.principal ε K R F G Vr Vθ Vz Vf Φ b q := by |
| 638 | have ht (i : Fin 3) := along_germ (ha.fun_comp (fun v => v i)) Vf |
| 639 | filter_upwards [ha, hp, Filter.eventually_all.mpr ht] with y hay hpy hty |
| 640 | dsimp only [Function.comp_def] at hty |
| 641 | funext i |
| 642 | simp only [LinearWaveResidual.principal, shear, hty, hay, hpy] |
| 643 | |
| 644 | theorem remainder_germ {a b : D → ComplexVector} {p q : D → ℂ} {x : D} |
| 645 | (ha : a =ᶠ[𝓝 x] b) (hp : p =ᶠ[𝓝 x] q) |
| 646 | (ε K : ℝ) (R B F G Φ : D → ℝ) (Vr Vθ Vz Vf Vs : D → D) : |
| 647 | LinearWaveResidual.remainder ε K R B F G Vr Vθ Vz Vf Vs Φ a p =ᶠ[𝓝 x] |
| 648 | LinearWaveResidual.remainder ε K R B F G Vr Vθ Vz Vf Vs Φ b q := by |
| 649 | have hr (i : Fin 3) := along_germ (ha.fun_comp (fun v => v i)) Vr |
| 650 | have hz (i : Fin 3) := along_germ (ha.fun_comp (fun v => v i)) Vz |
| 651 | have hs (i : Fin 3) := along_germ (ha.fun_comp (fun v => v i)) Vs |
| 652 | have hrr (i : Fin 3) := along_germ (hr i) Vr |
| 653 | have hzz (i : Fin 3) := along_germ (hz i) Vz |
| 654 | filter_upwards [ha, Filter.eventually_all.mpr hr, Filter.eventually_all.mpr hz, |
| 655 | Filter.eventually_all.mpr hs, Filter.eventually_all.mpr hrr, Filter.eventually_all.mpr hzz, |
| 656 | along_germ hp Vr, along_germ hp Vz] with y hay hry hzy hsy hrry hzzy hpr hpz |
| 657 | dsimp only [Function.comp_def] at hry hzy hsy hrry hzzy |
| 658 | funext i |
| 659 | simp only [LinearWaveResidual.remainder, slowTransport, baseDerivativeRemainder, |
| 660 | strippedPressureGradient, viscousRemainder, hry, hzy, hsy, hrry, hzzy, hpr, hpz, hay] |
| 661 | |
| 662 | theorem curlCorrection_germ {a b : D → ComplexVector} {x : D} |
| 663 | (ha : a =ᶠ[𝓝 x] b) (K : ℝ) (R Φ : D → ℝ) (Vr Vθ Vz : D → D) : |
| 664 | curlRemainder K R Vr Vθ Vz (coefficient R Vr Vθ Vz Φ a) =ᶠ[𝓝 x] |
| 665 | curlRemainder K R Vr Vθ Vz (coefficient R Vr Vθ Vz Φ b) := by |
| 666 | have hc : coefficient R Vr Vθ Vz Φ a =ᶠ[𝓝 x] coefficient R Vr Vθ Vz Φ b := by |
| 667 | filter_upwards [ha] with y hy |
| 668 | simp only [coefficient, hy] |
| 669 | filter_upwards [curl_germ hc R Vr Vθ Vz] with y hy |
| 670 | simp only [curlRemainder, hy] |
| 671 | |
| 672 | theorem potential_germ {a b : D → ComplexVector} {x : D} |
| 673 | (ha : a =ᶠ[𝓝 x] b) (K : ℝ) (R Φ : D → ℝ) (Vr Vθ Vz : D → D) : |
| 674 | vectorPotential K R Vr Vθ Vz Φ a =ᶠ[𝓝 x] vectorPotential K R Vr Vθ Vz Φ b := by |
| 675 | filter_upwards [ha] with y hy |
| 676 | ext i |
| 677 | simp only [vectorPotential, HarmonicCalculus.vectorMode, HarmonicCalculus.mode, coefficient, hy] |
| 678 | |
| 679 | theorem divergence_germ {a b : D → ComplexVector} {x : D} |
| 680 | (ha : a =ᶠ[𝓝 x] b) (R : D → ℝ) (Vr Vθ Vz : D → D) : |
| 681 | cylindricalDivergence R Vr Vθ Vz a =ᶠ[𝓝 x] cylindricalDivergence R Vr Vθ Vz b := by |
| 682 | filter_upwards [ha, along_germ (ha.fun_comp (fun v => v 0)) Vr, |
| 683 | along_germ (ha.fun_comp (fun v => v 1)) Vθ, |
| 684 | along_germ (ha.fun_comp (fun v => v 2)) Vz] with y hy hr hθ hz |
| 685 | dsimp only [Function.comp_def] at hr hθ hz |
| 686 | simp only [cylindricalDivergence, hr, hθ, hz, hy] |
| 687 | |
| 688 | @[simp] theorem normalCoefficient_zero (N : RealVector) : normalCoefficient N 0 = 0 := by |
| 689 | simp [normalCoefficient, normalCross] |
| 690 | |
| 691 | @[simp] theorem coefficient_zero (R Φ : D → ℝ) (Vr Vθ Vz : D → D) : |
| 692 | coefficient R Vr Vθ Vz Φ (fun _ => 0) = fun _ => 0 := by |
| 693 | funext x |
| 694 | simp only [coefficient, normalCoefficient_zero] |
| 695 | |
| 696 | @[simp] theorem cylindricalCurl_zero (R : D → ℝ) (Vr Vθ Vz : D → D) : |
| 697 | cylindricalCurl R Vr Vθ Vz (fun _ => 0) = fun _ => 0 := by |
| 698 | funext x i |
| 699 | fin_cases i <;> simp [cylindricalCurl, along] |
| 700 | |
| 701 | @[simp] theorem curlRemainder_zero (K : ℝ) (R : D → ℝ) (Vr Vθ Vz : D → D) : |
| 702 | curlRemainder K R Vr Vθ Vz (fun _ => 0) = fun _ => 0 := by |
| 703 | funext x |
| 704 | simp only [curlRemainder, cylindricalCurl_zero, smul_zero] |
| 705 | |
| 706 | @[simp] theorem realizedCoefficient_zero (K : ℝ) (R Φ : D → ℝ) (Vr Vθ Vz : D → D) : |
| 707 | realizedCoefficient K R Vr Vθ Vz Φ (fun _ => 0) = fun _ => 0 := by |
| 708 | funext x |
| 709 | simp only [realizedCoefficient, coefficient_zero, curlRemainder_zero, add_zero] |
| 710 | |
| 711 | @[simp] theorem vectorPotential_zero (K : ℝ) (R Φ : D → ℝ) (Vr Vθ Vz : D → D) : |
| 712 | vectorPotential K R Vr Vθ Vz Φ (fun _ => 0) = fun _ => 0 := by |
| 713 | funext x i |
| 714 | simp [vectorPotential, coefficient_zero, vectorMode, mode] |
| 715 | |
| 716 | @[simp] theorem principal_zero (ε K : ℝ) (R F G Φ : D → ℝ) (Vr Vθ Vz Vf : D → D) : |
| 717 | LinearWaveResidual.principal ε K R F G Vr Vθ Vz Vf Φ |
| 718 | (fun _ => 0) (fun _ => 0) = fun _ => 0 := by |
| 719 | funext x i |
| 720 | fin_cases i <;> simp [LinearWaveResidual.principal, shear, along] |
| 721 | |
| 722 | @[simp] theorem along_zero (V : D → D) : |
| 723 | along V (fun _ : D => (0 : ℂ)) = fun _ => 0 := by |
| 724 | funext x |
| 725 | simp [along] |
| 726 | |
| 727 | @[simp] theorem remainder_zero (ε K : ℝ) (R B F G Φ : D → ℝ) (Vr Vθ Vz Vf Vs : D → D) : |
| 728 | LinearWaveResidual.remainder ε K R B F G Vr Vθ Vz Vf Vs Φ |
| 729 | (fun _ => 0) (fun _ => 0) = fun _ => 0 := by |
| 730 | funext x i |
| 731 | fin_cases i <;> simp [LinearWaveResidual.remainder, slowTransport, baseDerivativeRemainder, |
| 732 | strippedPressureGradient, viscousRemainder, angularGenerator, along_zero, along] |
| 733 | |
| 734 | @[simp] theorem linearResidual_zero (ε : ℝ) (R : D → ℝ) (Vr Vθ Vz Vt : D → D) |
| 735 | (B : D → ComplexVector) : |
| 736 | linearResidual ε R Vr Vθ Vz Vt B (fun _ => 0) (fun _ => 0) = fun _ => 0 := by |
| 737 | funext x i |
| 738 | fin_cases i <;> simp [linearResidual, transport, gradient, cylindricalVectorLaplacian, |
| 739 | cylindricalLaplacian, angularGenerator, along_zero, along] |
| 740 | |
| 741 | @[simp] theorem cylindricalDivergence_zero (R : D → ℝ) (Vr Vθ Vz : D → D) : |
| 742 | cylindricalDivergence R Vr Vθ Vz (fun _ => 0) = fun _ => 0 := by |
| 743 | funext x |
| 744 | simp [cylindricalDivergence, along] |
| 745 | |
| 746 | end DifferentialGerms |
| 747 | |
| 748 | section WaveData |
| 749 | |
| 750 | open HarmonicCalculus LinearWaveBounds |
| 751 | open CurlClassBounds hiding ComplexVector |
| 752 | open ParticularWaveAssembly |
| 753 | |
| 754 | variable {D I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 755 | |
| 756 | /-- Local raw copies share one physical carrier and background. Their |
| 757 | amplitudes and pressures may differ in every copy and need not be periodic. -/ |
| 758 | structure CopyData (D I : Type) where |
| 759 | background : WaveCoefficients D |
| 760 | amplitude : ℕ → I → D → ComplexVector |
| 761 | pressure : ℕ → I → D → ℂ |
| 762 | cutoff : ℕ → I → D → ℝ |
| 763 | source : ℕ → D → ComplexVector |
| 764 | |
| 765 | namespace CopyData |
| 766 | |
| 767 | variable (a : CopyData D I) |
| 768 | |
| 769 | noncomputable def raw (i : I) : WaveCoefficients D := |
| 770 | { a.background with amplitude := fun n => a.amplitude n i |
| 771 | pressure := fun n => a.pressure n i } |
| 772 | |
| 773 | noncomputable def localized (i : I) : WaveCoefficients D := |
| 774 | (a.raw i).withCutoff (fun n => a.cutoff n i) |
| 775 | |
| 776 | noncomputable def corrected (s : StripData D) (d : GraphDirections D) (i : I) : |
| 777 | WaveCoefficients D := (a.raw i).corrected s d (fun n => a.cutoff n i) |
| 778 | |
| 779 | noncomputable def localGood (s : StripData D) (d : GraphDirections D) (n : ℕ) (i : I) : |
| 780 | D → ComplexVector := (a.raw i).constructedGood s d (fun n => a.cutoff n i) n |
| 781 | |
| 782 | noncomputable def localTail (d : GraphDirections D) (n : ℕ) (i : I) (x : D) : ComplexVector := |
| 783 | d.Dfast (fun n => a.cutoff n i) n x • a.amplitude n i x |
| 784 | |
| 785 | noncomputable def localGaussian (d : GraphDirections D) (n : ℕ) (i : I) : D → ComplexVector := |
| 786 | excludedSlotError d (fun n => a.cutoff n i) (fun n => a.amplitude n i) a.source n |
| 787 | |
| 788 | /-- The single native cutoff is applied before periodization and curl. -/ |
| 789 | noncomputable def common : WaveCoefficients D := |
| 790 | { a.background with |
| 791 | amplitude := fun n => copySum (fun i => (a.localized i).amplitude n) |
| 792 | pressure := fun n => copySum (fun i => (a.localized i).pressure n) } |
| 793 | |
| 794 | noncomputable def commonCorrected (s : StripData D) (d : GraphDirections D) : |
| 795 | WaveCoefficients D := a.common.addAmplitude (a.common.curlCorrection s d) |
| 796 | |
| 797 | /-- An actual global good coefficient, assembled from the cutoff-and-curl |
| 798 | formula on each native copy. -/ |
| 799 | noncomputable def globalGood (s : StripData D) (d : GraphDirections D) (n : ℕ) : |
| 800 | D → ComplexVector := copySum (a.localGood s d n) |
| 801 | |
| 802 | noncomputable def cutoffSum (n : ℕ) : D → ℝ := copySum (a.cutoff n) |
| 803 | |
| 804 | noncomputable def globalTail (d : GraphDirections D) (n : ℕ) : D → ComplexVector := |
| 805 | copySum (a.localTail d n) |
| 806 | |
| 807 | /-- The shared source occurs once. This definition also makes sense off |
| 808 | every native patch and preserves the uncovered-source term there. -/ |
| 809 | noncomputable def globalGaussian (d : GraphDirections D) (n : ℕ) (x : D) : ComplexVector := |
| 810 | a.globalTail d n x + (1 - a.cutoffSum n x) • a.source n x |
| 811 | |
| 812 | theorem localGaussian_eq (d : GraphDirections D) (n : ℕ) (i : I) (x : D) : |
| 813 | a.localGaussian d n i x = a.localTail d n i x + (1 - a.cutoff n i x) • a.source n x := rfl |
| 814 | |
| 815 | omit [NormedSpace ℝ D] in |
| 816 | theorem common_amplitude_germ (K : Cells D I) |
| 817 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 818 | (n : ℕ) {i : I} {x : D} (hx : x ∈ K.carrier n i) : |
| 819 | a.common.amplitude n =ᶠ[𝓝 x] (a.localized i).amplitude n := by |
| 820 | apply copySum_germ K n _ _ hx |
| 821 | intro j y hy |
| 822 | apply hs n j |
| 823 | intro he |
| 824 | exact hy (by simp [localized, raw, WaveCoefficients.withCutoff, he]) |
| 825 | |
| 826 | omit [NormedSpace ℝ D] in |
| 827 | theorem common_pressure_germ (K : Cells D I) |
| 828 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 829 | (n : ℕ) {i : I} {x : D} (hx : x ∈ K.carrier n i) : |
| 830 | a.common.pressure n =ᶠ[𝓝 x] (a.localized i).pressure n := by |
| 831 | apply copySum_germ K n _ _ hx |
| 832 | intro j y hy |
| 833 | apply hs n j |
| 834 | intro he |
| 835 | exact hy (by simp [localized, raw, WaveCoefficients.withCutoff, he]) |
| 836 | |
| 837 | theorem commonCorrected_amplitude_germ (K : Cells D I) |
| 838 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 839 | (s : StripData D) (d : GraphDirections D) (n : ℕ) {i : I} {x : D} |
| 840 | (hx : x ∈ K.carrier n i) : |
| 841 | (a.commonCorrected s d).amplitude n =ᶠ[𝓝 x] (a.corrected s d i).amplitude n := |
| 842 | realizedCoefficient_germ (a.common_amplitude_germ K hs n hx) (a.background.frequency n) |
| 843 | (a.background.radius n) (d.radialField n) (fun _ => d.angular) |
| 844 | (d.axialField s n) (a.background.phase n) |
| 845 | |
| 846 | theorem commonCorrected_residual_germ (K : Cells D I) |
| 847 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 848 | (s : StripData D) (d : GraphDirections D) (n : ℕ) {i : I} {x : D} |
| 849 | (hx : x ∈ K.carrier n i) : |
| 850 | (a.commonCorrected s d).harmonicResidual s d n =ᶠ[𝓝 x] |
| 851 | (a.corrected s d i).harmonicResidual s d n := |
| 852 | linearResidual_germ |
| 853 | (vectorMode_germ (a.commonCorrected_amplitude_germ K hs s d n hx) |
| 854 | (a.background.frequency n) (a.background.phase n)) |
| 855 | (mode_germ (a.common_pressure_germ K hs n hx) |
| 856 | (a.background.frequency n) (a.background.phase n)) |
| 857 | (s.epsilon n) (a.background.radius n) (d.radialField n) (fun _ => d.angular) |
| 858 | (d.axialField s n) |
| 859 | (LinearWaveResidual.timeDirection (s.epsilon n) (d.fastField n) (fun _ => d.slow)) |
| 860 | (LinearWaveResidual.complexBase (a.background.radius n) (a.background.radialBase n) |
| 861 | (a.background.frequencyBase n) (a.background.axialBase n)) |
| 862 | |
| 863 | omit [NormedSpace ℝ D] in |
| 864 | theorem localized_amplitude_support (K : Cells D I) |
| 865 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) (n : ℕ) (i : I) : |
| 866 | support ((a.localized i).amplitude n) ⊆ K.carrier n i := by |
| 867 | intro x hx |
| 868 | apply hs n i |
| 869 | intro hz |
| 870 | exact hx (by simp [localized, raw, WaveCoefficients.withCutoff, hz]) |
| 871 | |
| 872 | omit [NormedSpace ℝ D] in |
| 873 | theorem localized_pressure_support (K : Cells D I) |
| 874 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) (n : ℕ) (i : I) : |
| 875 | support ((a.localized i).pressure n) ⊆ K.carrier n i := by |
| 876 | intro x hx |
| 877 | apply hs n i |
| 878 | intro hz |
| 879 | exact hx (by simp [localized, raw, WaveCoefficients.withCutoff, hz]) |
| 880 | |
| 881 | omit [NormedSpace ℝ D] in |
| 882 | theorem localized_zero_germs {n : ℕ} {i : I} {x : D} |
| 883 | (hψ : a.cutoff n i =ᶠ[𝓝 x] fun _ => 0) : |
| 884 | (a.localized i).amplitude n =ᶠ[𝓝 x] (fun _ => 0) ∧ |
| 885 | (a.localized i).pressure n =ᶠ[𝓝 x] (fun _ => 0) := by |
| 886 | constructor <;> filter_upwards [hψ] with y hy <;> |
| 887 | simp [localized, raw, WaveCoefficients.withCutoff, hy] |
| 888 | |
| 889 | theorem localized_correction_zero_germ (s : StripData D) (d : GraphDirections D) |
| 890 | {n : ℕ} {i : I} {x : D} (hψ : a.cutoff n i =ᶠ[𝓝 x] fun _ => 0) : |
| 891 | (a.localized i).curlCorrection s d n =ᶠ[𝓝 x] fun _ => 0 := by |
| 892 | have h := curlCorrection_germ (a.localized_zero_germs hψ).1 |
| 893 | (a.background.frequency n) (a.background.radius n) (a.background.phase n) |
| 894 | (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 895 | simp only [coefficient_zero, curlRemainder_zero] at h |
| 896 | exact h |
| 897 | |
| 898 | theorem corrected_zero_germ (s : StripData D) (d : GraphDirections D) |
| 899 | {n : ℕ} {i : I} {x : D} (hψ : a.cutoff n i =ᶠ[𝓝 x] fun _ => 0) : |
| 900 | (a.corrected s d i).amplitude n =ᶠ[𝓝 x] fun _ => 0 := by |
| 901 | have h := realizedCoefficient_germ (a.localized_zero_germs hψ).1 |
| 902 | (a.background.frequency n) (a.background.radius n) (d.radialField n) |
| 903 | (fun _ => d.angular) (d.axialField s n) (a.background.phase n) |
| 904 | simp only [realizedCoefficient_zero] at h |
| 905 | exact h |
| 906 | |
| 907 | theorem localGood_zero_germ (s : StripData D) (d : GraphDirections D) |
| 908 | {n : ℕ} {i : I} {x : D} (hψ : a.cutoff n i =ᶠ[𝓝 x] fun _ => 0) : |
| 909 | a.localGood s d n i =ᶠ[𝓝 x] fun _ => 0 := by |
| 910 | have hc := a.localized_correction_zero_germ s d hψ |
| 911 | have hp := principal_germ hc (Filter.EventuallyEq.refl (𝓝 x) (fun _ : D => (0 : ℂ))) |
| 912 | (s.epsilon n) (a.background.frequency n) (a.background.radius n) |
| 913 | (a.background.frequencyBase n) (a.background.axialBase n) (a.background.phase n) |
| 914 | (d.radialField n) (fun _ => d.angular) (d.axialField s n) (d.fastField n) |
| 915 | have hr := remainder_germ (a.corrected_zero_germ s d hψ) (a.localized_zero_germs hψ).2 |
| 916 | (s.epsilon n) (a.background.frequency n) (a.background.radius n) |
| 917 | (a.background.radialBase n) (a.background.frequencyBase n) (a.background.axialBase n) |
| 918 | (a.background.phase n) (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 919 | (d.fastField n) (fun _ => d.slow) |
| 920 | simp only [principal_zero] at hp |
| 921 | simp only [remainder_zero] at hr |
| 922 | filter_upwards [hp, hr] with y hpy hry |
| 923 | change (a.raw i).principalVelocity s d ((a.localized i).curlCorrection s d) n y + |
| 924 | (a.corrected s d i).remainder s d n y = 0 |
| 925 | change (a.raw i).principalVelocity s d ((a.localized i).curlCorrection s d) n y = 0 at hpy |
| 926 | change (a.corrected s d i).remainder s d n y = 0 at hry |
| 927 | rw [hpy, hry, add_zero] |
| 928 | |
| 929 | theorem localTail_zero_germ (d : GraphDirections D) |
| 930 | {n : ℕ} {i : I} {x : D} (hψ : a.cutoff n i =ᶠ[𝓝 x] fun _ => 0) : |
| 931 | a.localTail d n i =ᶠ[𝓝 x] fun _ => 0 := by |
| 932 | have hD := along_germ hψ (d.fastField n) |
| 933 | filter_upwards [hD] with y hy |
| 934 | change along (d.fastField n) (a.cutoff n i) y • _ = 0 |
| 935 | rw [hy] |
| 936 | simp [HarmonicCalculus.along] |
| 937 | |
| 938 | theorem localGood_support (K : Cells D I) |
| 939 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 940 | (s : StripData D) (d : GraphDirections D) (n : ℕ) (i : I) : |
| 941 | support (a.localGood s d n i) ⊆ K.carrier n i := by |
| 942 | intro x hx |
| 943 | by_contra hn |
| 944 | exact hx (a.localGood_zero_germ s d (zero_germ_of_support (K.closed n i) (hs n i) hn)).self_of_nhds |
| 945 | |
| 946 | theorem localTail_support (K : Cells D I) |
| 947 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 948 | (d : GraphDirections D) (n : ℕ) (i : I) : |
| 949 | support (a.localTail d n i) ⊆ K.carrier n i := by |
| 950 | intro x hx |
| 951 | by_contra hn |
| 952 | exact hx (a.localTail_zero_germ d (zero_germ_of_support (K.closed n i) (hs n i) hn)).self_of_nhds |
| 953 | |
| 954 | theorem corrected_support (K : Cells D I) |
| 955 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 956 | (s : StripData D) (d : GraphDirections D) (n : ℕ) (i : I) : |
| 957 | support ((a.corrected s d i).amplitude n) ⊆ K.carrier n i := by |
| 958 | intro x hx |
| 959 | by_contra hn |
| 960 | exact hx (a.corrected_zero_germ s d (zero_germ_of_support (K.closed n i) (hs n i) hn)).self_of_nhds |
| 961 | |
| 962 | omit [NormedSpace ℝ D] in |
| 963 | theorem common_zero_germs (K : Cells D I) |
| 964 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 965 | {n : ℕ} {x : D} (hx : ∀ i, x ∉ K.carrier n i) : |
| 966 | a.common.amplitude n =ᶠ[𝓝 x] (fun _ => 0) ∧ |
| 967 | a.common.pressure n =ᶠ[𝓝 x] (fun _ => 0) := |
| 968 | ⟨copySum_zero_germ K n _ (a.localized_amplitude_support K hs n) hx, |
| 969 | copySum_zero_germ K n _ (a.localized_pressure_support K hs n) hx⟩ |
| 970 | |
| 971 | theorem commonCorrected_zero_germ (K : Cells D I) |
| 972 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 973 | (s : StripData D) (d : GraphDirections D) {n : ℕ} {x : D} |
| 974 | (hx : ∀ i, x ∉ K.carrier n i) : |
| 975 | (a.commonCorrected s d).amplitude n =ᶠ[𝓝 x] fun _ => 0 := by |
| 976 | have h := realizedCoefficient_germ (a.common_zero_germs K hs hx).1 |
| 977 | (a.background.frequency n) (a.background.radius n) (d.radialField n) |
| 978 | (fun _ => d.angular) (d.axialField s n) (a.background.phase n) |
| 979 | simp only [realizedCoefficient_zero] at h |
| 980 | exact h |
| 981 | |
| 982 | theorem commonResidual_zero_germ (K : Cells D I) |
| 983 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 984 | (s : StripData D) (d : GraphDirections D) {n : ℕ} {x : D} |
| 985 | (hx : ∀ i, x ∉ K.carrier n i) : |
| 986 | (a.commonCorrected s d).harmonicResidual s d n =ᶠ[𝓝 x] fun _ => 0 := by |
| 987 | have hu : vectorMode (a.background.frequency n) (a.background.phase n) |
| 988 | ((a.commonCorrected s d).amplitude n) =ᶠ[𝓝 x] (fun _ => 0) := by |
| 989 | filter_upwards [a.commonCorrected_zero_germ K hs s d hx] with y hy |
| 990 | ext i |
| 991 | simp only [vectorMode, mode, hy, Pi.zero_apply, zero_mul] |
| 992 | have hp : mode (a.background.frequency n) (a.background.phase n) |
| 993 | (a.common.pressure n) =ᶠ[𝓝 x] (fun _ => 0) := by |
| 994 | filter_upwards [(a.common_zero_germs K hs hx).2] with y hy |
| 995 | simp only [mode, hy, zero_mul] |
| 996 | have h := linearResidual_germ hu hp (s.epsilon n) (a.background.radius n) |
| 997 | (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 998 | (LinearWaveResidual.timeDirection (s.epsilon n) (d.fastField n) (fun _ => d.slow)) |
| 999 | (LinearWaveResidual.complexBase (a.background.radius n) (a.background.radialBase n) |
| 1000 | (a.background.frequencyBase n) (a.background.axialBase n)) |
| 1001 | simp only [linearResidual_zero] at h |
| 1002 | exact h |
| 1003 | |
| 1004 | theorem globalGood_germ (K : Cells D I) |
| 1005 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1006 | (s : StripData D) (d : GraphDirections D) (n : ℕ) {i : I} {x : D} |
| 1007 | (hx : x ∈ K.carrier n i) : a.globalGood s d n =ᶠ[𝓝 x] a.localGood s d n i := |
| 1008 | copySum_germ K n _ (a.localGood_support K hs s d n) hx |
| 1009 | |
| 1010 | theorem globalGood_zero_germ (K : Cells D I) |
| 1011 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1012 | (s : StripData D) (d : GraphDirections D) {n : ℕ} {x : D} |
| 1013 | (hx : ∀ i, x ∉ K.carrier n i) : a.globalGood s d n =ᶠ[𝓝 x] fun _ => 0 := |
| 1014 | copySum_zero_germ K n _ (a.localGood_support K hs s d n) hx |
| 1015 | |
| 1016 | /-- The global Gaussian field has the full native error as its germ, with |
| 1017 | both terms and all cutoff derivatives unchanged. -/ |
| 1018 | theorem globalGaussian_germ (K : Cells D I) |
| 1019 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1020 | (d : GraphDirections D) (n : ℕ) {i : I} {x : D} (hx : x ∈ K.carrier n i) : |
| 1021 | a.globalGaussian d n =ᶠ[𝓝 x] a.localGaussian d n i := by |
| 1022 | have hT := copySum_germ K n _ (a.localTail_support K hs d n) hx |
| 1023 | have hψ := copySum_germ K n (a.cutoff n) (hs n) hx |
| 1024 | filter_upwards [hT, hψ] with y hTy hψy |
| 1025 | change copySum (a.localTail d n) y + (1 - copySum (a.cutoff n) y) • a.source n y = |
| 1026 | a.localTail d n i y + (1 - a.cutoff n i y) • a.source n y |
| 1027 | rw [hTy, hψy] |
| 1028 | |
| 1029 | /-- The exact uncovered-source term persists outside the cutoff cells. -/ |
| 1030 | theorem globalGaussian_uncovered_germ (K : Cells D I) |
| 1031 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1032 | (d : GraphDirections D) {n : ℕ} {x : D} (hx : ∀ i, x ∉ K.carrier n i) : |
| 1033 | a.globalGaussian d n =ᶠ[𝓝 x] a.source n := by |
| 1034 | have hT := copySum_zero_germ K n _ (a.localTail_support K hs d n) hx |
| 1035 | have hψ := copySum_zero_germ K n (a.cutoff n) (hs n) hx |
| 1036 | filter_upwards [hT, hψ] with y hTy hψy |
| 1037 | change copySum (a.localTail d n) y + (1 - copySum (a.cutoff n) y) • a.source n y = _ |
| 1038 | rw [hTy, hψy] |
| 1039 | simp only [sub_zero, one_smul, zero_add] |
| 1040 | |
| 1041 | /-- Local native cancellation implies cancellation everywhere on the |
| 1042 | whole lift. The source need not vanish on the uncovered complement. -/ |
| 1043 | theorem common_cancellation (K : Cells D I) |
| 1044 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1045 | (s : StripData D) (d : GraphDirections D) |
| 1046 | (hlocal : ∀ n i x, x ∈ s.domain → x ∈ K.carrier n i → |
| 1047 | (a.corrected s d i).harmonicResidual s d n x + |
| 1048 | (fun j => a.source n x j * carrier (a.background.frequency n) (a.background.phase n) x) = |
| 1049 | (fun j => (a.localGood s d n i x j + a.localGaussian d n i x j) * |
| 1050 | carrier (a.background.frequency n) (a.background.phase n) x)) |
| 1051 | (n : ℕ) {x : D} (hx : x ∈ s.domain) : |
| 1052 | (a.commonCorrected s d).harmonicResidual s d n x + |
| 1053 | (fun j => a.source n x j * carrier (a.background.frequency n) (a.background.phase n) x) = |
| 1054 | (fun j => (a.globalGood s d n x j + a.globalGaussian d n x j) * |
| 1055 | carrier (a.background.frequency n) (a.background.phase n) x) := by |
| 1056 | classical |
| 1057 | by_cases h : ∃ i, x ∈ K.carrier n i |
| 1058 | · obtain ⟨i, hi⟩ := h |
| 1059 | rw [(a.commonCorrected_residual_germ K hs s d n hi).self_of_nhds, |
| 1060 | (a.globalGood_germ K hs s d n hi).self_of_nhds, |
| 1061 | (a.globalGaussian_germ K hs d n hi).self_of_nhds] |
| 1062 | exact hlocal n i x hx hi |
| 1063 | · have hn := not_exists.mp h |
| 1064 | rw [(a.commonResidual_zero_germ K hs s d hn).self_of_nhds, |
| 1065 | (a.globalGood_zero_germ K hs s d hn).self_of_nhds, |
| 1066 | (a.globalGaussian_uncovered_germ K hs d hn).self_of_nhds] |
| 1067 | simp only [zero_add, Pi.zero_apply] |
| 1068 | |
| 1069 | /-- Global classes for the actually localized common velocity and pressure. |
| 1070 | The input fields need be smooth only at their own native support cells. -/ |
| 1071 | theorem common_classes (K : Cells D I) |
| 1072 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1073 | {s : StripData D} {w : ℕ → D → ℝ} {α β : ℝ} |
| 1074 | (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) |
| 1075 | (ha : LocalJets s w α K.carrier (fun n i => (a.localized i).amplitude n)) |
| 1076 | (hp : LocalJets s w β K.carrier (fun n i => (a.localized i).pressure n)) : |
| 1077 | MemClass s w α a.common.amplitude ∧ MemClass s w β a.common.pressure := |
| 1078 | ⟨copySum_memClass K hw (a.localized_amplitude_support K hs) ha, |
| 1079 | copySum_memClass K hw (a.localized_pressure_support K hs) hp⟩ |
| 1080 | |
| 1081 | theorem commonCorrected_class_of_native (K : Cells D I) |
| 1082 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1083 | {s : StripData D} (d : GraphDirections D) {w : ℕ → D → ℝ} {α : ℝ} |
| 1084 | (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) |
| 1085 | (ha : LocalJets s w α K.carrier (fun n i => (a.corrected s d i).amplitude n)) : |
| 1086 | MemClass s w α (a.commonCorrected s d).amplitude := by |
| 1087 | apply memClass_of_local_germs hw ha |
| 1088 | intro n x _ |
| 1089 | classical |
| 1090 | by_cases h : ∃ i, x ∈ K.carrier n i |
| 1091 | · obtain ⟨i, hi⟩ := h |
| 1092 | exact Or.inl ⟨i, hi, a.commonCorrected_amplitude_germ K hs s d n hi⟩ |
| 1093 | · exact Or.inr (a.commonCorrected_zero_germ K hs s d (not_exists.mp h)) |
| 1094 | |
| 1095 | theorem globalGood_class_of_native (K : Cells D I) |
| 1096 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1097 | {s : StripData D} (d : GraphDirections D) {w : ℕ → D → ℝ} {α : ℝ} |
| 1098 | (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) |
| 1099 | (hg : LocalJets s w α K.carrier (a.localGood s d)) : |
| 1100 | MemClass s w α (a.globalGood s d) := |
| 1101 | copySum_memClass K hw (a.localGood_support K hs s d) hg |
| 1102 | |
| 1103 | /-- If the literal incoming source is supported in the union of native |
| 1104 | cores, the global Gaussian error is flat whenever the native error jets |
| 1105 | are uniformly flat. No global error class is assumed. -/ |
| 1106 | theorem globalGaussian_class_of_covered_source (K : Cells D I) |
| 1107 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1108 | (hsource : ∀ n, support (a.source n) ⊆ ⋃ i, K.carrier n i) |
| 1109 | {s : StripData D} (d : GraphDirections D) {w : ℕ → D → ℝ} {α : ℝ} |
| 1110 | (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) |
| 1111 | (hg : LocalJets s w α K.carrier (a.localGaussian d)) : |
| 1112 | MemClass s w α (a.globalGaussian d) := by |
| 1113 | apply memClass_of_local_germs hw hg |
| 1114 | intro n x _ |
| 1115 | classical |
| 1116 | by_cases h : ∃ i, x ∈ K.carrier n i |
| 1117 | · obtain ⟨i, hi⟩ := h |
| 1118 | exact Or.inl ⟨i, hi, a.globalGaussian_germ K hs d n hi⟩ |
| 1119 | · have hn := not_exists.mp h |
| 1120 | exact Or.inr ((a.globalGaussian_uncovered_germ K hs d hn).trans (source_zero_germ K hsource hn)) |
| 1121 | |
| 1122 | /-- A nonzero uncovered source is retained and estimated from its own |
| 1123 | primitive jets on that complement. -/ |
| 1124 | theorem globalGaussian_class_with_complement (K : Cells D I) |
| 1125 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1126 | {s : StripData D} (d : GraphDirections D) {w : ℕ → D → ℝ} {α : ℝ} |
| 1127 | (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) |
| 1128 | (hg : LocalJets s w α K.carrier (a.localGaussian d)) |
| 1129 | (hf : ComplementJets s w α K.carrier a.source) : |
| 1130 | MemClass s w α (a.globalGaussian d) := |
| 1131 | memClass_of_local_and_complement_germs hw hg hf |
| 1132 | (fun n _ _ _ hx => a.globalGaussian_germ K hs d n hx) |
| 1133 | (fun _ _ _ hx => a.globalGaussian_uncovered_germ K hs d hx) |
| 1134 | |
| 1135 | /-- The homogeneous construction has only the periodized derivative tail. -/ |
| 1136 | theorem globalGaussian_of_source_zero (d : GraphDirections D) |
| 1137 | (hf : a.source = fun _ _ => 0) : a.globalGaussian d = a.globalTail d := by |
| 1138 | funext n x |
| 1139 | simp [globalGaussian, hf] |
| 1140 | |
| 1141 | theorem globalGood_support (K : Cells D I) |
| 1142 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1143 | (s : StripData D) (d : GraphDirections D) (n : ℕ) : |
| 1144 | support (a.globalGood s d n) ⊆ ⋃ i, K.carrier n i := |
| 1145 | copySum_support K n _ (a.localGood_support K hs s d n) |
| 1146 | |
| 1147 | theorem globalGaussian_support (K : Cells D I) |
| 1148 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1149 | (hsource : ∀ n, support (a.source n) ⊆ ⋃ i, K.carrier n i) |
| 1150 | (d : GraphDirections D) (n : ℕ) : |
| 1151 | support (a.globalGaussian d n) ⊆ ⋃ i, K.carrier n i := by |
| 1152 | intro x hx |
| 1153 | by_contra h |
| 1154 | have hn : ∀ i, x ∉ K.carrier n i := by simpa only [mem_iUnion, not_exists] using h |
| 1155 | have hz := (a.globalGaussian_uncovered_germ K hs d hn).trans (source_zero_germ K hsource hn) |
| 1156 | exact hx hz.self_of_nhds |
| 1157 | |
| 1158 | /-- The global differential formula corresponding to the sum of native |
| 1159 | good terms. Its equality with that sum is proved from actual germs. -/ |
| 1160 | noncomputable def differentialGood (s : StripData D) (d : GraphDirections D) (n : ℕ) (x : D) : |
| 1161 | ComplexVector := |
| 1162 | a.common.principalVelocity s d (a.common.curlCorrection s d) n x + |
| 1163 | (a.commonCorrected s d).remainder s d n x |
| 1164 | |
| 1165 | theorem differentialGood_germ (K : Cells D I) |
| 1166 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1167 | (s : StripData D) (d : GraphDirections D) (n : ℕ) {i : I} {x : D} |
| 1168 | (hx : x ∈ K.carrier n i) : |
| 1169 | a.differentialGood s d n =ᶠ[𝓝 x] a.localGood s d n i := by |
| 1170 | have hc := curlCorrection_germ (a.common_amplitude_germ K hs n hx) |
| 1171 | (a.background.frequency n) (a.background.radius n) (a.background.phase n) |
| 1172 | (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 1173 | have hp := principal_germ hc (Filter.EventuallyEq.refl (𝓝 x) (fun _ : D => (0 : ℂ))) |
| 1174 | (s.epsilon n) (a.background.frequency n) (a.background.radius n) |
| 1175 | (a.background.frequencyBase n) (a.background.axialBase n) (a.background.phase n) |
| 1176 | (d.radialField n) (fun _ => d.angular) (d.axialField s n) (d.fastField n) |
| 1177 | have hr := remainder_germ (a.commonCorrected_amplitude_germ K hs s d n hx) |
| 1178 | (a.common_pressure_germ K hs n hx) |
| 1179 | (s.epsilon n) (a.background.frequency n) (a.background.radius n) |
| 1180 | (a.background.radialBase n) (a.background.frequencyBase n) (a.background.axialBase n) |
| 1181 | (a.background.phase n) (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 1182 | (d.fastField n) (fun _ => d.slow) |
| 1183 | filter_upwards [hp, hr] with y hpy hry |
| 1184 | exact congrArg₂ (· + ·) hpy hry |
| 1185 | |
| 1186 | theorem differentialGood_zero_germ (K : Cells D I) |
| 1187 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1188 | (s : StripData D) (d : GraphDirections D) {n : ℕ} {x : D} |
| 1189 | (hx : ∀ i, x ∉ K.carrier n i) : |
| 1190 | a.differentialGood s d n =ᶠ[𝓝 x] fun _ => 0 := by |
| 1191 | have hc := curlCorrection_germ (a.common_zero_germs K hs hx).1 |
| 1192 | (a.background.frequency n) (a.background.radius n) (a.background.phase n) |
| 1193 | (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 1194 | simp only [coefficient_zero, curlRemainder_zero] at hc |
| 1195 | have hp := principal_germ hc (Filter.EventuallyEq.refl (𝓝 x) (fun _ : D => (0 : ℂ))) |
| 1196 | (s.epsilon n) (a.background.frequency n) (a.background.radius n) |
| 1197 | (a.background.frequencyBase n) (a.background.axialBase n) (a.background.phase n) |
| 1198 | (d.radialField n) (fun _ => d.angular) (d.axialField s n) (d.fastField n) |
| 1199 | have hr := remainder_germ (a.commonCorrected_zero_germ K hs s d hx) (a.common_zero_germs K hs hx).2 |
| 1200 | (s.epsilon n) (a.background.frequency n) (a.background.radius n) |
| 1201 | (a.background.radialBase n) (a.background.frequencyBase n) (a.background.axialBase n) |
| 1202 | (a.background.phase n) (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 1203 | (d.fastField n) (fun _ => d.slow) |
| 1204 | simp only [principal_zero] at hp |
| 1205 | simp only [remainder_zero] at hr |
| 1206 | filter_upwards [hp, hr] with y hpy hry |
| 1207 | exact (congrArg₂ (· + ·) hpy hry).trans (zero_add 0) |
| 1208 | |
| 1209 | theorem globalGood_eq_differentialGood (K : Cells D I) |
| 1210 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1211 | (s : StripData D) (d : GraphDirections D) : |
| 1212 | a.globalGood s d = a.differentialGood s d := by |
| 1213 | classical |
| 1214 | funext n x |
| 1215 | by_cases h : ∃ i, x ∈ K.carrier n i |
| 1216 | · obtain ⟨i, hi⟩ := h |
| 1217 | exact (a.globalGood_germ K hs s d n hi).self_of_nhds.trans |
| 1218 | (a.differentialGood_germ K hs s d n hi).self_of_nhds.symm |
| 1219 | · exact (a.globalGood_zero_germ K hs s d (not_exists.mp h)).self_of_nhds.trans |
| 1220 | (a.differentialGood_zero_germ K hs s d (not_exists.mp h)).self_of_nhds.symm |
| 1221 | |
| 1222 | /-- Only the carrier, geometry, and base fields of this coefficient are |
| 1223 | used in the background estimates. -/ |
| 1224 | noncomputable def backgroundOnly : WaveCoefficients D := |
| 1225 | { a.background with amplitude := fun _ _ => 0, pressure := fun _ _ => 0 } |
| 1226 | |
| 1227 | theorem common_inputBounds (K : Cells D I) |
| 1228 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1229 | {s : StripData D} {d : GraphDirections D} {W : ℕ → D → ℝ} {α κ : ℝ} |
| 1230 | (hb : InputBounds s W α κ d a.backgroundOnly) |
| 1231 | (ha : LocalJets s (fun n x => Real.sqrt (s.zeta x) * W n x) α K.carrier |
| 1232 | (fun n i => (a.localized i).amplitude n)) |
| 1233 | (hp : LocalJets s (fun n x => Real.sqrt (s.zeta x) * W n x) (α + 1 / 2) K.carrier |
| 1234 | (fun n i => (a.localized i).pressure n)) : |
| 1235 | InputBounds s W α κ d a.common := by |
| 1236 | obtain ⟨hva, hvp⟩ := a.common_classes K hs (hb.amplitude 0).weight_nonneg ha hp |
| 1237 | exact { hb with amplitude := fun i => hva.map (ContinuousLinearMap.proj i), pressure := hvp } |
| 1238 | |
| 1239 | /-- Primitive background estimates and native localized velocity/pressure |
| 1240 | jets imply the actual global curl correction and good-remainder classes. |
| 1241 | Neither a local nor a global remainder-class hypothesis is used. -/ |
| 1242 | theorem common_bounds_from_native (K : Cells D I) |
| 1243 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1244 | {s : StripData D} {d : GraphDirections D} {W : ℕ → D → ℝ} {α κ : ℝ} |
| 1245 | (hb : InputBounds s W α κ d a.backgroundOnly) |
| 1246 | (ha : LocalJets s (fun n x => Real.sqrt (s.zeta x) * W n x) α K.carrier |
| 1247 | (fun n i => (a.localized i).amplitude n)) |
| 1248 | (hp : LocalJets s (fun n x => Real.sqrt (s.zeta x) * W n x) (α + 1 / 2) K.carrier |
| 1249 | (fun n i => (a.localized i).pressure n)) |
| 1250 | (hκ : κ ≤ 1 / 2) {R : D → ℝ} (hR : a.background.radius = fun _ => R) |
| 1251 | (hN : PhaseJetBounds.PolynomialJets (phaseDomain s) (a.background.normal s d)) |
| 1252 | {b M : ℝ} (hpos : 0 < b) |
| 1253 | (hlower : ∀ n x, x ∈ s.domain → b ≤ ‖a.background.normal s d n x‖) |
| 1254 | (hupper : ∀ n x, x ∈ s.domain → ‖a.background.normal s d n x‖ ≤ M) |
| 1255 | (hK : BandBound s (1 / 2) (fun n => 1 / a.background.frequency n)) : |
| 1256 | WaveClass s W α a.common.amplitude ∧ |
| 1257 | WaveClass s W α (a.commonCorrected s d).amplitude ∧ |
| 1258 | WaveClass s W (α + 1 / 2) a.common.pressure ∧ |
| 1259 | WaveClass s W (α + 1 / 2 - κ) (a.common.curlCorrection s d) ∧ |
| 1260 | WaveClass s W (α + 1 / 2 - 3 * κ) (a.globalGood s d) := by |
| 1261 | have h := a.common_inputBounds K hs hb ha hp |
| 1262 | have hc := h.curlCorrection_class hR hN hpos hlower hupper hK |
| 1263 | have hci i := hc.map (ContinuousLinearMap.proj i) |
| 1264 | have hcorrected := h.add_curl_amplitude hκ hci |
| 1265 | refine ⟨component_classes h.amplitude, component_classes hcorrected.amplitude, |
| 1266 | h.pressure, hc, ?_⟩ |
| 1267 | rw [a.globalGood_eq_differentialGood K hs s d] |
| 1268 | exact (h.curl_principal_gain hci).add hcorrected.remainder_class |
| 1269 | |
| 1270 | theorem localGaussian_wave_jets {s : StripData D} (d : GraphDirections D) |
| 1271 | {K : ℕ → I → Set D} {w : ℕ → D → ℝ} {α : ℝ} |
| 1272 | (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) |
| 1273 | (hψ : LocalJets s (fun _ _ => 1) 0 K a.cutoff) |
| 1274 | (hfast : BandBound s 0 d.fastScale) |
| 1275 | (hu : LocalJets s w α K a.amplitude) |
| 1276 | (hf : LocalJets s w α K (fun n _ => a.source n)) : |
| 1277 | LocalJets s w α K (a.localGaussian d) := by |
| 1278 | have hdir := (hψ.fderiv.map (ContinuousLinearMap.apply ℝ ℝ d.fast)).band_smul hfast |
| 1279 | (fun _ _ _ => zero_le_one) |
| 1280 | have hD : LocalJets s (fun _ _ => 1) 0 K |
| 1281 | (fun n i => d.Dfast (fun n => a.cutoff n i) n) := by |
| 1282 | convert! hdir using 1 |
| 1283 | funext n i x |
| 1284 | simp [GraphDirections.Dfast, GraphDirections.fastField, HarmonicCalculus.along] |
| 1285 | have hconst : LocalJets s (fun _ _ => 1) 0 K (fun _ _ (_ : D) => (1 : ℝ)) := |
| 1286 | LocalJets.of_memClass (unweighted_const s 1) |
| 1287 | have hneg := hψ.map (-ContinuousLinearMap.id ℝ ℝ) |
| 1288 | have hminus : LocalJets s (fun _ _ => 1) 0 K (fun n i x => 1 - a.cutoff n i x) := by |
| 1289 | simpa only [_root_.neg_apply, ContinuousLinearMap.id_apply, sub_eq_add_neg] using |
| 1290 | hconst.add hneg (fun _ _ _ => zero_le_one) |
| 1291 | exact (hD.smul hu hw).add (hminus.smul hf hw) hw |
| 1292 | |
| 1293 | theorem localGaussian_zero_of_cutoff_one (d : GraphDirections D) |
| 1294 | {n : ℕ} {i : I} {x : D} (hψ : a.cutoff n i =ᶠ[𝓝 x] fun _ => 1) : |
| 1295 | a.localGaussian d n i =ᶠ[𝓝 x] fun _ => 0 := by |
| 1296 | have hD := along_germ hψ (d.fastField n) |
| 1297 | filter_upwards [hψ, hD] with y hψy hDy |
| 1298 | change along (d.fastField n) (a.cutoff n i) y • _ + (1 - a.cutoff n i y) • _ = 0 |
| 1299 | rw [hDy, hψy] |
| 1300 | simp [along] |
| 1301 | |
| 1302 | theorem localGaussian_zero_of_fields (d : GraphDirections D) |
| 1303 | {n : ℕ} {i : I} {x : D} |
| 1304 | (hu : a.amplitude n i =ᶠ[𝓝 x] fun _ => 0) (hf : a.source n =ᶠ[𝓝 x] fun _ => 0) : |
| 1305 | a.localGaussian d n i =ᶠ[𝓝 x] fun _ => 0 := by |
| 1306 | filter_upwards [hu, hf] with y huy hfy |
| 1307 | simp only [localGaussian, excludedSlotError, huy, hfy, smul_zero, add_zero] |
| 1308 | |
| 1309 | /-- Primitive native amplitude/source/cutoff jets and a Gaussian envelope |
| 1310 | prove flatness of the actual two cutoff products, uniformly over every copy. |
| 1311 | The central alternative allows transverse regions where both fields vanish. -/ |
| 1312 | theorem localGaussian_all_gains_from_native {s : StripData D} (d : GraphDirections D) |
| 1313 | {K : ℕ → I → Set D} {W : ℕ → D → ℝ} {α c : ℝ} |
| 1314 | (hWnonneg : ∀ n x, x ∈ s.domain → 0 ≤ W n x) |
| 1315 | (hψ : LocalJets s (fun _ _ => 1) 0 K a.cutoff) |
| 1316 | (hfast : BandBound s 0 d.fastScale) |
| 1317 | (hu : LocalJets s (fun n x => Real.sqrt (s.zeta x) * W n x) α K a.amplitude) |
| 1318 | (hf : LocalJets s (fun n x => Real.sqrt (s.zeta x) * W n x) α K (fun n _ => a.source n)) |
| 1319 | (edges : GaussianTailFlat.FlatEdges s) (scales : GaussianTailFlat.BandScaleControl s) |
| 1320 | (θ : ℕ → I → D → ℝ) (L : ℕ → ℝ) (hL : ∀ n, 0 < L n) |
| 1321 | (ell : ℝ) (hell : 0 < ell) (hLell : ∀ n, ell * ChartScales.S n ≤ L n) (hc : 0 < c) |
| 1322 | (hW : ∀ n i x, x ∈ s.domain → x ∈ K n i → |
| 1323 | W n x ≤ Real.exp (-c * (θ n i x - 1 / 2) ^ 2 * L n)) |
| 1324 | (hcentral : ∀ n i x, x ∈ s.domain → x ∈ K n i → |θ n i x - 1 / 2| < 1 / 5 → |
| 1325 | (a.cutoff n i =ᶠ[𝓝 x] fun _ => 1) ∨ |
| 1326 | ((a.amplitude n i =ᶠ[𝓝 x] fun _ => 0) ∧ (a.source n =ᶠ[𝓝 x] fun _ => 0))) |
| 1327 | (β : ℝ) : LocalJets s (fun _ _ => 1) β K (a.localGaussian d) := by |
| 1328 | have hj := a.localGaussian_wave_jets d |
| 1329 | (fun n x hx => mul_nonneg (Real.sqrt_nonneg _) (hWnonneg n x hx)) hψ hfast hu hf |
| 1330 | apply local_gaussian_all_gains hj edges scales θ L hL ell hell hLell hc hW _ β |
| 1331 | intro n i x hx hi hmid |
| 1332 | rcases hcentral n i x hx hi hmid with hone | ⟨hu0, hf0⟩ |
| 1333 | · exact a.localGaussian_zero_of_cutoff_one d hone |
| 1334 | · exact a.localGaussian_zero_of_fields d hu0 hf0 |
| 1335 | |
| 1336 | /-- The whole-lift Gaussian estimate derives every native output jet from |
| 1337 | primitive data, then glues using the actual periodized fields and source |
| 1338 | coverage. No Gaussian error class is an input. -/ |
| 1339 | theorem globalGaussian_all_gains_from_native (K : Cells D I) |
| 1340 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1341 | (hsource : ∀ n, support (a.source n) ⊆ ⋃ i, K.carrier n i) |
| 1342 | {s : StripData D} (d : GraphDirections D) {W : ℕ → D → ℝ} {α c : ℝ} |
| 1343 | (hWnonneg : ∀ n x, x ∈ s.domain → 0 ≤ W n x) |
| 1344 | (hψ : LocalJets s (fun _ _ => 1) 0 K.carrier a.cutoff) |
| 1345 | (hfast : BandBound s 0 d.fastScale) |
| 1346 | (hu : LocalJets s (fun n x => Real.sqrt (s.zeta x) * W n x) α K.carrier a.amplitude) |
| 1347 | (hf : LocalJets s (fun n x => Real.sqrt (s.zeta x) * W n x) α K.carrier (fun n _ => a.source n)) |
| 1348 | (edges : GaussianTailFlat.FlatEdges s) (scales : GaussianTailFlat.BandScaleControl s) |
| 1349 | (θ : ℕ → I → D → ℝ) (L : ℕ → ℝ) (hL : ∀ n, 0 < L n) |
| 1350 | (ell : ℝ) (hell : 0 < ell) (hLell : ∀ n, ell * ChartScales.S n ≤ L n) (hc : 0 < c) |
| 1351 | (hW : ∀ n i x, x ∈ s.domain → x ∈ K.carrier n i → |
| 1352 | W n x ≤ Real.exp (-c * (θ n i x - 1 / 2) ^ 2 * L n)) |
| 1353 | (hcentral : ∀ n i x, x ∈ s.domain → x ∈ K.carrier n i → |θ n i x - 1 / 2| < 1 / 5 → |
| 1354 | (a.cutoff n i =ᶠ[𝓝 x] fun _ => 1) ∨ |
| 1355 | ((a.amplitude n i =ᶠ[𝓝 x] fun _ => 0) ∧ (a.source n =ᶠ[𝓝 x] fun _ => 0))) |
| 1356 | (β : ℝ) : UnweightedClass s β (a.globalGaussian d) := |
| 1357 | a.globalGaussian_class_of_covered_source K hs hsource d (fun _ _ _ => zero_le_one) |
| 1358 | (a.localGaussian_all_gains_from_native d hWnonneg hψ hfast hu hf edges scales θ L hL |
| 1359 | ell hell hLell hc hW hcentral β) |
| 1360 | |
| 1361 | theorem common_potential_germ (K : Cells D I) |
| 1362 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1363 | (s : StripData D) (d : GraphDirections D) (n : ℕ) {i : I} {x : D} |
| 1364 | (hx : x ∈ K.carrier n i) : |
| 1365 | a.common.curlPotential s d n =ᶠ[𝓝 x] (a.localized i).curlPotential s d n := |
| 1366 | potential_germ (a.common_amplitude_germ K hs n hx) (a.background.frequency n) |
| 1367 | (a.background.radius n) (a.background.phase n) (d.radialField n) |
| 1368 | (fun _ => d.angular) (d.axialField s n) |
| 1369 | |
| 1370 | theorem common_potential_zero_germ (K : Cells D I) |
| 1371 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1372 | (s : StripData D) (d : GraphDirections D) {n : ℕ} {x : D} |
| 1373 | (hx : ∀ i, x ∉ K.carrier n i) : |
| 1374 | a.common.curlPotential s d n =ᶠ[𝓝 x] fun _ => 0 := by |
| 1375 | have h := potential_germ (a.common_zero_germs K hs hx).1 (a.background.frequency n) |
| 1376 | (a.background.radius n) (a.background.phase n) (d.radialField n) |
| 1377 | (fun _ => d.angular) (d.axialField s n) |
| 1378 | simp only [vectorPotential_zero] at h |
| 1379 | exact h |
| 1380 | |
| 1381 | /-- The globally assembled velocity is the actual curl of the globally |
| 1382 | assembled potential whenever the native construction has that identity. -/ |
| 1383 | theorem common_realizes_curl (K : Cells D I) |
| 1384 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1385 | (s : StripData D) (d : GraphDirections D) |
| 1386 | (hnative : ∀ n i x, x ∈ s.domain → x ∈ K.carrier n i → |
| 1387 | cylindricalCurl (a.background.radius n) (d.radialField n) (fun _ => d.angular) |
| 1388 | (d.axialField s n) ((a.localized i).curlPotential s d n) x = |
| 1389 | vectorMode (a.background.frequency n) (a.background.phase n) |
| 1390 | ((a.corrected s d i).amplitude n) x) |
| 1391 | (n : ℕ) {x : D} (hx : x ∈ s.domain) : |
| 1392 | cylindricalCurl (a.background.radius n) (d.radialField n) (fun _ => d.angular) |
| 1393 | (d.axialField s n) (a.common.curlPotential s d n) x = |
| 1394 | vectorMode (a.background.frequency n) (a.background.phase n) |
| 1395 | ((a.commonCorrected s d).amplitude n) x := by |
| 1396 | classical |
| 1397 | by_cases h : ∃ i, x ∈ K.carrier n i |
| 1398 | · obtain ⟨i, hi⟩ := h |
| 1399 | rw [(curl_germ (a.common_potential_germ K hs s d n hi) (a.background.radius n) |
| 1400 | (d.radialField n) (fun _ => d.angular) (d.axialField s n)).self_of_nhds] |
| 1401 | rw [(vectorMode_germ (a.commonCorrected_amplitude_germ K hs s d n hi) |
| 1402 | (a.background.frequency n) (a.background.phase n)).self_of_nhds] |
| 1403 | exact hnative n i x hx hi |
| 1404 | · have hn := not_exists.mp h |
| 1405 | rw [(curl_germ (a.common_potential_zero_germ K hs s d hn) (a.background.radius n) |
| 1406 | (d.radialField n) (fun _ => d.angular) (d.axialField s n)).self_of_nhds] |
| 1407 | rw [(vectorMode_germ (a.commonCorrected_zero_germ K hs s d hn) |
| 1408 | (a.background.frequency n) (a.background.phase n)).self_of_nhds] |
| 1409 | ext i |
| 1410 | simp [cylindricalCurl_zero, HarmonicCalculus.vectorMode, HarmonicCalculus.mode] |
| 1411 | |
| 1412 | /-- A local differential identity is transported through full neighborhood |
| 1413 | germs, so the support boundary contributes no extra divergence. -/ |
| 1414 | theorem common_divergence_zero (K : Cells D I) |
| 1415 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 1416 | (s : StripData D) (d : GraphDirections D) |
| 1417 | (hnative : ∀ n i x, x ∈ s.domain → x ∈ K.carrier n i → |
| 1418 | cylindricalDivergence (a.background.radius n) (d.radialField n) (fun _ => d.angular) |
| 1419 | (d.axialField s n) (vectorMode (a.background.frequency n) (a.background.phase n) |
| 1420 | ((a.corrected s d i).amplitude n)) x = 0) |
| 1421 | (n : ℕ) {x : D} (hx : x ∈ s.domain) : |
| 1422 | cylindricalDivergence (a.background.radius n) (d.radialField n) (fun _ => d.angular) |
| 1423 | (d.axialField s n) (vectorMode (a.background.frequency n) (a.background.phase n) |
| 1424 | ((a.commonCorrected s d).amplitude n)) x = 0 := by |
| 1425 | classical |
| 1426 | by_cases h : ∃ i, x ∈ K.carrier n i |
| 1427 | · obtain ⟨i, hi⟩ := h |
| 1428 | have hg := divergence_germ (vectorMode_germ (a.commonCorrected_amplitude_germ K hs s d n hi) |
| 1429 | (a.background.frequency n) (a.background.phase n)) (a.background.radius n) |
| 1430 | (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 1431 | exact hg.self_of_nhds.trans (hnative n i x hx hi) |
| 1432 | · have hu : vectorMode (a.background.frequency n) (a.background.phase n) |
| 1433 | ((a.commonCorrected s d).amplitude n) =ᶠ[𝓝 x] (fun _ => 0) := by |
| 1434 | filter_upwards [a.commonCorrected_zero_germ K hs s d (not_exists.mp h)] with y hy |
| 1435 | ext i |
| 1436 | simp only [HarmonicCalculus.vectorMode, HarmonicCalculus.mode, hy, Pi.zero_apply, zero_mul] |
| 1437 | have hg := divergence_germ hu (a.background.radius n) (d.radialField n) |
| 1438 | (fun _ => d.angular) (d.axialField s n) |
| 1439 | simpa only [cylindricalDivergence_zero] using hg.self_of_nhds |
| 1440 | |
| 1441 | open CopyAngularInvariance in |
| 1442 | theorem common_amplitude_invariant (v : D) |
| 1443 | (hψ : ∀ n i, Invariant v (a.cutoff n i)) |
| 1444 | (hu : ∀ n i, Invariant v (a.amplitude n i)) (n : ℕ) : |
| 1445 | Invariant v (a.common.amplitude n) := |
| 1446 | Invariant.tsum_invariant (fun i => (hψ n i).map₂ (hu n i) (fun r u => r • u)) |
| 1447 | |
| 1448 | open CopyAngularInvariance in |
| 1449 | theorem common_pressure_invariant (v : D) |
| 1450 | (hψ : ∀ n i, Invariant v (a.cutoff n i)) |
| 1451 | (hp : ∀ n i, Invariant v (a.pressure n i)) (n : ℕ) : |
| 1452 | Invariant v (a.common.pressure n) := |
| 1453 | Invariant.tsum_invariant (fun i => (hψ n i).map₂ (hp n i) (fun r p => (r : ℂ) * p)) |
| 1454 | |
| 1455 | open CopyAngularInvariance in |
| 1456 | theorem commonCorrected_invariant (s : StripData D) (d : GraphDirections D) (v : D) |
| 1457 | (hψ : ∀ n i, Invariant v (a.cutoff n i)) |
| 1458 | (hu : ∀ n i, Invariant v (a.amplitude n i)) |
| 1459 | (hR : ∀ n, Invariant v (a.background.radius n)) |
| 1460 | (hr : ∀ n, Invariant v (d.radialField n)) |
| 1461 | (hz : ∀ n, Invariant v (d.axialField s n)) |
| 1462 | (hΦ : ∀ n, ∃ m, AffinePhase v m (a.background.phase n)) (n : ℕ) : |
| 1463 | Invariant v ((a.commonCorrected s d).amplitude n) := by |
| 1464 | obtain ⟨m, hm⟩ := hΦ n |
| 1465 | exact realizedCoefficient_invariant (hR n) (hr n) (Invariant.const _) (hz n) hm |
| 1466 | (a.common_amplitude_invariant v hψ hu n) (a.background.frequency n) |
| 1467 | |
| 1468 | open CopyAngularInvariance in |
| 1469 | theorem globalGaussian_invariant (d : GraphDirections D) (v : D) |
| 1470 | (hψ : ∀ n i, Invariant v (a.cutoff n i)) |
| 1471 | (hu : ∀ n i, Invariant v (a.amplitude n i)) |
| 1472 | (hf : ∀ n, Invariant v (a.source n)) (n : ℕ) : |
| 1473 | Invariant v (a.globalGaussian d n) := by |
| 1474 | have hT : Invariant v (a.globalTail d n) := Invariant.tsum_invariant (fun i => |
| 1475 | ((hψ n i).along (Invariant.const _)).map₂ (hu n i) (fun r u => r • u)) |
| 1476 | have hS : Invariant v (a.cutoffSum n) := Invariant.tsum_invariant (hψ n) |
| 1477 | exact hT.map₂ (hS.map₂ (hf n) (fun r f => (1 - r) • f)) (fun u w => u + w) |
| 1478 | |
| 1479 | open CopyAngularInvariance in |
| 1480 | theorem globalGood_invariant (s : StripData D) (d : GraphDirections D) |
| 1481 | (hψ : ∀ n i, Invariant d.angular (a.cutoff n i)) |
| 1482 | (hu : ∀ n i, Invariant d.angular (a.amplitude n i)) |
| 1483 | (hp : ∀ n i, Invariant d.angular (a.pressure n i)) |
| 1484 | (hR : ∀ n, Invariant d.angular (a.background.radius n)) |
| 1485 | (hb : ∀ n, Invariant d.angular (a.background.radialBase n)) |
| 1486 | (hF : ∀ n, Invariant d.angular (a.background.frequencyBase n)) |
| 1487 | (hG : ∀ n, Invariant d.angular (a.background.axialBase n)) |
| 1488 | (hr : ∀ n, Invariant d.angular (d.radialField n)) |
| 1489 | (hz : ∀ n, Invariant d.angular (d.axialField s n)) |
| 1490 | (hΦ : ∀ n, ∃ m, AffinePhase d.angular m (a.background.phase n)) (n : ℕ) : |
| 1491 | Invariant d.angular (a.globalGood s d n) := |
| 1492 | Invariant.tsum_invariant (fun i => constructedGood_invariant (a := a.raw i) |
| 1493 | (fun n => a.cutoff n i) hR hb hF hG hr hz hΦ (fun n => hu n i) (fun n => hp n i) |
| 1494 | (fun n => hψ n i) n) |
| 1495 | |
| 1496 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 1497 | /-- Deck reindexing is sufficient for common-field periodicity; individual |
| 1498 | uncut copies need not be periodic. -/ |
| 1499 | theorem common_translate (n : ℕ) (T : D → D) (e : I ≃ I) |
| 1500 | (hψ : ∀ i x, a.cutoff n (e i) (T x) = a.cutoff n i x) |
| 1501 | (hu : ∀ i x, a.amplitude n (e i) (T x) = a.amplitude n i x) |
| 1502 | (hp : ∀ i x, a.pressure n (e i) (T x) = a.pressure n i x) (x : D) : |
| 1503 | a.common.amplitude n (T x) = a.common.amplitude n x ∧ |
| 1504 | a.common.pressure n (T x) = a.common.pressure n x := by |
| 1505 | constructor |
| 1506 | · apply copySum_translate _ T e _ x |
| 1507 | intro i y |
| 1508 | change a.cutoff n (e i) (T y) • a.amplitude n (e i) (T y) = _ |
| 1509 | rw [hψ, hu] |
| 1510 | rfl |
| 1511 | · apply copySum_translate _ T e _ x |
| 1512 | intro i y |
| 1513 | change (a.cutoff n (e i) (T y) : ℂ) * a.pressure n (e i) (T y) = _ |
| 1514 | rw [hψ, hp] |
| 1515 | rfl |
| 1516 | |
| 1517 | theorem globalGaussian_translate (d : GraphDirections D) (n : ℕ) (z : D) (e : I ≃ I) |
| 1518 | (hψ : ∀ i x, a.cutoff n (e i) (x + z) = a.cutoff n i x) |
| 1519 | (hu : ∀ i x, a.amplitude n (e i) (x + z) = a.amplitude n i x) |
| 1520 | (hf : ∀ x, a.source n (x + z) = a.source n x) (x : D) : |
| 1521 | a.globalGaussian d n (x + z) = a.globalGaussian d n x := by |
| 1522 | have hT : a.globalTail d n (x + z) = a.globalTail d n x := by |
| 1523 | apply copySum_translate _ (fun x => x + z) e _ x |
| 1524 | intro i y |
| 1525 | have hD : fderiv ℝ (a.cutoff n (e i)) (y + z) = fderiv ℝ (a.cutoff n i) y := by |
| 1526 | rw [← fderiv_comp_add_right z, show (fun x => a.cutoff n (e i) (x + z)) = a.cutoff n i from funext (hψ i)] |
| 1527 | simp only [localTail, GraphDirections.Dfast, HarmonicCalculus.along, |
| 1528 | GraphDirections.fastField, hD, hu] |
| 1529 | have hS : a.cutoffSum n (x + z) = a.cutoffSum n x := copySum_translate _ (fun x => x + z) e hψ x |
| 1530 | simp only [globalGaussian, hT, hS, hf] |
| 1531 | |
| 1532 | end CopyData |
| 1533 | |
| 1534 | end WaveData |
| 1535 | |
| 1536 | section ActualParticularData |
| 1537 | |
| 1538 | open CommonCoverSolve TorusInverse TorusAverages ParticularWaveBounds |
| 1539 | open ParticularWaveAssembly HarmonicCalculus LinearWaveBounds |
| 1540 | open CorrectionState ErrorHarmonics |
| 1541 | |
| 1542 | variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 1543 | |
| 1544 | /-- Actual complex copy solves with arbitrary band-dependent entry/exit |
| 1545 | times. In particular, a transported clock may use `exit = length / clock`. |
| 1546 | The tangent coefficients, source, geometry, and frequency are the actual |
| 1547 | inputs of `complexCopyVelocity` and its projected pressure. -/ |
| 1548 | noncomputable def complexCopyData (base : WaveCoefficients (P × Plane)) |
| 1549 | (t : ℕ → TangentData P ProblemStatement.Space) (source : ℕ → P × Plane → ComplexVector) |
| 1550 | (g : ℕ → Geometry) (entry exit : ℕ → ℝ) (hab : ∀ n, entry n ≤ exit n) |
| 1551 | (κ : ℕ → Plane → ℝ) : CopyData (P × Plane) Frequency where |
| 1552 | background := base |
| 1553 | amplitude n k := complexCopyVelocity (t n) (source n) (g n) (hab n) k |
| 1554 | pressure n k := complexCopyPressure (t n) (source n) (g n) (hab n) k (base.frequency n) |
| 1555 | cutoff n k z := κ n ((g n).coordinates k z.2) |
| 1556 | source := source |
| 1557 | |
| 1558 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] in |
| 1559 | theorem complexCopyData_common (base : WaveCoefficients (P × Plane)) |
| 1560 | (t : ℕ → TangentData P ProblemStatement.Space) (source : ℕ → P × Plane → ComplexVector) |
| 1561 | (g : ℕ → Geometry) (entry exit : ℕ → ℝ) (hab : ∀ n, entry n ≤ exit n) |
| 1562 | (κ : ℕ → Plane → ℝ) : |
| 1563 | (complexCopyData base t source g entry exit hab κ).common = |
| 1564 | { base with |
| 1565 | amplitude := fun n => commonVelocity (t n) (source n) (g n) (hab n) (κ n) |
| 1566 | pressure := fun n => commonPressure (t n) (source n) (g n) (hab n) (κ n) (base.frequency n) } := rfl |
| 1567 | |
| 1568 | theorem complexCopyData_common_periodic (base : WaveCoefficients (P × Plane)) |
| 1569 | (t : ℕ → TangentData P ProblemStatement.Space) (source : ℕ → P × Plane → ComplexVector) |
| 1570 | (g : ℕ → Geometry) (entry exit : ℕ → ℝ) (hab : ∀ n, entry n ≤ exit n) |
| 1571 | (κ : ℕ → Plane → ℝ) (n : ℕ) (p : P) (hp : PeriodicAt (source n) p) : |
| 1572 | PeriodicAt ((complexCopyData base t source g entry exit hab κ).common.amplitude n) p ∧ |
| 1573 | PeriodicAt ((complexCopyData base t source g entry exit hab κ).common.pressure n) p := |
| 1574 | ⟨commonVelocity_periodic (t n) (source n) (g n) (hab n) (κ n) p hp, |
| 1575 | commonPressure_periodic (t n) (source n) (g n) (hab n) (κ n) (base.frequency n) p hp⟩ |
| 1576 | |
| 1577 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] in |
| 1578 | theorem complexCopyData_cutoff_support (base : WaveCoefficients (P × Plane)) |
| 1579 | (t : ℕ → TangentData P ProblemStatement.Space) (source : ℕ → P × Plane → ComplexVector) |
| 1580 | (g : ℕ → Geometry) (entry exit : ℕ → ℝ) (hab : ∀ n, entry n ≤ exit n) |
| 1581 | (κ : ℕ → Plane → ℝ) (K : ℕ → Set Plane) (hκ : ∀ n, support (κ n) ⊆ K n) |
| 1582 | (n : ℕ) (k : Frequency) : |
| 1583 | support ((complexCopyData base t source g entry exit hab κ).cutoff n k) ⊆ |
| 1584 | nativeCell (g n) (K n) k := native_cutoff_support (g n) (hκ n) k |
| 1585 | |
| 1586 | /-- The data-only binding to the actual fixed-reference particular solve. |
| 1587 | The source is the literal coefficient of the incoming harmonic residual; |
| 1588 | no inverse, output field, or residual witness is supplied separately. -/ |
| 1589 | noncomputable def particularData (r : Reference P) (charts : BandCharts P) |
| 1590 | (c : Context (P × Plane)) (u : State (P × Plane)) (b : HarmonicBlock (P × Plane)) |
| 1591 | (G A : HarmonicResidual.BlockCoefficients (P × Plane)) (j : ℤ) |
| 1592 | (base : WaveCoefficients ((P × ℝ) × Plane)) : CopyData ((P × ℝ) × Plane) Frequency where |
| 1593 | background := actualCarrier base b j |
| 1594 | amplitude n k := (actualCopyCoefficients r charts c u b G A j base (fun _ => k)).amplitude n |
| 1595 | pressure n k := (actualCopyCoefficients r charts c u b G A j base (fun _ => k)).pressure n |
| 1596 | cutoff n k z := r.cutoff ((bandGeometry r charts n).coordinates k z.2) |
| 1597 | source n := angleLift (residualSource c u b G A j n) |
| 1598 | |
| 1599 | theorem particularData_eq_complexCopyData (r : Reference P) (charts : BandCharts P) |
| 1600 | (c : Context (P × Plane)) (u : State (P × Plane)) (b : HarmonicBlock (P × Plane)) |
| 1601 | (G A : HarmonicResidual.BlockCoefficients (P × Plane)) (j : ℤ) |
| 1602 | (base : WaveCoefficients ((P × ℝ) × Plane)) : |
| 1603 | particularData r charts c u b G A j base = |
| 1604 | complexCopyData (actualCarrier base b j) (fun n => angleTangent (bandTangent r charts j n)) |
| 1605 | (fun n => angleLift (residualSource c u b G A j n)) (bandGeometry r charts) |
| 1606 | (fun _ => 0) (fun _ => r.length) (fun _ => r.length_pos.le) (fun _ => r.cutoff) := rfl |
| 1607 | |
| 1608 | theorem particularData_raw (r : Reference P) (charts : BandCharts P) |
| 1609 | (c : Context (P × Plane)) (u : State (P × Plane)) (b : HarmonicBlock (P × Plane)) |
| 1610 | (G A : HarmonicResidual.BlockCoefficients (P × Plane)) (j : ℤ) |
| 1611 | (base : WaveCoefficients ((P × ℝ) × Plane)) (k : Frequency) : |
| 1612 | (particularData r charts c u b G A j base).raw k = |
| 1613 | actualCopyCoefficients r charts c u b G A j base (fun _ => k) := rfl |
| 1614 | |
| 1615 | theorem particularData_source (r : Reference P) (charts : BandCharts P) |
| 1616 | (c : Context (P × Plane)) (u : State (P × Plane)) (b : HarmonicBlock (P × Plane)) |
| 1617 | (G A : HarmonicResidual.BlockCoefficients (P × Plane)) (j : ℤ) |
| 1618 | (base : WaveCoefficients ((P × ℝ) × Plane)) (n : ℕ) (z : (P × ℝ) × Plane) (i : Fin 3) : |
| 1619 | (particularData r charts c u b G A j base).source n z i = |
| 1620 | (HarmonicResidual.residualBlock c u b G A).velocity n i j (z.1.1, z.2) := rfl |
| 1621 | |
| 1622 | theorem particularData_frequency (r : Reference P) (charts : BandCharts P) |
| 1623 | (c : Context (P × Plane)) (u : State (P × Plane)) (b : HarmonicBlock (P × Plane)) |
| 1624 | (G A : HarmonicResidual.BlockCoefficients (P × Plane)) (j : ℤ) |
| 1625 | (base : WaveCoefficients ((P × ℝ) × Plane)) (n : ℕ) : |
| 1626 | (particularData r charts c u b G A j base).background.frequency n = (j : ℝ) * b.frequency n := rfl |
| 1627 | |
| 1628 | theorem particularData_phase (r : Reference P) (charts : BandCharts P) |
| 1629 | (c : Context (P × Plane)) (u : State (P × Plane)) (b : HarmonicBlock (P × Plane)) |
| 1630 | (G A : HarmonicResidual.BlockCoefficients (P × Plane)) (j : ℤ) |
| 1631 | (base : WaveCoefficients ((P × ℝ) × Plane)) (n : ℕ) (z : (P × ℝ) × Plane) : |
| 1632 | (particularData r charts c u b G A j base).background.phase n z = |
| 1633 | b.phase n (z.1.1, z.2) + (b.angularFrequency n : ℝ) / b.frequency n * z.1.2 := rfl |
| 1634 | |
| 1635 | theorem particularData_cutoff_support (r : Reference P) (charts : BandCharts P) |
| 1636 | (c : Context (P × Plane)) (u : State (P × Plane)) (b : HarmonicBlock (P × Plane)) |
| 1637 | (G A : HarmonicResidual.BlockCoefficients (P × Plane)) (j : ℤ) |
| 1638 | (base : WaveCoefficients ((P × ℝ) × Plane)) (K : ℕ → Set Plane) |
| 1639 | (hK : ∀ n, support r.cutoff ⊆ K n) (n : ℕ) (k : Frequency) : |
| 1640 | support ((particularData r charts c u b G A j base).cutoff n k) ⊆ |
| 1641 | nativeCell (bandGeometry r charts n) (K n) k := |
| 1642 | native_cutoff_support (bandGeometry r charts n) (hK n) k |
| 1643 | |
| 1644 | /-- This is the same actual periodization as `ParticularWaveAssembly`, |
| 1645 | with its single physical reference and original source. -/ |
| 1646 | theorem particularData_common (r : Reference P) (charts : BandCharts P) |
| 1647 | (c : Context (P × Plane)) (u : State (P × Plane)) (b : HarmonicBlock (P × Plane)) |
| 1648 | (G A : HarmonicResidual.BlockCoefficients (P × Plane)) {j : ℤ} (hj : j ≠ 0) |
| 1649 | (hfrequency : ∀ n, b.frequency n ≠ 0) |
| 1650 | (base : WaveCoefficients ((P × ℝ) × Plane)) : |
| 1651 | (particularData r charts c u b G A j base).common = |
| 1652 | actualCommonCoefficients r charts c u b G A j base := by |
| 1653 | let a := particularData r charts c u b G A j base |
| 1654 | have ha : a.common.amplitude = (actualCommonCoefficients r charts c u b G A j base).amplitude := by |
| 1655 | funext n |
| 1656 | rw [actualCommon_amplitude_periodization] |
| 1657 | rfl |
| 1658 | have hp : a.common.pressure = (actualCommonCoefficients r charts c u b G A j base).pressure := by |
| 1659 | funext n |
| 1660 | rw [actualCommon_pressure_periodization r charts c u b G A hj hfrequency] |
| 1661 | rfl |
| 1662 | calc |
| 1663 | a.common = { actualCarrier base b j with amplitude := a.common.amplitude, pressure := a.common.pressure } := rfl |
| 1664 | _ = { actualCarrier base b j with |
| 1665 | amplitude := (actualCommonCoefficients r charts c u b G A j base).amplitude, |
| 1666 | pressure := (actualCommonCoefficients r charts c u b G A j base).pressure } := by rw [ha, hp] |
| 1667 | _ = _ := rfl |
| 1668 | |
| 1669 | theorem particularData_commonCorrected (r : Reference P) (charts : BandCharts P) |
| 1670 | (c : Context (P × Plane)) (u : State (P × Plane)) (b : HarmonicBlock (P × Plane)) |
| 1671 | (G A : HarmonicResidual.BlockCoefficients (P × Plane)) {j : ℤ} (hj : j ≠ 0) |
| 1672 | (hfrequency : ∀ n, b.frequency n ≠ 0) |
| 1673 | (base : WaveCoefficients ((P × ℝ) × Plane)) (s : StripData ((P × ℝ) × Plane)) |
| 1674 | (d : GraphDirections ((P × ℝ) × Plane)) : |
| 1675 | (particularData r charts c u b G A j base).commonCorrected s d = |
| 1676 | actualCorrectedCommon r charts c u b G A j base s d := by |
| 1677 | unfold CopyData.commonCorrected actualCorrectedCommon |
| 1678 | rw [particularData_common r charts c u b G A hj hfrequency] |
| 1679 | |
| 1680 | end ActualParticularData |
| 1681 | |
| 1682 | end NavierStokes.PeriodizedWaveBounds |