import NavierStokes.PeriodizedWaveBounds import NavierStokes.PhysicalParticularWave import Mathlib.Analysis.SpecialFunctions.SmoothTransition /-! # A periodic phase with the actual native clock germs An explicit compact smooth cutoff has a plateau around the entire native core. Its clock-weighted copies are summed on the common cover. The phase is therefore periodic on the full auxiliary lift and retains the original clock, with every derivative, on each padded wave core. -/ noncomputable section namespace NavierStokes.PeriodicPhaseAssembly open Set Function Filter MeasureTheory open scoped ContDiff Topology BigOperators open CommonCoverSolve TorusInverse TorusAverages /-- A concrete smooth interval cutoff. Its plateau includes an extra padding interval on each side of `[a,b]`. -/ noncomputable def intervalCutoff (a b d x : ℝ) : ℝ := Real.smoothTransition ((x - (a - 2 * d)) / d) * Real.smoothTransition (((b + 2 * d) - x) / d) theorem intervalCutoff_contDiff (a b d : ℝ) : ContDiff ℝ ∞ (intervalCutoff a b d) := (Real.smoothTransition.contDiff.comp ((contDiff_id.sub contDiff_const).div_const d)).mul (Real.smoothTransition.contDiff.comp ((contDiff_const.sub contDiff_id).div_const d)) theorem intervalCutoff_one {a b d x : ℝ} (hd : 0 < d) (ha : a - d ≤ x) (hb : x ≤ b + d) : intervalCutoff a b d x = 1 := by have h1 : 1 ≤ (x - (a - 2 * d)) / d := (le_div_iff₀ hd).2 (by linarith) have h2 : 1 ≤ ((b + 2 * d) - x) / d := (le_div_iff₀ hd).2 (by linarith) simp only [intervalCutoff, Real.smoothTransition.one_of_one_le h1, Real.smoothTransition.one_of_one_le h2, mul_one] theorem intervalCutoff_support {a b d : ℝ} (hd : 0 < d) : support (intervalCutoff a b d) ⊆ Icc (a - 2 * d) (b + 2 * d) := by intro x hx have hne := mul_ne_zero_iff.mp hx constructor · by_contra hn have harg : (x - (a - 2 * d)) / d ≤ 0 := div_nonpos_of_nonpos_of_nonneg (by linarith) hd.le exact hne.1 (Real.smoothTransition.zero_of_nonpos harg) · by_contra hn have harg : ((b + 2 * d) - x) / d ≤ 0 := div_nonpos_of_nonpos_of_nonneg (by linarith) hd.le exact hne.2 (Real.smoothTransition.zero_of_nonpos harg) /-- Input geometry for the compact clock cutoff. The full sampled native path and all wave cutoff supports are placed inside `core`. -/ structure ClockWindow where lower : Plane upper : Plane padding : ℝ padding_pos : 0 < padding namespace ClockWindow variable (w : ClockWindow) noncomputable def core : Set Plane := Icc w.lower.1 w.upper.1 ×ˢ Icc w.lower.2 w.upper.2 noncomputable def plateau : Set Plane := Ioo (w.lower.1 - w.padding) (w.upper.1 + w.padding) ×ˢ Ioo (w.lower.2 - w.padding) (w.upper.2 + w.padding) noncomputable def outer : Set Plane := Icc (w.lower.1 - 2 * w.padding) (w.upper.1 + 2 * w.padding) ×ˢ Icc (w.lower.2 - 2 * w.padding) (w.upper.2 + 2 * w.padding) noncomputable def cutoff (z : Plane) : ℝ := intervalCutoff w.lower.1 w.upper.1 w.padding z.1 * intervalCutoff w.lower.2 w.upper.2 w.padding z.2 theorem core_compact : IsCompact w.core := isCompact_Icc.prod isCompact_Icc theorem outer_compact : IsCompact w.outer := isCompact_Icc.prod isCompact_Icc theorem plateau_open : IsOpen w.plateau := isOpen_Ioo.prod isOpen_Ioo theorem core_subset_plateau : w.core ⊆ w.plateau := by rintro z ⟨⟨hl1, hu1⟩, ⟨hl2, hu2⟩⟩ have hd := w.padding_pos exact ⟨⟨by linarith, by linarith⟩, ⟨by linarith, by linarith⟩⟩ theorem plateau_subset_outer : w.plateau ⊆ w.outer := by rintro z ⟨⟨hl1, hu1⟩, ⟨hl2, hu2⟩⟩ have hd := w.padding_pos exact ⟨⟨by linarith, by linarith⟩, ⟨by linarith, by linarith⟩⟩ theorem core_subset_outer : w.core ⊆ w.outer := w.core_subset_plateau.trans w.plateau_subset_outer theorem cutoff_contDiff : ContDiff ℝ ∞ w.cutoff := ((intervalCutoff_contDiff _ _ _).comp contDiff_fst).mul ((intervalCutoff_contDiff _ _ _).comp contDiff_snd) theorem cutoff_support : support w.cutoff ⊆ w.outer := by intro z hz have hne := mul_ne_zero_iff.mp hz exact ⟨intervalCutoff_support w.padding_pos hne.1, intervalCutoff_support w.padding_pos hne.2⟩ theorem cutoff_compact : HasCompactSupport w.cutoff := HasCompactSupport.of_support_subset_isCompact w.outer_compact w.cutoff_support theorem cutoff_one {z : Plane} (hz : z ∈ w.plateau) : w.cutoff z = 1 := by simp only [cutoff, intervalCutoff_one w.padding_pos hz.1.1.le hz.1.2.le, intervalCutoff_one w.padding_pos hz.2.1.le hz.2.2.le, mul_one] theorem cutoff_germ {z : Plane} (hz : z ∈ w.core) : w.cutoff =ᶠ[𝓝 z] fun _ => 1 := eventually_of_mem (w.plateau_open.mem_nhds (w.core_subset_plateau hz)) (fun _ hx => w.cutoff_one hx) theorem cutoff_germ_on_support {E : Type} [Zero E] {κ : Plane → E} (hκ : tsupport κ ⊆ w.core) {z : Plane} (hz : z ∈ tsupport κ) : w.cutoff =ᶠ[𝓝 z] fun _ => 1 := w.cutoff_germ (hκ hz) end ClockWindow /-- The literal lattice sum of a native scalar. -/ noncomputable def periodizeScalar (g : Geometry) (f : Plane → ℝ) (Y : Plane) : ℝ := ∑' k : Frequency, f (g.coordinates k Y) theorem periodizeScalar_eventually_finite (g : Geometry) {f : Plane → ℝ} (hf : HasCompactSupport f) (Y : Plane) : ∃ J : Finset Frequency, periodizeScalar g f =ᶠ[𝓝 Y] fun Z => ∑ k ∈ J, f (g.coordinates k Z) := by classical obtain ⟨J, hJ⟩ := g.finite_copy_cutoffs hf (‖Y‖ + 1) refine ⟨J, ?_⟩ filter_upwards [(isOpen_lt continuous_norm continuous_const).mem_nhds (show ‖Y‖ < ‖Y‖ + 1 by linarith)] with Z hZ exact tsum_eq_sum (fun k hk => hJ Z hZ.le k hk) theorem periodizeScalar_contDiff (g : Geometry) {f : Plane → ℝ} (hf : ContDiff ℝ ∞ f) (hc : HasCompactSupport f) : ContDiff ℝ ∞ (periodizeScalar g f) := by rw [contDiff_iff_contDiffAt] intro Y obtain ⟨J, hJ⟩ := periodizeScalar_eventually_finite g hc Y have hs : ContDiff ℝ ∞ (fun Z => ∑ k ∈ J, f (g.coordinates k Z)) := ContDiff.sum (fun k _ => hf.comp (g.coordinates_contDiff k)) exact hs.contDiffAt.congr_of_eventuallyEq hJ theorem periodizeScalar_periodic (g : Geometry) (f : Plane → ℝ) (Y : Plane) (n : Frequency) : periodizeScalar g f (Y + latticePoint n) = periodizeScalar g f Y := by change PeriodizedWaveBounds.copySum (fun k Y => f (g.coordinates k Y)) (Y + latticePoint n) = _ apply PeriodizedWaveBounds.copySum_translate _ (fun Z => Z + latticePoint n) (Equiv.addRight (coverIndex g.gap n)) intro k Z exact congrArg f (g.coordinates_deck k n Z) theorem periodizeScalar_refine (g : Geometry) (f : Plane → ℝ) (d : ℕ) (Y : Plane) : periodizeScalar (CopySolveCompatibility.refineGeometry g d) f Y = periodizeScalar g f (coverPower d Y) := CopySolveCompatibility.native_copy_sum_refine g d f Y theorem periodizeScalar_transport (g : Geometry) (f : Plane → ℝ) (d : ℕ) (shift rate : ℝ) (hrate : rate ≠ 0) (Y : Plane) : periodizeScalar (CopySolveCompatibility.transportGeometry g d shift rate hrate) (f ∘ CopySolveCompatibility.nativeTimeMap shift rate) Y = periodizeScalar g f (coverPower d Y) := by unfold periodizeScalar apply tsum_congr intro k simp only [comp_apply, CopySolveCompatibility.transportGeometry, CopySolveCompatibility.coordinates_refine, CopySolveCompatibility.coordinates_timeGeometry] /-- The clock itself is periodicized together with its cutoff. -/ noncomputable def periodicClock (g : Geometry) (χ : Plane → ℝ) : Plane → ℝ := periodizeScalar g (fun z => χ z * z.2) theorem periodicClock_contDiff (g : Geometry) (w : ClockWindow) : ContDiff ℝ ∞ (periodicClock g w.cutoff) := periodizeScalar_contDiff g (w.cutoff_contDiff.mul contDiff_snd) w.cutoff_compact.mul_right theorem periodicClock_periodic (g : Geometry) (χ : Plane → ℝ) (Y : Plane) (n : Frequency) : periodicClock g χ (Y + latticePoint n) = periodicClock g χ Y := periodizeScalar_periodic g _ Y n theorem periodicClock_refine (g : Geometry) (χ : Plane → ℝ) (d : ℕ) (Y : Plane) : periodicClock (CopySolveCompatibility.refineGeometry g d) χ Y = periodicClock g χ (coverPower d Y) := periodizeScalar_refine g _ d Y /-- Clock reparametrization transports the compact native scalar as a whole. The shift is multiplied by the cutoff as well. -/ theorem periodicClock_transport (g : Geometry) (χ : Plane → ℝ) (d : ℕ) (shift rate : ℝ) (hrate : rate ≠ 0) (Y : Plane) : periodizeScalar (CopySolveCompatibility.transportGeometry g d shift rate hrate) (fun z => χ (CopySolveCompatibility.nativeTimeMap shift rate z) * (shift + rate * z.2)) Y = periodicClock g χ (coverPower d Y) := periodizeScalar_transport g (fun z => χ z * z.2) d shift rate hrate Y section Germs variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] omit [NormedSpace ℝ P] in /-- Exact clock agreement on a neighborhood of every closed native core. The geometric input is injectivity of the larger padded support cell. -/ theorem periodicClock_germ (g : Geometry) (w : ClockWindow) (hinj : InjOn quotientPoint ((fun z => g.center + g.basis z) '' w.outer)) (k : Frequency) {z : P × Plane} (hz : g.coordinates k z.2 ∈ w.core) : (fun x : P × Plane => periodicClock g w.cutoff x.2) =ᶠ[𝓝 z] fun x => (g.coordinates k x.2).2 := by let K := PeriodizedWaveBounds.nativeCells (P := P) (fun _ => g) (fun _ => w.outer) (fun _ => w.outer_compact) (fun _ => hinj) let f (j : Frequency) (x : P × Plane) : ℝ := w.cutoff (g.coordinates j x.2) * (g.coordinates j x.2).2 have hs : ∀ j, support (f j) ⊆ K.carrier 0 j := by intro j x hx exact w.cutoff_support (mul_ne_zero_iff.mp hx).1 have he := PeriodizedWaveBounds.copySum_germ K 0 f hs (w.core_subset_outer hz) have hc : Continuous (fun x : P × Plane => g.coordinates k x.2) := (g.coordinates_contDiff k).continuous.comp continuous_snd filter_upwards [he, hc.continuousAt.preimage_mem_nhds (w.plateau_open.mem_nhds (w.core_subset_plateau hz))] with x hx hp change (∑' j : Frequency, w.cutoff (g.coordinates j x.2) * (g.coordinates j x.2).2) = _ at hx ⊢ change _ = w.cutoff (g.coordinates k x.2) * (g.coordinates k x.2).2 at hx rw [hx, w.cutoff_one hp, one_mul] theorem periodicClock_jets (g : Geometry) (w : ClockWindow) (hinj : InjOn quotientPoint ((fun z => g.center + g.basis z) '' w.outer)) (k : Frequency) {z : P × Plane} (hz : g.coordinates k z.2 ∈ w.core) (m : ℕ) : iteratedFDeriv ℝ m (fun x : P × Plane => periodicClock g w.cutoff x.2) z = iteratedFDeriv ℝ m (fun x : P × Plane => (g.coordinates k x.2).2) z := PeriodizedWaveBounds.jets_eq_of_germ (periodicClock_germ g w hinj k hz) m end Germs /-- The complete earlier-time Volterra path can be kept in the clock plateau. This uses the full sampled interval, including points where the wave cutoff itself vanishes. -/ theorem periodicClock_path (g : Geometry) (w : ClockWindow) (hinj : InjOn quotientPoint ((fun z => g.center + g.basis z) '' w.outer)) (k : Frequency) (Y : Plane) (t : ℝ) (htransverse : (g.coordinates k Y).1 ∈ Icc w.lower.1 w.upper.1) (ht : t ∈ Icc w.lower.2 w.upper.2) : periodicClock g w.cutoff (g.path k Y t) = t := by have hc : g.coordinates k (g.path k Y t) ∈ w.core := by rw [g.coordinates_path] exact ⟨htransverse, ht⟩ have he := (periodicClock_germ (P := ℝ) g w hinj k (z := (0, g.path k Y t)) hc).self_of_nhds simpa only [g.coordinates_path] using he /-! ## Actual phases and complete carriers -/ section Phases variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] noncomputable def phase (g : Geometry) (χ : Plane → ℝ) (A B : P → ℝ) (z : P × Plane) : ℝ := A z.1 - periodicClock g χ z.2 * B z.1 noncomputable def nativePhase (g : Geometry) (A B : P → ℝ) (k : Frequency) (z : P × Plane) : ℝ := A z.1 - (g.coordinates k z.2).2 * B z.1 theorem phase_contDiff (g : Geometry) (w : ClockWindow) {A B : P → ℝ} (hA : ContDiff ℝ ∞ A) (hB : ContDiff ℝ ∞ B) : ContDiff ℝ ∞ (phase g w.cutoff A B) := (hA.comp contDiff_fst).sub (((periodicClock_contDiff g w).comp contDiff_snd).mul (hB.comp contDiff_fst)) theorem phase_contDiffOn (g : Geometry) (w : ClockWindow) {A B : P → ℝ} {U : Set P} (hA : ContDiffOn ℝ ∞ A U) (hB : ContDiffOn ℝ ∞ B U) : ContDiffOn ℝ ∞ (phase g w.cutoff A B) (U ×ˢ univ) := (hA.comp contDiffOn_fst (fun _ hx => hx.1)).sub (((periodicClock_contDiff g w).comp_contDiffOn contDiffOn_snd).mul (hB.comp contDiffOn_fst (fun _ hx => hx.1))) omit [NormedAddCommGroup P] [NormedSpace ℝ P] in theorem phase_periodic (g : Geometry) (χ : Plane → ℝ) (A B : P → ℝ) (p : P) (Y : Plane) (n : Frequency) : phase g χ A B (p, Y + latticePoint n) = phase g χ A B (p, Y) := by simp only [phase, periodicClock_periodic] omit [NormedSpace ℝ P] in theorem phase_germ (g : Geometry) (w : ClockWindow) (hinj : InjOn quotientPoint ((fun z => g.center + g.basis z) '' w.outer)) (A B : P → ℝ) (k : Frequency) {z : P × Plane} (hz : g.coordinates k z.2 ∈ w.core) : phase g w.cutoff A B =ᶠ[𝓝 z] nativePhase g A B k := by filter_upwards [periodicClock_germ g w hinj k hz] with x hx simp only [phase, nativePhase, hx] theorem phase_jets (g : Geometry) (w : ClockWindow) (hinj : InjOn quotientPoint ((fun z => g.center + g.basis z) '' w.outer)) (A B : P → ℝ) (k : Frequency) {z : P × Plane} (hz : g.coordinates k z.2 ∈ w.core) (m : ℕ) : iteratedFDeriv ℝ m (phase g w.cutoff A B) z = iteratedFDeriv ℝ m (nativePhase g A B k) z := PeriodizedWaveBounds.jets_eq_of_germ (phase_germ g w hinj A B k hz) m omit [NormedAddCommGroup P] [NormedSpace ℝ P] in theorem phase_path (g : Geometry) (w : ClockWindow) (hinj : InjOn quotientPoint ((fun z => g.center + g.basis z) '' w.outer)) (A B : P → ℝ) (k : Frequency) (p : P) (Y : Plane) (t : ℝ) (htransverse : (g.coordinates k Y).1 ∈ Icc w.lower.1 w.upper.1) (ht : t ∈ Icc w.lower.2 w.upper.2) : phase g w.cutoff A B (p, g.path k Y t) = A p - t * B p := by simp only [phase, periodicClock_path g w hinj k Y t htransverse ht] /-- The angular coordinate is distinct from the auxiliary torus. -/ noncomputable def angularLift (Φ : P × Plane → ℝ) (angular : ℝ) (x : (P × ℝ) × Plane) : ℝ := Φ (x.1.1, x.2) + angular * x.1.2 theorem angularLift_contDiff {Φ : P × Plane → ℝ} (hΦ : ContDiff ℝ ∞ Φ) (angular : ℝ) : ContDiff ℝ ∞ (angularLift Φ angular) := (hΦ.comp (contDiff_fst.fst.prodMk contDiff_snd)).add (contDiff_const.mul contDiff_fst.snd) theorem angularLift_affine (Φ : P × Plane → ℝ) (angular : ℝ) : CopyAngularInvariance.AffinePhase (((0 : P), (1 : ℝ)), (0 : Plane)) angular (angularLift Φ angular) := by rintro ⟨⟨p, θ⟩, Y⟩ t simp only [angularLift, Prod.fst_add, Prod.snd_add, Prod.smul_fst, Prod.smul_snd, smul_zero, add_zero, smul_eq_mul, mul_one] ring omit [NormedSpace ℝ P] in theorem angularLift_germ {Φ Ψ : P × Plane → ℝ} (angular : ℝ) {x : (P × ℝ) × Plane} (hΦ : Φ =ᶠ[𝓝 (x.1.1, x.2)] Ψ) : angularLift Φ angular =ᶠ[𝓝 x] angularLift Ψ angular := by have ht : Tendsto (fun z : (P × ℝ) × Plane => (z.1.1, z.2)) (𝓝 x) (𝓝 (x.1.1, x.2)) := (continuous_fst.fst.prodMk continuous_snd).continuousAt filter_upwards [ht.eventually hΦ] with y hy exact congrArg (fun t => t + angular * y.1.2) hy omit [NormedSpace ℝ P] in theorem fullPhase_germ (g : Geometry) (w : ClockWindow) (hinj : InjOn quotientPoint ((fun z => g.center + g.basis z) '' w.outer)) (A B : P → ℝ) (angular : ℝ) (k : Frequency) {x : (P × ℝ) × Plane} (hx : g.coordinates k x.2 ∈ w.core) : angularLift (phase g w.cutoff A B) angular =ᶠ[𝓝 x] angularLift (nativePhase g A B k) angular := angularLift_germ angular (phase_germ g w hinj A B k hx) theorem fullPhase_jets (g : Geometry) (w : ClockWindow) (hinj : InjOn quotientPoint ((fun z => g.center + g.basis z) '' w.outer)) (A B : P → ℝ) (angular : ℝ) (k : Frequency) {x : (P × ℝ) × Plane} (hx : g.coordinates k x.2 ∈ w.core) (m : ℕ) : iteratedFDeriv ℝ m (angularLift (phase g w.cutoff A B) angular) x = iteratedFDeriv ℝ m (angularLift (nativePhase g A B k) angular) x := PeriodizedWaveBounds.jets_eq_of_germ (fullPhase_germ g w hinj A B angular k hx) m omit [NormedAddCommGroup P] [NormedSpace ℝ P] in theorem fullPhase_periodic (g : Geometry) (χ : Plane → ℝ) (A B : P → ℝ) (angular : ℝ) (p : P) (θ : ℝ) (Y : Plane) (n : Frequency) : angularLift (phase g χ A B) angular ((p, θ), Y + latticePoint n) = angularLift (phase g χ A B) angular ((p, θ), Y) := by simp only [angularLift, phase_periodic] omit [NormedAddCommGroup P] [NormedSpace ℝ P] in theorem carrier_periodic (g : Geometry) (χ : Plane → ℝ) (A B : P → ℝ) (angular K : ℝ) (p : P) (θ : ℝ) (Y : Plane) (n : Frequency) : HarmonicCalculus.carrier K (angularLift (phase g χ A B) angular) ((p, θ), Y + latticePoint n) = HarmonicCalculus.carrier K (angularLift (phase g χ A B) angular) ((p, θ), Y) := by simp only [HarmonicCalculus.carrier, fullPhase_periodic] omit [NormedAddCommGroup P] [NormedSpace ℝ P] in theorem fullMode_periodic (g : Geometry) (χ : Plane → ℝ) (A B : P → ℝ) (angular K : ℝ) (a : (P × ℝ) × Plane → ℂ) (ha : ∀ p θ Y n, a ((p, θ), Y + latticePoint n) = a ((p, θ), Y)) (p : P) (θ : ℝ) (Y : Plane) (n : Frequency) : HarmonicCalculus.mode K (angularLift (phase g χ A B) angular) a ((p, θ), Y + latticePoint n) = HarmonicCalculus.mode K (angularLift (phase g χ A B) angular) a ((p, θ), Y) := by simp only [HarmonicCalculus.mode, ha, carrier_periodic] omit [NormedAddCommGroup P] [NormedSpace ℝ P] in theorem carrier_angularLift_eq_character (Φ : P × Plane → ℝ) {K : ℝ} (hK : K ≠ 0) (m j : ℤ) (x : (P × ℝ) × Plane) : HarmonicCalculus.carrier ((j : ℝ) * K) (angularLift Φ ((m : ℝ) / K)) x = HarmonicFields.character j (K * Φ (x.1.1, x.2) + (m : ℝ) * x.1.2) := by unfold HarmonicCalculus.carrier HarmonicCalculus.phaseFactor angularLift HarmonicFields.character congr 1 push_cast have hKc : (K : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr hK field_simp [hKc] omit [NormedAddCommGroup P] [NormedSpace ℝ P] in /-- The integer angular character is retained by the actual global carrier. -/ theorem carrier_angular_periodic (Φ : P × Plane → ℝ) {K : ℝ} (hK : K ≠ 0) (m j : ℤ) (p : P) (Y : Plane) (θ : ℝ) : HarmonicCalculus.carrier ((j : ℝ) * K) (angularLift Φ ((m : ℝ) / K)) ((p, θ + 2 * Real.pi), Y) = HarmonicCalculus.carrier ((j : ℝ) * K) (angularLift Φ ((m : ℝ) / K)) ((p, θ), Y) := by rw [carrier_angularLift_eq_character Φ hK, carrier_angularLift_eq_character Φ hK] have he : K * Φ (p, Y) + (m : ℝ) * (θ + 2 * Real.pi) = (K * Φ (p, Y) + (m : ℝ) * θ) + (m : ℝ) * HarmonicFields.period := by unfold HarmonicFields.period ring rw [he, HarmonicFields.character_phase_add, HarmonicFields.character_int_mul, HarmonicFields.character_period, mul_one] end Phases /-! ## The manuscript phase in physical slow-coordinate order `(R,(T,Z))` -/ abbrev Parameter := PhysicalParticularWave.Parameter noncomputable def slowSwap (p : Parameter) : PhaseCalculus.Slow := (p.1, (p.2.2, p.2.1)) noncomputable def profileIntercept (ε pz x0 : ℝ) (s : Parameter) : ℝ := (pz / ε) * s.2.2 + x0 * s.1 noncomputable def profileRate (p pz : ℝ) (F G : Parameter → ℝ) (s : Parameter) : ℝ := p * F s + pz * G s noncomputable def profilePhase (g : Geometry) (χ : Plane → ℝ) (ε p pz x0 : ℝ) (F G : Parameter → ℝ) : Parameter × Plane → ℝ := phase g χ (profileIntercept ε pz x0) (profileRate p pz F G) theorem profilePhase_eq_literal (g : Geometry) (χ : Plane → ℝ) (ε p pz x0 : ℝ) (F G : Parameter → ℝ) (x : (Parameter × ℝ) × Plane) : angularLift (profilePhase g χ ε p pz x0 F G) p x = PhaseCalculus.phase ε p pz x0 (fun s => F (s.1, (s.2.2, s.2.1))) (fun s => G (s.1, (s.2.2, s.2.1))) (slowSwap x.1.1, (x.1.2, periodicClock g χ x.2)) := by unfold angularLift profilePhase phase profileIntercept profileRate slowSwap PhaseCalculus.phase ring theorem profilePhase_germ (g : Geometry) (w : ClockWindow) (hinj : InjOn quotientPoint ((fun z => g.center + g.basis z) '' w.outer)) (ε p pz x0 : ℝ) (F G : Parameter → ℝ) (k : Frequency) {x : (Parameter × ℝ) × Plane} (hx : g.coordinates k x.2 ∈ w.core) : angularLift (profilePhase g w.cutoff ε p pz x0 F G) p =ᶠ[𝓝 x] (fun y => PhaseCalculus.phase ε p pz x0 (fun s => F (s.1, (s.2.2, s.2.1))) (fun s => G (s.1, (s.2.2, s.2.1))) (slowSwap y.1.1, (y.1.2, (g.coordinates k y.2).2))) := by have he := fullPhase_germ g w hinj (profileIntercept ε pz x0) (profileRate p pz F G) p k hx filter_upwards [he] with y hy unfold profilePhase rw [hy] unfold angularLift nativePhase profileIntercept profileRate slowSwap PhaseCalculus.phase ring theorem profilePhase_jets (g : Geometry) (w : ClockWindow) (hinj : InjOn quotientPoint ((fun z => g.center + g.basis z) '' w.outer)) (ε p pz x0 : ℝ) (F G : Parameter → ℝ) (k : Frequency) {x : (Parameter × ℝ) × Plane} (hx : g.coordinates k x.2 ∈ w.core) (m : ℕ) : iteratedFDeriv ℝ m (angularLift (profilePhase g w.cutoff ε p pz x0 F G) p) x = iteratedFDeriv ℝ m (fun y => PhaseCalculus.phase ε p pz x0 (fun s => F (s.1, (s.2.2, s.2.1))) (fun s => G (s.1, (s.2.2, s.2.1))) (slowSwap y.1.1, (y.1.2, (g.coordinates k y.2).2))) x := PeriodizedWaveBounds.jets_eq_of_germ (profilePhase_germ g w hinj ε p pz x0 F G k hx) m /-! ## One reference phase under actual clock and common-cover changes -/ theorem periodicClock_scale_transport (g : Geometry) (χ : Plane → ℝ) (d : ℕ) (rate : ℝ) (hrate : rate ≠ 0) (Y : Plane) : rate * periodicClock (CopySolveCompatibility.transportGeometry g d 0 rate hrate) (χ ∘ CopySolveCompatibility.nativeTimeMap 0 rate) Y = periodicClock g χ (coverPower d Y) := by calc _ = periodizeScalar (CopySolveCompatibility.transportGeometry g d 0 rate hrate) (fun z => χ (CopySolveCompatibility.nativeTimeMap 0 rate z) * (0 + rate * z.2)) Y := by unfold periodicClock periodizeScalar rw [← tsum_mul_left] apply tsum_congr intro k simp only [comp_apply, zero_add] ring _ = _ := periodicClock_transport g χ d 0 rate hrate Y section Transport variable {P Q : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedAddCommGroup Q] [NormedSpace ℝ Q] /-- Each target band is a view of one fixed reference phase. -/ noncomputable def transportPhase (Φ : P × Plane → ℝ) (φ : Q → P) (gap : ℕ) (K Kr : ℝ) (z : Q × Plane) : ℝ := (Kr / K) * Φ (φ z.1, coverPower gap z.2) omit [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedAddCommGroup Q] [NormedSpace ℝ Q] in theorem transportPhase_weighted (Φ : P × Plane → ℝ) (φ : Q → P) (gap : ℕ) {K : ℝ} (hK : K ≠ 0) (Kr : ℝ) (z : Q × Plane) : K * transportPhase Φ φ gap K Kr z = Kr * Φ (φ z.1, coverPower gap z.2) := by unfold transportPhase field_simp theorem transportPhase_contDiff {Φ : P × Plane → ℝ} {φ : Q → P} (hΦ : ContDiff ℝ ∞ Φ) (hφ : ContDiff ℝ ∞ φ) (gap : ℕ) (K Kr : ℝ) : ContDiff ℝ ∞ (transportPhase Φ φ gap K Kr) := contDiff_const.mul (hΦ.comp ((hφ.comp contDiff_fst).prodMk ((coverPower gap).contDiff.comp contDiff_snd))) omit [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedAddCommGroup Q] [NormedSpace ℝ Q] in theorem transportPhase_periodic {Φ : P × Plane → ℝ} (hΦ : ∀ p Y k, Φ (p, Y + latticePoint k) = Φ (p, Y)) (φ : Q → P) (gap : ℕ) (K Kr : ℝ) (p : Q) (Y : Plane) (k : Frequency) : transportPhase Φ φ gap K Kr (p, Y + latticePoint k) = transportPhase Φ φ gap K Kr (p, Y) := by simp only [transportPhase, map_add, coverPower_lattice, hΦ] omit [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedAddCommGroup Q] [NormedSpace ℝ Q] in /-- Equality of the constructed fields, including off the native support. -/ theorem transportPhase_eq_refined (g : Geometry) (χ : Plane → ℝ) (A B : P → ℝ) (φ : Q → P) (gap : ℕ) (K Kr : ℝ) : transportPhase (phase g χ A B) φ gap K Kr = phase (CopySolveCompatibility.refineGeometry g gap) χ (fun p => (Kr / K) * A (φ p)) (fun p => (Kr / K) * B (φ p)) := by funext z simp only [transportPhase, phase, periodicClock_refine] ring omit [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedAddCommGroup Q] [NormedSpace ℝ Q] in /-- The actual physical clock rate and its rescaled cutoff give the same global target phase as the weighted reference pullback. -/ theorem transportPhase_eq_scaled_clock (g : Geometry) (χ : Plane → ℝ) (A B : P → ℝ) (φ : Q → P) (gap : ℕ) (K Kr rate : ℝ) (hrate : rate ≠ 0) : transportPhase (phase g χ A B) φ gap K Kr = phase (CopySolveCompatibility.transportGeometry g gap 0 rate hrate) (χ ∘ CopySolveCompatibility.nativeTimeMap 0 rate) (fun p => (Kr / K) * A (φ p)) (fun p => (Kr / K) * rate * B (φ p)) := by funext z simp only [transportPhase, phase] rw [← periodicClock_scale_transport g χ gap rate hrate z.2] ring omit [NormedSpace ℝ P] [NormedSpace ℝ Q] in /-- The full native phase, with its original anchor, agrees as a germ on every transformed cell. Only continuity of the parameter change is needed to transport the germ. -/ theorem transportPhase_native_germ (g : Geometry) (w : ClockWindow) (hinj : InjOn quotientPoint ((fun z => g.center + g.basis z) '' w.outer)) (A B : P → ℝ) (φ : Q → P) (gap : ℕ) (K Kr shift rate : ℝ) (hrate : rate ≠ 0) (copy : Frequency) {z : Q × Plane} (hφ : ContinuousAt φ z.1) (hz : CopySolveCompatibility.nativeTimeMap shift rate ((CopySolveCompatibility.transportGeometry g gap shift rate hrate).coordinates copy z.2) ∈ w.core) : transportPhase (phase g w.cutoff A B) φ gap K Kr =ᶠ[𝓝 z] nativePhase (CopySolveCompatibility.transportGeometry g gap shift rate hrate) (fun p => (Kr / K) * (A (φ p) - shift * B (φ p))) (fun p => (Kr / K) * rate * B (φ p)) copy := by have hcoord (Y : Plane) : CopySolveCompatibility.nativeTimeMap shift rate ((CopySolveCompatibility.transportGeometry g gap shift rate hrate).coordinates copy Y) = g.coordinates copy (coverPower gap Y) := by simp only [CopySolveCompatibility.transportGeometry, CopySolveCompatibility.coordinates_refine, CopySolveCompatibility.coordinates_timeGeometry] rw [hcoord] at hz have he := phase_germ g w hinj A B copy (z := (φ z.1, coverPower gap z.2)) hz have ht : Tendsto (fun y : Q × Plane => (φ y.1, coverPower gap y.2)) (𝓝 z) (𝓝 (φ z.1, coverPower gap z.2)) := (hφ.comp continuousAt_fst).prodMk ((coverPower gap).continuous.continuousAt.comp continuousAt_snd) filter_upwards [ht.eventually he] with y hy change (Kr / K) * phase g w.cutoff A B (φ y.1, coverPower gap y.2) = _ rw [hy] have hc := congrArg Prod.snd (hcoord y.2) simp only [CopySolveCompatibility.nativeTimeMap] at hc simp only [nativePhase] rw [← hc] ring omit [NormedSpace ℝ P] in theorem transportPhase_native_jets (g : Geometry) (w : ClockWindow) (hinj : InjOn quotientPoint ((fun z => g.center + g.basis z) '' w.outer)) (A B : P → ℝ) (φ : Q → P) (gap : ℕ) (K Kr shift rate : ℝ) (hrate : rate ≠ 0) (copy : Frequency) {z : Q × Plane} (hφ : ContinuousAt φ z.1) (hz : CopySolveCompatibility.nativeTimeMap shift rate ((CopySolveCompatibility.transportGeometry g gap shift rate hrate).coordinates copy z.2) ∈ w.core) (m : ℕ) : iteratedFDeriv ℝ m (transportPhase (phase g w.cutoff A B) φ gap K Kr) z = iteratedFDeriv ℝ m (nativePhase (CopySolveCompatibility.transportGeometry g gap shift rate hrate) (fun p => (Kr / K) * (A (φ p) - shift * B (φ p))) (fun p => (Kr / K) * rate * B (φ p)) copy) z := PeriodizedWaveBounds.jets_eq_of_germ (transportPhase_native_germ g w hinj A B φ gap K Kr shift rate hrate copy hφ hz) m omit [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedAddCommGroup Q] [NormedSpace ℝ Q] in theorem transportPhase_angular_weighted (Φ : P × Plane → ℝ) (φ : Q → P) (gap : ℕ) {K Kr : ℝ} (hK : K ≠ 0) (hKr : Kr ≠ 0) (m : ℤ) (x : (Q × ℝ) × Plane) : K * angularLift (transportPhase Φ φ gap K Kr) ((m : ℝ) / K) x = Kr * angularLift Φ ((m : ℝ) / Kr) ((φ x.1.1, x.1.2), coverPower gap x.2) := by unfold angularLift transportPhase field_simp end Transport theorem parameterChange_self {Q : ℝ} (hQ : 0 < Q) (h : ℝ) : PhysicalParticularWave.parameterChange h Q Q = id := by have hr (a : ℝ) : PhysicalParticularWave.ratioPower Q Q a = 1 := div_self (Real.rpow_pos_of_pos hQ a).ne' funext p simp only [PhysicalParticularWave.parameterChange, hr, one_mul, id_eq] /-- A literal harmonic block with one reference phase and one angular integer. Its amplitudes and pressure coefficients are supplied by the existing block; its phase is the constructed common-cover view. -/ noncomputable def physicalBlock (b : CorrectionState.HarmonicBlock (Parameter × Plane)) (h : ℝ) (Q : ℕ → ℝ) (gap : ℕ → ℕ) (reference : ℕ) (angular : ℤ) (g : Geometry) (w : ClockWindow) (A B : Parameter → ℝ) : CorrectionState.HarmonicBlock (Parameter × Plane) := { b with phase := fun n => transportPhase (phase g w.cutoff A B) (PhysicalParticularWave.parameterChange h (Q n) (Q reference)) (gap n) (b.frequency n) (b.frequency reference) angularFrequency := fun _ => angular } theorem physicalBlock_reference (b : CorrectionState.HarmonicBlock (Parameter × Plane)) (h : ℝ) (Q : ℕ → ℝ) (gap : ℕ → ℕ) (reference : ℕ) (angular : ℤ) (g : Geometry) (w : ClockWindow) (A B : Parameter → ℝ) (hQ : 0 < Q reference) (hgap : gap reference = 0) (hK : b.frequency reference ≠ 0) : (physicalBlock b h Q gap reference angular g w A B).phase reference = phase g w.cutoff A B := by funext z simp only [physicalBlock, transportPhase, hgap, parameterChange_self hQ h, id_eq, coverPower, ContinuousLinearEquiv.refl_apply, div_self hK, one_mul] theorem physicalBlock_weighted (b : CorrectionState.HarmonicBlock (Parameter × Plane)) (h : ℝ) (Q : ℕ → ℝ) (gap : ℕ → ℕ) (reference : ℕ) (angular : ℤ) (g : Geometry) (w : ClockWindow) (A B : Parameter → ℝ) (hQ : 0 < Q reference) (hgap : gap reference = 0) (hK : ∀ n, b.frequency n ≠ 0) (n : ℕ) (p : Parameter) (Y : Plane) : (physicalBlock b h Q gap reference angular g w A B).frequency n * (physicalBlock b h Q gap reference angular g w A B).phase n (p, Y) = (physicalBlock b h Q gap reference angular g w A B).frequency reference * (physicalBlock b h Q gap reference angular g w A B).phase reference (PhysicalParticularWave.parameterChange h (Q n) (Q reference) p, coverPower (gap n) Y) := by rw [physicalBlock_reference b h Q gap reference angular g w A B hQ hgap (hK reference)] exact transportPhase_weighted _ _ _ (hK n) _ _ theorem physicalBlock_periodic (b : CorrectionState.HarmonicBlock (Parameter × Plane)) (h : ℝ) (Q : ℕ → ℝ) (gap : ℕ → ℕ) (reference : ℕ) (angular : ℤ) (g : Geometry) (w : ClockWindow) (A B : Parameter → ℝ) (n : ℕ) (p : Parameter) (Y : Plane) (k : Frequency) : (physicalBlock b h Q gap reference angular g w A B).phase n (p, Y + latticePoint k) = (physicalBlock b h Q gap reference angular g w A B).phase n (p, Y) := transportPhase_periodic (phase_periodic g w.cutoff A B) _ _ _ _ _ _ _ theorem physicalBlock_contDiff (b : CorrectionState.HarmonicBlock (Parameter × Plane)) (h : ℝ) (Q : ℕ → ℝ) (gap : ℕ → ℕ) (reference : ℕ) (angular : ℤ) (g : Geometry) (w : ClockWindow) {A B : Parameter → ℝ} (hA : ContDiff ℝ ∞ A) (hB : ContDiff ℝ ∞ B) (n : ℕ) : ContDiff ℝ ∞ ((physicalBlock b h Q gap reference angular g w A B).phase n) := transportPhase_contDiff (phase_contDiff g w hA hB) (PhysicalParticularWave.parameterChange_smooth h (Q n) (Q reference)) _ _ _ /-- The exact PPW clock, with its cutoff transformed by the same rate. -/ theorem physicalBlock_eq_scaled_clock (b : CorrectionState.HarmonicBlock (Parameter × Plane)) (h : ℝ) (Q : ℕ → ℝ) (gap : ℕ → ℕ) (reference : ℕ) (angular : ℤ) (g : Geometry) (w : ClockWindow) (A B : Parameter → ℝ) (n : ℕ) (hQn : 0 < Q n) (hQr : 0 < Q reference) : (physicalBlock b h Q gap reference angular g w A B).phase n = phase (CopySolveCompatibility.transportGeometry g (gap n) 0 (PhysicalParticularWave.clockWeight h (Q n) (Q reference)) (PhysicalParticularWave.ratioPower_pos hQn hQr _).ne') (w.cutoff ∘ CopySolveCompatibility.nativeTimeMap 0 (PhysicalParticularWave.clockWeight h (Q n) (Q reference))) (fun p => (b.frequency reference / b.frequency n) * A (PhysicalParticularWave.parameterChange h (Q n) (Q reference) p)) (fun p => (b.frequency reference / b.frequency n) * PhysicalParticularWave.clockWeight h (Q n) (Q reference) * B (PhysicalParticularWave.parameterChange h (Q n) (Q reference) p)) := transportPhase_eq_scaled_clock g w.cutoff A B _ _ _ _ _ _ /-- Assign the constructed phase family to the literal assembly record. -/ noncomputable def periodicAssembly (D : ParticularWaveAssembly.AssemblyData Parameter) (h : ℝ) (Q : ℕ → ℝ) (gap : ℕ → ℕ) (angular : ℤ) (w : ClockWindow) (A B : Parameter → ℝ) : ParticularWaveAssembly.AssemblyData Parameter := { D with carrierBlock := physicalBlock D.carrierBlock h Q gap D.reference.band angular D.reference.geometry w A B } theorem bandPhase_eq_actualCarrier (D : ParticularWaveAssembly.AssemblyData Parameter) (h : ℝ) (Q : ℕ → ℝ) (gap : ℕ → ℕ) (angular : ℤ) (w : ClockWindow) (A B : Parameter → ℝ) (hQ : 0 < Q D.reference.band) (hgap : gap D.reference.band = 0) (hK : ∀ n, D.carrierBlock.frequency n ≠ 0) (n : ℕ) (j : ℤ) (hj : j ≠ 0) : PhysicalParticularWave.bandPhase (periodicAssembly D h Q gap angular w A B) h (Q n) (Q D.reference.band) (gap n) ((j : ℝ) * D.carrierBlock.frequency n) j = fun x => (ParticularWaveAssembly.actualCarrier D.background (periodicAssembly D h Q gap angular w A B).carrierBlock j).phase n (PhysicalParticularWave.waveEquiv x) := by apply PhysicalParticularWave.bandPhase_eq_actualCarrier (periodicAssembly D h Q gap angular w A B) h (Q n) (Q D.reference.band) (gap n) n j hj hK · exact physicalBlock_weighted D.carrierBlock h Q gap D.reference.band angular D.reference.geometry w A B hQ hgap hK n · rfl /-! ## Native support geometry and direct carrier adapters -/ theorem transportGeometry_affine (g : Geometry) (gap : ℕ) (shift rate : ℝ) (hrate : rate ≠ 0) (z : Plane) : (CopySolveCompatibility.transportGeometry g gap shift rate hrate).center + (CopySolveCompatibility.transportGeometry g gap shift rate hrate).basis z = g.center + g.basis (CopySolveCompatibility.nativeTimeMap shift rate z) := by simp only [CopySolveCompatibility.transportGeometry, CopySolveCompatibility.refineGeometry, CopySolveCompatibility.timeGeometry, CommonCoverClass.scaledBasis_apply, CopySolveCompatibility.nativeTimeMap] rw [show (z.1, shift + rate * z.2) = (0, shift) + (z.1, rate * z.2) by ext <;> simp] rw [map_add] abel theorem transportGeometry_injective (g : Geometry) (gap : ℕ) (shift rate : ℝ) (hrate : rate ≠ 0) {K : Set Plane} (hinj : InjOn quotientPoint ((fun z => g.center + g.basis z) '' K)) : InjOn quotientPoint ((fun z => (CopySolveCompatibility.transportGeometry g gap shift rate hrate).center + (CopySolveCompatibility.transportGeometry g gap shift rate hrate).basis z) '' (CopySolveCompatibility.nativeTimeMap shift rate ⁻¹' K)) := by apply hinj.mono rintro z ⟨x, hx, rfl⟩ exact ⟨CopySolveCompatibility.nativeTimeMap shift rate x, hx, (transportGeometry_affine g gap shift rate hrate x).symm⟩ section AdditionalTransport variable {P Q : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedAddCommGroup Q] [NormedSpace ℝ Q] theorem transportPhase_contDiffOn {Φ : P × Plane → ℝ} {φ : Q → P} {U : Set P} {V : Set Q} (hΦ : ContDiffOn ℝ ∞ Φ (U ×ˢ univ)) (hφ : ContDiffOn ℝ ∞ φ V) (hmap : MapsTo φ V U) (gap : ℕ) (K Kr : ℝ) : ContDiffOn ℝ ∞ (transportPhase Φ φ gap K Kr) (V ×ˢ univ) := contDiffOn_const.mul (hΦ.comp ((hφ.comp contDiffOn_fst (fun _ hx => hx.1)).prodMk ((coverPower gap).contDiff.comp_contDiffOn contDiffOn_snd)) (fun _ hx => ⟨hmap hx.1, mem_univ _⟩)) omit [NormedSpace ℝ P] [NormedSpace ℝ Q] in /-- Exact values on the entire transformed sampling interval, with the original reference anchor `shift + rate*t`. -/ theorem transportPhase_path (g : Geometry) (w : ClockWindow) (hinj : InjOn quotientPoint ((fun z => g.center + g.basis z) '' w.outer)) (A B : P → ℝ) (φ : Q → P) (gap : ℕ) (K Kr shift rate : ℝ) (hrate : rate ≠ 0) (copy : Frequency) (p : Q) (hφ : ContinuousAt φ p) (Y : Plane) (t : ℝ) (htransverse : ((CopySolveCompatibility.transportGeometry g gap shift rate hrate).coordinates copy Y).1 ∈ Icc w.lower.1 w.upper.1) (ht : shift + rate * t ∈ Icc w.lower.2 w.upper.2) : transportPhase (phase g w.cutoff A B) φ gap K Kr (p, (CopySolveCompatibility.transportGeometry g gap shift rate hrate).path copy Y t) = (Kr / K) * (A (φ p) - (shift + rate * t) * B (φ p)) := by let G := CopySolveCompatibility.transportGeometry g gap shift rate hrate have hz : CopySolveCompatibility.nativeTimeMap shift rate (G.coordinates copy (G.path copy Y t)) ∈ w.core := by rw [G.coordinates_path] exact ⟨htransverse, ht⟩ have he := (transportPhase_native_germ g w hinj A B φ gap K Kr shift rate hrate copy (z := (p, G.path copy Y t)) hφ hz).self_of_nhds rw [he] change (Kr / K) * (A (φ p) - shift * B (φ p)) - (G.coordinates copy (G.path copy Y t)).2 * ((Kr / K) * rate * B (φ p)) = _ rw [G.coordinates_path] ring end AdditionalTransport section CarrierAdapters variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] /-- Periodicity of all joint derivative tensors follows from the proved function identity under the constant lattice translation. -/ theorem latticePeriodic_jets {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] {f : P × Plane → E} (hf : ∀ p Y k, f (p, Y + latticePoint k) = f (p, Y)) (m : ℕ) (p : P) (Y : Plane) (k : Frequency) : iteratedFDeriv ℝ m f (p, Y + latticePoint k) = iteratedFDeriv ℝ m f (p, Y) := by have hshift (z : P × Plane) : z + ((0 : P), latticePoint k) = (z.1, z.2 + latticePoint k) := by ext <;> simp have he : (fun z : P × Plane => f (z + ((0 : P), latticePoint k))) = f := by funext z rw [hshift] exact hf z.1 z.2 k have ht := iteratedFDeriv_comp_add_right (𝕜 := ℝ) (f := f) m ((0 : P), latticePoint k) (p, Y) rw [he, hshift] at ht exact ht.symm omit [NormedSpace ℝ P] in theorem carrier_germ {Φ Ψ : P → ℝ} {x : P} (hΦ : Φ =ᶠ[𝓝 x] Ψ) (K : ℝ) : HarmonicCalculus.carrier K Φ =ᶠ[𝓝 x] HarmonicCalculus.carrier K Ψ := by filter_upwards [hΦ] with y hy simp only [HarmonicCalculus.carrier, hy] omit [NormedSpace ℝ P] in theorem fullMode_germ {Φ Ψ : P → ℝ} {x : P} (hΦ : Φ =ᶠ[𝓝 x] Ψ) (K : ℝ) (a : P → ℂ) : HarmonicCalculus.mode K Φ a =ᶠ[𝓝 x] HarmonicCalculus.mode K Ψ a := by filter_upwards [carrier_germ hΦ K] with y hy exact congrArg (fun z => a y * z) hy theorem carrier_jets_of_phase_germ {Φ Ψ : P → ℝ} {x : P} (hΦ : Φ =ᶠ[𝓝 x] Ψ) (K : ℝ) (m : ℕ) : iteratedFDeriv ℝ m (HarmonicCalculus.carrier K Φ) x = iteratedFDeriv ℝ m (HarmonicCalculus.carrier K Ψ) x := PeriodizedWaveBounds.jets_eq_of_germ (carrier_germ hΦ K) m theorem fullMode_jets_of_phase_germ {Φ Ψ : P → ℝ} {x : P} (hΦ : Φ =ᶠ[𝓝 x] Ψ) (K : ℝ) (a : P → ℂ) (m : ℕ) : iteratedFDeriv ℝ m (HarmonicCalculus.mode K Φ a) x = iteratedFDeriv ℝ m (HarmonicCalculus.mode K Ψ a) x := PeriodizedWaveBounds.jets_eq_of_germ (fullMode_germ hΦ K a) m omit [NormedSpace ℝ P] in theorem actualCarrier_phase_germ (base : LinearWaveBounds.WaveCoefficients ((P × ℝ) × Plane)) (b : CorrectionState.HarmonicBlock (P × Plane)) (j : ℤ) (n : ℕ) {Φ : P × Plane → ℝ} {x : (P × ℝ) × Plane} (hΦ : b.phase n =ᶠ[𝓝 (x.1.1, x.2)] Φ) : (ParticularWaveAssembly.actualCarrier base b j).phase n =ᶠ[𝓝 x] angularLift Φ ((b.angularFrequency n : ℝ) / b.frequency n) := angularLift_germ _ hΦ omit [NormedAddCommGroup P] [NormedSpace ℝ P] in theorem actualCarrier_periodic (base : LinearWaveBounds.WaveCoefficients ((P × ℝ) × Plane)) (b : CorrectionState.HarmonicBlock (P × Plane)) (j : ℤ) (n : ℕ) (hΦ : ∀ p Y k, b.phase n (p, Y + latticePoint k) = b.phase n (p, Y)) (p : P) (θ : ℝ) (Y : Plane) (k : Frequency) : (ParticularWaveAssembly.actualCarrier base b j).phase n ((p, θ), Y + latticePoint k) = (ParticularWaveAssembly.actualCarrier base b j).phase n ((p, θ), Y) ∧ HarmonicCalculus.carrier ((ParticularWaveAssembly.actualCarrier base b j).frequency n) ((ParticularWaveAssembly.actualCarrier base b j).phase n) ((p, θ), Y + latticePoint k) = HarmonicCalculus.carrier ((ParticularWaveAssembly.actualCarrier base b j).frequency n) ((ParticularWaveAssembly.actualCarrier base b j).phase n) ((p, θ), Y) := by have he : (ParticularWaveAssembly.actualCarrier base b j).phase n ((p, θ), Y + latticePoint k) = (ParticularWaveAssembly.actualCarrier base b j).phase n ((p, θ), Y) := by simp only [ParticularWaveAssembly.actualCarrier, hΦ] exact ⟨he, by simp only [HarmonicCalculus.carrier, he]⟩ omit [NormedAddCommGroup P] [NormedSpace ℝ P] in theorem actualCarrier_angular_periodic (base : LinearWaveBounds.WaveCoefficients ((P × ℝ) × Plane)) (b : CorrectionState.HarmonicBlock (P × Plane)) (j : ℤ) (n : ℕ) (hK : b.frequency n ≠ 0) (p : P) (θ : ℝ) (Y : Plane) : HarmonicCalculus.carrier ((ParticularWaveAssembly.actualCarrier base b j).frequency n) ((ParticularWaveAssembly.actualCarrier base b j).phase n) ((p, θ + 2 * Real.pi), Y) = HarmonicCalculus.carrier ((ParticularWaveAssembly.actualCarrier base b j).frequency n) ((ParticularWaveAssembly.actualCarrier base b j).phase n) ((p, θ), Y) := carrier_angular_periodic (b.phase n) hK (b.angularFrequency n) j p Y θ end CarrierAdapters theorem physicalBlock_native_germ (b : CorrectionState.HarmonicBlock (Parameter × Plane)) (h : ℝ) (Q : ℕ → ℝ) (gap : ℕ → ℕ) (reference : ℕ) (angular : ℤ) (g : Geometry) (w : ClockWindow) (A B : Parameter → ℝ) (hinj : InjOn quotientPoint ((fun z => g.center + g.basis z) '' w.outer)) (n : ℕ) (shift rate : ℝ) (hrate : rate ≠ 0) (copy : Frequency) {z : Parameter × Plane} (hz : CopySolveCompatibility.nativeTimeMap shift rate ((CopySolveCompatibility.transportGeometry g (gap n) shift rate hrate).coordinates copy z.2) ∈ w.core) : (physicalBlock b h Q gap reference angular g w A B).phase n =ᶠ[𝓝 z] nativePhase (CopySolveCompatibility.transportGeometry g (gap n) shift rate hrate) (fun p => (b.frequency reference / b.frequency n) * (A (PhysicalParticularWave.parameterChange h (Q n) (Q reference) p) - shift * B (PhysicalParticularWave.parameterChange h (Q n) (Q reference) p))) (fun p => (b.frequency reference / b.frequency n) * rate * B (PhysicalParticularWave.parameterChange h (Q n) (Q reference) p)) copy := transportPhase_native_germ g w hinj A B _ _ _ _ shift rate hrate copy (PhysicalParticularWave.parameterChange_smooth h (Q n) (Q reference)).continuous.continuousAt hz /-- Exact naturality of the complete carrier, including its unchanged integer angular character, on the free lift. -/ theorem physicalBlock_carrier_natural (base : LinearWaveBounds.WaveCoefficients ((Parameter × ℝ) × Plane)) (b : CorrectionState.HarmonicBlock (Parameter × Plane)) (h : ℝ) (Q : ℕ → ℝ) (gap : ℕ → ℕ) (reference : ℕ) (angular : ℤ) (g : Geometry) (w : ClockWindow) (A B : Parameter → ℝ) (hQ : 0 < Q reference) (hgap : gap reference = 0) (hK : ∀ n, b.frequency n ≠ 0) (j : ℤ) (n : ℕ) (p : Parameter) (θ : ℝ) (Y : Plane) : HarmonicCalculus.carrier ((j : ℝ) * b.frequency n) ((ParticularWaveAssembly.actualCarrier base (physicalBlock b h Q gap reference angular g w A B) j).phase n) ((p, θ), Y) = HarmonicCalculus.carrier ((j : ℝ) * b.frequency reference) ((ParticularWaveAssembly.actualCarrier base (physicalBlock b h Q gap reference angular g w A B) j).phase reference) ((PhysicalParticularWave.parameterChange h (Q n) (Q reference) p, θ), coverPower (gap n) Y) := by let Bp := physicalBlock b h Q gap reference angular g w A B change HarmonicCalculus.carrier ((j : ℝ) * b.frequency n) (angularLift (Bp.phase n) ((angular : ℝ) / b.frequency n)) ((p, θ), Y) = HarmonicCalculus.carrier ((j : ℝ) * b.frequency reference) (angularLift (Bp.phase reference) ((angular : ℝ) / b.frequency reference)) ((PhysicalParticularWave.parameterChange h (Q n) (Q reference) p, θ), coverPower (gap n) Y) rw [carrier_angularLift_eq_character _ (hK n), carrier_angularLift_eq_character _ (hK reference)] congr 1 exact congrArg (fun x => x + (angular : ℝ) * θ) (physicalBlock_weighted b h Q gap reference angular g w A B hQ hgap hK n p Y) end NavierStokes.PeriodicPhaseAssembly