| @@ -237,55 +237,6 @@ theorem shear_smul (R F G : D → ℝ) (Vr : D → D) (v : D → ComplexVector) |
| 237 | 237 | ext i |
| 238 | 238 | fin_cases i <;> simp [LinearWaveResidual.shear, Complex.real_smul] <;> ring |
| 239 | 239 | |
| 240 | | -/-- Scaling the actual homogeneous projected ODE by the frozen inverse |
| 241 | | -coefficient gives the signed principal equation, with its pressure constructed |
| 242 | | -from the same normal and action. No signed equation is an input. -/ |
| 243 | | -theorem coefficients_principal_zero |
| 244 | | - {s : StripData D} {d : LinearWaveBounds.GraphDirections D} |
| 245 | | - (a : LinearWaveBounds.WaveCoefficients D) |
| 246 | | - {H : ℕ → D → Mat2} {T R : ℕ → D → Vec2} {mask : ℕ → D → ℝ} |
| 247 | | - {v Ndot : ℕ → D → Space} {A : ℕ → D → Space →L[ℝ] Space} |
| 248 | | - (hcov : CovarianceControl s H T) {β : ℝ} |
| 249 | | - (hR : ∀ i, MeanClass s β (fun n x => R n x i)) |
| 250 | | - (hm : UnweightedClass s 0 mask) {P : ℕ → D → ℝ} (hv : MemClass s P 0 v) |
| 251 | | - (hHf : FrozenAlong d.fast H) (hTf : FrozenAlong d.fast T) |
| 252 | | - (hRf : FrozenAlong d.fast R) (hmf : FrozenAlong d.fast mask) |
| 253 | | - (hK : ∀ n, a.frequency n ≠ 0) |
| 254 | | - (hode : ∀ n x, x ∈ s.domain → along (d.fastField n) (v n) x = |
| 255 | | - TangentProjection.projectedRhs (a.normal s d n x) (Ndot n x) (v n x) |
| 256 | | - (A n x (v n x)) 0 (s.epsilon n * a.frequency n ^ 2 * ‖a.normal s d n x‖ ^ 2)) |
| 257 | | - (haction : ∀ n x, x ∈ s.domain → CurlClassBounds.complexify (A n x (v n x)) = |
| 258 | | - LinearWaveResidual.shear (a.radius n) (a.frequencyBase n) (a.axialBase n) |
| 259 | | - (d.radialField n) (fun y => CurlClassBounds.complexify (v n y)) x) |
| 260 | | - (j : Fin 2) (n : ℕ) {x : D} (hx : x ∈ s.domain) : |
| 261 | | - (coefficients a s d H T R mask v Ndot A j).principal s d n x = 0 := by |
| 262 | | - have hs := signedScalar_class hcov hR hm j |
| 263 | | - have hsD := ((hs.smooth n).contDiffAt (s.isOpen_domain.mem_nhds hx)).differentiableAt (by simp) |
| 264 | | - have hvD := ((hv.smooth n).contDiffAt (s.isOpen_domain.mem_nhds hx)).differentiableAt (by simp) |
| 265 | | - have hfreeze := (signedScalar_frozen hHf hTf hRf hmf j).derivative n hsD |
| 266 | | - have hfast : along (d.fastField n) (signedScalar s H T R mask j n) x = 0 := by |
| 267 | | - simp only [along, LinearWaveBounds.GraphDirections.fastField, map_smul, hfreeze, smul_zero] |
| 268 | | - have hd : along (d.fastField n) (signedVector s H T R mask v j n) x = |
| 269 | | - TangentProjection.projectedRhs (a.normal s d n x) (Ndot n x) |
| 270 | | - (signedVector s H T R mask v j n x) (A n x (signedVector s H T R mask v j n x)) |
| 271 | | - 0 (s.epsilon n * a.frequency n ^ 2 * ‖a.normal s d n x‖ ^ 2) := by |
| 272 | | - change along (d.fastField n) (fun y => signedScalar s H T R mask j n y • v n y) x = _ |
| 273 | | - rw [along_smul _ hsD hvD, hfast, zero_smul, zero_add, hode n x hx] |
| 274 | | - simp only [signedVector, map_smul, projectedRhs_smul] |
| 275 | | - have hact : CurlClassBounds.complexify (A n x (signedVector s H T R mask v j n x)) = |
| 276 | | - LinearWaveResidual.shear (a.radius n) (a.frequencyBase n) (a.axialBase n) |
| 277 | | - (d.radialField n) (fun y => CurlClassBounds.complexify (signedVector s H T R mask v j n y)) x := by |
| 278 | | - simp only [signedVector, map_smul] |
| 279 | | - rw [shear_smul, haction n x hx] |
| 280 | | - have hh := ParticularWaveBounds.principal_eq_neg_source_of_projected |
| 281 | | - (s.epsilon n) (a.frequency n) (hK n) (a.radius n) (a.frequencyBase n) (a.axialBase n) |
| 282 | | - (a.phase n) (d.radialField n) (fun _ => d.angular) (d.axialField s n) (d.fastField n) |
| 283 | | - (signedVector s H T R mask v j n) (Ndot n) |
| 284 | | - (fun y => A n y (signedVector s H T R mask v j n y)) (fun _ => 0) |
| 285 | | - (hsD.smul hvD) hd hact |
| 286 | | - simpa only [coefficients, homogeneousCoefficients, LinearWaveBounds.WaveCoefficients.principal, |
| 287 | | - LinearWaveBounds.WaveCoefficients.normal, map_zero, neg_zero] using hh |
| 288 | | - |
| 289 | 240 | /-! ## Instantiation with the constructed primary phase and pulse -/ |
| 290 | 241 | |
| 291 | 242 | noncomputable def phaseMatrix {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| @@ -300,23 +251,6 @@ noncomputable def phaseFundamental {U : PhaseJetBounds.Domain ℕ PhaseCalculus. |
| 300 | 251 | fun n x => PrimaryPulseBounds.normalizedPulse ((F j).frame n) |
| 301 | 252 | ((F j).lam n) ((F j).u n) ((F j).L n) (χ n x) |
| 302 | 253 | |
| 303 | | -noncomputable def phaseEnvelope {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 304 | | - (F : Fin 2 → PrimaryPulseBounds.PhaseConstruction U) |
| 305 | | - (χ : ℕ → D → PhaseCalculus.Slow × ℝ) (j : Fin 2) : ℕ → D → ℝ := |
| 306 | | - fun n x => PrimaryPulseBounds.referenceP ((F j).lam n) ((F j).u n) |
| 307 | | - ((F j).L n) ((F j).L n * (χ n x).2) |
| 308 | | - |
| 309 | | -theorem phaseFundamental_class {s : StripData D} |
| 310 | | - {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 311 | | - (F : Fin 2 → PrimaryPulseBounds.PhaseConstruction U) |
| 312 | | - (χ : ℕ → D → PhaseCalculus.Slow × ℝ) |
| 313 | | - (hscale : ∀ n, U.scale n = s.slow n) |
| 314 | | - (hχ : PhaseJetBounds.PolynomialJets (PrimaryPulseBounds.phaseDomain s) χ) |
| 315 | | - (hmap : ∀ n x, x ∈ s.domain → χ n x ∈ U.carrier n ×ˢ Ioo (0 : ℝ) 1) |
| 316 | | - (j : Fin 2) : MemClass s (phaseEnvelope F χ j) 0 (phaseFundamental F χ j) := by |
| 317 | | - have hp := (F j).pulse_jets.comp hχ hscale hmap |
| 318 | | - exact hp.memClass s (fun _ => rfl) (fun _ => rfl) |
| 319 | | - |
| 320 | 254 | /-! ## Literal harmonic blocks, with the same carrier metadata -/ |
| 321 | 255 | |
| 322 | 256 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| @@ -572,86 +506,6 @@ theorem angularAverage_re_field (c : HarmonicFields.Coefficients D) (k : ℝ) |
| 572 | 506 | |
| 573 | 507 | /-! ## Actual homogeneous ODE under the native clock -/ |
| 574 | 508 | |
| 575 | | -theorem normalizedPulse_along |
| 576 | | - {Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 577 | | - (f : PrimaryODE.FrameData Q) (lam u : ℝ) {L : ℝ} (hL : 0 < L) |
| 578 | | - (U : Set Q) (hA : ContinuousOn (f.coefficient 1) (U ×ˢ Icc 0 L)) |
| 579 | | - (χ : D → Q × ℝ) (V : D → D) {x : D} |
| 580 | | - (hp : (χ x).1 ∈ U) (ht : (χ x).2 ∈ Ioo (0 : ℝ) 1) |
| 581 | | - (hk : f.Kinematics (χ x).1 (Icc 0 L)) |
| 582 | | - (hv : DifferentiableAt ℝ (fun y => PrimaryPulseBounds.normalizedPulse f lam u L (χ y)) x) |
| 583 | | - (hclock : ∀ t : ℝ, χ (x + t • V x) = ((χ x).1, (χ x).2 + t / L)) : |
| 584 | | - along V (fun y => PrimaryPulseBounds.normalizedPulse f lam u L (χ y)) x = |
| 585 | | - TangentProjection.projectedRhs (f.normal ((χ x).1,L*(χ x).2)) |
| 586 | | - (f.normalMotion ((χ x).1,L*(χ x).2)) (PrimaryPulseBounds.normalizedPulse f lam u L (χ x)) |
| 587 | | - (MovingFrameODE.baseAction (f.F ((χ x).1,L*(χ x).2)) (f.shear ((χ x).1,L*(χ x).2)) |
| 588 | | - (PrimaryPulseBounds.normalizedPulse f lam u L (χ x))) 0 (f.viscosity ((χ x).1,L*(χ x).2)) := by |
| 589 | | - have hd := PrimaryPulseBounds.normalizedPulse_hasDerivAt f lam u hL U hA hp hk ht |
| 590 | | - have ht' : HasDerivAt (fun t : ℝ => (χ x).2 + t / L) (1 / L) 0 := by |
| 591 | | - simpa using (((hasDerivAt_id (0 : ℝ)).div_const L).const_add (χ x).2) |
| 592 | | - have hd' : HasDerivAt (fun t : ℝ => PrimaryPulseBounds.normalizedPulse f lam u L |
| 593 | | - ((χ x).1, (χ x).2 + t / L)) ((1 / L) • (L • |
| 594 | | - TangentProjection.projectedRhs (f.normal ((χ x).1,L*(χ x).2)) |
| 595 | | - (f.normalMotion ((χ x).1,L*(χ x).2)) (PrimaryPulseBounds.normalizedPulse f lam u L (χ x)) |
| 596 | | - (MovingFrameODE.baseAction (f.F ((χ x).1,L*(χ x).2)) (f.shear ((χ x).1,L*(χ x).2)) |
| 597 | | - (PrimaryPulseBounds.normalizedPulse f lam u L (χ x))) 0 (f.viscosity ((χ x).1,L*(χ x).2)))) 0 := by |
| 598 | | - simpa only [Prod.mk.eta, Function.comp_def] using hd.scomp_of_eq (0 : ℝ) ht' (by simp) |
| 599 | | - have hl : HasDerivAt (fun t : ℝ => x + t • V x) (V x) 0 := by |
| 600 | | - simpa using ((hasDerivAt_id (0 : ℝ)).smul_const (V x)).const_add x |
| 601 | | - have hv' : HasDerivAt (fun t : ℝ => PrimaryPulseBounds.normalizedPulse f lam u L (χ (x+t•V x))) |
| 602 | | - (along V (fun y => PrimaryPulseBounds.normalizedPulse f lam u L (χ y)) x) 0 := by |
| 603 | | - simpa only [along, Function.comp_def] using hv.hasFDerivAt.comp_hasDerivAt_of_eq (0 : ℝ) hl (by simp) |
| 604 | | - simp only [hclock] at hv' |
| 605 | | - have he := hv'.unique hd' |
| 606 | | - simpa only [smul_smul, one_div, inv_mul_cancel₀ hL.ne', one_smul, Prod.mk.eta] using he |
| 607 | | - |
| 608 | | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 609 | | -theorem phaseFundamental_tangent {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 610 | | - (F : Fin 2 → PrimaryPulseBounds.PhaseConstruction U) |
| 611 | | - (χ : ℕ → D → PhaseCalculus.Slow × ℝ) (j : Fin 2) (n : ℕ) (x : D) : |
| 612 | | - ⟪((F j).frame n).normal ((χ n x).1, (F j).L n * (χ n x).2), phaseFundamental F χ j n x⟫_ℝ = 0 := by |
| 613 | | - exact ((F j).frame n).ambient_tangent _ _ |
| 614 | | - |
| 615 | | -theorem phase_coefficients_principal_zero |
| 616 | | - {s : StripData D} {d : LinearWaveBounds.GraphDirections D} |
| 617 | | - (a : LinearWaveBounds.WaveCoefficients D) |
| 618 | | - {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 619 | | - (F : Fin 2 → PrimaryPulseBounds.PhaseConstruction U) (pref : Fin 2 → ℕ → ℝ) |
| 620 | | - (χ : ℕ → D → PhaseCalculus.Slow × ℝ) {T R : ℕ → D → Vec2} {mask : ℕ → D → ℝ} |
| 621 | | - {Ndot : ℕ → D → Space} {A : ℕ → D → Space →L[ℝ] Space} |
| 622 | | - (hscale : ∀ n, U.scale n = s.slow n) |
| 623 | | - (hχ : PhaseJetBounds.PolynomialJets (PrimaryPulseBounds.phaseDomain s) χ) |
| 624 | | - (hmap : ∀ n x, x ∈ s.domain → χ n x ∈ U.carrier n ×ˢ Ioo (0 : ℝ) 1) |
| 625 | | - (hcov : CovarianceControl s (phaseMatrix F pref χ) T) {β : ℝ} |
| 626 | | - (hR : ∀ i, MeanClass s β (fun n x => R n x i)) (hm : UnweightedClass s 0 mask) |
| 627 | | - (hHf : FrozenAlong d.fast (phaseMatrix F pref χ)) (hTf : FrozenAlong d.fast T) |
| 628 | | - (hRf : FrozenAlong d.fast R) (hmf : FrozenAlong d.fast mask) |
| 629 | | - (hK : ∀ n, a.frequency n ≠ 0) (j : Fin 2) |
| 630 | | - (hcoef : ∀ n, ContinuousOn (((F j).frame n).coefficient 1) (U.carrier n ×ˢ Icc 0 ((F j).L n))) |
| 631 | | - (hkin : ∀ n x, x ∈ s.domain → ((F j).frame n).Kinematics (χ n x).1 (Icc 0 ((F j).L n))) |
| 632 | | - (hclock : ∀ n x, x ∈ s.domain → ∀ t : ℝ, |
| 633 | | - χ n (x + t • d.fastField n x) = ((χ n x).1, (χ n x).2 + t / (F j).L n)) |
| 634 | | - (hnormal : ∀ n x, x ∈ s.domain → ((F j).frame n).normal ((χ n x).1,(F j).L n*(χ n x).2) = a.normal s d n x) |
| 635 | | - (hmotion : ∀ n x, x ∈ s.domain → ((F j).frame n).normalMotion ((χ n x).1,(F j).L n*(χ n x).2) = Ndot n x) |
| 636 | | - (haction : ∀ n x, x ∈ s.domain → ∀ z : Space, |
| 637 | | - MovingFrameODE.baseAction (((F j).frame n).F ((χ n x).1,(F j).L n*(χ n x).2)) |
| 638 | | - (((F j).frame n).shear ((χ n x).1,(F j).L n*(χ n x).2)) z = A n x z) |
| 639 | | - (hdamp : ∀ n x, x ∈ s.domain → ((F j).frame n).viscosity ((χ n x).1,(F j).L n*(χ n x).2) = |
| 640 | | - s.epsilon n * a.frequency n ^ 2 * ‖a.normal s d n x‖ ^ 2) |
| 641 | | - (hphysical : ∀ n x, x ∈ s.domain → CurlClassBounds.complexify (A n x (phaseFundamental F χ j n x)) = |
| 642 | | - LinearWaveResidual.shear (a.radius n) (a.frequencyBase n) (a.axialBase n) (d.radialField n) |
| 643 | | - (fun y => CurlClassBounds.complexify (phaseFundamental F χ j n y)) x) : |
| 644 | | - ∀ n x, x ∈ s.domain → |
| 645 | | - (coefficients a s d (phaseMatrix F pref χ) T R mask (phaseFundamental F χ j) Ndot A j).principal s d n x = 0 := by |
| 646 | | - have hv := phaseFundamental_class F χ hscale hχ hmap j |
| 647 | | - apply coefficients_principal_zero a hcov hR hm hv hHf hTf hRf hmf hK _ hphysical j |
| 648 | | - intro n x hx |
| 649 | | - have hd := normalizedPulse_along ((F j).frame n) ((F j).lam n) ((F j).u n) ((F j).L_pos n) |
| 650 | | - (U.carrier n) (hcoef n) (χ n) (d.fastField n) (hmap n x hx).1 (hmap n x hx).2 (hkin n x hx) |
| 651 | | - (((hv.smooth n).contDiffAt (s.isOpen_domain.mem_nhds hx)).differentiableAt (by simp)) (hclock n x hx) |
| 652 | | - simp only [phaseFundamental, hnormal n x hx, hmotion n x hx, haction n x hx, hdamp n x hx] at hd ⊢ |
| 653 | | - exact hd |
| 654 | | - |
| 655 | 509 | /-! ## The constructed curl, pressure, and retained linear error -/ |
| 656 | 510 | |
| 657 | 511 | theorem signed_bounds |
| @@ -702,18 +556,6 @@ theorem normalDot_complexify (N v : Space) : |
| 702 | 556 | normalDot N (CurlClassBounds.complexify v) = (⟪N,v⟫_ℝ : ℂ) := by |
| 703 | 557 | simp [normalDot, PiLp.inner_apply, Fin.sum_univ_three, mul_comm] |
| 704 | 558 | |
| 705 | | -theorem coefficients_tangent {s : StripData D} {d : LinearWaveBounds.GraphDirections D} |
| 706 | | - (a : LinearWaveBounds.WaveCoefficients D) |
| 707 | | - (H : ℕ → D → Mat2) (T R : ℕ → D → Vec2) (mask : ℕ → D → ℝ) |
| 708 | | - (v Ndot : ℕ → D → Space) (A : ℕ → D → Space →L[ℝ] Space) |
| 709 | | - (ht : ∀ n x, x ∈ s.domain → ⟪a.normal s d n x, v n x⟫_ℝ = 0) (j : Fin 2) |
| 710 | | - (n : ℕ) {x : D} (hx : x ∈ s.domain) : |
| 711 | | - normalDot ((coefficients a s d H T R mask v Ndot A j).normal s d n x) |
| 712 | | - ((coefficients a s d H T R mask v Ndot A j).amplitude n x) = 0 := by |
| 713 | | - change normalDot (a.normal s d n x) (CurlClassBounds.complexify (signedScalar s H T R mask j n x • v n x)) = 0 |
| 714 | | - rw [normalDot_complexify, inner_smul_right, ht n x hx, mul_zero] |
| 715 | | - rfl |
| 716 | | - |
| 717 | 559 | /-! ## The same native pulse blocks in the exact covariance identity -/ |
| 718 | 560 | |
| 719 | 561 | section NativeBlocks |
| @@ -733,11 +575,6 @@ end NativeBlocks |
| 733 | 575 | |
| 734 | 576 | /-! ## Exported blocks for the correction state -/ |
| 735 | 577 | |
| 736 | | -noncomputable def gaussianBlock (a : LinearWaveBounds.WaveCoefficients (D × ℝ)) |
| 737 | | - (d : LinearWaveBounds.GraphDirections (D × ℝ)) (ψ : ℕ → D × ℝ → ℝ) |
| 738 | | - (kp : ℕ → ℤ) : CorrectionState.HarmonicBlock D := |
| 739 | | - ErrorHarmonics.gaussianBlock d ψ a.amplitude 0 1 a.frequency (fun n x => a.phase n (x,0)) kp |
| 740 | | - |
| 741 | 578 | /-! The realization hypothesis below concerns only the already constructed |
| 742 | 579 | unit pulse and chart. It never identifies or bounds a signed output. The |
| 743 | 580 | canonical unit pulse and its matrix are identified by the two preceding |