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.LinearWaveResidual |
| 2 | import NavierStokes.WeightedClasses |
| 3 | import NavierStokes.CurlClassBounds |
| 4 | import NavierStokes.GaussianTailFlat |
| 5 | |
| 6 | /-! |
| 7 | # Weighted bounds for the actual linear wave remainder |
| 8 | |
| 9 | The classes in this file bound `iteratedFDeriv` of the actual stripped |
| 10 | coefficients uniformly in the band. Radial graph differentiation, axial |
| 11 | rescaling, and the fast direction are kept explicit. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace NavierStokes.LinearWaveBounds |
| 17 | |
| 18 | open WeightedClasses HarmonicCalculus Set Filter |
| 19 | open scoped ContDiff Topology BigOperators |
| 20 | |
| 21 | |
| 22 | variable {D E F : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 23 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 24 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 25 | |
| 26 | theorem class_congr {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} |
| 27 | {f g : ℕ → D → E} (hf : MemClass s w α f) |
| 28 | (he : ∀ n, EqOn (f n) (g n) s.domain) : MemClass s w α g := by |
| 29 | refine ⟨hf.weight_nonneg, fun n => (hf.smooth n).congr (he n).symm, ?_⟩ |
| 30 | intro m |
| 31 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 32 | refine ⟨C, hC, p, ?_⟩ |
| 33 | intro n x hx j hj |
| 34 | have hlocal : f n =ᶠ[𝓝 x] g n := eventually_of_mem (s.isOpen_domain.mem_nhds hx) (he n) |
| 35 | have hlocal' : f n =ᶠ[𝓝[univ] x] g n := by simpa only [nhdsWithin_univ] using hlocal |
| 36 | have hjet := hlocal'.iteratedFDerivWithin_eq (𝕜 := ℝ) hlocal.self_of_nhds j |
| 37 | simp only [iteratedFDerivWithin_univ] at hjet |
| 38 | rw [← hjet] |
| 39 | exact hb n x hx j hj |
| 40 | |
| 41 | theorem class_neg {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} {f : ℕ → D → E} |
| 42 | (hf : MemClass s w α f) : MemClass s w α (fun n x => -f n x) := by |
| 43 | simpa using hf.map (-ContinuousLinearMap.id ℝ E) |
| 44 | |
| 45 | theorem class_sub {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} {f g : ℕ → D → E} |
| 46 | (hf : MemClass s w α f) (hg : MemClass s w α g) : |
| 47 | MemClass s w α (fun n x => f n x - g n x) := by |
| 48 | simpa only [sub_eq_add_neg] using hf.add (class_neg hg) |
| 49 | |
| 50 | theorem unweighted_mul {s : StripData D} {α β : ℝ} {f g : ℕ → D → ℝ} |
| 51 | (hf : UnweightedClass s α f) (hg : UnweightedClass s β g) : |
| 52 | UnweightedClass s (α + β) (fun n x => f n x * g n x) := by |
| 53 | simpa only [UnweightedClass, one_mul] using MemClass.mul hf hg |
| 54 | |
| 55 | theorem unweighted_smul {s : StripData D} {w : ℕ → D → ℝ} {α β : ℝ} |
| 56 | {f : ℕ → D → ℝ} {g : ℕ → D → E} |
| 57 | (hf : UnweightedClass s α f) (hg : MemClass s w β g) : |
| 58 | MemClass s w (α + β) (fun n x => f n x • g n x) := by |
| 59 | simpa only [UnweightedClass, one_mul] using MemClass.smul hf hg |
| 60 | |
| 61 | theorem real_mul_complex {s : StripData D} {w : ℕ → D → ℝ} {α β : ℝ} |
| 62 | {f : ℕ → D → ℝ} {g : ℕ → D → ℂ} |
| 63 | (hf : UnweightedClass s α f) (hg : MemClass s w β g) : |
| 64 | MemClass s w (α + β) (fun n x => (f n x : ℂ) * g n x) := by |
| 65 | simpa only [Complex.real_smul] using unweighted_smul hf hg |
| 66 | |
| 67 | theorem complex_mul_real {s : StripData D} {w : ℕ → D → ℝ} {α β : ℝ} |
| 68 | {f : ℕ → D → ℂ} {g : ℕ → D → ℝ} |
| 69 | (hf : MemClass s w α f) (hg : UnweightedClass s β g) : |
| 70 | MemClass s w (α + β) (fun n x => f n x * (g n x : ℂ)) := by |
| 71 | simpa only [add_comm β α, mul_comm] using real_mul_complex hg hf |
| 72 | |
| 73 | theorem constant_complex_mul {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} |
| 74 | {f : ℕ → D → ℂ} (hf : MemClass s w α f) (c : ℂ) : |
| 75 | MemClass s w α (fun n x => c * f n x) := by |
| 76 | exact hf.map ((ContinuousLinearMap.mul ℝ ℂ) c) |
| 77 | |
| 78 | theorem constant_real_mul {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} |
| 79 | {f : ℕ → D → ℝ} (hf : MemClass s w α f) (c : ℝ) : |
| 80 | MemClass s w α (fun n x => c * f n x) := by |
| 81 | simpa only [_root_.smul_apply, ContinuousLinearMap.id_apply, smul_eq_mul] |
| 82 | using hf.map (c • ContinuousLinearMap.id ℝ ℝ) |
| 83 | |
| 84 | theorem band_epsilon (s : StripData D) : BandBound s 1 s.epsilon := by |
| 85 | simpa only [Real.rpow_one] using bandBound_rpow s 1 |
| 86 | |
| 87 | theorem mean_unweighted {s : StripData D} {α : ℝ} {f : ℕ → D → E} |
| 88 | (hf : MeanClass s α f) (hζ : ∀ x ∈ s.domain, s.zeta x ≤ 1) : |
| 89 | UnweightedClass s α f := |
| 90 | hf.mono_weight (fun _ _ _ => zero_le_one) (fun _ x hx => hζ x hx) |
| 91 | |
| 92 | /-- Raw direction data. Its numerical and class hypotheses are separate. -/ |
| 93 | structure GraphDirections (D : Type*) [NormedAddCommGroup D] [NormedSpace ℝ D] where |
| 94 | radial : D |
| 95 | auxiliary : D |
| 96 | axial : D |
| 97 | angular : D |
| 98 | slow : D |
| 99 | fast : D |
| 100 | radialScale : ℕ → ℝ |
| 101 | fastScale : ℕ → ℝ |
| 102 | radialProfile : D → ℝ |
| 103 | |
| 104 | namespace GraphDirections |
| 105 | |
| 106 | noncomputable def radialField (d : GraphDirections D) (n : ℕ) (x : D) : D := |
| 107 | d.radial + d.radialScale n • (d.radialProfile x • d.auxiliary) |
| 108 | |
| 109 | noncomputable def axialField (d : GraphDirections D) (s : StripData D) (n : ℕ) (_ : D) : D := |
| 110 | s.epsilon n • d.axial |
| 111 | |
| 112 | noncomputable def fastField (d : GraphDirections D) (n : ℕ) (_ : D) : D := |
| 113 | d.fastScale n • d.fast |
| 114 | |
| 115 | noncomputable def Dr (d : GraphDirections D) (f : ℕ → D → E) : ℕ → D → E := |
| 116 | fun n => along (d.radialField n) (f n) |
| 117 | |
| 118 | noncomputable def Dz (d : GraphDirections D) (s : StripData D) (f : ℕ → D → E) : ℕ → D → E := |
| 119 | fun n => along (d.axialField s n) (f n) |
| 120 | |
| 121 | noncomputable def Dt (d : GraphDirections D) (f : ℕ → D → E) : ℕ → D → E := |
| 122 | fun n => along (fun _ => d.slow) (f n) |
| 123 | |
| 124 | noncomputable def Dfast (d : GraphDirections D) (f : ℕ → D → E) : ℕ → D → E := |
| 125 | fun n => along (d.fastField n) (f n) |
| 126 | |
| 127 | theorem Dr_eq (d : GraphDirections D) (f : ℕ → D → E) : |
| 128 | d.Dr f = graphDerivative d.radialScale d.radialProfile d.radial d.auxiliary f := by |
| 129 | funext n x |
| 130 | exact (graphDerivative_eq_along _ _ _ _ _ n x).symm |
| 131 | |
| 132 | theorem Dr_mem {s : StripData D} {w : ℕ → D → ℝ} {α κ : ℝ} |
| 133 | (d : GraphDirections D) {f : ℕ → D → E} (hf : MemClass s w α f) |
| 134 | (hρ : UnweightedClass s 0 (fun _ => d.radialProfile)) |
| 135 | (hM : BandBound s (-κ) d.radialScale) (hκ : 0 ≤ κ) : |
| 136 | MemClass s w (α - κ) (d.Dr f) := by |
| 137 | rw [d.Dr_eq] |
| 138 | exact hf.graphDerivative hρ hM hκ d.radial d.auxiliary |
| 139 | |
| 140 | theorem Dz_mem {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} |
| 141 | (d : GraphDirections D) {f : ℕ → D → E} (hf : MemClass s w α f) : |
| 142 | MemClass s w (α + 1) (d.Dz s f) := by |
| 143 | have hh := (hf.directional d.axial).band_smul (band_epsilon s) |
| 144 | unfold Dz axialField along |
| 145 | simpa only [map_smul] using hh |
| 146 | |
| 147 | theorem Dt_mem {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} |
| 148 | (d : GraphDirections D) {f : ℕ → D → E} (hf : MemClass s w α f) : |
| 149 | MemClass s w α (d.Dt f) := hf.directional d.slow |
| 150 | |
| 151 | theorem Dfast_mem {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} |
| 152 | (d : GraphDirections D) {f : ℕ → D → E} (hf : MemClass s w α f) |
| 153 | (hfast : BandBound s 0 d.fastScale) : MemClass s w α (d.Dfast f) := by |
| 154 | have hh := (hf.directional d.fast).band_smul hfast |
| 155 | unfold Dfast fastField along |
| 156 | simpa only [map_smul, add_zero] using hh |
| 157 | |
| 158 | /-- Base fields independent of the auxiliary coordinate incur no graph loss. -/ |
| 159 | theorem Dr_base_mem {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} |
| 160 | (d : GraphDirections D) {f : ℕ → D → E} (hf : MemClass s w α f) |
| 161 | (haux : ∀ n x, x ∈ s.domain → fderiv ℝ (f n) x d.auxiliary = 0) : |
| 162 | MemClass s w α (d.Dr f) := by |
| 163 | apply class_congr (hf.directional d.radial) |
| 164 | intro n x hx |
| 165 | simp [Dr, radialField, along, haux n x hx] |
| 166 | |
| 167 | end GraphDirections |
| 168 | |
| 169 | theorem frequency_mul {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} |
| 170 | {f : ℕ → D → ℂ} {kfreq : ℕ → ℝ} (hf : MemClass s w α f) |
| 171 | (hkfreq : BandBound s (-(1 / 2 : ℝ)) kfreq) : |
| 172 | MemClass s w (α - 1 / 2) (fun n x => phaseFactor (kfreq n) * f n x) := by |
| 173 | have hh := (constant_complex_mul hf Complex.I).band_smul hkfreq |
| 174 | simpa only [sub_eq_add_neg, Complex.real_smul, phaseFactor, mul_assoc] using hh |
| 175 | |
| 176 | /-- Families of actual phase, base, velocity, and pressure coefficients. -/ |
| 177 | structure WaveCoefficients (D : Type*) where |
| 178 | radius : ℕ → D → ℝ |
| 179 | radialBase : ℕ → D → ℝ |
| 180 | frequencyBase : ℕ → D → ℝ |
| 181 | axialBase : ℕ → D → ℝ |
| 182 | phase : ℕ → D → ℝ |
| 183 | amplitude : ℕ → D → ComplexVector |
| 184 | pressure : ℕ → D → ℂ |
| 185 | frequency : ℕ → ℝ |
| 186 | |
| 187 | namespace WaveCoefficients |
| 188 | |
| 189 | noncomputable def normal (a : WaveCoefficients D) (s : StripData D) (d : GraphDirections D) |
| 190 | (n : ℕ) : D → EuclideanSpace ℝ (Fin 3) := |
| 191 | phaseNormal (a.radius n) (d.radialField n) (fun _ => d.angular) (d.axialField s n) (a.phase n) |
| 192 | |
| 193 | noncomputable def defect (a : WaveCoefficients D) (s : StripData D) (d : GraphDirections D) |
| 194 | (n : ℕ) : D → ℝ := |
| 195 | LinearWaveResidual.materialPhaseDefect (a.radius n) (a.radialBase n) (a.frequencyBase n) |
| 196 | (a.axialBase n) (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 197 | (LinearWaveResidual.timeDirection (s.epsilon n) (d.fastField n) (fun _ => d.slow)) (a.phase n) |
| 198 | |
| 199 | noncomputable def remainder (a : WaveCoefficients D) (s : StripData D) (d : GraphDirections D) |
| 200 | (n : ℕ) : D → ComplexVector := |
| 201 | LinearWaveResidual.remainder (s.epsilon n) (a.frequency n) (a.radius n) (a.radialBase n) |
| 202 | (a.frequencyBase n) (a.axialBase n) (d.radialField n) (fun _ => d.angular) |
| 203 | (d.axialField s n) (d.fastField n) (fun _ => d.slow) (a.phase n) (a.amplitude n) (a.pressure n) |
| 204 | |
| 205 | noncomputable def principal (a : WaveCoefficients D) (s : StripData D) (d : GraphDirections D) |
| 206 | (n : ℕ) : D → ComplexVector := |
| 207 | LinearWaveResidual.principal (s.epsilon n) (a.frequency n) (a.radius n) (a.frequencyBase n) |
| 208 | (a.axialBase n) (d.radialField n) (fun _ => d.angular) (d.axialField s n) (d.fastField n) |
| 209 | (a.phase n) (a.amplitude n) (a.pressure n) |
| 210 | |
| 211 | noncomputable def principalVelocity (a : WaveCoefficients D) (s : StripData D) (d : GraphDirections D) |
| 212 | (f : ℕ → D → ComplexVector) (n : ℕ) : D → ComplexVector := |
| 213 | LinearWaveResidual.principal (s.epsilon n) (a.frequency n) (a.radius n) (a.frequencyBase n) |
| 214 | (a.axialBase n) (d.radialField n) (fun _ => d.angular) (d.axialField s n) (d.fastField n) |
| 215 | (a.phase n) (f n) (fun _ => 0) |
| 216 | |
| 217 | noncomputable def addAmplitude (a : WaveCoefficients D) (f : ℕ → D → ComplexVector) : |
| 218 | WaveCoefficients D := {a with amplitude := fun n x => a.amplitude n x + f n x} |
| 219 | |
| 220 | noncomputable def withCutoff (a : WaveCoefficients D) (ψ : ℕ → D → ℝ) : WaveCoefficients D := |
| 221 | { a with |
| 222 | amplitude := fun n x => ψ n x • a.amplitude n x |
| 223 | pressure := fun n x => (ψ n x : ℂ) * a.pressure n x } |
| 224 | |
| 225 | /-- The retained coefficient after cutoff and exact-curl correction. |
| 226 | The two slot tails are not included in this definition. -/ |
| 227 | noncomputable def goodCoefficient (a : WaveCoefficients D) (s : StripData D) |
| 228 | (d : GraphDirections D) (ψ : ℕ → D → ℝ) (f : ℕ → D → ComplexVector) |
| 229 | (n : ℕ) (x : D) : ComplexVector := |
| 230 | a.principalVelocity s d f n x + ((a.withCutoff ψ).addAmplitude f).remainder s d n x |
| 231 | |
| 232 | noncomputable def harmonicResidual (a : WaveCoefficients D) (s : StripData D) (d : GraphDirections D) |
| 233 | (n : ℕ) : D → ComplexVector := |
| 234 | LinearWaveResidual.linearResidual (s.epsilon n) (a.radius n) (d.radialField n) (fun _ => d.angular) |
| 235 | (d.axialField s n) (LinearWaveResidual.timeDirection (s.epsilon n) (d.fastField n) (fun _ => d.slow)) |
| 236 | (LinearWaveResidual.complexBase (a.radius n) (a.radialBase n) (a.frequencyBase n) (a.axialBase n)) |
| 237 | (vectorMode (a.frequency n) (a.phase n) (a.amplitude n)) |
| 238 | (mode (a.frequency n) (a.phase n) (a.pressure n)) |
| 239 | |
| 240 | end WaveCoefficients |
| 241 | |
| 242 | namespace WaveCoefficients |
| 243 | |
| 244 | /-- The actual coefficient error from taking the curl of the normalized |
| 245 | harmonic vector potential. -/ |
| 246 | noncomputable def curlCorrection (a : WaveCoefficients D) (s : StripData D) |
| 247 | (d : GraphDirections D) (n : ℕ) : D → ComplexVector := |
| 248 | CurlClassBounds.curlRemainder (a.frequency n) (a.radius n) (d.radialField n) |
| 249 | (fun _ => d.angular) (d.axialField s n) |
| 250 | (CurlClassBounds.coefficient (a.radius n) (d.radialField n) (fun _ => d.angular) |
| 251 | (d.axialField s n) (a.phase n) (a.amplitude n)) |
| 252 | |
| 253 | noncomputable def curlPotential (a : WaveCoefficients D) (s : StripData D) |
| 254 | (d : GraphDirections D) (n : ℕ) : D → ComplexVector := |
| 255 | CurlClassBounds.vectorPotential (a.frequency n) (a.radius n) (d.radialField n) |
| 256 | (fun _ => d.angular) (d.axialField s n) (a.phase n) (a.amplitude n) |
| 257 | |
| 258 | noncomputable def corrected (a : WaveCoefficients D) (s : StripData D) |
| 259 | (d : GraphDirections D) (ψ : ℕ → D → ℝ) : WaveCoefficients D := |
| 260 | (a.withCutoff ψ).addAmplitude ((a.withCutoff ψ).curlCorrection s d) |
| 261 | |
| 262 | noncomputable def constructedGood (a : WaveCoefficients D) (s : StripData D) |
| 263 | (d : GraphDirections D) (ψ : ℕ → D → ℝ) : ℕ → D → ComplexVector := |
| 264 | a.goodCoefficient s d ψ ((a.withCutoff ψ).curlCorrection s d) |
| 265 | |
| 266 | end WaveCoefficients |
| 267 | |
| 268 | /-- Only primitive coefficient classes and scale bounds are inputs. |
| 269 | No remainder or residual bound occurs in this structure. -/ |
| 270 | structure InputBounds (s : StripData D) (P : ℕ → D → ℝ) (α κ : ℝ) |
| 271 | (d : GraphDirections D) (a : WaveCoefficients D) : Prop where |
| 272 | loss_nonneg : 0 ≤ κ |
| 273 | zeta_le_one : ∀ x ∈ s.domain, s.zeta x ≤ 1 |
| 274 | radial_profile : UnweightedClass s 0 (fun _ => d.radialProfile) |
| 275 | radial_scale : BandBound s (-κ) d.radialScale |
| 276 | fast_scale : BandBound s 0 d.fastScale |
| 277 | frequency_scale : BandBound s (-(1 / 2 : ℝ)) a.frequency |
| 278 | radius : UnweightedClass s 0 a.radius |
| 279 | inverse_radius : UnweightedClass s 0 (fun n x => (a.radius n x)⁻¹) |
| 280 | radial_base : UnweightedClass s 1 a.radialBase |
| 281 | frequency_base : UnweightedClass s 0 a.frequencyBase |
| 282 | axial_base : UnweightedClass s 0 a.axialBase |
| 283 | radial_base_aux : ∀ n x, x ∈ s.domain → fderiv ℝ (a.radialBase n) x d.auxiliary = 0 |
| 284 | frequency_base_aux : ∀ n x, x ∈ s.domain → fderiv ℝ (a.frequencyBase n) x d.auxiliary = 0 |
| 285 | axial_base_aux : ∀ n x, x ∈ s.domain → fderiv ℝ (a.axialBase n) x d.auxiliary = 0 |
| 286 | normal : ∀ i, UnweightedClass s 0 (fun n x => a.normal s d n x i) |
| 287 | defect : UnweightedClass s 1 (a.defect s d) |
| 288 | amplitude : ∀ i, WaveClass s P α (fun n x => a.amplitude n x i) |
| 289 | pressure : WaveClass s P (α + 1 / 2) a.pressure |
| 290 | |
| 291 | noncomputable def insertComponent (i : Fin 3) : ℂ →L[ℝ] ComplexVector := |
| 292 | ContinuousLinearMap.pi fun j => if j = i then ContinuousLinearMap.id ℝ ℂ else 0 |
| 293 | |
| 294 | theorem component_classes {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} |
| 295 | {f : ℕ → D → ComplexVector} (hf : ∀ i, MemClass s w α (fun n x => f n x i)) : |
| 296 | MemClass s w α f := by |
| 297 | have hh := MemClass.sum (s := s) Finset.univ |
| 298 | (fun i n x => insertComponent i (f n x i)) (hf 0).weight_nonneg |
| 299 | (fun i _ => (hf i).map (insertComponent i)) |
| 300 | apply class_congr hh |
| 301 | intro n x _ |
| 302 | ext i |
| 303 | fin_cases i <;> simp [insertComponent, Fin.sum_univ_three] |
| 304 | |
| 305 | theorem angular_classes {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} |
| 306 | {f : ℕ → D → ComplexVector} (hf : ∀ i, MemClass s w α (fun n x => f n x i)) : |
| 307 | ∀ i, MemClass s w α (fun n x => angularGenerator (f n x) i) := by |
| 308 | intro i |
| 309 | fin_cases i |
| 310 | · simpa [angularGenerator] using class_neg (hf 1) |
| 311 | · simpa [angularGenerator] using hf 0 |
| 312 | · simpa [angularGenerator] using (MemClass.zero (α := α) (E := ℂ) (hf 0).weight_nonneg) |
| 313 | |
| 314 | namespace InputBounds |
| 315 | |
| 316 | variable {s : StripData D} {P : ℕ → D → ℝ} {α κ : ℝ} |
| 317 | {d : GraphDirections D} {a : WaveCoefficients D} |
| 318 | |
| 319 | theorem b_unweighted (h : InputBounds s P α κ d a) : |
| 320 | UnweightedClass s 1 a.radialBase := h.radial_base |
| 321 | |
| 322 | theorem inverse_radius_sq (h : InputBounds s P α κ d a) : |
| 323 | UnweightedClass s 0 (fun n x => ((a.radius n x) ^ 2)⁻¹) := by |
| 324 | simpa only [zero_add, pow_two, mul_inv_rev] using unweighted_mul h.inverse_radius h.inverse_radius |
| 325 | |
| 326 | theorem base_components (h : InputBounds s P α κ d a) (i : Fin 3) : |
| 327 | UnweightedClass s 0 (fun n x => |
| 328 | LinearWaveResidual.base (a.radius n) (a.radialBase n) (a.frequencyBase n) (a.axialBase n) x i) := by |
| 329 | fin_cases i |
| 330 | · simpa [LinearWaveResidual.base] using h.b_unweighted.mono_exponent (by norm_num : (0 : ℝ) ≤ 1) |
| 331 | · simpa [LinearWaveResidual.base] using unweighted_mul h.radius h.frequency_base |
| 332 | · simpa [LinearWaveResidual.base] using h.axial_base |
| 333 | |
| 334 | theorem slowTransport_mem (h : InputBounds s P α κ d a) (i : Fin 3) : |
| 335 | WaveClass s P (α + 1 / 2 - 3 * κ) (fun n x => |
| 336 | LinearWaveResidual.slowTransport (s.epsilon n) (a.radialBase n) (a.axialBase n) |
| 337 | (fun _ => d.slow) (d.radialField n) (d.axialField s n) (a.amplitude n) x i) := by |
| 338 | have ht := class_neg ((d.Dt_mem (h.amplitude i)).band_smul (band_epsilon s)) |
| 339 | have hr := real_mul_complex h.b_unweighted |
| 340 | (d.Dr_mem (h.amplitude i) h.radial_profile h.radial_scale h.loss_nonneg) |
| 341 | have hz := real_mul_complex h.axial_base (d.Dz_mem (h.amplitude i)) |
| 342 | have ht' := ht.mono_exponent (show α + 1 / 2 - 3 * κ ≤ α + 1 by linarith [h.loss_nonneg]) |
| 343 | have hr' := hr.mono_exponent (show α + 1 / 2 - 3 * κ ≤ 1 + (α - κ) by linarith [h.loss_nonneg]) |
| 344 | have hz' := hz.mono_exponent (show α + 1 / 2 - 3 * κ ≤ 0 + (α + 1) by linarith [h.loss_nonneg]) |
| 345 | simpa only [LinearWaveResidual.slowTransport, GraphDirections.Dt, GraphDirections.Dr, |
| 346 | GraphDirections.Dz, Complex.real_smul, neg_mul] using (ht'.add hr').add hz' |
| 347 | |
| 348 | theorem phaseDefect_mem (h : InputBounds s P α κ d a) (i : Fin 3) : |
| 349 | WaveClass s P (α + 1 / 2 - 3 * κ) (fun n x => |
| 350 | phaseFactor (a.frequency n) * Complex.ofReal (a.defect s d n x) * a.amplitude n x i) := by |
| 351 | have hh := frequency_mul (real_mul_complex h.defect (h.amplitude i)) h.frequency_scale |
| 352 | have hh' := hh.mono_exponent |
| 353 | (show α + 1 / 2 - 3 * κ ≤ (1 + α) - 1 / 2 by linarith [h.loss_nonneg]) |
| 354 | simpa only [mul_assoc] using hh' |
| 355 | |
| 356 | theorem baseDerivativeRemainder_mem (h : InputBounds s P α κ d a) (i : Fin 3) : |
| 357 | WaveClass s P (α + 1 / 2 - 3 * κ) (fun n x => |
| 358 | LinearWaveResidual.baseDerivativeRemainder (a.radius n) (a.radialBase n) |
| 359 | (a.frequencyBase n) (a.axialBase n) (d.radialField n) (d.axialField s n) |
| 360 | (a.amplitude n) x i) := by |
| 361 | have hbr := d.Dr_base_mem h.b_unweighted h.radial_base_aux |
| 362 | have h0 := (complex_mul_real (h.amplitude 0) hbr).mono_exponent |
| 363 | (show α + 1 / 2 - 3 * κ ≤ α + 1 by linarith [h.loss_nonneg]) |
| 364 | have hbinv := unweighted_mul h.b_unweighted h.inverse_radius |
| 365 | have h1 := (real_mul_complex hbinv (h.amplitude 1)).mono_exponent |
| 366 | (show α + 1 / 2 - 3 * κ ≤ (1 + 0) + α by linarith [h.loss_nonneg]) |
| 367 | have hz (j : Fin 3) := (complex_mul_real (h.amplitude 2) (d.Dz_mem (h.base_components j))).mono_exponent |
| 368 | (show α + 1 / 2 - 3 * κ ≤ α + (0 + 1) by linarith [h.loss_nonneg]) |
| 369 | fin_cases i |
| 370 | · simpa [LinearWaveResidual.baseDerivativeRemainder, GraphDirections.Dr, GraphDirections.Dz] |
| 371 | using h0.add (hz 0) |
| 372 | · simpa [LinearWaveResidual.baseDerivativeRemainder, GraphDirections.Dz, div_eq_mul_inv] |
| 373 | using h1.add (hz 1) |
| 374 | · simpa [LinearWaveResidual.baseDerivativeRemainder, GraphDirections.Dz] using hz 2 |
| 375 | |
| 376 | theorem pressureGradient_mem (h : InputBounds s P α κ d a) (i : Fin 3) : |
| 377 | WaveClass s P (α + 1 / 2 - 3 * κ) (fun n x => |
| 378 | LinearWaveResidual.strippedPressureGradient (d.radialField n) (d.axialField s n) |
| 379 | (a.pressure n) x i) := by |
| 380 | fin_cases i |
| 381 | · have hh := (d.Dr_mem h.pressure h.radial_profile h.radial_scale h.loss_nonneg).mono_exponent |
| 382 | (show α + 1 / 2 - 3 * κ ≤ (α + 1 / 2) - κ by linarith [h.loss_nonneg]) |
| 383 | simp [LinearWaveResidual.strippedPressureGradient] at hh ⊢ |
| 384 | exact hh |
| 385 | · simpa [LinearWaveResidual.strippedPressureGradient] using |
| 386 | (MemClass.zero (α := α + 1 / 2 - 3 * κ) (E := ℂ) (h.amplitude 0).weight_nonneg) |
| 387 | · have hh := (d.Dz_mem h.pressure).mono_exponent |
| 388 | (show α + 1 / 2 - 3 * κ ≤ (α + 1 / 2) + 1 by linarith [h.loss_nonneg]) |
| 389 | simp [LinearWaveResidual.strippedPressureGradient] at hh ⊢ |
| 390 | exact hh |
| 391 | |
| 392 | theorem viscousRemainder_mem (h : InputBounds s P α κ d a) (i : Fin 3) : |
| 393 | WaveClass s P (α - 1 / 2 - 3 * κ) (fun n x => |
| 394 | LinearWaveResidual.viscousRemainder (a.radius n) (d.radialField n) (fun _ => d.angular) |
| 395 | (d.axialField s n) (a.frequency n) (a.phase n) (a.amplitude n) x i) := by |
| 396 | have hAi := h.amplitude i |
| 397 | have hDr := d.Dr_mem hAi h.radial_profile h.radial_scale h.loss_nonneg |
| 398 | have hDrr := d.Dr_mem hDr h.radial_profile h.radial_scale h.loss_nonneg |
| 399 | have hDz := d.Dz_mem hAi |
| 400 | have hDzz := d.Dz_mem hDz |
| 401 | have hri := real_mul_complex h.inverse_radius hDr |
| 402 | have hJ := angular_classes h.amplitude |
| 403 | have hJJ := angular_classes hJ |
| 404 | have hjj := real_mul_complex h.inverse_radius_sq (hJJ i) |
| 405 | have hcrossr := real_mul_complex (h.normal 0) hDr |
| 406 | have hcrossz := real_mul_complex (h.normal 2) hDz |
| 407 | have hcrossr' : WaveClass s P (α - κ) (fun n x => |
| 408 | Complex.ofReal (a.normal s d n x 0) * d.Dr (fun n x => a.amplitude n x i) n x) := by |
| 409 | simpa only [zero_add] using hcrossr |
| 410 | have hcrossz' := hcrossz.mono_exponent |
| 411 | (show α - κ ≤ 0 + (α + 1) by linarith [h.loss_nonneg]) |
| 412 | have hcross := constant_complex_mul |
| 413 | (frequency_mul (hcrossr'.add hcrossz') h.frequency_scale) 2 |
| 414 | have hNr := d.Dr_mem (h.normal 0) h.radial_profile h.radial_scale h.loss_nonneg |
| 415 | have hNi := unweighted_mul (h.normal 0) h.inverse_radius |
| 416 | have hNz := d.Dz_mem (h.normal 2) |
| 417 | have hNr' : UnweightedClass s (-κ) (d.Dr (fun n x => a.normal s d n x 0)) := by |
| 418 | simpa only [zero_sub] using hNr |
| 419 | have hNi' := hNi.mono_exponent (show -κ ≤ 0 + 0 by linarith [h.loss_nonneg]) |
| 420 | have hNz' := hNz.mono_exponent (show -κ ≤ 0 + 1 by linarith [h.loss_nonneg]) |
| 421 | have hdiv := frequency_mul (real_mul_complex ((hNr'.add hNi').add hNz') hAi) h.frequency_scale |
| 422 | have htheta := constant_complex_mul |
| 423 | (frequency_mul (real_mul_complex (unweighted_mul (h.normal 1) h.inverse_radius) (hJ i)) |
| 424 | h.frequency_scale) 2 |
| 425 | have hDrr' := hDrr.mono_exponent |
| 426 | (show α - 1 / 2 - 3 * κ ≤ (α - κ) - κ by linarith [h.loss_nonneg]) |
| 427 | have hri' := hri.mono_exponent |
| 428 | (show α - 1 / 2 - 3 * κ ≤ 0 + (α - κ) by linarith [h.loss_nonneg]) |
| 429 | have hDzz' := hDzz.mono_exponent |
| 430 | (show α - 1 / 2 - 3 * κ ≤ (α + 1) + 1 by linarith [h.loss_nonneg]) |
| 431 | have hjj' := hjj.mono_exponent |
| 432 | (show α - 1 / 2 - 3 * κ ≤ 0 + α by linarith [h.loss_nonneg]) |
| 433 | have hcross' := hcross.mono_exponent |
| 434 | (show α - 1 / 2 - 3 * κ ≤ (α - κ) - 1 / 2 by linarith [h.loss_nonneg]) |
| 435 | have hdiv' := hdiv.mono_exponent |
| 436 | (show α - 1 / 2 - 3 * κ ≤ (-κ + α) - 1 / 2 by linarith [h.loss_nonneg]) |
| 437 | have htheta' := htheta.mono_exponent |
| 438 | (show α - 1 / 2 - 3 * κ ≤ ((0 + 0) + α) - 1 / 2 by linarith [h.loss_nonneg]) |
| 439 | have hh := (((((hDrr'.add hri').add hDzz').add hjj').add hcross').add hdiv').add htheta' |
| 440 | simpa only [LinearWaveResidual.viscousRemainder, GraphDirections.Dr, GraphDirections.Dz, |
| 441 | WaveCoefficients.normal, Complex.real_smul, div_eq_mul_inv, Complex.ofReal_mul, |
| 442 | Complex.ofReal_inv, mul_assoc] using hh |
| 443 | |
| 444 | theorem viscousPart_mem (h : InputBounds s P α κ d a) (i : Fin 3) : |
| 445 | WaveClass s P (α + 1 / 2 - 3 * κ) (fun n x => (s.epsilon n : ℂ) * |
| 446 | LinearWaveResidual.viscousRemainder (a.radius n) (d.radialField n) (fun _ => d.angular) |
| 447 | (d.axialField s n) (a.frequency n) (a.phase n) (a.amplitude n) x i) := by |
| 448 | have hh := (h.viscousRemainder_mem i).band_smul (band_epsilon s) |
| 449 | have he : (α - 1 / 2 - 3 * κ) + 1 = α + 1 / 2 - 3 * κ := by ring |
| 450 | rw [he] at hh |
| 451 | simpa only [Complex.real_smul] using hh |
| 452 | |
| 453 | /-- Every concrete term of (31), including the two frame corrections, has |
| 454 | the claimed all-jet weighted bound. -/ |
| 455 | theorem remainder_components (h : InputBounds s P α κ d a) (i : Fin 3) : |
| 456 | WaveClass s P (α + 1 / 2 - 3 * κ) (fun n x => a.remainder s d n x i) := by |
| 457 | have hh := class_sub |
| 458 | ((((h.slowTransport_mem i).add (h.phaseDefect_mem i)).add |
| 459 | (h.baseDerivativeRemainder_mem i)).add (h.pressureGradient_mem i)) (h.viscousPart_mem i) |
| 460 | simpa only [WaveCoefficients.remainder, WaveCoefficients.defect, LinearWaveResidual.remainder] using hh |
| 461 | |
| 462 | theorem remainder_class (h : InputBounds s P α κ d a) : |
| 463 | WaveClass s P (α + 1 / 2 - 3 * κ) (a.remainder s d) := |
| 464 | component_classes h.remainder_components |
| 465 | |
| 466 | theorem normal_norm_sq (h : InputBounds s P α κ d a) : |
| 467 | UnweightedClass s 0 (fun n x => ‖a.normal s d n x‖ ^ 2) := by |
| 468 | have hsq (i : Fin 3) : UnweightedClass s 0 (fun n x => (a.normal s d n x i) ^ 2) := by |
| 469 | simpa only [zero_add, pow_two] using unweighted_mul (h.normal i) (h.normal i) |
| 470 | apply class_congr (((hsq 0).add (hsq 1)).add (hsq 2)) |
| 471 | intro n x _ |
| 472 | exact (PhaseCalculus.vec3_norm_sq (a.normal s d n x)).symm |
| 473 | |
| 474 | theorem shear_mem (h : InputBounds s P α κ d a) {β : ℝ} {f : ℕ → D → ComplexVector} |
| 475 | (hf : ∀ i, WaveClass s P β (fun n x => f n x i)) (i : Fin 3) : |
| 476 | WaveClass s P β (fun n x => |
| 477 | LinearWaveResidual.shear (a.radius n) (a.frequencyBase n) (a.axialBase n) |
| 478 | (d.radialField n) (f n) x i) := by |
| 479 | have hFr := d.Dr_base_mem h.frequency_base h.frequency_base_aux |
| 480 | have hGr := d.Dr_base_mem h.axial_base h.axial_base_aux |
| 481 | have htheta : UnweightedClass s 0 (fun n x => |
| 482 | 2 * a.frequencyBase n x + a.radius n x * d.Dr a.frequencyBase n x) := by |
| 483 | have hprod : UnweightedClass s 0 (fun n x => a.radius n x * d.Dr a.frequencyBase n x) := by |
| 484 | simpa only [zero_add] using unweighted_mul h.radius hFr |
| 485 | exact (constant_real_mul h.frequency_base 2).add hprod |
| 486 | fin_cases i |
| 487 | · simpa [LinearWaveResidual.shear, mul_assoc] using |
| 488 | constant_complex_mul (real_mul_complex h.frequency_base (hf 1)) (-2) |
| 489 | · have h := real_mul_complex htheta (hf 0) |
| 490 | simp only [LinearWaveResidual.shear, |
| 491 | GraphDirections.Dr, Complex.ofReal_add, Complex.ofReal_mul, Complex.ofReal_ofNat, zero_add] at h ⊢ |
| 492 | exact h |
| 493 | · simpa [LinearWaveResidual.shear, GraphDirections.Dr] using real_mul_complex hGr (hf 0) |
| 494 | |
| 495 | /-- The velocity principal operator has no negative epsilon exponent: |
| 496 | the fast derivative is stripped and `epsilon * frequency²` has order zero. -/ |
| 497 | theorem principalVelocity_components (h : InputBounds s P α κ d a) {β : ℝ} |
| 498 | {f : ℕ → D → ComplexVector} (hf : ∀ i, WaveClass s P β (fun n x => f n x i)) (i : Fin 3) : |
| 499 | WaveClass s P β (fun n x => a.principalVelocity s d f n x i) := by |
| 500 | have hfast := d.Dfast_mem (hf i) h.fast_scale |
| 501 | have hK := h.shear_mem hf i |
| 502 | have hn : WaveClass s P β (fun n x => (‖a.normal s d n x‖ ^ 2 : ℝ) • f n x i) := by |
| 503 | simpa only [zero_add] using unweighted_smul h.normal_norm_sq (hf i) |
| 504 | have hd := ((hn.band_smul h.frequency_scale).band_smul h.frequency_scale).band_smul (band_epsilon s) |
| 505 | have he : ((β + -(1 / 2 : ℝ)) + -(1 / 2 : ℝ)) + 1 = β := by ring |
| 506 | rw [he] at hd |
| 507 | have hds : WaveClass s P β (fun n x => |
| 508 | Complex.ofReal (s.epsilon n * (a.frequency n) ^ 2 * ‖a.normal s d n x‖ ^ 2) * f n x i) := by |
| 509 | simpa only [smul_smul, Complex.real_smul, Complex.ofReal_mul, pow_two, mul_assoc] using hd |
| 510 | simpa only [WaveCoefficients.principalVelocity, LinearWaveResidual.principal, |
| 511 | GraphDirections.Dfast, WaveCoefficients.normal, mul_zero, add_zero] using (hfast.add hK).add hds |
| 512 | |
| 513 | theorem principalVelocity_class (h : InputBounds s P α κ d a) {β : ℝ} |
| 514 | {f : ℕ → D → ComplexVector} (hf : ∀ i, WaveClass s P β (fun n x => f n x i)) : |
| 515 | WaveClass s P β (a.principalVelocity s d f) := |
| 516 | component_classes (h.principalVelocity_components hf) |
| 517 | |
| 518 | /-- A curl coefficient remainder retains its gain under the principal operator. -/ |
| 519 | theorem curl_principal_gain (h : InputBounds s P α κ d a) |
| 520 | {f : ℕ → D → ComplexVector} |
| 521 | (hf : ∀ i, WaveClass s P (α + 1 / 2 - κ) (fun n x => f n x i)) : |
| 522 | WaveClass s P (α + 1 / 2 - 3 * κ) (a.principalVelocity s d f) := |
| 523 | (h.principalVelocity_class hf).mono_exponent (by linarith [h.loss_nonneg]) |
| 524 | |
| 525 | /-- Adding the actual curl coefficient difference preserves the input wave class. -/ |
| 526 | theorem add_curl_amplitude (h : InputBounds s P α κ d a) (hκ : κ ≤ 1 / 2) |
| 527 | {f : ℕ → D → ComplexVector} |
| 528 | (hf : ∀ i, WaveClass s P (α + 1 / 2 - κ) (fun n x => f n x i)) : |
| 529 | InputBounds s P α κ d (a.addAmplitude f) := by |
| 530 | exact { h with amplitude := fun i => |
| 531 | (h.amplitude i).add ((hf i).mono_exponent (by linarith)) } |
| 532 | |
| 533 | theorem with_cutoff (h : InputBounds s P α κ d a) {ψ : ℕ → D → ℝ} |
| 534 | (hψ : UnweightedClass s 0 ψ) : InputBounds s P α κ d (a.withCutoff ψ) := by |
| 535 | refine { h with amplitude := ?_, pressure := ?_ } |
| 536 | · intro i |
| 537 | simpa only [WaveCoefficients.withCutoff, Pi.smul_apply, zero_add] using |
| 538 | unweighted_smul hψ (h.amplitude i) |
| 539 | · simpa only [WaveCoefficients.withCutoff, zero_add] using real_mul_complex hψ h.pressure |
| 540 | |
| 541 | theorem goodCoefficient_class (h : InputBounds s P α κ d a) (hκ : κ ≤ 1 / 2) |
| 542 | {ψ : ℕ → D → ℝ} (hψ : UnweightedClass s 0 ψ) {f : ℕ → D → ComplexVector} |
| 543 | (hf : ∀ i, WaveClass s P (α + 1 / 2 - κ) (fun n x => f n x i)) : |
| 544 | WaveClass s P (α + 1 / 2 - 3 * κ) (a.goodCoefficient s d ψ f) := by |
| 545 | exact (h.curl_principal_gain hf).add (((h.with_cutoff hψ).add_curl_amplitude hκ hf).remainder_class) |
| 546 | |
| 547 | /-- The preceding principal estimate now uses the constructed curl error, |
| 548 | whose class follows from primitive normal and amplitude jets. -/ |
| 549 | theorem curlCorrection_class (h : InputBounds s P α κ d a) {R : D → ℝ} |
| 550 | (hR : a.radius = fun _ => R) |
| 551 | (hN : PhaseJetBounds.PolynomialJets (CurlClassBounds.phaseDomain s) (a.normal s d)) |
| 552 | {b M : ℝ} (hb : 0 < b) |
| 553 | (hlower : ∀ n x, x ∈ s.domain → b ≤ ‖a.normal s d n x‖) |
| 554 | (hupper : ∀ n x, x ∈ s.domain → ‖a.normal s d n x‖ ≤ M) |
| 555 | (hK : BandBound s (1 / 2) (fun n => 1 / a.frequency n)) : |
| 556 | WaveClass s P (α + 1 / 2 - κ) (a.curlCorrection s d) := by |
| 557 | have hN' : PhaseJetBounds.PolynomialJets (CurlClassBounds.phaseDomain s) |
| 558 | (fun n => phaseNormal R (d.radialField n) (fun _ => d.angular) |
| 559 | (d.axialField s n) (a.phase n)) := by |
| 560 | unfold WaveCoefficients.normal at hN |
| 561 | simpa only [hR] using hN |
| 562 | have hr := CurlClassBounds.graphVector_class h.radial_profile h.radial_scale |
| 563 | h.loss_nonneg d.radial d.auxiliary |
| 564 | have hz := CurlClassBounds.axialVector_class s d.axial |
| 565 | have hRi : UnweightedClass s 0 (fun _ x => (R x)⁻¹) := by |
| 566 | simpa only [hR] using h.inverse_radius |
| 567 | have hlo : ∀ n x, x ∈ s.domain → b ≤ |
| 568 | ‖phaseNormal R (d.radialField n) (fun _ => d.angular) (d.axialField s n) (a.phase n) x‖ := by |
| 569 | simpa only [WaveCoefficients.normal, hR] using hlower |
| 570 | have hhi : ∀ n x, x ∈ s.domain → |
| 571 | ‖phaseNormal R (d.radialField n) (fun _ => d.angular) (d.axialField s n) (a.phase n) x‖ ≤ M := by |
| 572 | simpa only [WaveCoefficients.normal, hR] using hupper |
| 573 | have hc := CurlClassBounds.curlRemainder_waveClass hN' (component_classes h.amplitude) |
| 574 | hb hlo hhi h.loss_nonneg hr (unweighted_const s d.angular) hz hRi hK |
| 575 | unfold WaveCoefficients.curlCorrection |
| 576 | simpa only [hR, GraphDirections.radialField, GraphDirections.axialField] using hc |
| 577 | |
| 578 | theorem constructed_goodCoefficient_class (h : InputBounds s P α κ d a) (hκ : κ ≤ 1 / 2) |
| 579 | {ψ : ℕ → D → ℝ} (hψ : UnweightedClass s 0 ψ) {R : D → ℝ} |
| 580 | (hR : a.radius = fun _ => R) |
| 581 | (hN : PhaseJetBounds.PolynomialJets (CurlClassBounds.phaseDomain s) (a.normal s d)) |
| 582 | {b M : ℝ} (hb : 0 < b) |
| 583 | (hlower : ∀ n x, x ∈ s.domain → b ≤ ‖a.normal s d n x‖) |
| 584 | (hupper : ∀ n x, x ∈ s.domain → ‖a.normal s d n x‖ ≤ M) |
| 585 | (hK : BandBound s (1 / 2) (fun n => 1 / a.frequency n)) : |
| 586 | WaveClass s P (α + 1 / 2 - 3 * κ) |
| 587 | (a.goodCoefficient s d ψ ((a.withCutoff ψ).curlCorrection s d)) := by |
| 588 | have hc := (h.with_cutoff hψ).curlCorrection_class hR hN hb hlower hupper hK |
| 589 | exact h.goodCoefficient_class hκ hψ (fun i => CurlClassBounds.class_component hc i) |
| 590 | |
| 591 | /-- Exact additivity in the supplied coefficient, while retaining the same |
| 592 | projected pressure. It does not replace a curl coefficient by a tangent one. -/ |
| 593 | theorem principal_add_curl (h : InputBounds s P α κ d a) {β : ℝ} |
| 594 | {f : ℕ → D → ComplexVector} (hf : ∀ i, WaveClass s P β (fun n x => f n x i)) |
| 595 | (n : ℕ) {x : D} (hx : x ∈ s.domain) : |
| 596 | (a.addAmplitude f).principal s d n x = |
| 597 | a.principal s d n x + a.principalVelocity s d f n x := by |
| 598 | have haD i := (((h.amplitude i).smooth n).contDiffAt (s.isOpen_domain.mem_nhds hx)).differentiableAt (by simp) |
| 599 | have hfD i := (((hf i).smooth n).contDiffAt (s.isOpen_domain.mem_nhds hx)).differentiableAt (by simp) |
| 600 | ext i |
| 601 | change LinearWaveResidual.principal _ _ _ _ _ _ _ _ _ _ (fun y => a.amplitude n y + f n y) _ x i = _ |
| 602 | unfold LinearWaveResidual.principal |
| 603 | rw [show along (d.fastField n) (fun y => (a.amplitude n y + f n y) i) x = |
| 604 | along (d.fastField n) (fun y => a.amplitude n y i) x + |
| 605 | along (d.fastField n) (fun y => f n y i) x from along_add _ (haD i) (hfD i)] |
| 606 | fin_cases i <;> |
| 607 | simp [WaveCoefficients.principal, WaveCoefficients.principalVelocity, LinearWaveResidual.principal, |
| 608 | WaveCoefficients.addAmplitude, LinearWaveResidual.shear, Pi.add_apply] <;> ring |
| 609 | |
| 610 | /-- After the actual principal equation is solved for the tangent coefficient, |
| 611 | the corrected coefficient's remaining source has the claimed class. -/ |
| 612 | theorem corrected_good_coefficient (h : InputBounds s P α κ d a) (hκ : κ ≤ 1 / 2) |
| 613 | {f source : ℕ → D → ComplexVector} |
| 614 | (hf : ∀ i, WaveClass s P (α + 1 / 2 - κ) (fun n x => f n x i)) |
| 615 | (hsolve : ∀ n x, x ∈ s.domain → a.principal s d n x = -source n x) : |
| 616 | WaveClass s P (α + 1 / 2 - 3 * κ) (fun n x => |
| 617 | (a.addAmplitude f).principal s d n x + (a.addAmplitude f).remainder s d n x + source n x) := by |
| 618 | have hrem := (h.add_curl_amplitude hκ hf).remainder_class |
| 619 | have hp := h.curl_principal_gain hf |
| 620 | apply class_congr (hp.add hrem) |
| 621 | intro n x hx |
| 622 | dsimp only |
| 623 | rw [h.principal_add_curl hf n hx, hsolve n x hx] |
| 624 | abel |
| 625 | |
| 626 | end InputBounds |
| 627 | |
| 628 | /-- These hypotheses are the actual local geometric and angular conditions |
| 629 | needed to apply the exact differential identity. -/ |
| 630 | structure ExactConditions (s : StripData D) (d : GraphDirections D) (a : WaveCoefficients D) : Prop where |
| 631 | phase_smooth : ∀ n, ContDiffOn ℝ ∞ (a.phase n) s.domain |
| 632 | radius_nonzero : ∀ n x, x ∈ s.domain → a.radius n x ≠ 0 |
| 633 | radial_radius : ∀ n x, x ∈ s.domain → along (d.radialField n) (a.radius n) x = 1 |
| 634 | base_angular : ∀ n x, x ∈ s.domain → ∀ i, |
| 635 | along (fun _ => d.angular) (fun y => |
| 636 | LinearWaveResidual.base (a.radius n) (a.radialBase n) (a.frequencyBase n) (a.axialBase n) y i) x = 0 |
| 637 | amplitude_angular : ∀ n i, EqOn |
| 638 | (along (fun _ => d.angular) (fun y => a.amplitude n y i)) (fun _ => 0) s.domain |
| 639 | phase_angular : ∀ n, ∃ p : ℝ, EqOn (along (fun _ => d.angular) (a.phase n)) (fun _ => p) s.domain |
| 640 | pressure_angular : ∀ n x, x ∈ s.domain → along (fun _ => d.angular) (a.pressure n) x = 0 |
| 641 | |
| 642 | theorem harmonicResidual_eq {s : StripData D} {P : ℕ → D → ℝ} {α κ : ℝ} |
| 643 | {d : GraphDirections D} {a : WaveCoefficients D} |
| 644 | (h : InputBounds s P α κ d a) (hg : ExactConditions s d a) (n : ℕ) {x : D} |
| 645 | (hx : x ∈ s.domain) : |
| 646 | a.harmonicResidual s d n x = fun i => |
| 647 | (a.principal s d n x i + a.remainder s d n x i) * carrier (a.frequency n) (a.phase n) x := by |
| 648 | obtain ⟨pθ, hpθ⟩ := hg.phase_angular n |
| 649 | have hr : ContDiffOn ℝ ∞ (d.radialField n) s.domain := |
| 650 | contDiffOn_const.add (((h.radial_profile.smooth n).smul contDiffOn_const).const_smul (d.radialScale n)) |
| 651 | exact LinearWaveResidual.linearResidual_mode_split (s.epsilon n) (a.frequency n) |
| 652 | (a.radius n) (a.radialBase n) (a.frequencyBase n) (a.axialBase n) |
| 653 | (d.fastField n) (fun _ => d.slow) s.isOpen_domain hr contDiffOn_const contDiffOn_const |
| 654 | (hg.phase_smooth n) (fun i => (h.amplitude i).smooth n) |
| 655 | (((h.radius.smooth n).contDiffAt (s.isOpen_domain.mem_nhds hx)).differentiableAt (by simp)) |
| 656 | (((h.b_unweighted.smooth n).contDiffAt (s.isOpen_domain.mem_nhds hx)).differentiableAt (by simp)) |
| 657 | (((h.frequency_base.smooth n).contDiffAt (s.isOpen_domain.mem_nhds hx)).differentiableAt (by simp)) |
| 658 | (((h.axial_base.smooth n).contDiffAt (s.isOpen_domain.mem_nhds hx)).differentiableAt (by simp)) |
| 659 | (hg.radius_nonzero n x hx) (hg.radial_radius n x hx) (hg.base_angular n x hx) |
| 660 | (hg.amplitude_angular n) hpθ |
| 661 | (((h.pressure.smooth n).contDiffAt (s.isOpen_domain.mem_nhds hx)).differentiableAt (by simp)) |
| 662 | (hg.pressure_angular n x hx) hx |
| 663 | |
| 664 | /-- The correction used in the estimates is realized by an actual curl. -/ |
| 665 | theorem curlPotential_realizes {s : StripData D} {P : ℕ → D → ℝ} {α κ : ℝ} |
| 666 | {d : GraphDirections D} {a : WaveCoefficients D} |
| 667 | (h : InputBounds s P α κ d a) (n : ℕ) |
| 668 | (G : CurlClassBounds.CylindricalGeometry s.domain (a.radius n) (d.radialField n) |
| 669 | (fun _ => d.angular) (d.axialField s n)) |
| 670 | (hK : a.frequency n ≠ 0) (hΦ : ContDiffOn ℝ ∞ (a.phase n) s.domain) |
| 671 | (hn : ∀ x ∈ s.domain, a.normal s d n x ≠ 0) |
| 672 | (ht : ∀ x ∈ s.domain, normalDot (a.normal s d n x) (a.amplitude n x) = 0) |
| 673 | {x : D} (hx : x ∈ s.domain) : |
| 674 | CurlClassBounds.cylindricalCurl (a.radius n) (d.radialField n) (fun _ => d.angular) |
| 675 | (d.axialField s n) (a.curlPotential s d n) x = |
| 676 | vectorMode (a.frequency n) (a.phase n) |
| 677 | ((a.addAmplitude (a.curlCorrection s d)).amplitude n) x := by |
| 678 | exact CurlClassBounds.cylindricalCurl_vectorPotential G hK hΦ |
| 679 | ((component_classes h.amplitude).smooth n) hn ht hx |
| 680 | |
| 681 | theorem curlCorrection_divergence {s : StripData D} {P : ℕ → D → ℝ} {α κ : ℝ} |
| 682 | {d : GraphDirections D} {a : WaveCoefficients D} |
| 683 | (h : InputBounds s P α κ d a) (n : ℕ) |
| 684 | (G : CurlClassBounds.CylindricalGeometry s.domain (a.radius n) (d.radialField n) |
| 685 | (fun _ => d.angular) (d.axialField s n)) |
| 686 | (hK : a.frequency n ≠ 0) (hΦ : ContDiffOn ℝ ∞ (a.phase n) s.domain) |
| 687 | (hn : ∀ x ∈ s.domain, a.normal s d n x ≠ 0) |
| 688 | (ht : ∀ x ∈ s.domain, normalDot (a.normal s d n x) (a.amplitude n x) = 0) |
| 689 | {x : D} (hx : x ∈ s.domain) : |
| 690 | cylindricalDivergence (a.radius n) (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 691 | (vectorMode (a.frequency n) (a.phase n) |
| 692 | ((a.addAmplitude (a.curlCorrection s d)).amplitude n)) x = 0 := by |
| 693 | exact CurlClassBounds.realizedCoefficient_divergence G hK hΦ |
| 694 | ((component_classes h.amplitude).smooth n) hn ht hx |
| 695 | |
| 696 | theorem cutoff_tangent {s : StripData D} {d : GraphDirections D} {a : WaveCoefficients D} |
| 697 | (ψ : ℕ → D → ℝ) (n : ℕ) |
| 698 | (ht : ∀ x ∈ s.domain, normalDot (a.normal s d n x) (a.amplitude n x) = 0) : |
| 699 | ∀ x ∈ s.domain, normalDot ((a.withCutoff ψ).normal s d n x) |
| 700 | ((a.withCutoff ψ).amplitude n x) = 0 := by |
| 701 | intro x hx |
| 702 | change normalDot (a.normal s d n x) (ψ n x • a.amplitude n x) = 0 |
| 703 | calc |
| 704 | _ = (ψ n x : ℂ) * normalDot (a.normal s d n x) (a.amplitude n x) := by |
| 705 | simp only [normalDot, Pi.smul_apply, Complex.real_smul] |
| 706 | ring |
| 707 | _ = 0 := by rw [ht x hx, mul_zero] |
| 708 | |
| 709 | /-- Under the nondegeneracy and tangency hypotheses, the actual cutoff |
| 710 | potential realizes the same corrected velocity whose residual is estimated. -/ |
| 711 | theorem corrected_realizes_curl {s : StripData D} {P : ℕ → D → ℝ} {α κ : ℝ} |
| 712 | {d : GraphDirections D} {a : WaveCoefficients D} |
| 713 | (h : InputBounds s P α κ d a) {ψ : ℕ → D → ℝ} (hψ : UnweightedClass s 0 ψ) (n : ℕ) |
| 714 | (G : CurlClassBounds.CylindricalGeometry s.domain (a.radius n) (d.radialField n) |
| 715 | (fun _ => d.angular) (d.axialField s n)) |
| 716 | (hK : a.frequency n ≠ 0) (hΦ : ContDiffOn ℝ ∞ (a.phase n) s.domain) |
| 717 | (hn : ∀ x ∈ s.domain, a.normal s d n x ≠ 0) |
| 718 | (ht : ∀ x ∈ s.domain, normalDot (a.normal s d n x) (a.amplitude n x) = 0) |
| 719 | {x : D} (hx : x ∈ s.domain) : |
| 720 | CurlClassBounds.cylindricalCurl (a.radius n) (d.radialField n) (fun _ => d.angular) |
| 721 | (d.axialField s n) ((a.withCutoff ψ).curlPotential s d n) x = |
| 722 | vectorMode (a.frequency n) (a.phase n) ((a.corrected s d ψ).amplitude n) x := |
| 723 | curlPotential_realizes (h.with_cutoff hψ) n G hK hΦ hn (cutoff_tangent ψ n ht) hx |
| 724 | |
| 725 | theorem corrected_divergence {s : StripData D} {P : ℕ → D → ℝ} {α κ : ℝ} |
| 726 | {d : GraphDirections D} {a : WaveCoefficients D} |
| 727 | (h : InputBounds s P α κ d a) {ψ : ℕ → D → ℝ} (hψ : UnweightedClass s 0 ψ) (n : ℕ) |
| 728 | (G : CurlClassBounds.CylindricalGeometry s.domain (a.radius n) (d.radialField n) |
| 729 | (fun _ => d.angular) (d.axialField s n)) |
| 730 | (hK : a.frequency n ≠ 0) (hΦ : ContDiffOn ℝ ∞ (a.phase n) s.domain) |
| 731 | (hn : ∀ x ∈ s.domain, a.normal s d n x ≠ 0) |
| 732 | (ht : ∀ x ∈ s.domain, normalDot (a.normal s d n x) (a.amplitude n x) = 0) |
| 733 | {x : D} (hx : x ∈ s.domain) : |
| 734 | cylindricalDivergence (a.radius n) (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 735 | (vectorMode (a.frequency n) (a.phase n) ((a.corrected s d ψ).amplitude n)) x = 0 := |
| 736 | curlCorrection_divergence (h.with_cutoff hψ) n G hK hΦ hn (cutoff_tangent ψ n ht) hx |
| 737 | |
| 738 | /-- The two excluded slot terms remain explicit fields. Their Gaussian |
| 739 | flatness is a separate analytic theorem, never an instruction to set them to zero. -/ |
| 740 | noncomputable def excludedSlotError (d : GraphDirections D) (ψ : ℕ → D → ℝ) |
| 741 | (a source : ℕ → D → ComplexVector) : ℕ → D → ComplexVector := fun n x => |
| 742 | d.Dfast ψ n x • a n x + (1 - ψ n x) • source n x |
| 743 | |
| 744 | theorem principal_cutoff {s : StripData D} {P : ℕ → D → ℝ} {α κ : ℝ} |
| 745 | {d : GraphDirections D} {a : WaveCoefficients D} (h : InputBounds s P α κ d a) |
| 746 | (ψ : ℕ → D → ℝ) (source : ℕ → D → ComplexVector) (n : ℕ) {x : D} |
| 747 | (hx : x ∈ s.domain) (hψ : DifferentiableAt ℝ (ψ n) x) : |
| 748 | (a.withCutoff ψ).principal s d n x + source n x = |
| 749 | ψ n x • (a.principal s d n x + source n x) + excludedSlotError d ψ a.amplitude source n x := by |
| 750 | have haD i := (((h.amplitude i).smooth n).contDiffAt (s.isOpen_domain.mem_nhds hx)).differentiableAt (by simp) |
| 751 | have hψC : DifferentiableAt ℝ (fun y => (ψ n y : ℂ)) x := |
| 752 | (Complex.ofRealCLM.hasFDerivAt.comp x hψ.hasFDerivAt).differentiableAt |
| 753 | have hD (i : Fin 3) : |
| 754 | along (d.fastField n) (fun y => (a.withCutoff ψ).amplitude n y i) x = |
| 755 | Complex.ofReal (d.Dfast ψ n x) * a.amplitude n x i + |
| 756 | (ψ n x : ℂ) * along (d.fastField n) (fun y => a.amplitude n y i) x := by |
| 757 | change along (d.fastField n) (fun y => (ψ n y : ℂ) * a.amplitude n y i) x = _ |
| 758 | rw [along_mul _ hψC (haD i), along_ofReal _ hψ] |
| 759 | rfl |
| 760 | ext i |
| 761 | simp only [WaveCoefficients.principal, LinearWaveResidual.principal, Pi.add_apply] |
| 762 | rw [hD i] |
| 763 | fin_cases i <;> |
| 764 | simp [WaveCoefficients.withCutoff, LinearWaveResidual.principal, |
| 765 | LinearWaveResidual.shear, excludedSlotError, |
| 766 | Pi.add_apply, Pi.smul_apply, Complex.real_smul, Complex.ofReal_sub] <;> ring |
| 767 | |
| 768 | theorem principal_cutoff_of_solve {s : StripData D} {P : ℕ → D → ℝ} {α κ : ℝ} |
| 769 | {d : GraphDirections D} {a : WaveCoefficients D} (h : InputBounds s P α κ d a) |
| 770 | (ψ : ℕ → D → ℝ) (source : ℕ → D → ComplexVector) (n : ℕ) {x : D} |
| 771 | (hx : x ∈ s.domain) (hψ : DifferentiableAt ℝ (ψ n) x) |
| 772 | (hsolve : a.principal s d n x = -source n x) : |
| 773 | (a.withCutoff ψ).principal s d n x + source n x = excludedSlotError d ψ a.amplitude source n x := by |
| 774 | rw [principal_cutoff h ψ source n hx hψ, hsolve] |
| 775 | simp |
| 776 | |
| 777 | /-- The entire stripped source, with both cutoff tails still present as an |
| 778 | explicit additive field. The curl correction is supplied to the actual operator. -/ |
| 779 | theorem corrected_coefficient_eq_good_add_excluded {s : StripData D} |
| 780 | {P : ℕ → D → ℝ} {α κ : ℝ} {d : GraphDirections D} {a : WaveCoefficients D} |
| 781 | (h : InputBounds s P α κ d a) {ψ : ℕ → D → ℝ} (hψ : UnweightedClass s 0 ψ) |
| 782 | {f source : ℕ → D → ComplexVector} {β : ℝ} |
| 783 | (hf : ∀ i, WaveClass s P β (fun n x => f n x i)) (n : ℕ) {x : D} |
| 784 | (hx : x ∈ s.domain) (hsolve : a.principal s d n x = -source n x) : |
| 785 | ((a.withCutoff ψ).addAmplitude f).principal s d n x + |
| 786 | ((a.withCutoff ψ).addAmplitude f).remainder s d n x + source n x = |
| 787 | a.goodCoefficient s d ψ f n x + excludedSlotError d ψ a.amplitude source n x := by |
| 788 | have hp := (h.with_cutoff hψ).principal_add_curl hf n hx |
| 789 | have hc := principal_cutoff_of_solve h ψ source n hx |
| 790 | (((hψ.smooth n).contDiffAt (s.isOpen_domain.mem_nhds hx)).differentiableAt (by simp)) hsolve |
| 791 | have he : (a.withCutoff ψ).principalVelocity s d f n x = a.principalVelocity s d f n x := rfl |
| 792 | rw [hp, he, WaveCoefficients.goodCoefficient, ← hc] |
| 793 | abel |
| 794 | |
| 795 | /-- Actual harmonic linearization, including the source, equals the proved |
| 796 | good coefficient plus the explicitly retained slot error, times the carrier. -/ |
| 797 | theorem harmonicResidual_eq_good_add_excluded {s : StripData D} |
| 798 | {P : ℕ → D → ℝ} {α κ : ℝ} {d : GraphDirections D} {a : WaveCoefficients D} |
| 799 | (h : InputBounds s P α κ d a) (hκ : κ ≤ 1 / 2) |
| 800 | {ψ : ℕ → D → ℝ} (hψ : UnweightedClass s 0 ψ) {f source : ℕ → D → ComplexVector} |
| 801 | (hf : ∀ i, WaveClass s P (α + 1 / 2 - κ) (fun n x => f n x i)) |
| 802 | (hg : ExactConditions s d ((a.withCutoff ψ).addAmplitude f)) |
| 803 | (n : ℕ) {x : D} (hx : x ∈ s.domain) (hsolve : a.principal s d n x = -source n x) : |
| 804 | ((a.withCutoff ψ).addAmplitude f).harmonicResidual s d n x + |
| 805 | (fun i => source n x i * carrier (a.frequency n) (a.phase n) x) = |
| 806 | (fun i => (a.goodCoefficient s d ψ f n x i + |
| 807 | excludedSlotError d ψ a.amplitude source n x i) * carrier (a.frequency n) (a.phase n) x) := by |
| 808 | rw [harmonicResidual_eq (((h.with_cutoff hψ).add_curl_amplitude hκ hf)) hg n hx] |
| 809 | have he := corrected_coefficient_eq_good_add_excluded h hψ hf n hx hsolve |
| 810 | ext i |
| 811 | have hei := congrFun he i |
| 812 | simp only [Pi.add_apply] at hei ⊢ |
| 813 | change (_ + _) * carrier (a.frequency n) (a.phase n) x + |
| 814 | source n x i * carrier (a.frequency n) (a.phase n) x = _ |
| 815 | rw [← add_mul, hei] |
| 816 | |
| 817 | theorem linear_wave_bound_with_excluded_error {s : StripData D} |
| 818 | {P : ℕ → D → ℝ} {α κ : ℝ} {d : GraphDirections D} {a : WaveCoefficients D} |
| 819 | (h : InputBounds s P α κ d a) (hκ : κ ≤ 1 / 2) |
| 820 | {ψ : ℕ → D → ℝ} (hψ : UnweightedClass s 0 ψ) {f source : ℕ → D → ComplexVector} |
| 821 | (hf : ∀ i, WaveClass s P (α + 1 / 2 - κ) (fun n x => f n x i)) |
| 822 | (hsolve : ∀ n x, x ∈ s.domain → a.principal s d n x = -source n x) : |
| 823 | WaveClass s P (α + 1 / 2 - 3 * κ) (a.goodCoefficient s d ψ f) ∧ |
| 824 | ∀ n x, x ∈ s.domain → |
| 825 | ((a.withCutoff ψ).addAmplitude f).principal s d n x + |
| 826 | ((a.withCutoff ψ).addAmplitude f).remainder s d n x + source n x = |
| 827 | a.goodCoefficient s d ψ f n x + excludedSlotError d ψ a.amplitude source n x := |
| 828 | ⟨h.goodCoefficient_class hκ hψ hf, |
| 829 | fun n x hx => corrected_coefficient_eq_good_add_excluded h hψ hf n hx (hsolve n x hx)⟩ |
| 830 | |
| 831 | /-- The complete exact identity and good class for the constructed curl |
| 832 | coefficient. Every estimate on the correction is obtained from primitive jets. -/ |
| 833 | theorem constructed_linear_wave_with_excluded {s : StripData D} |
| 834 | {P : ℕ → D → ℝ} {α κ : ℝ} {d : GraphDirections D} {a : WaveCoefficients D} |
| 835 | (h : InputBounds s P α κ d a) (hκ : κ ≤ 1 / 2) |
| 836 | {ψ : ℕ → D → ℝ} (hψ : UnweightedClass s 0 ψ) {R : D → ℝ} |
| 837 | (hR : a.radius = fun _ => R) |
| 838 | (hN : PhaseJetBounds.PolynomialJets (CurlClassBounds.phaseDomain s) (a.normal s d)) |
| 839 | {b M : ℝ} (hb : 0 < b) |
| 840 | (hlower : ∀ n x, x ∈ s.domain → b ≤ ‖a.normal s d n x‖) |
| 841 | (hupper : ∀ n x, x ∈ s.domain → ‖a.normal s d n x‖ ≤ M) |
| 842 | (hK : BandBound s (1 / 2) (fun n => 1 / a.frequency n)) |
| 843 | {source : ℕ → D → ComplexVector} |
| 844 | (hsolve : ∀ n x, x ∈ s.domain → a.principal s d n x = -source n x) |
| 845 | (hg : ExactConditions s d (a.corrected s d ψ)) : |
| 846 | WaveClass s P (α + 1 / 2 - 3 * κ) (a.constructedGood s d ψ) ∧ |
| 847 | ∀ n x, x ∈ s.domain → |
| 848 | (a.corrected s d ψ).harmonicResidual s d n x + |
| 849 | (fun i => source n x i * carrier (a.frequency n) (a.phase n) x) = |
| 850 | (fun i => (a.constructedGood s d ψ n x i + |
| 851 | excludedSlotError d ψ a.amplitude source n x i) * |
| 852 | carrier (a.frequency n) (a.phase n) x) := by |
| 853 | have hc := (h.with_cutoff hψ).curlCorrection_class hR hN hb hlower hupper hK |
| 854 | have hci i := CurlClassBounds.class_component hc i |
| 855 | exact ⟨h.constructed_goodCoefficient_class hκ hψ hR hN hb hlower hupper hK, |
| 856 | fun n x hx => harmonicResidual_eq_good_add_excluded h hκ hψ hci hg n hx (hsolve n x hx)⟩ |
| 857 | |
| 858 | /-- The cutoff error in the differential identity is precisely the field |
| 859 | whose Gaussian estimates are proved in `GaussianTailFlat`. -/ |
| 860 | theorem excludedSlotError_eq_gaussianError {s : StripData D} |
| 861 | (g : GaussianTailFlat.SlotFamily s) (d : GraphDirections D) |
| 862 | (hfast : ∀ n, g.linear n (d.fastScale n • d.fast) = (g.length n)⁻¹) |
| 863 | (a source : ℕ → D → ComplexVector) : |
| 864 | excludedSlotError d g.cutoff a source = g.error a source := by |
| 865 | funext n x |
| 866 | exact (g.error_eq_directional a source n x (d.fastScale n • d.fast) (hfast n)).symm |
| 867 | |
| 868 | theorem excludedSlotError_all_gains {s : StripData D} |
| 869 | (g : GaussianTailFlat.SlotFamily s) (d : GraphDirections D) |
| 870 | (hfast : ∀ n, g.linear n (d.fastScale n • d.fast) = (g.length n)⁻¹) |
| 871 | (edges : GaussianTailFlat.FlatEdges s) (scales : GaussianTailFlat.BandScaleControl s) |
| 872 | {P : ℕ → D → ℝ} {α c : ℝ} {a source : ℕ → D → ComplexVector} |
| 873 | (ha : WaveClass s P α a) (hf : WaveClass s P α source) (hc : 0 < c) |
| 874 | (hP : ∀ n x, x ∈ s.domain → |
| 875 | P n x ≤ Real.exp (-c * (g.coordinate n x - 1 / 2) ^ 2 * g.length n)) |
| 876 | (N : ℝ) : UnweightedClass s N (excludedSlotError d g.cutoff a source) := by |
| 877 | rw [excludedSlotError_eq_gaussianError g d hfast] |
| 878 | exact g.error_all_gains edges scales ha hf hc hP N |
| 879 | |
| 880 | /-- All actual stripped jets of the retained error decay to arbitrary order, |
| 881 | uniformly including approach to the flat spatial support edges. -/ |
| 882 | theorem excludedSlotError_stripped_bound {s : StripData D} |
| 883 | (g : GaussianTailFlat.SlotFamily s) (d : GraphDirections D) |
| 884 | (hfast : ∀ n, g.linear n (d.fastScale n • d.fast) = (g.length n)⁻¹) |
| 885 | (edges : GaussianTailFlat.FlatEdges s) (scales : GaussianTailFlat.BandScaleControl s) |
| 886 | {P : ℕ → D → ℝ} {α c : ℝ} {a source : ℕ → D → ComplexVector} |
| 887 | (ha : WaveClass s P α a) (hf : WaveClass s P α source) (hc : 0 < c) |
| 888 | (hP : ∀ n x, x ∈ s.domain → |
| 889 | P n x ≤ Real.exp (-c * (g.coordinate n x - 1 / 2) ^ 2 * g.length n)) |
| 890 | (m : ℕ) (N : ℝ) : ∃ C : ℝ, 0 ≤ C ∧ ∀ n x, x ∈ s.domain → ∀ j ≤ m, |
| 891 | ‖iteratedFDeriv ℝ j (excludedSlotError d g.cutoff a source n) x‖ ≤ |
| 892 | C * ChartScales.Q n ^ N := by |
| 893 | rw [excludedSlotError_eq_gaussianError g d hfast] |
| 894 | exact g.error_stripped_bound edges scales ha hf hc hP m N |
| 895 | |
| 896 | /-- Proposition 9.3 at the coefficient level: the actual harmonic residual |
| 897 | has the proved good class plus an explicitly proved all-order flat error. -/ |
| 898 | theorem constructed_linear_wave_with_flat_error {s : StripData D} |
| 899 | {P : ℕ → D → ℝ} {α κ : ℝ} {d : GraphDirections D} {a : WaveCoefficients D} |
| 900 | (h : InputBounds s P α κ d a) (hκ : κ ≤ 1 / 2) |
| 901 | (g : GaussianTailFlat.SlotFamily s) |
| 902 | (hfast : ∀ n, g.linear n (d.fastScale n • d.fast) = (g.length n)⁻¹) |
| 903 | (edges : GaussianTailFlat.FlatEdges s) (scales : GaussianTailFlat.BandScaleControl s) |
| 904 | {source : ℕ → D → ComplexVector} (hsource : WaveClass s P α source) |
| 905 | {c : ℝ} (hc : 0 < c) |
| 906 | (hP : ∀ n x, x ∈ s.domain → |
| 907 | P n x ≤ Real.exp (-c * (g.coordinate n x - 1 / 2) ^ 2 * g.length n)) |
| 908 | {R : D → ℝ} (hR : a.radius = fun _ => R) |
| 909 | (hN : PhaseJetBounds.PolynomialJets (CurlClassBounds.phaseDomain s) (a.normal s d)) |
| 910 | {b M : ℝ} (hb : 0 < b) |
| 911 | (hlower : ∀ n x, x ∈ s.domain → b ≤ ‖a.normal s d n x‖) |
| 912 | (hupper : ∀ n x, x ∈ s.domain → ‖a.normal s d n x‖ ≤ M) |
| 913 | (hK : BandBound s (1 / 2) (fun n => 1 / a.frequency n)) |
| 914 | (hsolve : ∀ n x, x ∈ s.domain → a.principal s d n x = -source n x) |
| 915 | (hg : ExactConditions s d (a.corrected s d g.cutoff)) : |
| 916 | WaveClass s P (α + 1 / 2 - 3 * κ) (a.constructedGood s d g.cutoff) ∧ |
| 917 | (∀ N : ℝ, UnweightedClass s N (excludedSlotError d g.cutoff a.amplitude source)) ∧ |
| 918 | ∀ n x, x ∈ s.domain → |
| 919 | (a.corrected s d g.cutoff).harmonicResidual s d n x + |
| 920 | (fun i => source n x i * carrier (a.frequency n) (a.phase n) x) = |
| 921 | (fun i => (a.constructedGood s d g.cutoff n x i + |
| 922 | excludedSlotError d g.cutoff a.amplitude source n x i) * |
| 923 | carrier (a.frequency n) (a.phase n) x) := by |
| 924 | obtain ⟨hgood, hexact⟩ := constructed_linear_wave_with_excluded h hκ g.cutoff_memClass |
| 925 | hR hN hb hlower hupper hK hsolve hg |
| 926 | exact ⟨hgood, fun N => excludedSlotError_all_gains g d hfast edges scales |
| 927 | (component_classes h.amplitude) hsource hc hP N, hexact⟩ |
| 928 | |
| 929 | open PhysicalGraphBounds in |
| 930 | /-- The retained error remains flat after multiplication by the actual |
| 931 | rounded harmonic carrier and restriction to the physical graph. -/ |
| 932 | theorem excludedSlotError_carrier_physical_bound {s : StripData LiftPoint} |
| 933 | (g : GaussianTailFlat.SlotFamily s) (d : GraphDirections LiftPoint) |
| 934 | (hfast : ∀ n, g.linear n (d.fastScale n • d.fast) = (g.length n)⁻¹) |
| 935 | (edges : GaussianTailFlat.FlatEdges s) (scales : GaussianTailFlat.BandScaleControl s) |
| 936 | {P : ℕ → LiftPoint → ℝ} {α c : ℝ} {a source : ℕ → LiftPoint → ComplexVector} |
| 937 | (ha : WaveClass s P α a) (hf : WaveClass s P α source) (hc : 0 < c) |
| 938 | (hP : ∀ n x, x ∈ s.domain → |
| 939 | P n x ≤ Real.exp (-c * (g.coordinate n x - 1 / 2) ^ 2 * g.length n)) |
| 940 | (ha_smooth : ∀ n, ContDiffOn ℝ ∞ (a n) {x | g.coordinate n x ∈ Ioo 0 1}) |
| 941 | (hf_smooth : ∀ n, ContDiff ℝ ∞ (source n)) |
| 942 | {h rLower rUpper B e H : ℝ} (hh : 0 ≤ h) (hh1 : h ≤ 1 / 2) (hrLower : 0 < rLower) |
| 943 | (hB : 1 ≤ B) (he : 0 ≤ e) (hH : 0 ≤ H) (i : Fin 3) (m : ℕ) (N : ℝ) : |
| 944 | ∃ C : ℝ, 0 ≤ C ∧ ∀ n : ℕ, 4 ≤ n → ∀ p : ProblemStatement.SpaceTime, |
| 945 | scaledRadial n p ∈ annulus rLower rUpper → |p.1| ≤ 1 → physicalLift h n p ∈ s.domain → |
| 946 | ∀ q : ℝ, 0 < q → q / 2 ≤ ChartScales.Q n → ChartScales.Q n ≤ 2 * q → |
| 947 | ∀ (Φ : LiftPoint → ℝ) (j : ℤ), ContDiff ℝ ∞ Φ → |(j : ℝ)| ≤ H → |
| 948 | (∀ k ≤ m, ‖iteratedFDeriv ℝ k Φ (physicalLift h n p)‖ ≤ |
| 949 | B * ChartScales.S n ^ e * ChartScales.Q n ^ (-1 : ℝ)) → |
| 950 | ‖iteratedFDeriv ℝ m |
| 951 | ((fun y => excludedSlotError d g.cutoff a source n y i * |
| 952 | character ((ChartScales.carrier h n : ℝ) * (j : ℝ)) (Φ y)) ∘ |
| 953 | physicalLift h n) p‖ ≤ C * q ^ N := by |
| 954 | have hai (n : ℕ) : ContDiffOn ℝ ∞ (fun x => a n x i) {x | g.coordinate n x ∈ Ioo 0 1} := |
| 955 | (ContinuousLinearMap.proj i : ComplexVector →L[ℝ] ℂ).contDiff.comp_contDiffOn (ha_smooth n) |
| 956 | have hfi (n : ℕ) : ContDiff ℝ ∞ (fun x => source n x i) := |
| 957 | (ContinuousLinearMap.proj i : ComplexVector →L[ℝ] ℂ).contDiff.comp (hf_smooth n) |
| 958 | have herr : (fun n x => excludedSlotError d g.cutoff a source n x i) = |
| 959 | g.error (fun n x => a n x i) (fun n x => source n x i) := by |
| 960 | funext n x |
| 961 | rw [excludedSlotError_eq_gaussianError g d hfast] |
| 962 | rfl |
| 963 | have hb := g.error_carrier_physical_bound edges scales |
| 964 | (CurlClassBounds.class_component ha i) (CurlClassBounds.class_component hf i) hc hP hai hfi |
| 965 | (b := rUpper) hh hh1 hrLower hB he hH m N |
| 966 | simpa only [← herr] using hb |
| 967 | |
| 968 | end NavierStokes.LinearWaveBounds |