import NavierStokes.ActualGaussianCoverage import NavierStokes.HarmonicWaveInteraction /-! # Preservation of the actual closed carrier of a harmonic label The support argument uses the whole native Volterra path. A pointwise zero of the source is not used as a zero of its particular solution. The Gaussian clock cutoff supplies the temporal boundary of the carrier; the source supplies its slow and transverse boundaries. -/ noncomputable section namespace NavierStokes.LabelSupportPreservation open Set Function Filter WeightedClasses open HarmonicCalculus LinearWaveBounds PeriodizedWaveBounds open CommonCoverSolve TorusInverse ParticularWaveBounds PrimaryPulseBounds open scoped Topology ContDiff BigOperators ComplexConjugate section CopyGerms variable {D I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] /-- A zero raw amplitude gives a zero corrected amplitude as a germ, including every derivative in the literal curl correction. -/ theorem corrected_zero_of_raw (a : CopyData D I) (s : StripData D) (d : GraphDirections D) {n : β„•} {i : I} {x : D} (ha : a.amplitude n i =αΆ [𝓝 x] fun _ => 0) : (a.corrected s d i).amplitude n =αΆ [𝓝 x] fun _ => 0 := by have hl : (a.localized i).amplitude n =αΆ [𝓝 x] fun _ => 0 := by filter_upwards [ha] with y hy change a.cutoff n i y β€’ a.amplitude n i y = 0 rw [hy, smul_zero] have h := ParticularWaveAssembly.realizedCoefficient_germ hl (a.background.frequency n) (a.background.radius n) (d.radialField n) (fun _ => d.angular) (d.axialField s n) (a.background.phase n) simp only [realizedCoefficient_zero] at h exact h omit [NormedSpace ℝ D] in theorem localized_pressure_zero_of_raw (a : CopyData D I) {n : β„•} {i : I} {x : D} (hp : a.pressure n i =αΆ [𝓝 x] fun _ => 0) : (a.localized i).pressure n =αΆ [𝓝 x] fun _ => 0 := by filter_upwards [hp] with y hy change (a.cutoff n i y : β„‚) * a.pressure n i y = 0 rw [hy, mul_zero] /-- The uncovered source is retained. Either a zero cutoff or two zero raw fields in every covering copy suffices for the three assembled fields. -/ theorem common_zero_germs_of_native (a : CopyData D I) (K : Cells D I) (hs : βˆ€ n i, support (a.cutoff n i) βŠ† K.carrier n i) (s : StripData D) (d : GraphDirections D) {n : β„•} {x : D} (hf : a.source n =αΆ [𝓝 x] fun _ => 0) (hnative : βˆ€ i, x ∈ K.carrier n i β†’ (a.cutoff n i =αΆ [𝓝 x] fun _ => 0) ∨ ((a.amplitude n i =αΆ [𝓝 x] fun _ => 0) ∧ (a.pressure n i =αΆ [𝓝 x] fun _ => 0))) : ((a.commonCorrected s d).amplitude n =αΆ [𝓝 x] fun _ => 0) ∧ (a.common.pressure n =αΆ [𝓝 x] fun _ => 0) ∧ (a.globalGaussian d n =αΆ [𝓝 x] fun _ => 0) := by classical by_cases hc : βˆƒ i, x ∈ K.carrier n i Β· obtain ⟨i, hi⟩ := hc have hu := a.commonCorrected_amplitude_germ K hs s d n hi have hp := a.common_pressure_germ K hs n hi have hG := a.globalGaussian_germ K hs d n hi rcases hnative i hi with hz | ⟨hz, hpz⟩ Β· refine ⟨hu.trans (a.corrected_zero_germ s d hz), hp.trans (a.localized_zero_germs hz).2, hG.trans ?_⟩ have ht := a.localTail_zero_germ d hz filter_upwards [ht, hf] with y hty hfy rw [a.localGaussian_eq, hty, hfy, smul_zero, add_zero] Β· exact ⟨hu.trans (corrected_zero_of_raw a s d hz), hp.trans (localized_pressure_zero_of_raw a hpz), hG.trans (a.localGaussian_zero_of_fields d hz hf)⟩ Β· have hn : βˆ€ i, x βˆ‰ K.carrier n i := fun i hi => hc ⟨i, hi⟩ exact ⟨a.commonCorrected_zero_germ K hs s d hn, (a.common_zero_germs K hs hn).2, (a.globalGaussian_uncovered_germ K hs d hn).trans hf⟩ end CopyGerms section NativeGeometry /-- Outside the closed Gaussian source window, the actual cutoff is identically zero on a neighborhood, even inside the padded clock cell. -/ theorem nativeCutoff_source_time_zero_germ {r L c : ℝ} (hr : 0 < r) (hL : 0 < L) (hc : 0 < c) {z : Plane} (hz : z.2 βˆ‰ Icc ((L / c) / 6) (5 * (L / c) / 6)) : ActualGaussianCoverage.nativeCutoff r L hr hL c =αΆ [𝓝 z] fun _ => 0 := by have hlen : 0 < L / c := div_pos hL hc have hd : 1 / 3 < |z.2 / (L / c) - 1 / 2| := by by_contra! h obtain ⟨hlo, hhi⟩ := abs_le.mp h have hlow : (1 / 6 : ℝ) ≀ z.2 / (L / c) := by linarith have hhigh : z.2 / (L / c) ≀ (5 / 6 : ℝ) := by linarith have hl := (le_div_iffβ‚€ hlen).mp hlow have hh := (div_le_iffβ‚€ hlen).mp hhigh exact hz ⟨by nlinarith, by nlinarith⟩ have hd' : 1 / 3 < |c * z.2 / L - 1 / 2| := by simpa only [ActualGaussianCoverage.normalized_clock hL.ne' hc.ne'] using hd have ht : Continuous (fun y : Plane => c * y.2 / L) := (continuous_const.mul continuous_snd).div_const L have hg := (GaussianTailFlat.profile_eventually_zero hd').comp_tendsto ht.continuousAt filter_upwards [hg] with y hy simp only [comp_def] at hy simp only [ActualGaussianCoverage.nativeCutoff, GaussianTailFlat.slotCutoff, hy, mul_zero] variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] /-- The actual projected particular pressure also vanishes near a path of zero source. The time coordinate is in the open integration interval. -/ theorem complexCopyPressure_zero_germ (t : TangentData P ProblemStatement.Space) (g : Geometry) {a b : ℝ} (hab : a ≀ b) (k : Frequency) (frequency : ℝ) {f : P Γ— Plane β†’ ComplexVector} {x : P Γ— Plane} (heta : (g.coordinates k x.2).2 ∈ Ioo a b) (hf : βˆ€ v ∈ Icc a b, f =αΆ [𝓝 (x.1, g.path k x.2 v)] fun _ => 0) : complexCopyPressure t f g hab k frequency =αΆ [𝓝 x] fun _ => 0 := by have hall := ActualGaussianCoverage.whole_path_zero_germ g k hf have ht : Continuous (fun y : P Γ— Plane => (g.coordinates k y.2).2) := (g.coordinates_contDiff k).continuous.snd.comp continuous_snd have htime : βˆ€αΆ  y in 𝓝 x, (g.coordinates k y.2).2 ∈ Ioo a b := ht.continuousAt (isOpen_Ioo.mem_nhds heta) filter_upwards [hall, htime] with y hy hty exact complexCopyPressure_zero_of_path t f g hab k frequency y.1 y.2 hy ⟨hty.1.le, hty.2.le⟩ end NativeGeometry section Particular open ActualGaussianCoverage variable {Label P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] {D : PhaseJetBounds.Domain (Label Γ— β„•) PhaseCalculus.Slow} (F : PhaseConstruction D) (clock : ActualSignedControl.PositiveScale Label) (reference : Label β†’ β„• β†’ Geometry) (gap : Label β†’ β„• β†’ β„•) (r : Label β†’ β„• β†’ ℝ) (hr : βˆ€ l n, 0 < r l n) (base : Label β†’ WaveCoefficients ((P Γ— ℝ) Γ— Plane)) (tangent : Label β†’ β„• β†’ TangentData (P Γ— ℝ) ProblemStatement.Space) (ctx : CorrectionState.Context (P Γ— Plane)) (u : CorrectionState.State (P Γ— Plane)) (b : Label β†’ CorrectionState.HarmonicBlock (P Γ— Plane)) (G A : Label β†’ HarmonicResidual.BlockCoefficients (P Γ— Plane)) (j : β„€) (s : StripData P) (S : Label β†’ β„• β†’ Set P) (hS : βˆ€ l n, IsClosed (S l n)) (hsupport : βˆ€ l, HarmonicSourceSupport.InputSupportOn (s.domain Γ—Λ’ univ) (sourceRegions F clock reference gap r S l) (b l) (G l) (A l)) include hS hsupport end Particular section Signed variable {D I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] variable (base : WaveCoefficients D) (s : StripData D) (d : GraphDirections D) (matrix : I β†’ β„• β†’ D β†’ SignedWaveUpdate.Mat2) (target : I β†’ β„• β†’ D β†’ SignedWaveUpdate.Vec2) (request : β„• β†’ D β†’ SignedWaveUpdate.Vec2) (mask : I β†’ β„• β†’ D β†’ ℝ) (fundamental normalMotion : I β†’ β„• β†’ D β†’ ProblemStatement.Space) (action : I β†’ β„• β†’ D β†’ ProblemStatement.Space β†’L[ℝ] ProblemStatement.Space) (cutoff : I β†’ β„• β†’ D β†’ ℝ) (column : Fin 2) end Signed section ClosedSupport variable {D E : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] [Zero E] end ClosedSupport section CoefficientSupport open HarmonicSourceSupport HarmonicResidual HarmonicMeanInteraction open HarmonicFields ErrorHarmonics variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] omit [NormedAddCommGroup D] [NormedSpace ℝ D] in theorem pair_input_support {U K : Set D} (j : β„€) {f : D β†’ β„‚} (hf : βˆ€ x, x ∈ U β†’ x βˆ‰ K β†’ f x = 0) : NonzeroSupportedOn U K (realCoefficients (conjugatePair j f)) := by apply NonzeroSupportedOn.realProjection intro m hm x hx hn simp [ParticularWaveAssembly.pair_apply, hf x hx hn] omit [NormedAddCommGroup D] [NormedSpace ℝ D] in /-- A coefficient assembly needs only the literal amplitude values at the zero-angle section. It needs no global angular independence premise. -/ theorem modeBlock_inputSupport {U : Set D} {K : β„• β†’ Set D} (j : β„€) (frequency : β„• β†’ ℝ) (phase : β„• β†’ D β†’ ℝ) (angularFrequency : β„• β†’ β„€) {v g : β„• β†’ D β†’ ComplexVector} {p : β„• β†’ D β†’ β„‚} (hv : βˆ€ n x, x ∈ U β†’ x βˆ‰ K n β†’ v n x = 0) (hp : βˆ€ n x, x ∈ U β†’ x βˆ‰ K n β†’ p n x = 0) (hg : βˆ€ n x, x ∈ U β†’ x βˆ‰ K n β†’ g n x = 0) : InputSupportOn U K (ParticularWaveAssembly.modeBlock j frequency phase angularFrequency v p) (ParticularWaveAssembly.modeBlock j frequency phase angularFrequency g (fun _ _ => 0)).velocity 0 := by refine ⟨?_, ?_, ?_, ?_⟩ Β· intro n i apply pair_input_support intro x hx hn simp only [hv n x hx hn, Pi.zero_apply] Β· intro n exact pair_input_support j (hp n) Β· intro n i apply pair_input_support intro x hx hn simp only [hg n x hx hn, Pi.zero_apply] Β· intro n i m hm x hx hn simp [realCoefficients_apply] omit [NormedAddCommGroup D] [NormedSpace ℝ D] in /-- The actual carrier-retaining update preserves the very same support set; in particular, axisymmetric aliases are not added to a label. -/ theorem inputSupport_addBlock {U : Set D} {K : β„• β†’ Set D} {a b : CorrectionState.HarmonicBlock D} {G H A : BlockCoefficients D} (ha : InputSupportOn U K a G A) (hb : InputSupportOn U K b H 0) : InputSupportOn U K (HarmonicWaveInteraction.addBlock a b) (G + H) A := by refine ⟨?_, ?_, ?_, ha.aliasError⟩ Β· intro n i change NonzeroSupportedOn U (K n) (realCoefficients (a.velocity n i + b.velocity n i)) rw [realCoefficients_add] exact (ha.velocity n i).add (hb.velocity n i) Β· intro n change NonzeroSupportedOn U (K n) (realCoefficients (a.pressure n + b.pressure n)) rw [realCoefficients_add] exact (ha.pressure n).add (hb.pressure n) Β· intro n i change NonzeroSupportedOn U (K n) (realCoefficients (G n i + H n i)) rw [realCoefficients_add] exact (ha.gaussian n i).add (hb.gaussian n i) omit [NormedAddCommGroup D] [NormedSpace ℝ D] in theorem inputSupport_two_updates {U : Set D} {K : β„• β†’ Set D} {a b c : CorrectionState.HarmonicBlock D} {G H J A : BlockCoefficients D} (ha : InputSupportOn U K a G A) (hb : InputSupportOn U K b H 0) (hc : InputSupportOn U K c J 0) : InputSupportOn U K (HarmonicWaveInteraction.addBlock (HarmonicWaveInteraction.addBlock a b) c) (G + H + J) A := inputSupport_addBlock (inputSupport_addBlock ha hb) hc omit [NormedAddCommGroup D] [NormedSpace ℝ D] in theorem real_supported_sum {ΞΉ : Type} {U K : Set D} (L : Finset ΞΉ) (f : ΞΉ β†’ HarmonicFields.Coefficients D) (hf : βˆ€ l ∈ L, NonzeroSupportedOn U K (realCoefficients (f l))) : NonzeroSupportedOn U K (realCoefficients (βˆ‘ l ∈ L, f l)) := by classical induction L using Finset.induction_on with | empty => intro j hj x hx hn simp [realCoefficients_apply] | @insert l L hl ih => rw [Finset.sum_insert hl, realCoefficients_add] exact (hf l (Finset.mem_insert_self _ _)).add (ih (fun m hm => hf m (Finset.mem_insert_of_mem hm))) omit [NormedAddCommGroup D] [NormedSpace ℝ D] in theorem inputSupport_sumBlock {ΞΉ : Type} {U : Set D} {K : β„• β†’ Set D} (L : Finset ΞΉ) (frequency : β„• β†’ ℝ) (phase : β„• β†’ D β†’ ℝ) (angularFrequency : β„• β†’ β„€) (blocks : ΞΉ β†’ CorrectionState.HarmonicBlock D) (gaussians : ΞΉ β†’ BlockCoefficients D) (hs : βˆ€ l ∈ L, InputSupportOn U K (blocks l) (gaussians l) 0) : InputSupportOn U K (sumBlock L frequency phase angularFrequency blocks) (fun n i => βˆ‘ l ∈ L, gaussians l n i) 0 := by refine ⟨?_, ?_, ?_, ?_⟩ Β· intro n i exact real_supported_sum L (fun l => (blocks l).velocity n i) (fun l hl => (hs l hl).velocity n i) Β· intro n exact real_supported_sum L (fun l => (blocks l).pressure n) (fun l hl => (hs l hl).pressure n) Β· intro n i exact real_supported_sum L (fun l => gaussians l n i) (fun l hl => (hs l hl).gaussian n i) Β· intro n i m hm x hx hn simp [realCoefficients_apply] omit [NormedAddCommGroup D] [NormedSpace ℝ D] in theorem assembledBlock_inputSupport {U : Set D} {K : β„• β†’ Set D} (N : β„•) (frequency : β„• β†’ ℝ) (phase : β„• β†’ D β†’ ℝ) (angularFrequency : β„• β†’ β„€) {v g : β„€ β†’ β„• β†’ D β†’ ComplexVector} {p : β„€ β†’ β„• β†’ D β†’ β„‚} (hv : βˆ€ j ∈ ParticularWaveAssembly.modes N, βˆ€ n x, x ∈ U β†’ x βˆ‰ K n β†’ v j n x = 0) (hp : βˆ€ j ∈ ParticularWaveAssembly.modes N, βˆ€ n x, x ∈ U β†’ x βˆ‰ K n β†’ p j n x = 0) (hg : βˆ€ j ∈ ParticularWaveAssembly.modes N, βˆ€ n x, x ∈ U β†’ x βˆ‰ K n β†’ g j n x = 0) : InputSupportOn U K (ParticularWaveAssembly.assembledBlock N frequency phase angularFrequency v p) (ParticularWaveAssembly.assembledBlock N frequency phase angularFrequency g (fun _ _ _ => 0)).velocity 0 := inputSupport_sumBlock _ _ _ _ _ _ (fun j hj => modeBlock_inputSupport j frequency phase angularFrequency (hv j hj) (hp j hj) (hg j hj)) omit [NormedAddCommGroup D] [NormedSpace ℝ D] in theorem blockOfCoefficients_inputSupport {U : Set D} {K : β„• β†’ Set D} (a : WaveCoefficients (D Γ— ℝ)) (angularFrequency : β„• β†’ β„€) {g : β„• β†’ D Γ— ℝ β†’ ComplexVector} (hv : βˆ€ n x, x ∈ U β†’ x βˆ‰ K n β†’ a.amplitude n (x, 0) = 0) (hp : βˆ€ n x, x ∈ U β†’ x βˆ‰ K n β†’ a.pressure n (x, 0) = 0) (hg : βˆ€ n x, x ∈ U β†’ x βˆ‰ K n β†’ g n (x, 0) = 0) : InputSupportOn U K (SignedWaveUpdate.blockOfCoefficients a angularFrequency) (SignedWaveUpdate.coefficientBlock a.frequency (fun n x => a.phase n (x, 0)) angularFrequency (fun n x => g n (x, 0)) (fun _ _ => 0)).velocity 0 := modeBlock_inputSupport 1 a.frequency (fun n x => a.phase n (x, 0)) angularFrequency hv hp hg end CoefficientSupport section ParticularAssembly open ActualGaussianCoverage variable {Label P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] {D : PhaseJetBounds.Domain (Label Γ— β„•) PhaseCalculus.Slow} (F : PhaseConstruction D) (clock : ActualSignedControl.PositiveScale Label) (reference : Label β†’ β„• β†’ Geometry) (gap : Label β†’ β„• β†’ β„•) (r : Label β†’ β„• β†’ ℝ) (hr : βˆ€ l n, 0 < r l n) (base : Label β†’ WaveCoefficients ((P Γ— ℝ) Γ— Plane)) (tangent : Label β†’ β„• β†’ TangentData (P Γ— ℝ) ProblemStatement.Space) (ctx : CorrectionState.Context (P Γ— Plane)) (u : CorrectionState.State (P Γ— Plane)) (b : Label β†’ CorrectionState.HarmonicBlock (P Γ— Plane)) (G A : Label β†’ HarmonicResidual.BlockCoefficients (P Γ— Plane)) (s : StripData P) (S : Label β†’ β„• β†’ Set P) (hS : βˆ€ l n, IsClosed (S l n)) (hsupport : βˆ€ l, HarmonicSourceSupport.InputSupportOn (s.domain Γ—Λ’ univ) (sourceRegions F clock reference gap r S l) (b l) (G l) (A l)) (hinj : βˆ€ l n, InjOn TorusAverages.quotientPoint ((fun z => (reference l n).center + (reference l n).basis z) '' (referenceWindow (r l n) (F.L (l,n)) (hr l n) (F.L_pos (l,n))).outer)) (outStrip : StripData ((P Γ— ℝ) Γ— Plane)) (d : GraphDirections ((P Γ— ℝ) Γ— Plane)) include hS hsupport hinj end ParticularAssembly section SignedAssembly variable {D I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] (base : WaveCoefficients (D Γ— ℝ)) (s : StripData (D Γ— ℝ)) (d : GraphDirections (D Γ— ℝ)) (matrix : I β†’ β„• β†’ D Γ— ℝ β†’ SignedWaveUpdate.Mat2) (target : I β†’ β„• β†’ D Γ— ℝ β†’ SignedWaveUpdate.Vec2) (request : β„• β†’ D Γ— ℝ β†’ SignedWaveUpdate.Vec2) (mask : I β†’ β„• β†’ D Γ— ℝ β†’ ℝ) (fundamental normalMotion : I β†’ β„• β†’ D Γ— ℝ β†’ ProblemStatement.Space) (action : I β†’ β„• β†’ D Γ— ℝ β†’ ProblemStatement.Space β†’L[ℝ] ProblemStatement.Space) (cutoff : I β†’ β„• β†’ D Γ— ℝ β†’ ℝ) (column : Fin 2) end SignedAssembly section TransportedMask variable {P Q : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedAddCommGroup Q] [NormedSpace ℝ Q] end TransportedMask end NavierStokes.LabelSupportPreservation