| @@ -120,33 +120,6 @@ theorem modeBlock_zero {D : Type} {j : ℤ} (hj : j ≠ 0) |
| 120 | 120 | funext x |
| 121 | 121 | simp only [modeBlock, pair_apply, neg_zero, ite_eq_right (Ne.symm hj), map_zero, add_zero, Pi.zero_apply] |
| 122 | 122 | |
| 123 | | -theorem pair_class {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 124 | | - {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} {a : ℕ → D → ℂ} |
| 125 | | - (ha : MemClass s w α a) (j m : ℤ) : |
| 126 | | - MemClass s w α (fun n x => conjugatePair j (a n) m x) := by |
| 127 | | - have hp := LinearWaveBounds.constant_complex_mul ha (1 / 2) |
| 128 | | - have hn := hp.map (Complex.conjCLE : ℂ →L[ℝ] ℂ) |
| 129 | | - have hz := MemClass.zero (s := s) (α := α) (E := ℂ) ha.weight_nonneg |
| 130 | | - by_cases hm : m = j <;> by_cases hm' : -m = j |
| 131 | | - · have h := hp.add hn |
| 132 | | - simp only [pair_apply, ite_eq_left hm, ite_eq_left hm', div_eq_mul_inv, one_mul, mul_comm] at h ⊢ |
| 133 | | - exact h |
| 134 | | - · simpa only [pair_apply, ite_eq_left hm, ite_eq_right hm', div_eq_mul_inv, one_mul, mul_comm, |
| 135 | | - map_zero, add_zero] using hp |
| 136 | | - · simp only [pair_apply, ite_eq_right hm, ite_eq_left hm', div_eq_mul_inv, one_mul, mul_comm, zero_add] at hn ⊢ |
| 137 | | - exact hn |
| 138 | | - · simpa only [pair_apply, ite_eq_right hm, ite_eq_right hm', map_zero, add_zero] using hz |
| 139 | | - |
| 140 | | -theorem modeBlock_classes {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 141 | | - {s : StripData D} {W : ℕ → D → ℝ} {α γ : ℝ} |
| 142 | | - (j : ℤ) (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) |
| 143 | | - {v : ℕ → D → ComplexVector} {p : ℕ → D → ℂ} |
| 144 | | - (hv : WaveClass s W α v) (hp : WaveClass s W γ p) : |
| 145 | | - (modeBlock j k Φ kp v p).WaveBounds s W α ∧ |
| 146 | | - (modeBlock j k Φ kp v p).PressureBounds s W γ := |
| 147 | | - ⟨fun i m _ => pair_class (CurlClassBounds.class_component hv i) j m, |
| 148 | | - fun m _ => pair_class hp j m⟩ |
| 149 | | - |
| 150 | 123 | noncomputable def assembledBlock {D : Type} (N : ℕ) (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) |
| 151 | 124 | (kp : ℕ → ℤ) (v : ℤ → ℕ → D → ComplexVector) (p : ℤ → ℕ → D → ℂ) : HarmonicBlock D := |
| 152 | 125 | sumBlock (modes N) k Φ kp (fun j => modeBlock j k Φ kp (v j) (p j)) |
| @@ -265,47 +238,6 @@ theorem assembledBlock_zero {D : Type} (N : ℕ) (k : ℕ → ℝ) (Φ : ℕ → |
| 265 | 238 | intro j hj |
| 266 | 239 | exact (modeBlock_zero ((mem_modes N j).mp hj).1 k Φ kp (v j) (p j)).2 n |
| 267 | 240 | |
| 268 | | -theorem assembledBlock_classes {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 269 | | - {s : StripData D} {W : ℕ → D → ℝ} {α γ : ℝ} |
| 270 | | - (N : ℕ) (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) |
| 271 | | - {v : ℤ → ℕ → D → ComplexVector} {p : ℤ → ℕ → D → ℂ} |
| 272 | | - (hW : ∀ n x, x ∈ s.domain → 0 ≤ W n x) |
| 273 | | - (hv : ∀ j ∈ modes N, WaveClass s W α (v j)) |
| 274 | | - (hp : ∀ j ∈ modes N, WaveClass s W γ (p j)) : |
| 275 | | - (assembledBlock N k Φ kp v p).WaveBounds s W α ∧ |
| 276 | | - (assembledBlock N k Φ kp v p).PressureBounds s W γ := by |
| 277 | | - have hw : ∀ n x, x ∈ s.domain → 0 ≤ Real.sqrt (s.zeta x) * W n x := |
| 278 | | - fun n x hx => mul_nonneg (Real.sqrt_nonneg _) (hW n x hx) |
| 279 | | - constructor |
| 280 | | - · intro i m hm |
| 281 | | - have hh := MemClass.sum (modes N) |
| 282 | | - (fun j n x => (modeBlock j k Φ kp (v j) (p j)).velocity n i m x) hw |
| 283 | | - (fun j hj => (modeBlock_classes j k Φ kp (hv j hj) (hp j hj)).1 i m hm) |
| 284 | | - have he : (fun (n : ℕ) (x : D) => (assembledBlock N k Φ kp v p).velocity n i m x) = |
| 285 | | - (fun n x => ∑ j ∈ modes N, (modeBlock j k Φ kp (v j) (p j)).velocity n i m x) := by |
| 286 | | - funext n x |
| 287 | | - change (∑ j ∈ modes N, (modeBlock j k Φ kp (v j) (p j)).velocity n i) m x = _ |
| 288 | | - rw [AddMonoidAlgebra.coeff_sum, Finsupp.finsetSum_apply, Finset.sum_apply] |
| 289 | | - change WaveClass s W α (fun n x => (assembledBlock N k Φ kp v p).velocity n i m x) |
| 290 | | - rw [he] |
| 291 | | - exact hh |
| 292 | | - · intro m hm |
| 293 | | - have hh := MemClass.sum (modes N) |
| 294 | | - (fun j n x => (modeBlock j k Φ kp (v j) (p j)).pressure n m x) hw |
| 295 | | - (fun j hj => (modeBlock_classes j k Φ kp (hv j hj) (hp j hj)).2 m hm) |
| 296 | | - have he : (fun (n : ℕ) (x : D) => (assembledBlock N k Φ kp v p).pressure n m x) = |
| 297 | | - (fun n x => ∑ j ∈ modes N, (modeBlock j k Φ kp (v j) (p j)).pressure n m x) := by |
| 298 | | - funext n x |
| 299 | | - change (∑ j ∈ modes N, (modeBlock j k Φ kp (v j) (p j)).pressure n) m x = _ |
| 300 | | - rw [AddMonoidAlgebra.coeff_sum, Finsupp.finsetSum_apply, Finset.sum_apply] |
| 301 | | - change WaveClass s W γ (fun n x => (assembledBlock N k Φ kp v p).pressure n m x) |
| 302 | | - rw [he] |
| 303 | | - exact hh |
| 304 | | - |
| 305 | | -noncomputable def fullModeBlock {D : Type} (j : ℤ) (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) |
| 306 | | - (kp : ℕ → ℤ) (a : LinearWaveBounds.WaveCoefficients (D × ℝ)) : HarmonicBlock D := |
| 307 | | - modeBlock j k Φ kp (fun n x => a.amplitude n (x,0)) (fun n x => a.pressure n (x,0)) |
| 308 | | - |
| 309 | 241 | /-! ## Complex reference transport, including pressure -/ |
| 310 | 242 | |
| 311 | 243 | section ComplexTransport |
| @@ -375,35 +307,6 @@ theorem complexCopyPressure_transport (t : TangentData P ProblemStatement.Space) |
| 375 | 307 | copyPressure_transport _ _ _ _ _ _ _ _ hreference hfrequency, smul_add, Complex.real_smul] |
| 376 | 308 | ring |
| 377 | 309 | |
| 378 | | -omit [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedAddCommGroup Q] [NormedSpace ℝ Q] in |
| 379 | | -theorem commonVelocity_transport (t : TangentData P ProblemStatement.Space) |
| 380 | | - (f : P × Plane → ComplexVector) (φ : Q → P) |
| 381 | | - (g : Geometry) {a b : ℝ} (hab : a ≤ b) (gap : ℕ) (amplitude : ℝ) |
| 382 | | - (κ : Plane → ℝ) (q : Q) (Y : Plane) : |
| 383 | | - commonVelocity (transportTangent t φ gap amplitude) (transportSource f φ gap amplitude) |
| 384 | | - (CopySolveCompatibility.refineGeometry g gap) hab κ (q,Y) = |
| 385 | | - amplitude • commonVelocity t f g hab κ (φ q, coverPower gap Y) := by |
| 386 | | - unfold commonVelocity periodizedCopies |
| 387 | | - simp only [complexCopyVelocity_transport, CopySolveCompatibility.coordinates_refine, |
| 388 | | - smul_comm _ amplitude] |
| 389 | | - exact tsum_const_smul'' amplitude |
| 390 | | - |
| 391 | | -omit [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedAddCommGroup Q] [NormedSpace ℝ Q] in |
| 392 | | -theorem commonPressure_transport (t : TangentData P ProblemStatement.Space) |
| 393 | | - (f : P × Plane → ComplexVector) (φ : Q → P) |
| 394 | | - (g : Geometry) {a b : ℝ} (hab : a ≤ b) (gap : ℕ) |
| 395 | | - (amplitude referenceFrequency frequency : ℝ) |
| 396 | | - (hreference : referenceFrequency ≠ 0) (hfrequency : frequency ≠ 0) |
| 397 | | - (κ : Plane → ℝ) (q : Q) (Y : Plane) : |
| 398 | | - commonPressure (transportTangent t φ gap amplitude) (transportSource f φ gap amplitude) |
| 399 | | - (CopySolveCompatibility.refineGeometry g gap) hab κ frequency (q,Y) = |
| 400 | | - (amplitude * referenceFrequency / frequency) • |
| 401 | | - commonPressure t f g hab κ referenceFrequency (φ q, coverPower gap Y) := by |
| 402 | | - unfold commonPressure periodizedCopies |
| 403 | | - simp only [complexCopyPressure_transport _ _ _ _ _ _ _ _ _ hreference hfrequency, |
| 404 | | - CopySolveCompatibility.coordinates_refine, smul_comm _ (amplitude * referenceFrequency / frequency)] |
| 405 | | - exact tsum_const_smul'' (amplitude * referenceFrequency / frequency) |
| 406 | | - |
| 407 | 310 | end ComplexTransport |
| 408 | 311 | |
| 409 | 312 | /-! ## One physical reference for every band view -/ |
| @@ -437,12 +340,6 @@ noncomputable def referenceVelocity (r : Reference P) |
| 437 | 340 | commonVelocity (r.tangent j) (residualSource c u b G A j r.band) r.geometry |
| 438 | 341 | r.length_pos.le r.cutoff |
| 439 | 342 | |
| 440 | | -noncomputable def referencePressure (r : Reference P) |
| 441 | | - (c : Context (P × Plane)) (u : State (P × Plane)) (b : HarmonicBlock (P × Plane)) |
| 442 | | - (G A : HarmonicResidual.BlockCoefficients (P × Plane)) (j : ℤ) : P × Plane → ℂ := |
| 443 | | - commonPressure (r.tangent j) (residualSource c u b G A j r.band) r.geometry |
| 444 | | - r.length_pos.le r.cutoff ((j : ℝ) * b.frequency r.band) |
| 445 | | - |
| 446 | 343 | noncomputable def bandTangent (r : Reference P) (charts : BandCharts P) (j : ℤ) (n : ℕ) : |
| 447 | 344 | TangentData P ProblemStatement.Space := |
| 448 | 345 | transportTangent (r.tangent j) (charts.parameter n) (charts.gap n) (charts.amplitude n) |
| @@ -463,40 +360,6 @@ noncomputable def actualBandPressure (r : Reference P) (charts : BandCharts P) |
| 463 | 360 | commonPressure (bandTangent r charts j n) (residualSource c u b G A j n) |
| 464 | 361 | (bandGeometry r charts n) r.length_pos.le r.cutoff ((j : ℝ) * b.frequency n) |
| 465 | 362 | |
| 466 | | -/-- Compatibility is required only of the actual residual source inputs. |
| 467 | | -Uniqueness of the fixed-reference Volterra construction then gives the |
| 468 | | -physical output identity. -/ |
| 469 | | -theorem actualBandVelocity_eq_reference (r : Reference P) (charts : BandCharts P) |
| 470 | | - (c : Context (P × Plane)) (u : State (P × Plane)) (b : HarmonicBlock (P × Plane)) |
| 471 | | - (G A : HarmonicResidual.BlockCoefficients (P × Plane)) (j : ℤ) (n : ℕ) |
| 472 | | - (hsource : residualSource c u b G A j n = transportSource |
| 473 | | - (residualSource c u b G A j r.band) (charts.parameter n) (charts.gap n) (charts.amplitude n)) |
| 474 | | - (p : P) (Y : Plane) : |
| 475 | | - actualBandVelocity r charts c u b G A j n (p,Y) = |
| 476 | | - charts.amplitude n • referenceVelocity r c u b G A j |
| 477 | | - (charts.parameter n p, coverPower (charts.gap n) Y) := by |
| 478 | | - unfold actualBandVelocity bandTangent bandGeometry referenceVelocity |
| 479 | | - rw [hsource, commonVelocity_transport] |
| 480 | | - |
| 481 | | -theorem actualBandPressure_eq_reference (r : Reference P) (charts : BandCharts P) |
| 482 | | - (c : Context (P × Plane)) (u : State (P × Plane)) (b : HarmonicBlock (P × Plane)) |
| 483 | | - (G A : HarmonicResidual.BlockCoefficients (P × Plane)) {j : ℤ} (hj : j ≠ 0) (n : ℕ) |
| 484 | | - (hfrequency : ∀ n, b.frequency n ≠ 0) |
| 485 | | - (hsource : residualSource c u b G A j n = transportSource |
| 486 | | - (residualSource c u b G A j r.band) (charts.parameter n) (charts.gap n) (charts.amplitude n)) |
| 487 | | - (p : P) (Y : Plane) : |
| 488 | | - actualBandPressure r charts c u b G A j n (p,Y) = |
| 489 | | - (charts.amplitude n * b.frequency r.band / b.frequency n) • |
| 490 | | - referencePressure r c u b G A j (charts.parameter n p, coverPower (charts.gap n) Y) := by |
| 491 | | - have hjr : (j : ℝ) ≠ 0 := by exact_mod_cast hj |
| 492 | | - unfold actualBandPressure bandTangent bandGeometry referencePressure |
| 493 | | - rw [hsource, commonPressure_transport _ _ _ _ _ _ _ _ _ |
| 494 | | - (mul_ne_zero hjr (hfrequency r.band)) (mul_ne_zero hjr (hfrequency n))] |
| 495 | | - have he : charts.amplitude n * ((j : ℝ) * b.frequency r.band) / |
| 496 | | - ((j : ℝ) * b.frequency n) = charts.amplitude n * b.frequency r.band / b.frequency n := by |
| 497 | | - field_simp [hjr, hfrequency n] |
| 498 | | - rw [he] |
| 499 | | - |
| 500 | 363 | end FixedReference |
| 501 | 364 | |
| 502 | 365 | /-! ## Angular invariance is inherited by the actual complex solve -/ |
| @@ -1030,31 +893,6 @@ theorem actualCommon_corrected_germ (r : Reference P) (charts : BandCharts P) |
| 1030 | 893 | exact realizedCoefficient_germ ha ((j : ℝ) * b.frequency n) (base.radius n) |
| 1031 | 894 | (dirs.radialField n) (fun _ => dirs.angular) (dirs.axialField s n) ((actualCarrier base b j).phase n) |
| 1032 | 895 | |
| 1033 | | -theorem actualCommon_residual_germ (r : Reference P) (charts : BandCharts P) |
| 1034 | | - (c : Context (P × Plane)) (u : State (P × Plane)) (b : HarmonicBlock (P × Plane)) |
| 1035 | | - (G A : HarmonicResidual.BlockCoefficients (P × Plane)) {j : ℤ} (hj : j ≠ 0) |
| 1036 | | - (hfrequency : ∀ n, b.frequency n ≠ 0) |
| 1037 | | - (base : WaveCoefficients ((P × ℝ) × Plane)) (copy : ℕ → Frequency) |
| 1038 | | - (s : StripData ((P × ℝ) × Plane)) (dirs : GraphDirections ((P × ℝ) × Plane)) |
| 1039 | | - (ψ : ℕ → (P × ℝ) × Plane → ℝ) (n : ℕ) (x : (P × ℝ) × Plane) |
| 1040 | | - {Ω : Set Plane} (hΩ : IsOpen Ω) |
| 1041 | | - (hinj : InjOn quotientPoint ((fun z => (bandGeometry r charts n).center + |
| 1042 | | - (bandGeometry r charts n).basis z) '' Ω)) |
| 1043 | | - (hsupp : Function.support r.cutoff ⊆ Ω) |
| 1044 | | - (hx : (bandGeometry r charts n).coordinates (copy n) x.2 ∈ Ω) |
| 1045 | | - (hψ : nativeCutoff r charts copy n =ᶠ[𝓝 x] ψ n) : |
| 1046 | | - (actualCorrectedCommon r charts c u b G A j base s dirs).harmonicResidual s dirs n =ᶠ[𝓝 x] |
| 1047 | | - (((actualCopyCoefficients r charts c u b G A j base copy).corrected s dirs ψ).harmonicResidual s dirs n) := by |
| 1048 | | - obtain ⟨ha,hp⟩ := actualCommon_corrected_germ r charts c u b G A hj hfrequency base copy s dirs ψ n x |
| 1049 | | - hΩ hinj hsupp hx hψ |
| 1050 | | - exact linearResidual_germ |
| 1051 | | - (vectorMode_germ ha ((j : ℝ) * b.frequency n) ((actualCarrier base b j).phase n)) |
| 1052 | | - (mode_germ hp ((j : ℝ) * b.frequency n) ((actualCarrier base b j).phase n)) |
| 1053 | | - (s.epsilon n) (base.radius n) (dirs.radialField n) (fun _ => dirs.angular) (dirs.axialField s n) |
| 1054 | | - (LinearWaveResidual.timeDirection (s.epsilon n) (dirs.fastField n) (fun _ => dirs.slow)) |
| 1055 | | - (LinearWaveResidual.complexBase (base.radius n) (base.radialBase n) |
| 1056 | | - (base.frequencyBase n) (base.axialBase n)) |
| 1057 | | - |
| 1058 | 896 | end CommonLocalCurl |
| 1059 | 897 | |
| 1060 | 898 | /-! ## Finite fields at the original residual carrier -/ |
| @@ -1172,26 +1010,6 @@ variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 1172 | 1010 | noncomputable def sectionStrip (s : StripData ((P × ℝ) × Plane)) : StripData (P × Plane) := |
| 1173 | 1011 | SignedWaveUpdate.sectionStrip (reindexStrip (angleShuffle (P := P)) s) |
| 1174 | 1012 | |
| 1175 | | -noncomputable def nativeModeBlock (j : ℤ) (b : HarmonicBlock (P × Plane)) |
| 1176 | | - (a : WaveCoefficients ((P × ℝ) × Plane)) : HarmonicBlock (P × Plane) := |
| 1177 | | - fullModeBlock j b.frequency b.phase b.angularFrequency (reindexCoefficients angleShuffle a) |
| 1178 | | - |
| 1179 | | -theorem nativeSlice_class {F : Type} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 1180 | | - {s : StripData ((P × ℝ) × Plane)} {w : ℕ → (P × ℝ) × Plane → ℝ} {α : ℝ} |
| 1181 | | - {f : ℕ → (P × ℝ) × Plane → F} (hf : MemClass s w α f) : |
| 1182 | | - MemClass (sectionStrip s) (fun n x => w n (angleShuffle (x,0))) α |
| 1183 | | - (fun n x => f n (angleShuffle (x,0))) := by |
| 1184 | | - have he : MemClass (reindexStrip (angleShuffle (P := P)) s) |
| 1185 | | - (fun n x => w n (angleShuffle x)) α (fun n x => f n (angleShuffle x)) := |
| 1186 | | - memClass_reindex (angleShuffle (P := P)) hf |
| 1187 | | - exact SignedWaveUpdate.class_zeroSection (D := P × Plane) (E := F) he |
| 1188 | | - |
| 1189 | | -theorem nativeSlice_waveClass {F : Type} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 1190 | | - {s : StripData ((P × ℝ) × Plane)} {W : ℕ → (P × ℝ) × Plane → ℝ} {α : ℝ} |
| 1191 | | - {f : ℕ → (P × ℝ) × Plane → F} (hf : WaveClass s W α f) : |
| 1192 | | - WaveClass (sectionStrip s) (fun n x => W n (angleShuffle (x,0))) α |
| 1193 | | - (fun n x => f n (angleShuffle (x,0))) := nativeSlice_class hf |
| 1194 | | - |
| 1195 | 1013 | theorem actualCarrier_character (base : WaveCoefficients ((P × ℝ) × Plane)) |
| 1196 | 1014 | (b : HarmonicBlock (P × Plane)) (j : ℤ) (hfrequency : ∀ n, b.frequency n ≠ 0) |
| 1197 | 1015 | (n : ℕ) (x : (P × Plane) × ℝ) : |
| @@ -1351,14 +1169,6 @@ theorem exact_conditions : ExactConditions s dirs |
| 1351 | 1169 | C.background.radial_invariant C.background.axial_invariant C.affine_phase |
| 1352 | 1170 | C.amplitude_invariant C.pressure_invariant C.slot_invariant |
| 1353 | 1171 | |
| 1354 | | -theorem raw_bounds : InputBounds s C.weight α κ dirs |
| 1355 | | - (actualCopyCoefficients r charts c u b G A j base copy) := |
| 1356 | | - complexCopy_inputBounds_of_modal (actualCarrier base b j) (tangentFamily r charts j) |
| 1357 | | - (sourceFamily c u b G A j) (bandGeometry r charts) copy (fun _ => r.length) |
| 1358 | | - (fun _ => r.length_pos) C.envelope C.frame j C.modal_real C.modal_imag C.base_bounds |
| 1359 | | - C.normal_jets C.normal_derivative C.action_bounds C.source_bounds |
| 1360 | | - C.normal_min_pos C.normal_lower C.normal_upper C.inverse_frequency |
| 1361 | | - |
| 1362 | 1172 | theorem local_result : |
| 1363 | 1173 | let a := actualCopyCoefficients r charts c u b G A j base copy |
| 1364 | 1174 | WaveClass s C.weight α a.amplitude ∧ |
| @@ -1378,26 +1188,6 @@ theorem local_result : |
| 1378 | 1188 | C.normal_lower C.normal_upper C.inverse_frequency C.geometry C.frequency_nonzero |
| 1379 | 1189 | C.loss_le_half C.slot.cutoff C.slot.cutoff_memClass C.radius_eq C.exact_conditions |
| 1380 | 1190 | |
| 1381 | | -theorem raw_tangent : ∀ n x, x ∈ s.domain → |
| 1382 | | - normalDot ((actualCarrier base b j).normal s dirs n x) |
| 1383 | | - ((actualCopyCoefficients r charts c u b G A j base copy).amplitude n x) = 0 := |
| 1384 | | - complexCopyCoefficients_tangent_of_modal (actualCarrier base b j) (tangentFamily r charts j) |
| 1385 | | - (sourceFamily c u b G A j) (bandGeometry r charts) copy (fun _ => r.length) |
| 1386 | | - (fun _ => r.length_pos) C.envelope C.frame j C.modal_real C.modal_imag C.geometry |
| 1387 | | - |
| 1388 | | -theorem normal_nonzero (n : ℕ) (x : (P × ℝ) × Plane) (hx : x ∈ s.domain) : |
| 1389 | | - (actualCarrier base b j).normal s dirs n x ≠ 0 := by |
| 1390 | | - rw [C.geometry.normal n x hx] |
| 1391 | | - exact norm_pos_iff.mp (C.normal_min_pos.trans_le (C.normal_lower n x hx)) |
| 1392 | | - |
| 1393 | | -theorem divergence_zero (n : ℕ) {x : (P × ℝ) × Plane} (hx : x ∈ s.domain) : |
| 1394 | | - let a := actualCopyCoefficients r charts c u b G A j base copy |
| 1395 | | - cylindricalDivergence (base.radius n) (dirs.radialField n) (fun _ => dirs.angular) |
| 1396 | | - (dirs.axialField s n) (vectorMode (a.frequency n) (a.phase n) |
| 1397 | | - ((a.corrected s dirs C.slot.cutoff).amplitude n)) x = 0 := |
| 1398 | | - corrected_divergence C.raw_bounds C.slot.cutoff_memClass n (C.background.cylindrical n) |
| 1399 | | - (C.frequency_nonzero n) (C.background.phase_smooth n) (C.normal_nonzero n) (C.raw_tangent n) hx |
| 1400 | | - |
| 1401 | 1191 | theorem cutoff_germ (n : ℕ) {x : (P × ℝ) × Plane} (hx : x ∈ s.domain) : |
| 1402 | 1192 | nativeCutoff r charts copy n =ᶠ[𝓝 x] C.slot.cutoff n := |
| 1403 | 1193 | Filter.eventually_of_mem (s.isOpen_domain.mem_nhds hx) (C.cutoff_match n) |
| @@ -1410,12 +1200,6 @@ theorem common_germ (n : ℕ) {x : (P × ℝ) × Plane} (hx : x ∈ s.domain) : |
| 1410 | 1200 | actualCommon_corrected_germ r charts c u b G A C.harmonic_ne C.frequency_ne base copy s dirs C.slot.cutoff n x |
| 1411 | 1201 | (C.patch_open n) (C.patch_injective n) (C.cutoff_support n) (C.domain_patch n x hx) (C.cutoff_germ n hx) |
| 1412 | 1202 | |
| 1413 | | -theorem common_residual_germ (n : ℕ) {x : (P × ℝ) × Plane} (hx : x ∈ s.domain) : |
| 1414 | | - (actualCorrectedCommon r charts c u b G A j base s dirs).harmonicResidual s dirs n =ᶠ[𝓝 x] |
| 1415 | | - (((actualCopyCoefficients r charts c u b G A j base copy).corrected s dirs C.slot.cutoff).harmonicResidual s dirs n) := |
| 1416 | | - actualCommon_residual_germ r charts c u b G A C.harmonic_ne C.frequency_ne base copy s dirs C.slot.cutoff n x |
| 1417 | | - (C.patch_open n) (C.patch_injective n) (C.cutoff_support n) (C.domain_patch n x hx) (C.cutoff_germ n hx) |
| 1418 | | - |
| 1419 | 1203 | theorem common_classes : |
| 1420 | 1204 | WaveClass s C.weight α (actualCorrectedCommon r charts c u b G A j base s dirs).amplitude ∧ |
| 1421 | 1205 | WaveClass s C.weight (α + 1 / 2) (actualCorrectedCommon r charts c u b G A j base s dirs).pressure := by |
| @@ -1426,83 +1210,9 @@ theorem common_classes : |
| 1426 | 1210 | · intro n x hx |
| 1427 | 1211 | exact (C.common_germ n hx).2.self_of_nhds.symm |
| 1428 | 1212 | |
| 1429 | | -/-- Actual periodized, curl-corrected field cancellation. Both terms of |
| 1430 | | -`excludedSlotError` remain in this exact identity. -/ |
| 1431 | | -theorem common_cancellation (n : ℕ) {x : (P × ℝ) × Plane} (hx : x ∈ s.domain) : |
| 1432 | | - let a := actualCopyCoefficients r charts c u b G A j base copy |
| 1433 | | - (actualCorrectedCommon r charts c u b G A j base s dirs).harmonicResidual s dirs n x + |
| 1434 | | - (fun i => sourceFamily c u b G A j n x i * carrier (a.frequency n) (a.phase n) x) = |
| 1435 | | - (fun i => (a.constructedGood s dirs C.slot.cutoff n x i + |
| 1436 | | - excludedSlotError dirs C.slot.cutoff a.amplitude (sourceFamily c u b G A j) n x i) * |
| 1437 | | - carrier (a.frequency n) (a.phase n) x) := by |
| 1438 | | - have hh := C.local_result.2.2.2.2 n x hx |
| 1439 | | - rw [← (C.common_residual_germ n hx).self_of_nhds] at hh |
| 1440 | | - exact hh |
| 1441 | | - |
| 1442 | | -theorem good_invariant (n : ℕ) : Invariant dirs.angular |
| 1443 | | - ((actualCopyCoefficients r charts c u b G A j base copy).constructedGood s dirs C.slot.cutoff n) := |
| 1444 | | - constructedGood_invariant (a := actualCopyCoefficients r charts c u b G A j base copy) |
| 1445 | | - C.slot.cutoff C.background.radius_invariant |
| 1446 | | - C.background.radial_base_invariant C.background.frequency_base_invariant C.background.axial_base_invariant |
| 1447 | | - C.background.radial_invariant C.background.axial_invariant C.affine_phase |
| 1448 | | - C.amplitude_invariant C.pressure_invariant C.slot_invariant n |
| 1449 | | - |
| 1450 | | -theorem gaussian_invariant (n : ℕ) : Invariant dirs.angular |
| 1451 | | - (excludedSlotError dirs C.slot.cutoff (actualCopyCoefficients r charts c u b G A j base copy).amplitude |
| 1452 | | - (sourceFamily c u b G A j) n) := by |
| 1453 | | - have hs : Invariant dirs.angular (sourceFamily c u b G A j n) := by |
| 1454 | | - rw [C.background.angular] |
| 1455 | | - exact angleLift_invariant (residualSource c u b G A j n) |
| 1456 | | - have hd : Invariant dirs.angular (dirs.Dfast C.slot.cutoff n) := |
| 1457 | | - (C.slot_invariant n).along (Invariant.const _) |
| 1458 | | - exact (hd.map₂ (C.amplitude_invariant n) (fun t v => t • v)).map₂ |
| 1459 | | - ((C.slot_invariant n).map₂ hs (fun t v => (1 - t) • v)) (fun v w => v + w) |
| 1460 | | - |
| 1461 | | -theorem common_divergence_zero (n : ℕ) {x : (P × ℝ) × Plane} (hx : x ∈ s.domain) : |
| 1462 | | - let a := actualCorrectedCommon r charts c u b G A j base s dirs |
| 1463 | | - cylindricalDivergence (base.radius n) (dirs.radialField n) (fun _ => dirs.angular) |
| 1464 | | - (dirs.axialField s n) (vectorMode (a.frequency n) (a.phase n) (a.amplitude n)) x = 0 := by |
| 1465 | | - have he : EqOn |
| 1466 | | - (vectorMode ((j : ℝ) * b.frequency n) ((actualCarrier base b j).phase n) |
| 1467 | | - ((actualCorrectedCommon r charts c u b G A j base s dirs).amplitude n)) |
| 1468 | | - (vectorMode ((j : ℝ) * b.frequency n) ((actualCarrier base b j).phase n) |
| 1469 | | - (((actualCopyCoefficients r charts c u b G A j base copy).corrected s dirs C.slot.cutoff).amplitude n)) |
| 1470 | | - s.domain := by |
| 1471 | | - intro y hy |
| 1472 | | - exact (vectorMode_germ (C.common_germ n hy).1 _ _).self_of_nhds |
| 1473 | | - exact (CurlClassBounds.cylindricalDivergence_congr s.isOpen_domain (base.radius n) |
| 1474 | | - (dirs.radialField n) (fun _ => dirs.angular) (dirs.axialField s n) he hx).trans (C.divergence_zero n hx) |
| 1475 | | - |
| 1476 | 1213 | noncomputable def good : ℕ → (P × ℝ) × Plane → ComplexVector := |
| 1477 | 1214 | (actualCopyCoefficients r charts c u b G A j base copy).constructedGood s dirs C.slot.cutoff |
| 1478 | 1215 | |
| 1479 | | -noncomputable def gaussian : ℕ → (P × ℝ) × Plane → ComplexVector := |
| 1480 | | - excludedSlotError dirs C.slot.cutoff |
| 1481 | | - (actualCopyCoefficients r charts c u b G A j base copy).amplitude (sourceFamily c u b G A j) |
| 1482 | | - |
| 1483 | | -theorem section_cancellation (n : ℕ) (x : (P × Plane) × ℝ) |
| 1484 | | - (hx : angleShuffle x ∈ s.domain) (i : Fin 3) : |
| 1485 | | - (actualCorrectedCommon r charts c u b G A j base s dirs).harmonicResidual s dirs n (angleShuffle x) i + |
| 1486 | | - residualSource c u b G A j n x.1 i * |
| 1487 | | - HarmonicFields.character j (b.frequency n * b.phase n x.1 + (b.angularFrequency n : ℝ) * x.2) = |
| 1488 | | - (C.good n (angleShuffle (x.1,0)) i + C.gaussian n (angleShuffle (x.1,0)) i) * |
| 1489 | | - HarmonicFields.character j (b.frequency n * b.phase n x.1 + (b.angularFrequency n : ℝ) * x.2) := by |
| 1490 | | - have hg := C.good_invariant n |
| 1491 | | - have he := C.gaussian_invariant n |
| 1492 | | - rw [C.background.angular] at hg he |
| 1493 | | - have hgs : C.good n (angleShuffle x) = C.good n (angleShuffle (x.1,0)) := |
| 1494 | | - invariant_angleShuffle hg x.1 x.2 |
| 1495 | | - have hes : C.gaussian n (angleShuffle x) = C.gaussian n (angleShuffle (x.1,0)) := |
| 1496 | | - invariant_angleShuffle he x.1 x.2 |
| 1497 | | - have hh := congrFun (C.common_cancellation n hx) i |
| 1498 | | - change (actualCorrectedCommon r charts c u b G A j base s dirs).harmonicResidual s dirs n (angleShuffle x) i + |
| 1499 | | - residualSource c u b G A j n x.1 i * carrier ((actualCarrier base b j).frequency n) |
| 1500 | | - ((actualCarrier base b j).phase n) (angleShuffle x) = |
| 1501 | | - (C.good n (angleShuffle x) i + C.gaussian n (angleShuffle x) i) * |
| 1502 | | - carrier ((actualCarrier base b j).frequency n) ((actualCarrier base b j).phase n) (angleShuffle x) at hh |
| 1503 | | - rw [actualCarrier_character base b j C.frequency_ne n x, hgs, hes] at hh |
| 1504 | | - exact hh |
| 1505 | | - |
| 1506 | 1216 | end LocalControl |
| 1507 | 1217 | |
| 1508 | 1218 | end ConstructedControls |
| @@ -1554,45 +1264,10 @@ noncomputable def pressure (N : ℕ) : ℕ → (P × ℝ) × Plane → ℝ := |
| 1554 | 1264 | fun n x => ∑ j ∈ modes N, (mode ((D.wave j).frequency n) ((D.wave j).phase n) |
| 1555 | 1265 | ((D.wave j).pressure n) x).re |
| 1556 | 1266 | |
| 1557 | | -noncomputable def updateBlock (N : ℕ) : HarmonicBlock (P × Plane) := |
| 1558 | | - assembledBlock N D.carrierBlock.frequency D.carrierBlock.phase D.carrierBlock.angularFrequency |
| 1559 | | - (fun j n x => (D.wave j).amplitude n (angleShuffle (x,0))) |
| 1560 | | - (fun j n x => (D.wave j).pressure n (angleShuffle (x,0))) |
| 1561 | | - |
| 1562 | | -noncomputable def goodFamily {N : ℕ} {α κ : ℝ} (C : D.controls N α κ) (j : ℤ) : |
| 1563 | | - ℕ → (P × ℝ) × Plane → ComplexVector := |
| 1564 | | - if hj : j ∈ modes N then (C j hj).good else fun _ _ => 0 |
| 1565 | | - |
| 1566 | | -noncomputable def gaussianFamily {N : ℕ} {α κ : ℝ} (C : D.controls N α κ) (j : ℤ) : |
| 1567 | | - ℕ → (P × ℝ) × Plane → ComplexVector := |
| 1568 | | - if hj : j ∈ modes N then (C j hj).gaussian else fun _ _ => 0 |
| 1569 | | - |
| 1570 | | -noncomputable def goodBlock {N : ℕ} {α κ : ℝ} (C : D.controls N α κ) : HarmonicBlock (P × Plane) := |
| 1571 | | - assembledBlock N D.carrierBlock.frequency D.carrierBlock.phase D.carrierBlock.angularFrequency |
| 1572 | | - (fun j n x => D.goodFamily C j n (angleShuffle (x,0))) (fun _ _ _ => 0) |
| 1573 | | - |
| 1574 | | -noncomputable def gaussianBlock {N : ℕ} {α κ : ℝ} (C : D.controls N α κ) : HarmonicBlock (P × Plane) := |
| 1575 | | - assembledBlock N D.carrierBlock.frequency D.carrierBlock.phase D.carrierBlock.angularFrequency |
| 1576 | | - (fun j n x => D.gaussianFamily C j n (angleShuffle (x,0))) (fun _ _ _ => 0) |
| 1577 | | - |
| 1578 | 1267 | |
| 1579 | 1268 | variable {D} {N : ℕ} {α κ : ℝ} (C : D.controls N α κ) |
| 1580 | 1269 | |
| 1581 | 1270 | |
| 1582 | | -theorem cancellation_sum |
| 1583 | | - (hN : (HarmonicResidual.residualBlock D.context D.state D.carrierBlock D.gaussianInput D.aliasInput).BandLimited N) |
| 1584 | | - (n : ℕ) (x : (P × Plane) × ℝ) (hx : angleShuffle x ∈ D.strip.domain) : |
| 1585 | | - (fun i => ∑ j ∈ modes N, ((D.wave j).harmonicResidual D.strip D.directions n (angleShuffle x) i).re) + |
| 1586 | | - (HarmonicResidual.residualBlock D.context D.state D.carrierBlock D.gaussianInput D.aliasInput).oscillation n x = |
| 1587 | | - (D.goodBlock C).oscillation n x + (D.gaussianBlock C).oscillation n x := by |
| 1588 | | - apply finite_cancellation D.context D.state D.carrierBlock D.gaussianInput D.aliasInput N hN |
| 1589 | | - (fun j n x => (D.wave j).harmonicResidual D.strip D.directions n (angleShuffle x)) |
| 1590 | | - (fun j n x => D.goodFamily C j n (angleShuffle (x,0))) |
| 1591 | | - (fun j n x => D.gaussianFamily C j n (angleShuffle (x,0))) n x |
| 1592 | | - intro j hj i |
| 1593 | | - simp only [goodFamily, gaussianFamily, dite_eq_left hj] |
| 1594 | | - exact (C j hj).section_cancellation n x hx i |
| 1595 | | - |
| 1596 | 1271 | end AssemblyData |
| 1597 | 1272 | |
| 1598 | 1273 | theorem along_finset_sum {E F ι : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| @@ -1636,12 +1311,6 @@ variable {D : AssemblyData P} {N : ℕ} {α κ : ℝ} (C : D.controls N α κ) |
| 1636 | 1311 | |
| 1637 | 1312 | include C |
| 1638 | 1313 | |
| 1639 | | -theorem wave_smooth (j : ℤ) (hj : j ∈ modes N) (n : ℕ) (i : Fin 3) : |
| 1640 | | - ContDiffOn ℝ ∞ (fun x => vectorMode ((D.wave j).frequency n) ((D.wave j).phase n) |
| 1641 | | - ((D.wave j).amplitude n) x i) D.strip.domain := |
| 1642 | | - HarmonicCalculus.contDiffOn_mode _ ((C j hj).background.phase_smooth n) |
| 1643 | | - (contDiffOn_pi.mp ((C j hj).common_classes.1.smooth n) i) |
| 1644 | | - |
| 1645 | 1314 | theorem pressure_smooth (j : ℤ) (hj : j ∈ modes N) (n : ℕ) : |
| 1646 | 1315 | ContDiffOn ℝ ∞ (mode ((D.wave j).frequency n) ((D.wave j).phase n) |
| 1647 | 1316 | ((D.wave j).pressure n)) D.strip.domain := |