import NavierStokes.CorrectionStep import NavierStokes.WaveEdgeExtension /-! # Qualitative regularity of the actual finite wave updates All regularity statements below use the full open slow domain. The quantitative strip is used only for its fixed differential operators. Native smoothness and genuine zero germs, rather than estimates on a smaller strip, supply the continuation away from the active phase patches. -/ noncomputable section namespace NavierStokes.ActualWaveRegularity open Set Function Filter WeightedClasses HarmonicCalculus LinearWaveBounds open PeriodizedWaveBounds CorrectionState open CurlClassBounds hiding ComplexVector open scoped Topology ContDiff BigOperators variable {D I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] /-- A qualitative domain for the same operators. No quantitative bound is extended from the original strip. -/ noncomputable def onDomain (s : StripData D) (Ω : Set D) (hΩ : IsOpen Ω) : StripData D where domain := Ω isOpen_domain := hΩ epsilon := s.epsilon epsilon_pos := s.epsilon_pos epsilon_le_one := s.epsilon_le_one slow := s.slow one_le_slow := s.one_le_slow delta := fun _ => 1 delta_pos := fun _ _ => zero_lt_one zeta := fun _ => 0 zeta_smooth := contDiffOn_const zeta_nonneg := fun _ _ => le_rfl /-- These are native, uncorrected data. In particular the smoothness of the common corrected velocity is a conclusion, not a field of this record. -/ structure NativeData (a : CopyData D I) (s : StripData D) (d : GraphDirections D) (Ω : Set D) (hΩ : IsOpen Ω) where cells : Cells D I patch : ℕ → I → Set D raw : LocalizedCurlRealization.RawData a (onDomain s Ω hΩ) d patch cutoff_support : ∀ n i, support (a.cutoff n i) ⊆ cells.carrier n i cover : ∀ n i x, x ∈ Ω → x ∈ cells.carrier n i → x ∈ patch n i ∨ (a.localized i).amplitude n =ᶠ[𝓝 x] fun _ => 0 namespace NativeData variable {a : CopyData D I} {s : StripData D} {d : GraphDirections D} {Ω : Set D} {hΩ : IsOpen Ω} (h : NativeData a s d Ω hΩ) include h theorem common_velocity_smooth (n : ℕ) : ContDiffOn ℝ ∞ (vectorMode (a.background.frequency n) (a.background.phase n) ((a.commonCorrected s d).amplitude n)) Ω := LocalizedCurlRealization.RawData.common_velocity_smooth h.raw h.cells h.cutoff_support h.cover n /-- Locally finite native zero germs give a zero germ for the common corrected amplitude, even if the phase or normal is singular at this point. -/ theorem common_zero_germ {n : ℕ} {x : D} (hz : ∀ i, x ∈ h.cells.carrier n i → (a.localized i).amplitude n =ᶠ[𝓝 x] fun _ => 0) : (a.commonCorrected s d).amplitude n =ᶠ[𝓝 x] fun _ => 0 := by classical by_cases hi : ∃ i, x ∈ h.cells.carrier n i · obtain ⟨i, hi⟩ := hi exact (a.commonCorrected_amplitude_germ h.cells h.cutoff_support s d n hi).trans (LocalizedCurlRealization.native_zero_germs a s d (hz i hi)).2.1 · exact a.commonCorrected_zero_germ h.cells h.cutoff_support s d (not_exists.mp hi) theorem common_velocity_zero_germ {n : ℕ} {x : D} (hz : ∀ i, x ∈ h.cells.carrier n i → (a.localized i).amplitude n =ᶠ[𝓝 x] fun _ => 0) : vectorMode (a.background.frequency n) (a.background.phase n) ((a.commonCorrected s d).amplitude n) =ᶠ[𝓝 x] fun _ => 0 := by filter_upwards [h.common_zero_germ hz] with y hy ext j simp only [vectorMode, mode, hy, Pi.zero_apply, zero_mul] end NativeData /-! ## Discrete translations on an open domain Unlike global translation identities, these statements only require the actual fields on the physical slow domain. Derivatives are genuine Fréchet derivatives, transferred through an open neighborhood. -/ noncomputable def TranslationOn {E : Type} (Ω : Set D) (z : D) (f : D → E) : Prop := ∀ x ∈ Ω, f (x + z) = f x namespace TranslationOn variable {E F G : Type} {Ω : Set D} {z : D} {f : D → E} {g : D → F} omit [NormedSpace ℝ D] in theorem const (c : E) : TranslationOn Ω z (fun _ : D => c) := fun _ _ => rfl omit [NormedSpace ℝ D] in theorem map (hf : TranslationOn Ω z f) (T : E → F) : TranslationOn Ω z (fun x => T (f x)) := fun x hx => congrArg T (hf x hx) omit [NormedSpace ℝ D] in theorem map₂ (hf : TranslationOn Ω z f) (hg : TranslationOn Ω z g) (T : E → F → G) : TranslationOn Ω z (fun x => T (f x) (g x)) := fun x hx => congrArg₂ T (hf x hx) (hg x hx) omit [NormedSpace ℝ D] in theorem component {ι : Type} {F : ι → Type} {f : D → ∀ i, F i} (hf : TranslationOn Ω z f) (i : ι) : TranslationOn Ω z (fun x => f x i) := hf.map (fun v => v i) variable [NormedAddCommGroup E] [NormedSpace ℝ E] theorem fderiv (hf : TranslationOn Ω z f) (hΩ : IsOpen Ω) : TranslationOn Ω z (fderiv ℝ f) := by intro x hx have he : (fun y => f (y + z)) =ᶠ[𝓝 x] f := by filter_upwards [hΩ.mem_nhds hx] with y hy exact hf y hy simpa only [fderiv_comp_add_right] using he.fderiv_eq (𝕜 := ℝ) theorem along {V : D → D} (hf : TranslationOn Ω z f) (hV : TranslationOn Ω z V) (hΩ : IsOpen Ω) : TranslationOn Ω z (HarmonicCalculus.along V f) := by intro x hx simp only [HarmonicCalculus.along, hf.fderiv hΩ x hx, hV x hx] end TranslationOn theorem phaseNormal_translation {Ω : Set D} {z : D} (hΩ : IsOpen Ω) {R Φ : D → ℝ} {Vr Vθ Vz : D → D} (hR : TranslationOn Ω z R) (hr : TranslationOn Ω z Vr) (hθ : TranslationOn Ω z Vθ) (hz : TranslationOn Ω z Vz) (hΦ : TranslationOn Ω z Φ) : TranslationOn Ω z (phaseNormal R Vr Vθ Vz Φ) := by intro x hx simp only [phaseNormal, hΦ.along hr hΩ x hx, hΦ.along hθ hΩ x hx, hΦ.along hz hΩ x hx, hR x hx] theorem cylindricalCurl_translation {Ω : Set D} {z : D} (hΩ : IsOpen Ω) {R : D → ℝ} {Vr Vθ Vz : D → D} {a : D → ComplexVector} (hR : TranslationOn Ω z R) (hr : TranslationOn Ω z Vr) (hθ : TranslationOn Ω z Vθ) (hz : TranslationOn Ω z Vz) (ha : TranslationOn Ω z a) : TranslationOn Ω z (cylindricalCurl R Vr Vθ Vz a) := by intro x hx simp only [cylindricalCurl, hR x hx, (ha.component 2).along hθ hΩ x hx, (ha.component 1).along hz hΩ x hx, (ha.component 0).along hz hΩ x hx, (ha.component 2).along hr hΩ x hx, (ha.component 1).along hr hΩ x hx, (ha.component 0).along hθ hΩ x hx, ha x hx] omit [NormedSpace ℝ D] in theorem common_amplitude_translation (a : CopyData D I) {Ω : Set D} {z : D} (n : ℕ) (e : I ≃ I) (hψ : ∀ i x, x ∈ Ω → a.cutoff n (e i) (x + z) = a.cutoff n i x) (ha : ∀ i x, x ∈ Ω → a.amplitude n (e i) (x + z) = a.amplitude n i x) : TranslationOn Ω z (a.common.amplitude n) := by intro x hx change (∑' i, a.cutoff n i (x + z) • a.amplitude n i (x + z)) = ∑' i, a.cutoff n i x • a.amplitude n i x rw [← e.tsum_eq] apply tsum_congr intro i rw [hψ i x hx, ha i x hx] theorem commonCorrected_translation (a : CopyData D I) (s : StripData D) (d : GraphDirections D) {Ω : Set D} {z : D} (hΩ : IsOpen Ω) (n : ℕ) (hR : TranslationOn Ω z (a.background.radius n)) (hr : TranslationOn Ω z (d.radialField n)) (hΦ : TranslationOn Ω z (a.background.phase n)) (ha : TranslationOn Ω z (a.common.amplitude n)) : TranslationOn Ω z ((a.commonCorrected s d).amplitude n) := by have hn := phaseNormal_translation hΩ hR hr (TranslationOn.const d.angular) (TranslationOn.const (s.epsilon n • d.axial)) hΦ have hB := hn.map₂ ha normalCoefficient have hc := cylindricalCurl_translation hΩ hR hr (TranslationOn.const d.angular) (TranslationOn.const (s.epsilon n • d.axial)) hB exact ha.map₂ (hc.map (fun v => (1 / a.background.frequency n) • (Complex.I • v))) (fun u v => u + v) theorem common_velocity_translation (a : CopyData D I) (s : StripData D) (d : GraphDirections D) {Ω : Set D} {z : D} (hΩ : IsOpen Ω) (n : ℕ) (hR : TranslationOn Ω z (a.background.radius n)) (hr : TranslationOn Ω z (d.radialField n)) (hΦ : TranslationOn Ω z (a.background.phase n)) (ha : TranslationOn Ω z (a.common.amplitude n)) : TranslationOn Ω z (vectorMode (a.background.frequency n) (a.background.phase n) ((a.commonCorrected s d).amplitude n)) := by intro x hx have hv := commonCorrected_translation a s d hΩ n hR hr hΦ ha x hx ext i simp only [vectorMode, mode, carrier, hΦ x hx, hv] /-! ## Qualitative regularity of the literal native solves -/ section Modal open CommonCoverSolve TorusInverse ParticularWaveBounds open PrimaryCopyBridge hiding Plane Frequency open PrimaryPulseBounds variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] /-- Primitive smooth coefficient, forcing, and synthesis columns on a neighborhood of each entire Volterra path. No solved field occurs here. -/ structure ModalSmooth (t : ℕ → TangentData P ProblemStatement.Space) (harmonic : ℤ) (g : ℕ → Geometry) (L : ℕ → ℝ) (Ω : Set (P × Plane)) (C : ℕ → Frequency → Set (P × Plane)) where frame : ℕ → PrimaryODE.FrameData (P × ℝ) neighborhood : ℕ → Frequency → Set (P × Plane) open_neighborhood : ∀ n k, IsOpen (neighborhood n k) contains : ∀ n k, Ω ∩ C n k ⊆ neighborhood n k interval : ℕ → Set ℝ open_interval : ∀ n, IsOpen (interval n) contains_interval : ∀ n, Icc 0 (L n) ⊆ interval n bridge : ∀ n k, Inputs (frame n) (t n) harmonic (g n) k (neighborhood n k) 0 (L n) coefficient : ∀ n k, ContDiffOn ℝ ∞ ((copyFrame (frame n) (g n) k).coefficient harmonic) (neighborhood n k ×ˢ interval n) forcing : ∀ n k, ContDiffOn ℝ ∞ ((copyFrame (frame n) (g n) k).forcing (copySource (t n).source (g n) k)) (neighborhood n k ×ˢ interval n) columns : ∀ n k (i : Fin 2), ContDiffOn ℝ ∞ (synthesisColumn (copyFrame (frame n) (g n) k) i) (neighborhood n k ×ˢ interval n) current_slot : ∀ n k x, x ∈ neighborhood n k → ((g n).coordinates k x.2).2 ∈ Ioo 0 (L n) end Modal /-! ## One actual mode on the full physical slow domain -/ abbrev Point := CorrectionStep.CyclePoint abbrev Cylinder := Point × ℝ noncomputable def fullDomain {coord : ℝ} (U : LocalSignedRequest.SlowRegion coord) : Set Cylinder := HarmonicResidual.liftDomain (PhysicalMeanDomain.slowDomain U.carrier) theorem fullDomain_open {coord : ℝ} (U : LocalSignedRequest.SlowRegion coord) : IsOpen (fullDomain U) := (PhysicalMeanDomain.slowDomain_open U.isOpen).prod isOpen_univ noncomputable def nativeDomain {coord : ℝ} (e : Cylinder ≃ₗᵢ[ℝ] D) (U : LocalSignedRequest.SlowRegion coord) : Set D := e.symm ⁻¹' fullDomain U theorem nativeDomain_open {coord : ℝ} (e : Cylinder ≃ₗᵢ[ℝ] D) (U : LocalSignedRequest.SlowRegion coord) : IsOpen (nativeDomain e U) := (fullDomain_open U).preimage e.symm.continuous noncomputable def deckShift (k : TorusInverse.Frequency) : Cylinder := ((0, (0, ((k.1 : ℝ), (k.2 : ℝ)))), 0) noncomputable def modeOscillation (a : CopyData D I) (s : StripData D) (d : GraphDirections D) (e : Cylinder ≃ₗᵢ[ℝ] D) : Oscillation Point := fun n x i => (vectorMode (a.background.frequency n) (a.background.phase n) ((a.commonCorrected s d).amplitude n) (e x) i).re /-- Primitive continuation and deck identities for one mode. All spatial smoothness is confined to the genuine native patches. Radial support is proved using localized raw-amplitude zero germs. -/ structure ModeData (a : CopyData D I) (s : StripData D) (d : GraphDirections D) (e : Cylinder ≃ₗᵢ[ℝ] D) {coord : ℝ} (U : LocalSignedRequest.SlowRegion coord) (r₀ r₁ : ℝ) where native : NativeData a s d (nativeDomain e U) (nativeDomain_open e U) reindex : ℕ → TorusInverse.Frequency → I ≃ I cutoff_deck : ∀ n k i x, x ∈ nativeDomain e U → a.cutoff n (reindex n k i) (x + e (deckShift k)) = a.cutoff n i x amplitude_deck : ∀ n k i x, x ∈ nativeDomain e U → a.amplitude n (reindex n k i) (x + e (deckShift k)) = a.amplitude n i x radius_deck : ∀ n k, TranslationOn (nativeDomain e U) (e (deckShift k)) (a.background.radius n) radial_deck : ∀ n k, TranslationOn (nativeDomain e U) (e (deckShift k)) (d.radialField n) phase_deck : ∀ n k, TranslationOn (nativeDomain e U) (e (deckShift k)) (a.background.phase n) radial_zero : ∀ n (x : Cylinder), x.1.2.1 ∈ U.carrier → x.1.1 ∉ Icc (VariableGaugeMean.qLength coord x.1.2.1 * r₀) (VariableGaugeMean.qLength coord x.1.2.1 * r₁) → ∀ i, e x ∈ native.cells.carrier n i → (a.localized i).amplitude n =ᶠ[𝓝 (e x)] fun _ => 0 namespace ModeData variable {a : CopyData D I} {s : StripData D} {d : GraphDirections D} {e : Cylinder ≃ₗᵢ[ℝ] D} {coord r₀ r₁ : ℝ} {U : LocalSignedRequest.SlowRegion coord} (h : ModeData a s d e U r₀ r₁) include h theorem smooth : WaveStateRegularity.AngularSmooth (PhysicalMeanDomain.slowDomain U.carrier) (modeOscillation a s d e) := by intro n i have hs := (h.native.common_velocity_smooth n).comp e.contDiff.contDiffOn (show MapsTo e (fullDomain U) (nativeDomain e U) from fun x hx => by simpa only [nativeDomain, mem_preimage, e.symm_apply_apply] using hx) exact Complex.reCLM.contDiff.comp_contDiffOn ((ContinuousLinearMap.proj i : ComplexVector →L[ℝ] ℂ).contDiff.comp_contDiffOn hs) theorem periodic : CorrectionStep.OscillationPeriodic U.carrier (modeOscillation a s d e) := by intro n R t ht θ Y k have hx : e ((R, (t, Y)), θ) ∈ nativeDomain e U := by simpa only [nativeDomain, mem_preimage, e.symm_apply_apply, fullDomain, HarmonicResidual.liftDomain, mem_prod, mem_univ, and_true, PhysicalMeanDomain.slowDomain, Set.mem_ofPred_eq] using ht have hp := common_velocity_translation a s d (nativeDomain_open e U) n (h.radius_deck n k) (h.radial_deck n k) (h.phase_deck n k) (common_amplitude_translation a n (h.reindex n k) (h.cutoff_deck n k) (h.amplitude_deck n k)) (e ((R, (t, Y)), θ)) hx have he : e ((R, (t, Y + ((k.1 : ℝ), (k.2 : ℝ)))), θ) = e ((R, (t, Y)), θ) + e (deckShift k) := by rw [← map_add] congr 1 simp only [deckShift, Prod.add_def, add_zero] funext i change (vectorMode _ _ _ (e ((R, (t, Y + ((k.1 : ℝ), (k.2 : ℝ)))), θ)) i).re = _ rw [he, hp] rfl theorem support : WaveStateRegularity.WaveSupport U r₀ r₁ (modeOscillation a s d e) := by intro n θ i x hx hn by_contra hout have hz := (h.native.common_velocity_zero_germ (h.radial_zero n (x, θ) hx hout)).self_of_nhds apply hn change (vectorMode _ _ _ (e (x, θ)) i).re = 0 rw [hz] rfl end ModeData /-! ## Finite sums retain the whole-domain conclusions -/ theorem finite_smooth {ι : Type} {Ω : Set Point} (labels : ℕ → Finset ι) (u : ι → Oscillation Point) (hs : ∀ l, WaveStateRegularity.AngularSmooth Ω (u l)) : WaveStateRegularity.AngularSmooth Ω (LabelSumBounds.fieldSum labels u) := by intro n i exact ContDiffOn.sum (fun l _ => hs l n i) theorem finite_periodic {ι : Type} {U : Set TorusInverse.Plane} (labels : ℕ → Finset ι) (u : ι → Oscillation Point) (hp : ∀ l, CorrectionStep.OscillationPeriodic U (u l)) : CorrectionStep.OscillationPeriodic U (LabelSumBounds.fieldSum labels u) := by intro n R t ht θ Y k funext i apply Finset.sum_congr rfl intro l _ exact congrFun (hp l n R t ht θ Y k) i theorem finite_support {ι : Type} {coord r₀ r₁ : ℝ} {U : LocalSignedRequest.SlowRegion coord} (labels : ℕ → Finset ι) (u : ι → Oscillation Point) (hs : ∀ l, WaveStateRegularity.WaveSupport U r₀ r₁ (u l)) : WaveStateRegularity.WaveSupport U r₀ r₁ (LabelSumBounds.fieldSum labels u) := WaveStateRegularity.fieldSum_support (fun n l _ θ i => hs l n θ i) theorem finset_regular {ι : Type} {coord r₀ r₁ : ℝ} {U : LocalSignedRequest.SlowRegion coord} (t : Finset ι) (u : ι → Oscillation Point) (h : ∀ l ∈ t, WaveStateRegularity.AngularSmooth (PhysicalMeanDomain.slowDomain U.carrier) (u l) ∧ CorrectionStep.OscillationPeriodic U.carrier (u l) ∧ WaveStateRegularity.WaveSupport U r₀ r₁ (u l)) : WaveStateRegularity.AngularSmooth (PhysicalMeanDomain.slowDomain U.carrier) (LabelSumBounds.fieldSum (fun _ => t) u) ∧ CorrectionStep.OscillationPeriodic U.carrier (LabelSumBounds.fieldSum (fun _ => t) u) ∧ WaveStateRegularity.WaveSupport U r₀ r₁ (LabelSumBounds.fieldSum (fun _ => t) u) := by refine ⟨?_, ?_, ?_⟩ · intro n i exact ContDiffOn.sum (fun l hl => (h l hl).1 n i) · intro n R q hq θ Y k funext i exact Finset.sum_congr rfl (fun l hl => congrFun ((h l hl).2.1 n R q hq θ Y k) i) · exact WaveStateRegularity.fieldSum_support (fun n l hl θ i => (h l hl).2.2 n θ i) /-! ## The literal particular update of the cycle -/ section ParticularCycle open CorrectionStep ParticularWaveAssembly ParticularWaveBounds CopyAngularInvariance abbrev ParticularSpace := (CycleSlow × ℝ) × TorusInverse.Plane noncomputable def particularChart : Cylinder ≃ₗᵢ[ℝ] ParticularSpace := (StateReindex.cylinder cycleAssoc).trans angleShuffle noncomputable def particularStrip {ι : Type} (p : CycleParameters ι) : StripData ParticularSpace := ParticularParameters.nativeStrip (reindexStrip cycleAssoc.symm p.strip) noncomputable def particularCopyData {ι : Type} (p : CycleParameters ι) (v : CycleCoefficients ι) (c : Context Point) (u : State Point) (l : ι) (j : ℤ) : CopyData ParticularSpace TorusInverse.Frequency := (p.particular l).copyData (StateReindex.context cycleAssoc.symm c) (StateReindex.state cycleAssoc.symm u) (StateReindex.block cycleAssoc.symm (v.blocks l)) (StateReindex.blockCoefficients cycleAssoc.symm (v.gaussian l)) (StateReindex.blockCoefficients cycleAssoc.symm (v.aliasCoefficients l)) j /-- This representation is derived from the actual angle-lifted Volterra solve and the original carrier. No equality of completed output fields is an assumption. -/ theorem particularBlock_eq_modes {ι : Type} (p : CycleParameters ι) (v : CycleCoefficients ι) (c : Context Point) (u : State Point) (l : ι) (hR : ∀ n, Invariant (((0 : CycleSlow), 1), (0 : TorusInverse.Plane)) ((p.particular l).background.radius n)) (hr : ∀ n, Invariant (((0 : CycleSlow), 1), (0 : TorusInverse.Plane)) ((p.particular l).directions.radialField n)) (hf : ∀ n, (v.blocks l).frequency n ≠ 0) : (p.particularBlock v c u l).oscillation = LabelSumBounds.fieldSum (fun _ => modes v.residualBand) (fun j => modeOscillation (particularCopyData p v c u l j) (particularStrip p) (p.particular l).directions particularChart) := by have ha (j : ℤ) (n : ℕ) : Invariant (((0 : CycleSlow), 1), (0 : TorusInverse.Plane)) (((particularCopyData p v c u l j).commonCorrected (particularStrip p) (p.particular l).directions).amplitude n) := by apply CopyData.commonCorrected_invariant · intro m k exact nativeCutoff_invariant ((0 : CycleSlow), (1 : ℝ)) _ _ k · intro m k exact complexCopyVelocity_invariant (angleTangent_invariant _) (angleLift_invariant _) _ ((p.particular l).length_pos m).le k · exact hR · exact hr · intro m exact Invariant.const _ · intro m exact ⟨_, actualCarrier_affine _ _ j m⟩ funext n x i unfold CycleParameters.particularBlock rw [StateReindex.block_oscillation] change ((p.particular l).updateBlock _ _ _ _ _ _ _).oscillation n (cycleAssoc x.1, x.2) i = _ rw [ParticularParameters.updateBlock, assembledBlock_value] apply Finset.sum_congr rfl intro j _hj have hi := invariant_angleShuffle (ha j n) (cycleAssoc x.1) x.2 have hc := actualCarrier_character (p.particular l).background (StateReindex.block cycleAssoc.symm (v.blocks l)) j hf n (cycleAssoc x.1, x.2) change Complex.re (_ * _) = Complex.re ((((particularCopyData p v c u l j).commonCorrected (particularStrip p) (p.particular l).directions).amplitude n (angleShuffle (cycleAssoc x.1, x.2)) i) * carrier ((actualCarrier (p.particular l).background (StateReindex.block cycleAssoc.symm (v.blocks l)) j).frequency n) ((actualCarrier (p.particular l).background (StateReindex.block cycleAssoc.symm (v.blocks l)) j).phase n) (angleShuffle (cycleAssoc x.1, x.2))) rw [hc, hi] rfl /-- Full-domain native inputs for the same particular copies and the same incoming residual data used by `CycleParameters.particularBlock`. -/ structure ParticularData {ι : Type} (p : CycleParameters ι) (v : CycleCoefficients ι) (c : Context Point) (u : State Point) {coord : ℝ} (U : LocalSignedRequest.SlowRegion coord) (r₀ r₁ : ℝ) where mode : ∀ l j, j ∈ modes v.residualBand → ModeData (particularCopyData p v c u l j) (particularStrip p) (p.particular l).directions particularChart U r₀ r₁ radius_angular : ∀ l n, Invariant (((0 : CycleSlow), 1), (0 : TorusInverse.Plane)) ((p.particular l).background.radius n) radial_angular : ∀ l n, Invariant (((0 : CycleSlow), 1), (0 : TorusInverse.Plane)) ((p.particular l).directions.radialField n) frequency : ∀ l n, (v.blocks l).frequency n ≠ 0 end ParticularCycle /-! ## The literal signed update, using the post-particular request -/ section SignedCycle open CorrectionStep CopyAngularInvariance /-- The native signed coefficient inherits a deck identity from the literal matrix, targets, mask, and homogeneous fundamental. -/ theorem signed_amplitude_deck (p : PeriodizedSignedParameters Point I) (s : StripData Point) (request : ℕ → Cylinder → SignedWaveUpdate.Vec2) (n : ℕ) (i j : I) (x z : Cylinder) (hH : p.matrix j n (x + z) = p.matrix i n x) (hT : p.target j n (x + z) = p.target i n x) (hR : request n (x + z) = request n x) (hm : p.mask j n (x + z) = p.mask i n x) (hv : p.fundamental j n (x + z) = p.fundamental i n x) : (p.copyData s request).amplitude n j (x + z) = (p.copyData s request).amplitude n i x := by change complexify (SignedWaveUpdate.signedVector (HarmonicWaveInteraction.productStrip s) (p.matrix j) (p.target j) request (p.mask j) (p.fundamental j) p.column n (x + z)) = complexify (SignedWaveUpdate.signedVector (HarmonicWaveInteraction.productStrip s) (p.matrix i) (p.target i) request (p.mask i) (p.fundamental i) p.column n x) simp only [SignedWaveUpdate.signedVector, SignedWaveUpdate.signedScalar, hH, hT, hR, hm, hv] /-- Angular identities of the primitive signed inputs. No identity of the corrected field, and no regularity away from the native support, is assumed. -/ structure SignedAngles (p : PeriodizedSignedParameters Point I) (s : StripData Point) (request : ℕ → Cylinder → SignedWaveUpdate.Vec2) where slope : ℕ → ℝ radius : ∀ n, Invariant ((0 : Point), 1) (p.base.radius n) radial : ∀ n, Invariant ((0 : Point), 1) (p.directions.radialField n) phase : ∀ n, AffinePhase ((0 : Point), 1) (slope n) (p.base.phase n) frequency_slope : ∀ n, p.base.frequency n * slope n = (p.angularFrequency n : ℝ) matrix : ∀ i n, Invariant ((0 : Point), 1) (p.matrix i n) target : ∀ i n, Invariant ((0 : Point), 1) (p.target i n) request : ∀ n, Invariant ((0 : Point), 1) (request n) mask : ∀ i n, Invariant ((0 : Point), 1) (p.mask i n) fundamental : ∀ i n, Invariant ((0 : Point), 1) (p.fundamental i n) cutoff : ∀ i n, Invariant ((0 : Point), 1) (p.cutoff i n) namespace SignedAngles variable {p : PeriodizedSignedParameters Point I} {s : StripData Point} {request : ℕ → Cylinder → SignedWaveUpdate.Vec2} (h : SignedAngles p s request) include h theorem raw_invariant (n : ℕ) (i : I) : Invariant ((0 : Point), 1) ((p.copyData s request).amplitude n i) := by intro x t change complexify (SignedWaveUpdate.signedVector (HarmonicWaveInteraction.productStrip s) (p.matrix i) (p.target i) request (p.mask i) (p.fundamental i) p.column n (x + t • ((0 : Point), 1))) = complexify (SignedWaveUpdate.signedVector (HarmonicWaveInteraction.productStrip s) (p.matrix i) (p.target i) request (p.mask i) (p.fundamental i) p.column n x) simp only [SignedWaveUpdate.signedVector, SignedWaveUpdate.signedScalar, h.matrix i n x t, h.target i n x t, h.request n x t, h.mask i n x t, h.fundamental i n x t] theorem corrected_invariant (n : ℕ) : Invariant ((0 : Point), 1) (((p.copyData s request).commonCorrected (HarmonicWaveInteraction.productStrip s) p.directions).amplitude n) := (p.copyData s request).commonCorrected_invariant _ _ _ (fun n i => h.cutoff i n) h.raw_invariant h.radius h.radial (fun _ => Invariant.const _) (fun n => ⟨h.slope n, h.phase n⟩) n theorem block_eq_mode : (p.exactBlock s request).oscillation = modeOscillation (p.copyData s request) (HarmonicWaveInteraction.productStrip s) p.directions (LinearIsometryEquiv.refl ℝ Cylinder) := by funext n x i rw [PeriodizedSignedParameters.exactBlock, SignedWaveUpdate.blockOfCoefficients, SignedWaveUpdate.coefficientBlock_velocity] have hphase : p.base.frequency n * p.base.phase n x = p.base.frequency n * p.base.phase n (x.1, 0) + (p.angularFrequency n : ℝ) * x.2 := by rw [affinePhase_eq_zeroSlice (h.phase n) x.1 x.2, mul_add, ← mul_assoc, h.frequency_slope] have hc := HarmonicFields.character_eq_carrier 1 (p.base.frequency n) (p.base.phase n) x simp only [Int.cast_one, mul_one] at hc change Complex.re (_ * HarmonicFields.character 1 (p.base.frequency n * p.base.phase n (x.1, 0) + (p.angularFrequency n : ℝ) * x.2)) = Complex.re (_ * carrier (p.base.frequency n) (p.base.phase n) x) rw [← hphase, hc] have hi := invariant_eq_zeroSlice (h.corrected_invariant n) x.1 x.2 have he := congrArg (fun v : ComplexVector => (v i * carrier (p.base.frequency n) (p.base.phase n) x).re) hi.symm simp only [Prod.mk.eta] at he exact he end SignedAngles /-- All fields use the literal post-particular request. The old state, profile, and native data are not reselected. -/ structure SignedData {ι : Type} (p : CycleParameters ι) (v : CycleCoefficients ι) (c : Context Point) (u : State Point) {coord : ℝ} (U : LocalSignedRequest.SlowRegion coord) (r₀ r₁ : ℝ) where mode : ∀ l, ModeData ((p.signed l).copyData p.strip (p.signedRequest v c u)) (HarmonicWaveInteraction.productStrip p.strip) (p.signed l).directions (LinearIsometryEquiv.refl ℝ Cylinder) U r₀ r₁ angles : ∀ l, SignedAngles (p.signed l) p.strip (p.signedRequest v c u) end SignedCycle /-! ## Moving radial edges of the literal coefficients At a flat radial boundary the coefficient need not have a zero germ. Instead, its actual interior tensor bounds prove smoothness across that boundary. The conclusions concern the original coefficient, whose exterior zero values identify it with the constructed extension. -/ section RadialEdges open WaveEdgeExtension variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] omit [NormedAddCommGroup D] [NormedSpace ℝ D] [NormedSpace ℝ E] in theorem literal_extension_eqOn {Ω : Set D} {ρ : D → ℝ} {a b : ℝ} {f : D → E} (hz : ∀ x ∈ Ω, x ∉ window ρ a b → f x = 0) : EqOn (extension ρ a b f) f Ω := by intro x hx by_cases hi : x ∈ window ρ a b · exact extension_inside ρ a b f hi · rw [extension_outside ρ a b f hi, hz x hx hi] /-- The original, totalized coefficient has all zero edge tensors, from its actual interior derivatives and its actual exterior values. -/ theorem literal_moving_regular {Ω : Set D} (hΩ : IsOpen Ω) {ρ : D → ℝ} (hρ : ContDiffOn ℝ ∞ ρ Ω) {a b cL cR : ℝ} (ha : 0 < a) (hab : a < b) (hcL : 0 < cL) (hcR : 0 < cR) {f : D → E} (hf : ContDiffOn ℝ ∞ f (windowDomain Ω ρ a b)) (hB : BoundaryControls Ω ρ a b cL cR f) (hz : ∀ x ∈ Ω, x ∉ window ρ a b → f x = 0) : ContDiffOn ℝ ∞ f Ω ∧ ∀ n x, x ∈ Ω → (ρ x = a ∨ ρ x = b) → iteratedFDeriv ℝ n f x = 0 := by have he := literal_extension_eqOn hz refine ⟨(extension_contDiffOn hΩ hρ ha hab hcL hcR hf hB).congr (fun x hx => (he hx).symm), ?_⟩ intro n x hx hedge have hg : extension ρ a b f =ᶠ[𝓝 x] f := by filter_upwards [hΩ.mem_nhds hx] with y hy exact he hy rw [← jets_eq_of_germ hg n] exact iteratedFDeriv_extension_edge hΩ hρ ha hab hcL hcR hf hB n hx hedge end RadialEdges end NavierStokes.ActualWaveRegularity