import NavierStokes.ActualParticularStageControls import NavierStokes.ActualSignedDynamics import NavierStokes.ClosedNativeWaveIdentities import NavierStokes.ModeSolenoidalReindex /-! # Exact dynamics of the actual particular correction The current harmonic residual is solved on the common cover. Geometry and carrier identities are proved for the actual selected primary labels; quantitative controls are supplied by `ActualParticularStageControls`. -/ noncomputable section namespace NavierStokes.ActualParticularDynamics open Set Function Filter HarmonicCalculus open CorrectionInitialization CorrectionState CorrectionStep open ActualParticularStageControls CommonCoverSolve TorusInverse ParticularWaveBounds ParticularWaveAssembly open scoped ContDiff Topology InnerProductSpace BigOperators variable {B N0 : ℕ} noncomputable def primaryCarrier (l : Label B N0) : HarmonicBlock CyclePoint := (ActualPrimary.piece ActualPrimary.standardRegion l.1 l.2).tangentBlock (fun n x => (ActualPrimary.chartCoefficients l.1 l.2).phase n (x,0)) (fun _ => PrimaryGeometryAssembly.angularMode ActualPrimary.certificate ActualPrimary.modulation (ActualPrimary.choice B N0).prepared l.1 l.2) abbrev PreservesCarriers (x : CycleState (Label B N0)) : Prop := ∀ l, SameCarrier (x.coefficients.blocks l) (primaryCarrier l) theorem carrier_frequency {x : CycleState (Label B N0)} (H : PreservesCarriers x) (l : Label B N0) (n : ℕ) : (x.coefficients.blocks l).frequency n = ChartScales.carrier ActualPrimary.h n := (congrFun (H l).frequency n).symm @[simp] theorem nativeToFull_apply (z : Native) : nativeToFull z = ((z.1.1.1,(z.1.1.2,z.2)),z.1.2) := rfl noncomputable def referencePoint (l : Label B N0) (n : ℕ) (k : Frequency) (z : Native) : ActualSignedGeometry.Native := (ActualSignedGeometry.swapParameter (PhysicalParticularWave.parameterChange ActualPrimary.h (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2)) z.1.1), (reference l).geometry.coordinates k (coverPower (gap l n) z.2)) theorem referencePoint_eq_copy (l : Label B N0) (n : ℕ) (k : Frequency) (hi : CommonWindow.index ActualPrimary.h n ≤ ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.2)) (z : Native) : referencePoint l n k z = ActualPrimaryDynamics.copyPoint l.1 l.2 n k (nativeToFull z) := by apply Prod.ext · ext <;> simp [referencePoint, PhysicalParticularWave.parameterChange, PhysicalParticularWave.ratioPower, ActualSignedGeometry.swapParameter, ActualPrimaryDynamics.copyPoint, ActualPrimary.nativeSlow, ActualPrimary.toAbsolute, Real.sqrt_eq_rpow, nativeToFull_apply] <;> ring · change (referenceGeometry l).coordinates k (coverPower (gap l n) z.2) = _ have he : CopySolveCompatibility.refineGeometry (referenceGeometry l) (gap l n) = ActualPrimary.chartGeometry n l.1 l.2 := by simp only [CopySolveCompatibility.refineGeometry, referenceGeometry, ActualSignedGeometry.slotGeometry, CommonCoverClass.bandGeometry, Nat.zero_add, ActualPrimary.chartGeometry, ActualPrimary.geometry, spatialLabel, gap] rfl rw [← CopySolveCompatibility.coordinates_refine, he] exact (ActualPrimary.chartGeometry_coordinates n l.1 l.2 hi k z.2).symm theorem normalWeight_eq (l : Label B N0) (n : ℕ) (j : ℤ) (hj : j ≠ 0) : PhysicalParticularWave.normalWeight (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2)) ((j:ℝ)*ChartScales.carrier ActualPrimary.h n) ((j:ℝ)*ChartScales.carrier ActualPrimary.h (BaseChartJets.cellBand l.2)) = ActualPrimaryDynamics.normalScale l.2 n := by rw [ScaledActualParticularControl.normalWeight_harmonic _ _ _ _ j hj] simp only [PhysicalParticularWave.normalWeight, ActualPrimaryDynamics.normalScale, ActualPrimaryDynamics.radialScale_eq] noncomputable def data (x : CycleState (Label B N0)) (l : Label B N0) (j : ℤ) := (parameters x l).copyData (assembly x l).context (assembly x l).state (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput j theorem data_phase {x : CycleState (Label B N0)} (H : PreservesCarriers x) (l : Label B N0) (j : ℤ) : (data x l j).background.phase = (background l).phase := by funext n z change (x.coefficients.blocks l).phase n (cycleAssoc.symm (z.1.1,z.2)) + ((x.coefficients.blocks l).angularFrequency n : ℝ) / (x.coefficients.blocks l).frequency n * z.1.2 = _ rw [← (H l).phase, ← (H l).angular, ← (H l).frequency] change (ActualPrimary.chartCoefficients l.1 l.2).phase n ((z.1.1.1,(z.1.1.2,z.2)),0) + (PrimaryGeometryAssembly.angularMode ActualPrimary.certificate ActualPrimary.modulation (ActualPrimary.choice B N0).prepared l.1 l.2 : ℝ) / (ChartScales.carrier ActualPrimary.h n : ℝ) * z.1.2 = (ActualPrimary.chartCoefficients l.1 l.2).phase n (nativeToFull z) simp only [ActualPrimary.chartCoefficients, ActualPrimary.absolutePhase, nativeToFull_apply, mul_zero, zero_add] ring theorem data_frequency {x : CycleState (Label B N0)} (H : PreservesCarriers x) (l : Label B N0) (j : ℤ) (n : ℕ) : (data x l j).background.frequency n = (j:ℝ)*ChartScales.carrier ActualPrimary.h n := by change (j:ℝ)*(x.coefficients.blocks l).frequency n = _ rw [carrier_frequency H] theorem native_strip_eq : ParticularParameters.nativeStrip (associatedStrip) = ParticularWaveBounds.reindexStrip nativeToFull (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip ActualPrimary.nominal ActualPrimary.standardRegion)) := rfl theorem background_normal (l : Label B N0) (n : ℕ) {z : Native} (hR : 0 < z.1.1.1) (hT : 0 < z.1.1.2.1) : (background l).normal (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n z = (ActualPrimary.chartCoefficients l.1 l.2).normal (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip ActualPrimary.nominal ActualPrimary.standardRegion)) (PrimaryResidualClass.directions (ActualPrimary.commonContext B)) n (nativeToFull z) := by have hΦ := ((ActualPrimaryCoherence.chart_phase_smooth l.1 l.2 n).contDiffAt (ActualPrimaryCoherence.positiveRadialChart_open.mem_nhds (show nativeToFull z ∈ ActualPrimaryCoherence.positiveRadialChart from ⟨hR,hT⟩))).differentiableAt (by simp) rw [native_strip_eq] have he := ParticularWaveBounds.phaseNormal_reindex nativeToFull ((ActualPrimary.chartCoefficients l.1 l.2).radius n) ((PrimaryResidualClass.directions (ActualPrimary.commonContext B)).radialField n) (fun _ => (PrimaryResidualClass.directions (ActualPrimary.commonContext B)).angular) ((PrimaryResidualClass.directions (ActualPrimary.commonContext B)).axialField (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip ActualPrimary.nominal ActualPrimary.standardRegion)) n) hΦ simp only [background, directions, LinearWaveBounds.WaveCoefficients.normal, ParticularWaveBounds.reindexCoefficients, ParticularWaveBounds.reindex_radialField, ParticularWaveBounds.reindex_axialField] at he ⊢ exact he theorem data_normal {x : CycleState (Label B N0)} (H : PreservesCarriers x) (l : Label B N0) (j : ℤ) (n : ℕ) (z : Native) : (data x l j).background.normal (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n z = (background l).normal (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n z := by unfold LinearWaveBounds.WaveCoefficients.normal rw [data_phase H] rfl theorem tangent_normal {x : CycleState (Label B N0)} (hfrequency : ∀ l n, (x.coefficients.blocks l).frequency n = ChartScales.carrier ActualPrimary.h n) (l : Label B N0) (j : ℤ) (hj : j ≠ 0) (n : ℕ) (k : Frequency) (z : Native) : ((parameters x l).nativeTangent j n).normal (ParticularWaveBounds.nativePoint ((parameters x l).geometry n) k z) = ActualPrimaryDynamics.normalScale l.2 n • ((ActualPrimary.phases B N0 l.1).frame l.2).normal ((referencePoint l n k z).1, (referencePoint l n k z).2.2) := by change PhysicalParticularWave.normalWeight (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2)) ((j:ℝ)*(x.coefficients.blocks l).frequency n) ((j:ℝ)*(x.coefficients.blocks l).frequency (BaseChartJets.cellBand l.2)) • ((ActualPrimary.phases B N0 l.1).frame l.2).normal ((referencePoint l n k z).1, (CopySolveCompatibility.nativeTimeMap 0 (PhysicalParticularWave.clockWeight ActualPrimary.h (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2))) (((parameters x l).geometry n).coordinates k z.2)).2) = _ rw [hfrequency, hfrequency, normalWeight_eq l n j hj] apply congrArg (fun v => ActualPrimaryDynamics.normalScale l.2 n • ((ActualPrimary.phases B N0 l.1).frame l.2).normal ((referencePoint l n k z).1, v)) exact congrArg Prod.snd (ScaledTangentTransport.coordinates_transport (reference l).geometry (gap l n) 0 _ _ k z.2) theorem native_normal_match {x : CycleState (Label B N0)} (H : PreservesCarriers x) (l : Label B N0) (j : ℤ) (hj : j ≠ 0) (n : ℕ) (k : Frequency) {z : Native} (hi : CommonWindow.index ActualPrimary.h n ≤ ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.2)) (hR : 0 < z.1.1.1) (hT : 0 < z.1.1.2.1) (hp : (referencePoint l n k z).1 ∈ (PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).carrier l.2) (ht : (referencePoint l n k z).2.2 ∈ Icc 0 ((ActualPrimary.phases B N0 l.1).L l.2)) (hc : (referencePoint l n k z).2 ∈ (ActualPrimary.clockWindow l.2).core) : (data x l j).background.normal (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n z = ((parameters x l).nativeTangent j n).normal (ParticularWaveBounds.nativePoint ((parameters x l).geometry n) k z) := by rw [data_normal H, background_normal l n hR hT, tangent_normal (carrier_frequency H) l j hj] have he := referencePoint_eq_copy l n k hi z rw [he] at hp ht hc ⊢ rw [ActualPrimaryDynamics.normal_eq_copy l.1 l.2 n ActualPrimary.standardRegion k hR hT hc] congr 1 exact (ActualPrimaryDynamics.frame_normal (ActualPrimary.phases B N0 l.1) l.2 ⟨hp,(ActualPrimary.phases B N0 l.1).interval l.2 ht⟩).symm theorem transported_coordinates (x : CycleState (Label B N0)) (l : Label B N0) (n : ℕ) (k : Frequency) (z : Native) : CopySolveCompatibility.nativeTimeMap 0 (PhysicalParticularWave.clockWeight ActualPrimary.h (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2))) (((parameters x l).geometry n).coordinates k z.2) = (referencePoint l n k z).2 := ScaledTangentTransport.coordinates_transport (reference l).geometry (gap l n) 0 _ _ k z.2 theorem tangent_action (x : CycleState (Label B N0)) (l : Label B N0) (j : ℤ) (n : ℕ) (k : Frequency) (z : Native) : ((parameters x l).nativeTangent j n).action (ParticularWaveBounds.nativePoint ((parameters x l).geometry n) k z) = ActualPrimaryDynamics.clockScale l.2 n • PrimaryCopyBridge.baseOperator ((ActualPrimary.phases B N0 l.1).phase.F l.2 (referencePoint l n k z).1) ((ActualPrimary.phases B N0 l.1).phase.shear l.2 ((referencePoint l n k z).1,(referencePoint l n k z).2.2)) := by change PhysicalParticularWave.clockWeight ActualPrimary.h (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2)) • PrimaryCopyBridge.baseOperator ((ActualPrimary.phases B N0 l.1).phase.F l.2 (referencePoint l n k z).1) ((ActualPrimary.phases B N0 l.1).phase.shear l.2 ((referencePoint l n k z).1, (CopySolveCompatibility.nativeTimeMap 0 (PhysicalParticularWave.clockWeight ActualPrimary.h (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2))) (((parameters x l).geometry n).coordinates k z.2)).2)) = _ rw [transported_coordinates, ← ActualPrimaryDynamics.clockScale_eq] theorem tangent_damping (x : CycleState (Label B N0)) (l : Label B N0) (j : ℤ) (n : ℕ) (k : Frequency) (z : Native) : ((parameters x l).nativeTangent j n).damping (ParticularWaveBounds.nativePoint ((parameters x l).geometry n) k z) = ActualPrimaryDynamics.clockScale l.2 n * ((j:ℝ)^2 * (ChartScales.epsilon ActualPrimary.h (BaseChartJets.cellBand l.2) * (ChartScales.carrier ActualPrimary.h (BaseChartJets.cellBand l.2) : ℝ)^2 * ‖(ActualPrimary.phases B N0 l.1).phase.normal l.2 ((referencePoint l n k z).1,(referencePoint l n k z).2.2)‖^2)) := by change PhysicalParticularWave.clockWeight ActualPrimary.h (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2)) * ((j:ℝ)^2 * ((ActualPrimary.phases B N0 l.1).frame l.2).viscosity ((referencePoint l n k z).1, (CopySolveCompatibility.nativeTimeMap 0 (PhysicalParticularWave.clockWeight ActualPrimary.h (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2))) (((parameters x l).geometry n).coordinates k z.2)).2)) = _ rw [transported_coordinates, ← ActualPrimaryDynamics.clockScale_eq] rfl theorem native_damping_match {x : CycleState (Label B N0)} (H : PreservesCarriers x) (l : Label B N0) (j : ℤ) (n : ℕ) (k : Frequency) {z : Native} (hi : CommonWindow.index ActualPrimary.h n ≤ ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.2)) (hR : 0 < z.1.1.1) (hT : 0 < z.1.1.2.1) (hc : (referencePoint l n k z).2 ∈ (ActualPrimary.clockWindow l.2).core) : ((parameters x l).nativeTangent j n).damping (ParticularWaveBounds.nativePoint ((parameters x l).geometry n) k z) = (ParticularParameters.nativeStrip associatedStrip).epsilon n * (data x l j).background.frequency n ^ 2 * ‖(data x l j).background.normal (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n z‖ ^ 2 := by rw [tangent_damping, data_normal H, background_normal l n hR hT, data_frequency H] rw [referencePoint_eq_copy l n k hi z] at hc ⊢ rw [ActualPrimaryDynamics.normal_eq_copy l.1 l.2 n ActualPrimary.standardRegion k hR hT hc] change _ = ChartScales.epsilon ActualPrimary.h n * _ ^ 2 * _ rw [mul_pow] calc _ = (j:ℝ)^2 * (ActualPrimaryDynamics.clockScale l.2 n * (ChartScales.epsilon ActualPrimary.h (BaseChartJets.cellBand l.2) * (ChartScales.carrier ActualPrimary.h (BaseChartJets.cellBand l.2) : ℝ)^2 * ‖(ActualPrimary.phases B N0 l.1).phase.normal l.2 (ActualPrimary.phasePoint l.2 (ActualPrimaryDynamics.copyPoint l.1 l.2 n k (nativeToFull z)))‖^2)) := by simp only [ActualPrimary.phasePoint]; ring _ = _ := by rw [← ActualPrimaryDynamics.damping_scale]; ring theorem reference_slotDirection (l : Label B N0) : ParticularWaveBounds.slotDirection (reference l).geometry = ChartScales.timeCoefficient ActualPrimary.h (BaseChartJets.cellBand l.2) • ActualPrimary.temporalVector := by change (ActualSignedGeometry.slotGeometry ActualPrimary.slots ActualPrimary.vectors_det (spatialLabel l) 0).basis (0,1) = _ have he := ActualSignedGeometry.slotGeometry_basis ActualPrimary.slots ActualPrimary.vectors_det (spatialLabel l) 0 (0,1) simp only [zero_smul, zero_add, mul_one] at he exact he theorem native_fast (x : CycleState (Label B N0)) (l : Label B N0) (n : ℕ) (hi : CommonWindow.index ActualPrimary.h n ≤ ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.2)) : (directions (B := B)).fastScale n • (directions (B := B)).fast = ((0 : Parameter × ℝ), ParticularWaveBounds.slotDirection ((parameters x l).geometry n)) := by have hs : ParticularWaveBounds.slotDirection ((parameters x l).geometry n) = CommonBaseContext.fastCoefficient ActualPrimary.h (CommonWindow.index ActualPrimary.h) n • ActualPrimary.temporalVector := by apply (coverPower (gap l n)).injective change coverPower (gap l n) (ParticularWaveBounds.slotDirection (CopySolveCompatibility.transportGeometry (reference l).geometry (gap l n) 0 _ _)) = _ conv_lhs => erw [ScaledTangentTransport.slotDirection_transport] rw [reference_slotDirection, map_smul, show coverPower (gap l n) ActualPrimary.temporalVector = ChartScales.Tg ^ gap l n • ActualPrimary.temporalVector from CommonBaseContext.coverPower_temporal _, smul_smul, smul_smul] change (PhysicalParticularWave.clockWeight ActualPrimary.h (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2)) * ChartScales.timeCoefficient ActualPrimary.h (BaseChartJets.cellBand l.2)) • ActualPrimary.temporalVector = _ congr 1 rw [← ActualPrimaryDynamics.clockScale_eq] unfold CommonBaseContext.fastCoefficient ChartScales.timeCoefficient ActualPrimaryDynamics.clockScale have he : CommonWindow.index ActualPrimary.h n + gap l n = ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.2) := Nat.add_sub_of_le hi rw [← he, pow_add] field_simp [(Real.rpow_pos_of_pos (ChartScales.Q_pos (BaseChartJets.cellBand l.2)) (1+ActualPrimary.h)).ne'] rw [hs] change CommonBaseContext.fastCoefficient ActualPrimary.h (CommonWindow.index ActualPrimary.h) n • ((0 : Parameter × ℝ), ActualPrimary.temporalVector) = _ simp only [Prod.smul_mk, smul_zero] theorem native_action_match (x : CycleState (Label B N0)) (l : Label B N0) (j : ℤ) (n : ℕ) (k : Frequency) {z : Native} (hi : CommonWindow.index ActualPrimary.h n ≤ ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.2)) (hR : 0 < z.1.1.1) (hT : 0 < z.1.1.2.1) (v : ProblemStatement.Space) : CurlClassBounds.complexify (((parameters x l).nativeTangent j n).action (ParticularWaveBounds.nativePoint ((parameters x l).geometry n) k z) v) = LinearWaveResidual.shear ((data x l j).background.radius n) ((data x l j).background.frequencyBase n) ((data x l j).background.axialBase n) ((directions (B := B)).radialField n) (fun _ => CurlClassBounds.complexify v) z := by let q := nativeToFull z let a := ActualPrimary.chartCoefficients l.1 l.2 let d := PrimaryResidualClass.directions (ActualPrimary.commonContext B) have hfg := ActualPrimaryDynamics.frequency_germ l.1 l.2 n k (x := q) hR hT have hgg := ActualPrimaryDynamics.axial_germ l.1 l.2 n k (x := q) hT obtain ⟨hFr,hGr⟩ := ActualPrimaryDynamics.native_base_differentiable l.1 l.2 n k (x := q) hR hT have hF : DifferentiableAt ℝ (a.frequencyBase n) q := ((hFr.comp q (ActualPrimaryDynamics.copyPoint_hasFDerivAt l.1 l.2 n k q).fst.differentiableAt).const_mul (ActualPrimaryDynamics.clockScale l.2 n)).congr_of_eventuallyEq hfg have hG : DifferentiableAt ℝ (a.axialBase n) q := ((hGr.comp q (ActualPrimaryDynamics.copyPoint_hasFDerivAt l.1 l.2 n k q).fst.differentiableAt).const_mul (ActualPrimaryDynamics.velocityScale l.2 n)).congr_of_eventuallyEq hgg have hr : LinearWaveResidual.shear ((data x l j).background.radius n) ((data x l j).background.frequencyBase n) ((data x l j).background.axialBase n) ((directions (B := B)).radialField n) (fun _ => CurlClassBounds.complexify v) z = LinearWaveResidual.shear (a.radius n) (a.frequencyBase n) (a.axialBase n) (d.radialField n) (fun _ => CurlClassBounds.complexify v) q := by change LinearWaveResidual.shear (fun y => a.radius n (nativeToFull y)) (fun y => a.frequencyBase n (nativeToFull y)) (fun y => a.axialBase n (nativeToFull y)) ((ParticularWaveBounds.reindexDirections nativeToFull d).radialField n) (fun _ => CurlClassBounds.complexify v) z = _ rw [ParticularWaveBounds.reindex_radialField] simp only [LinearWaveResidual.shear, ParticularWaveBounds.along_reindex nativeToFull _ hF, ParticularWaveBounds.along_reindex nativeToFull _ hG, q] rw [hr, tangent_action, referencePoint_eq_copy l n k hi z] have hs := ActualPrimaryDynamics.copy_shear_function l.1 l.2 n k (fun _ => v) (x := q) hR hT rw [SignedWaveUpdate.shear_smul] at hs apply smul_right_injective _ (ActualPrimaryDynamics.velocityScale_pos l.2 n).ne' simpa only [_root_.smul_apply, map_smul, smul_smul, mul_comm, ActualPrimary.phasePoint, q, a, d] using hs.symm theorem referencePoint_contDiff (l : Label B N0) (n : ℕ) (k : Frequency) (hi : CommonWindow.index ActualPrimary.h n ≤ ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.2)) : ContDiff ℝ ∞ (referencePoint l n k) := by have he : referencePoint l n k = fun z => ActualPrimaryDynamics.copyPoint l.1 l.2 n k (nativeToFull z) := funext (referencePoint_eq_copy l n k hi) rw [he] exact (ActualPrimaryDynamics.copyPoint_smooth l.1 l.2 n k).comp nativeToFull.contDiff /-- The copied normal equality is a true germ, including on the closed transverse core boundary. Only slot time and the slow carrier are open. -/ theorem native_normal_germ {x : CycleState (Label B N0)} (H : PreservesCarriers x) (l : Label B N0) (j : ℤ) (hj : j ≠ 0) (n : ℕ) (k : Frequency) {z : Native} (hi : CommonWindow.index ActualPrimary.h n ≤ ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.2)) (hR : 0 < z.1.1.1) (hT : 0 < z.1.1.2.1) (hp : (referencePoint l n k z).1 ∈ (PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).carrier l.2) (ht : (referencePoint l n k z).2.2 ∈ Ioo 0 ((ActualPrimary.phases B N0 l.1).L l.2)) (hc : (referencePoint l n k z).2 ∈ (ActualPrimary.clockWindow l.2).core) : (data x l j).background.normal (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n =ᶠ[𝓝 z] fun y => ((parameters x l).nativeTangent j n).normal (ParticularWaveBounds.nativePoint ((parameters x l).geometry n) k y) := by have hc' := hc rw [referencePoint_eq_copy l n k hi z] at hc' have hn := nativeToFull.continuous.continuousAt.eventually (ActualSignedDynamics.normal_eq_copy_germ l.1 l.2 n ActualPrimary.standardRegion k hR hT hc') have hp' := (referencePoint_contDiff l n k hi).continuous.fst.continuousAt.eventually ((PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).isOpen l.2 |>.mem_nhds hp) have ht' := (referencePoint_contDiff l n k hi).continuous.snd.snd.continuousAt.eventually (isOpen_Ioo.mem_nhds ht) filter_upwards [hn, hp', ht', (isOpen_lt continuous_const continuous_fst.fst.fst).mem_nhds hR, (isOpen_lt continuous_const continuous_fst.fst.snd.fst).mem_nhds hT] with y hny hpy hty hRy hTy rw [data_normal H, background_normal l n hRy hTy, hny, tangent_normal (carrier_frequency H) l j hj, ← referencePoint_eq_copy l n k hi y] congr 1 have hf := ActualPrimaryDynamics.frame_normal (ActualPrimary.phases B N0 l.1) l.2 (z := ((referencePoint l n k y).1,(referencePoint l n k y).2.2)) ⟨hpy,(ActualPrimary.phases B N0 l.1).interval l.2 ⟨hty.1.le,hty.2.le⟩⟩ simpa only [ActualPrimary.phasePoint] using hf.symm section ModalTangency variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] {s : WeightedClasses.StripData (P × TorusInverse.Plane)} {α : ℝ} {ds : LinearWaveBounds.GraphDirections (P × TorusInverse.Plane)} {frame : ℕ → PrimaryODE.FrameData (P × ℝ)} {t : ℕ → TangentData P ProblemStatement.Space} {source : ℕ → P × TorusInverse.Plane → ComplexVector} {j : ℤ} {g : ℕ → Geometry} {len : ℕ → ℝ} {envelope : ℕ → ℝ → ℝ} {C : ℕ → Frequency → Set (P × TorusInverse.Plane)} /-- The actual modal reconstruction is tangent throughout a neighborhood of a closed-cell point. The normal match is a primitive geometric germ; the tangency of both solved components follows from the modal bridges. -/ theorem complexCopy_tangent_germ (a : LinearWaveBounds.WaveCoefficients (P × TorusInverse.Plane)) (hL : ∀ n, 0 < len n) (hr : ParticularCopyBounds.ModalControl s α frame (fun n => ParticularWaveBounds.realData (t n) (source n)) j g len envelope C) (hi : ParticularCopyBounds.ModalControl s α frame (fun n => ParticularWaveBounds.imagData (t n) (source n)) j g len envelope C) (n : ℕ) (k : Frequency) {z : P × TorusInverse.Plane} (hz : z ∈ s.domain) (hC : z ∈ C n k) (hN : a.normal s ds n =ᶠ[𝓝 z] fun y => (t n).normal (ParticularWaveBounds.nativePoint (g n) k y)) : (fun y => normalDot (a.normal s ds n y) ((ParticularWaveBounds.complexCopyCoefficients a t source g (fun _ => k) len hL).amplitude n y)) =ᶠ[𝓝 z] fun _ => 0 := by filter_upwards [hN, (hr.open_neighborhood n k).mem_nhds (hr.contains n k z hz hC), (hi.open_neighborhood n k).mem_nhds (hi.contains n k z hz hC)] with y hy hyr hyi have htR := ParticularWaveBounds.copyVelocity_tangent_of_modal (frame n) (ParticularWaveBounds.realData (t n) (source n)) j (g n) k (hL n).le (hr.bridge n k) hyr ⟨(hr.current_slot n k y hyr).1.le,(hr.current_slot n k y hyr).2.le⟩ have htI := ParticularWaveBounds.copyVelocity_tangent_of_modal (frame n) (ParticularWaveBounds.imagData (t n) (source n)) j (g n) k (hL n).le (hi.bridge n k) hyi ⟨(hi.current_slot n k y hyi).1.le,(hi.current_slot n k y hyi).2.le⟩ rw [hy] change normalDot ((t n).normal (ParticularWaveBounds.nativePoint (g n) k y)) (ParticularWaveBounds.copyVelocity (ParticularWaveBounds.realData (t n) (source n)) (g n) (hL n).le k y + Complex.I • ParticularWaveBounds.copyVelocity (ParticularWaveBounds.imagData (t n) (source n)) (g n) (hL n).le k y) = 0 have hadd (N : ProblemStatement.Space) (u v : ComplexVector) : normalDot N (u + Complex.I • v) = normalDot N u + Complex.I * normalDot N v := by simp only [normalDot, Pi.add_apply, Pi.smul_apply, smul_eq_mul] ring change normalDot ((t n).normal (ParticularWaveBounds.nativePoint (g n) k y)) (ParticularWaveBounds.copyVelocity (ParticularWaveBounds.realData (t n) (source n)) (g n) (hL n).le k y) = 0 at htR change normalDot ((t n).normal (ParticularWaveBounds.nativePoint (g n) k y)) (ParticularWaveBounds.copyVelocity (ParticularWaveBounds.imagData (t n) (source n)) (g n) (hL n).le k y) = 0 at htI rw [hadd,htR,htI,mul_zero,add_zero] end ModalTangency section ReindexGeometry variable {E F : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] theorem reindex_vector_derivative (e : E ≃ₗᵢ[ℝ] F) {V : F → F} {z : E} (hV : DifferentiableAt ℝ V (e z)) (w : F) : fderiv ℝ (ParticularWaveBounds.reindexVector e V) z (e.symm w) = e.symm (fderiv ℝ V (e z) w) := by have hd := e.symm.toContinuousLinearEquiv.hasFDerivAt.comp z (hV.hasFDerivAt.comp z e.toContinuousLinearEquiv.hasFDerivAt) change fderiv ℝ (e.symm.toContinuousLinearEquiv ∘ V ∘ e) z (e.symm w) = _ rw [hd.fderiv] simp theorem geometryAt_reindex (e : E ≃ₗᵢ[ℝ] F) {R : F → ℝ} {Vr Vθ Vz : F → F} {z : E} (G : ClosedNativeWaveIdentities.GeometryAt R Vr Vθ Vz (e z)) : ClosedNativeWaveIdentities.GeometryAt (fun y => R (e y)) (ParticularWaveBounds.reindexVector e Vr) (ParticularWaveBounds.reindexVector e Vθ) (ParticularWaveBounds.reindexVector e Vz) z := by have smooth (V : F → F) (hV : ContDiffAt ℝ ∞ V (e z)) : ContDiffAt ℝ ∞ (ParticularWaveBounds.reindexVector e V) z := e.symm.contDiff.contDiffAt.comp z (hV.comp z e.contDiff.contDiffAt) refine ⟨G.radius_smooth.comp z e.contDiff.contDiffAt, G.radius_ne, smooth Vr G.radial_smooth, smooth Vθ G.angular_smooth, smooth Vz G.axial_smooth, ?_, ?_, ?_, ?_, ?_, ?_⟩ · rw [ParticularWaveBounds.along_reindex e _ (G.radius_smooth.differentiableAt (by simp))] exact G.radial_radius · rw [ParticularWaveBounds.along_reindex e _ (G.radius_smooth.differentiableAt (by simp))] exact G.angular_radius · rw [ParticularWaveBounds.along_reindex e _ (G.radius_smooth.differentiableAt (by simp))] exact G.axial_radius · simp only [ParticularWaveBounds.reindexVector, reindex_vector_derivative e (G.radial_smooth.differentiableAt (by simp)), reindex_vector_derivative e (G.angular_smooth.differentiableAt (by simp)), G.radial_angular] · simp only [ParticularWaveBounds.reindexVector, reindex_vector_derivative e (G.radial_smooth.differentiableAt (by simp)), reindex_vector_derivative e (G.axial_smooth.differentiableAt (by simp)), G.radial_axial] · simp only [ParticularWaveBounds.reindexVector, reindex_vector_derivative e (G.angular_smooth.differentiableAt (by simp)), reindex_vector_derivative e (G.axial_smooth.differentiableAt (by simp)), G.angular_axial] theorem geometryAt_of_cylindrical {Ω : Set F} {R : F → ℝ} {Vr Vθ Vz : F → F} {z : F} (G : CurlClassBounds.CylindricalGeometry Ω R Vr Vθ Vz) (hz : z ∈ Ω) : ClosedNativeWaveIdentities.GeometryAt R Vr Vθ Vz z := ⟨G.radius_smooth.contDiffAt (G.isOpen.mem_nhds hz), G.radius_ne z hz, G.radial_smooth.contDiffAt (G.isOpen.mem_nhds hz), G.angular_smooth.contDiffAt (G.isOpen.mem_nhds hz), G.axial_smooth.contDiffAt (G.isOpen.mem_nhds hz), G.radial_radius z hz, G.angular_radius z hz, G.axial_radius z hz, G.radial_angular z hz, G.radial_axial z hz, G.angular_axial z hz⟩ end ReindexGeometry theorem native_geometry (x : CycleState (Label B N0)) (l : Label B N0) (j : ℤ) (n : ℕ) {z : Native} (hR : 0 < z.1.1.1) (hT : 0 < z.1.1.2.1) : ClosedNativeWaveIdentities.GeometryAt ((data x l j).background.radius n) ((directions (B := B)).radialField n) (fun _ => (directions (B := B)).angular) ((directions (B := B)).axialField (ParticularParameters.nativeStrip associatedStrip) n) z := by have G := geometryAt_of_cylindrical (ActualPrimaryCoherence.piece_geometry ActualPrimary.standardRegion B n) (show nativeToFull z ∈ ActualPrimaryCoherence.positiveRadialChart from ⟨hR,hT⟩) have he := geometryAt_reindex nativeToFull G rw [native_strip_eq] simp only [directions, ParticularWaveBounds.reindex_radialField, ParticularWaveBounds.reindex_axialField] at he ⊢ exact he theorem invariant_native {E : Type} {f : ActualPrimary.FullPoint → E} (hf : CopyAngularInvariance.Invariant ((0 : CyclePoint),1) f) : CopyAngularInvariance.Invariant (directions (B := B)).angular (fun z => f (nativeToFull z)) := by intro z t have he : nativeToFull (z+t • (directions (B := B)).angular) = nativeToFull z + t • ((0 : CyclePoint),1) := by rw [map_add,map_smul] rfl change f (nativeToFull (z+t • (directions (B := B)).angular)) = f (nativeToFull z) rw [he] exact hf _ _ theorem native_angular (x : CycleState (Label B N0)) (l : Label B N0) (j : ℤ) (n : ℕ) (k : Frequency) : ClosedNativeWaveIdentities.AngularData ((data x l j).raw k) (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) (fun m => (data x l j).cutoff m k) n := by have hA := ActualPrimary.chartCoefficients_angular l.1 l.2 refine ⟨invariant_native (B := B) (hA.radius n), invariant_native (B := B) (hA.radialBase n), invariant_native (B := B) (hA.frequencyBase n), invariant_native (B := B) (hA.axialBase n), ?_, ?_, ?_, ?_, ?_⟩ · have hi := (invariant_native (B := B) (PrimaryResidualClass.directions_radial_invariant (ActualPrimary.commonContext B) n)).map nativeToFull.symm simp only [directions, ParticularWaveBounds.reindex_radialField] at hi ⊢ exact hi · exact ⟨_, ParticularWaveAssembly.actualCarrier_affine (parameters x l).background (assembly x l).carrierBlock j n⟩ · exact ParticularWaveAssembly.complexCopyVelocity_invariant (ParticularWaveAssembly.angleTangent_invariant _) (ParticularWaveAssembly.angleLift_invariant _) ((parameters x l).geometry n) ((parameters x l).length_pos n).le k · exact ParticularWaveAssembly.complexCopyPressure_invariant (ParticularWaveAssembly.angleTangent_invariant _) (ParticularWaveAssembly.angleLift_invariant _) ((parameters x l).geometry n) ((parameters x l).length_pos n).le k _ · exact CopyAngularInvariance.nativeCutoff_invariant ((0 : Parameter), (1 : ℝ)) ((parameters x l).geometry n) ((parameters x l).cutoff n) k theorem associated_frame_match (l : Label B N0) : WaveFrameMatch (associatedContext (B := B)) (HarmonicWaveInteraction.productStrip associatedStrip) (ParticularWaveBounds.reindexDirections ParticularWaveAssembly.angleShuffle (directions (B := B))) (ParticularWaveBounds.reindexCoefficients ParticularWaveAssembly.angleShuffle (background l)) := by refine ⟨fun _ => rfl, fun _ => rfl, ?_, rfl, ?_, ?_, fun _ _ => rfl, fun _ _ => rfl, fun _ _ => rfl⟩ · intro n exact PrimaryResidualClass.directions_radial (associatedContext (B := B)) n · intro n exact PrimaryResidualClass.directions_axial associatedStrip (associatedContext (B := B)) rfl n · intro n exact PrimaryResidualClass.directions_time associatedStrip (associatedContext (B := B)) rfl n theorem native_radialProfile_smoothAt {z : Native} (hR : 0 < z.1.1.1) : ContDiffAt ℝ ∞ (directions (B := B)).radialProfile z := by change ContDiffAt ℝ ∞ (fun y : Native => ChartScales.radialExponent ActualPrimary.h * y.1.1.1 ^ (ChartScales.radialExponent ActualPrimary.h - 1)) z exact contDiffAt_const.mul (contDiffAt_fst.fst.fst.rpow_const_of_ne hR.ne') theorem native_base_smoothAt (x : CycleState (Label B N0)) (l : Label B N0) (j : ℤ) (n : ℕ) {z : Native} (hR : 0 < z.1.1.1) (hT : 0 < z.1.1.2.1) : ContDiffAt ℝ ∞ ((data x l j).background.radialBase n) z ∧ ContDiffAt ℝ ∞ ((data x l j).background.frequencyBase n) z ∧ ContDiffAt ℝ ∞ ((data x l j).background.axialBase n) z := by let χ : Native → PhaseCalculus.Slow := fun y => (y.1.1.1,(y.1.1.2.2,y.1.1.2.1)) have hχ : ContDiff ℝ ∞ χ := contDiff_fst.fst.fst.prodMk (contDiff_fst.fst.snd.snd.prodMk contDiff_fst.fst.snd.fst) refine ⟨?_,?_,?_⟩ · exact (BaseContextAssembly.radialSlow_smoothAt ActualPrimary.certificate ActualPrimary.modulation ActualPrimary.upper B n (p := χ z) hT).comp z hχ.contDiffAt · exact (ActualPrimaryCoherence.frequencySlow_smoothAt B n (p := χ z) hR hT).comp z hχ.contDiffAt · exact (ActualPrimaryCoherence.axialSlow_smoothAt B n (p := χ z) hT).comp z hχ.contDiffAt theorem data_phase_smoothAt {x : CycleState (Label B N0)} (H : PreservesCarriers x) (l : Label B N0) (j : ℤ) (n : ℕ) {z : Native} (hR : 0 < z.1.1.1) (hT : 0 < z.1.1.2.1) : ContDiffAt ℝ ∞ ((data x l j).background.phase n) z := by rw [data_phase H] exact ((ActualPrimaryCoherence.chart_phase_smooth l.1 l.2 n).contDiffAt (ActualPrimaryCoherence.positiveRadialChart_open.mem_nhds (show nativeToFull z ∈ ActualPrimaryCoherence.positiveRadialChart from ⟨hR,hT⟩))).comp z nativeToFull.contDiff.contDiffAt theorem native_cutoff_smooth (x : CycleState (Label B N0)) (l : Label B N0) (j : ℤ) (n : ℕ) (k : Frequency) : ContDiff ℝ ∞ ((data x l j).cutoff n k) := by let χ : Native → TorusInverse.Plane := fun z => CopySolveCompatibility.nativeTimeMap 0 (PhysicalParticularWave.clockWeight ActualPrimary.h (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2))) (((parameters x l).geometry n).coordinates k z.2) have hχ : ContDiff ℝ ∞ χ := by change ContDiff ℝ ∞ (fun z : Native => ((((parameters x l).geometry n).coordinates k z.2).1, 0 + PhysicalParticularWave.clockWeight ActualPrimary.h (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2)) * (((parameters x l).geometry n).coordinates k z.2).2)) have hcoord : ContDiff ℝ ∞ (fun z : Native => ((parameters x l).geometry n).coordinates k z.2) := (((parameters x l).geometry n).coordinates_contDiff k).comp contDiff_snd exact hcoord.fst.prodMk (contDiff_const.add (contDiff_const.mul hcoord.snd)) dsimp only [data, ParticularParameters.copyData, parameters, ParticularParameters.fromReference] exact ((ActualPrimary.clockWindow l.2).cutoff_contDiff.comp hχ).mul ((GaussianTailFlat.slotCutoff_contDiff ((ActualPrimary.phases B N0 l.1).L l.2)).comp hχ.snd) theorem native_normal_ne {x : CycleState (Label B N0)} (H : PreservesCarriers x) (l : Label B N0) (j : ℤ) (n : ℕ) (k : Frequency) {z : Native} (hi : CommonWindow.index ActualPrimary.h n ≤ ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.2)) (hR : 0 < z.1.1.1) (hT : 0 < z.1.1.2.1) (hp : (referencePoint l n k z).1 ∈ (PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).carrier l.2) (ht : (referencePoint l n k z).2.2 ∈ Icc 0 ((ActualPrimary.phases B N0 l.1).L l.2)) (hc : (referencePoint l n k z).2 ∈ (ActualPrimary.clockWindow l.2).core) : (data x l j).background.normal (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n z ≠ 0 := by rw [data_normal H, background_normal l n hR hT] rw [referencePoint_eq_copy l n k hi z] at hp ht hc rw [ActualPrimaryDynamics.normal_eq_copy l.1 l.2 n ActualPrimary.standardRegion k hR hT hc] apply smul_ne_zero (ActualPrimaryDynamics.normalScale_pos l.2 n).ne' intro hzero have hn := ActualPrimaryDynamics.frame_tail_ne (ActualPrimary.phases B N0 l.1) l.2 (z := ActualPrimary.phasePoint l.2 (ActualPrimaryDynamics.copyPoint l.1 l.2 n k (nativeToFull z))) ⟨hp,(ActualPrimary.phases B N0 l.1).interval l.2 ht⟩ exact hn (by rw [hzero]; ext i; fin_cases i <;> rfl) theorem rawJets_at {x : CycleState (Label B N0)} (H : PreservesCarriers x) (l : Label B N0) (j : ℤ) (n : ℕ) (k : Frequency) {z : Native} (hi : CommonWindow.index ActualPrimary.h n ≤ ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.2)) (hR : 0 < z.1.1.1) (hT : 0 < z.1.1.2.1) (hp : (referencePoint l n k z).1 ∈ (PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).carrier l.2) (ht : (referencePoint l n k z).2.2 ∈ Icc 0 ((ActualPrimary.phases B N0 l.1).L l.2)) (hc : (referencePoint l n k z).2 ∈ (ActualPrimary.clockWindow l.2).core) (ha : ContDiffAt ℝ ∞ ((data x l j).amplitude n k) z) (hpres : ContDiffAt ℝ ∞ ((data x l j).pressure n k) z) : ClosedNativeWaveIdentities.RawJetsAt ((data x l j).raw k) (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) (fun m => (data x l j).cutoff m k) n z := by obtain ⟨hb,hF,hG⟩ := native_base_smoothAt x l j n hR hT exact ⟨native_radialProfile_smoothAt hR, data_phase_smoothAt H l j n hR hT, contDiffAt_fst.fst.fst, hb.differentiableAt (by simp), hF.differentiableAt (by simp), hG.differentiableAt (by simp), ha, hpres.differentiableAt (by simp), (native_cutoff_smooth x l j n k).contDiffAt, hR.ne', native_normal_ne H l j n k hi hR hT hp ht hc⟩ section ZeroCutoff variable {D I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] omit [NormedSpace ℝ D] in theorem localized_zero_of_cutoff_germ (a : PeriodizedWaveBounds.CopyData D I) {n : ℕ} {i : I} {z : D} (h : a.cutoff n i =ᶠ[𝓝 z] fun _ => 0) : ((a.localized i).amplitude n =ᶠ[𝓝 z] fun _ => 0) ∧ ((a.localized i).pressure n =ᶠ[𝓝 z] fun _ => 0) := by constructor · filter_upwards [h] with y hy change a.cutoff n i y • a.amplitude n i y = 0 rw [hy, zero_smul] · filter_upwards [h] with y hy change (a.cutoff n i y : ℂ) * a.pressure n i y = 0 rw [hy, Complex.ofReal_zero, zero_mul] theorem gaussian_eq_source_of_cutoff_germ (a : PeriodizedWaveBounds.CopyData D I) (d : LinearWaveBounds.GraphDirections D) {n : ℕ} {i : I} {z : D} (h : a.cutoff n i =ᶠ[𝓝 z] fun _ => 0) : a.localGaussian d n i =ᶠ[𝓝 z] a.source n := by have hd := ParticularWaveAssembly.along_germ h (d.fastField n) filter_upwards [h, hd] with y hy hdy change along (d.fastField n) (a.cutoff n i) y • a.amplitude n i y + (1-a.cutoff n i y) • a.source n y = a.source n y rw [hdy,hy] simp [along] theorem cancellation_of_cutoff_germ (a : PeriodizedWaveBounds.CopyData D I) (s : WeightedClasses.StripData D) (d : LinearWaveBounds.GraphDirections D) {n : ℕ} {i : I} {z : D} (h : a.cutoff n i =ᶠ[𝓝 z] fun _ => 0) : (a.corrected s d i).harmonicResidual s d n z + (fun q => a.source n z q * carrier (a.background.frequency n) (a.background.phase n) z) = (fun q => (a.localGood s d n i z q + a.localGaussian d n i z q) * carrier (a.background.frequency n) (a.background.phase n) z) := by obtain ⟨ha,hp⟩ := localized_zero_of_cutoff_germ a h have hout := (LocalizedWaveBounds.nativeFamily a).outputs_zero_germs s d ha hp have hr := CorrectionStep.harmonicResidual_zero_germ (a.corrected s d i) s d hout.2.1 hp have hg : a.localGood s d n i =ᶠ[𝓝 z] fun _ => 0 := hout.2.2 rw [hr.eq_of_nhds,hg.eq_of_nhds,(gaussian_eq_source_of_cutoff_germ a d h).eq_of_nhds] ext q simp end ZeroCutoff noncomputable def selectedDirections (e : ℕ → ActivePair B N0) : LinearWaveBounds.GraphDirections Native := { directions (B := B) with radialScale := fun q => (directions (B := B)).radialScale (selectedBand e q) fastScale := fun q => (directions (B := B)).fastScale (selectedBand e q) } noncomputable def modalStrip (e : ℕ → ActivePair B N0) := UniformPrimaryWeights.reindexedStrip (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip (selectedStrip e))) (fun q => (q, ())) theorem selected_principal {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) {α : ℝ} (j : ℤ) (hj : j ≠ 0) (Hs : LabelSumBounds.UniformWaveClass (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) nativeEnvelope α (currentSource x j)) (e : ℕ → ActivePair B N0) (q : ℕ) (k : Frequency) {z : Native} (hz : z ∈ (modalStrip e).domain) (hcell : z ∈ selectedPatch e () q k) (hR : 0 < z.1.1.1) (hT : 0 < z.1.1.2.1) (hp : (referencePoint (selectedLabel e q) (selectedBand e q) k z).1 ∈ (PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).carrier (selectedLabel e q).2) (ht : (referencePoint (selectedLabel e q) (selectedBand e q) k z).2.2 ∈ Icc 0 ((ActualPrimary.phases B N0 (selectedLabel e q).1).L (selectedLabel e q).2)) (hc : (referencePoint (selectedLabel e q) (selectedBand e q) k z).2 ∈ (ActualPrimary.clockWindow (selectedLabel e q).2).core) : ((data x (selectedLabel e q) j).raw k).principal (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) (selectedBand e q) z = -(data x (selectedLabel e q) j).source (selectedBand e q) z := by let hr := (selectedActualControl e x (carrier_frequency Hc) j hj Hs ParticularWaveBounds.realPart).pull (fun q => (q, ())) let hi := (selectedActualControl e x (carrier_frequency Hc) j hj Hs ParticularWaveBounds.imagPart).pull (fun q => (q, ())) have hindex := CommonWindow.index_le (h := ActualPrimary.h) (e q).property.2 have hfreq : (selectedBackground e x j ()).frequency q ≠ 0 := by change (data x (selectedLabel e q) j).background.frequency (selectedBand e q) ≠ 0 rw [data_frequency Hc] exact mul_ne_zero (Int.cast_ne_zero.mpr hj) (Scaling.carrier_frequency_pos (ChartScales.epsilon_pos ActualPrimary.h (selectedBand e q))).ne' have hnormal : (selectedBackground e x j ()).normal (modalStrip e) (selectedDirections e) q z = (data x (selectedLabel e q) j).background.normal (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) (selectedBand e q) z := rfl have hN : (selectedBackground e x j ()).normal (modalStrip e) (selectedDirections e) q z = (selectedTangent e x j () q).normal (ParticularWaveBounds.nativePoint (selectedGeometry e () q) k z) := by rw [hnormal] exact native_normal_match Hc (selectedLabel e q) j hj (selectedBand e q) k hindex hR hT hp ht hc have hδ : (selectedTangent e x j () q).damping (ParticularWaveBounds.nativePoint (selectedGeometry e () q) k z) = (modalStrip e).epsilon q * (selectedBackground e x j ()).frequency q ^ 2 * ‖(selectedBackground e x j ()).normal (modalStrip e) (selectedDirections e) q z‖ ^ 2 := by rw [hnormal] exact native_damping_match Hc (selectedLabel e q) j (selectedBand e q) k hindex hR hT hc have hfast : (selectedDirections e).fastScale q • (selectedDirections e).fast = ((0 : Parameter × ℝ), slotDirection (selectedGeometry e () q)) := native_fast x (selectedLabel e q) (selectedBand e q) hindex have hA := native_action_match x (selectedLabel e q) j (selectedBand e q) k hindex hR hT have result := NativePrincipalEquations.complexCopyCoefficients_principal_at (s := modalStrip e) (dirs := selectedDirections e) (frame := fun r => selectedFrame e r) (t := selectedTangent e x j ()) (source := selectedSource e x j ()) (harmonic := j) (g := selectedGeometry e ()) (L := selectedLength e ()) (envelope := selectedPulseEnvelope e ()) (K := fun r => selectedPatch e () r) (selectedBackground e x j ()) (fun r => ScaledActualParticularControl.length_pos (selectedConstruction e) (selectedClock e) () r) hr hi q k hz hcell hfreq hN hδ hfast hA exact result theorem controlPatch_geometry (x : CycleState (Label B N0)) (l : Label B N0) (n : ℕ) (k : Frequency) {z : Native} (hz : z ∈ controlPatch l n k) : 0 < z.1.1.1 ∧ 0 < z.1.1.2.1 ∧ (referencePoint l n k z).1 ∈ (PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).carrier l.2 ∧ (referencePoint l n k z).2.2 ∈ Ioo 0 ((ActualPrimary.phases B N0 l.1).L l.2) ∧ (referencePoint l n k z).2 ∈ (ActualPrimary.clockWindow l.2).core := by have hp := ActualPrimaryCoherence.piece_domain_positive ActualPrimary.standardRegion (show nativeToFull z ∈ (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip ActualPrimary.nominal ActualPrimary.standardRegion)).domain from hz.2.1.1) have hslow : (referencePoint l n k z).1 ∈ (PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).carrier l.2 := hz.2.1.2.1 have hclock : 0 < PhysicalParticularWave.clockWeight ActualPrimary.h (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2)) := PhysicalParticularWave.ratioPower_pos (ChartScales.Q_pos n) (ChartScales.Q_pos _) _ have hc : (referencePoint l n k z).2 = CopySolveCompatibility.nativeTimeMap 0 (PhysicalParticularWave.clockWeight ActualPrimary.h (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2))) (((canonicalParameters l).geometry n).coordinates k z.2) := (transported_coordinates x l n k z).symm have ht : (referencePoint l n k z).2.2 ∈ Ioo 0 ((ActualPrimary.phases B N0 l.1).L l.2) := by rw [hc] simp only [CopySolveCompatibility.nativeTimeMap, zero_add, mem_Ioo] refine ⟨mul_pos hclock hz.2.1.2.2.1, ?_⟩ have hh := (lt_div_iff₀ hclock).mp hz.2.1.2.2.2 simp only [mul_comm] at hh ⊢ exact hh refine ⟨hp.1,hp.2,hslow,ht,?_⟩ change (referencePoint l n k z).2.1 ∈ Icc (-ActualPrimary.slots.radius) ActualPrimary.slots.radius ∧ (referencePoint l n k z).2.2 ∈ Icc 0 ((ActualPrimary.phases B N0 0).L l.2) constructor · rw [hc] exact hz.2.2 · exact ⟨ht.1.le,ht.2.le⟩ theorem native_principal {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) {α : ℝ} (j : ℤ) (hj : j ≠ 0) (Hs : LabelSumBounds.UniformWaveClass (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) nativeEnvelope α (currentSource x j)) (l : Label B N0) (n : ℕ) (k : Frequency) {z : Native} (hz : z ∈ controlPatch l n k) : ((data x l j).raw k).principal (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n z = -(data x l j).source n z := by let e : ℕ → ActivePair B N0 := fun _ => ⟨(l,n),hz.1⟩ obtain ⟨hR,hT,hp,ht,hcore⟩ := controlPatch_geometry x l n k hz have hcell : z ∈ selectedPatch e () 0 k := by rw [← selected_controlPatch e () 0 k] exact hz exact selected_principal Hc j hj Hs e 0 k hz.2.1.1 hcell hR hT hp ⟨ht.1.le,ht.2.le⟩ hcore theorem native_tangency_germ {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) {α : ℝ} (j : ℤ) (hj : j ≠ 0) (Hs : LabelSumBounds.UniformWaveClass (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) nativeEnvelope α (currentSource x j)) (l : Label B N0) (n : ℕ) (k : Frequency) {z : Native} (hz : z ∈ controlPatch l n k) : (fun y => normalDot ((data x l j).background.normal (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n y) ((data x l j).amplitude n k y)) =ᶠ[𝓝 z] fun _ => 0 := by let e : ℕ → ActivePair B N0 := fun _ => ⟨(l,n),hz.1⟩ let hr := (selectedActualControl e x (carrier_frequency Hc) j hj Hs ParticularWaveBounds.realPart).pull (fun q => (q, ())) let hi := (selectedActualControl e x (carrier_frequency Hc) j hj Hs ParticularWaveBounds.imagPart).pull (fun q => (q, ())) obtain ⟨hR,hT,hp,ht,hcore⟩ := controlPatch_geometry x l n k hz have hindex := CommonWindow.index_le (h := ActualPrimary.h) hz.1.2 have hcell : z ∈ selectedPatch e () 0 k := by rw [← selected_controlPatch e () 0 k] exact hz have hN : (selectedBackground e x j ()).normal (modalStrip e) (selectedDirections e) 0 =ᶠ[𝓝 z] fun y => (selectedTangent e x j () 0).normal (ParticularWaveBounds.nativePoint (selectedGeometry e () 0) k y) := native_normal_germ Hc l j hj n k hindex hR hT hp ht hcore have result := complexCopy_tangent_germ (s := modalStrip e) (ds := selectedDirections e) (frame := fun r => selectedFrame e r) (t := selectedTangent e x j ()) (source := selectedSource e x j ()) (j := j) (g := selectedGeometry e ()) (len := selectedLength e ()) (envelope := selectedPulseEnvelope e ()) (C := fun r => selectedPatch e () r) (selectedBackground e x j ()) (fun r => ScaledActualParticularControl.length_pos (selectedConstruction e) (selectedClock e) () r) hr hi 0 k hz.2.1.1 hcell hN exact result theorem native_rawJets {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) {α : ℝ} (j : ℤ) (hj : j ≠ 0) (Hs : LabelSumBounds.UniformWaveClass (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) nativeEnvelope α (currentSource x j)) (l : Label B N0) (n : ℕ) (k : Frequency) {z : Native} (hz : z ∈ controlPatch l n k) : ClosedNativeWaveIdentities.RawJetsAt ((data x l j).raw k) (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) (fun m => (data x l j).cutoff m k) n z := by obtain ⟨hR,hT,hp,ht,hcore⟩ := controlPatch_geometry x l n k hz have hindex := CommonWindow.index_le (h := ActualPrimary.h) hz.1.2 have hraw := ActualParticularStageControls.raw_jets x (carrier_frequency Hc) j hj Hs exact rawJets_at Hc l j n k hindex hR hT hp ⟨ht.1.le,ht.2.le⟩ hcore (hraw.1.smooth l n k z hz.2.1.1 hz) (hraw.2.smooth l n k z hz.2.1.1 hz) theorem frequency_ne {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) (l : Label B N0) (j : ℤ) (hj : j ≠ 0) (n : ℕ) : (data x l j).background.frequency n ≠ 0 := by rw [data_frequency Hc] exact mul_ne_zero (Int.cast_ne_zero.mpr hj) (Scaling.carrier_frequency_pos (ChartScales.epsilon_pos ActualPrimary.h n)).ne' /-- The literal common-cover inverse solves the current source at every closed transverse cell point. No open-cell or final equation hypothesis is used. -/ theorem native_cancellation {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) {α : ℝ} (j : ℤ) (hj : j ≠ 0) (Hs : LabelSumBounds.UniformWaveClass (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) nativeEnvelope α (currentSource x j)) (l : Label B N0) (n : ℕ) (k : Frequency) {z : Native} (hz : z ∈ controlPatch l n k) : ((data x l j).corrected (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) k).harmonicResidual (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n z + (fun i => (data x l j).source n z i * carrier ((data x l j).background.frequency n) ((data x l j).background.phase n) z) = (fun i => ((data x l j).localGood (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n k z i + (data x l j).localGaussian (directions (B := B)) n k z i) * carrier ((data x l j).background.frequency n) ((data x l j).background.phase n) z) := by obtain ⟨hR,hT,_⟩ := controlPatch_geometry x l n k hz exact (native_rawJets Hc j hj Hs l n k hz).cancellation (native_angular x l j n k) (native_geometry x l j n hR hT).radial_radius (data x l j).source (native_principal Hc j hj Hs l n k hz) theorem native_realizes_curl {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) {α : ℝ} (j : ℤ) (hj : j ≠ 0) (Hs : LabelSumBounds.UniformWaveClass (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) nativeEnvelope α (currentSource x j)) (l : Label B N0) (n : ℕ) (k : Frequency) {z : Native} (hz : z ∈ controlPatch l n k) : CurlClassBounds.cylindricalCurl ((data x l j).background.radius n) ((directions (B := B)).radialField n) (fun _ => (directions (B := B)).angular) ((directions (B := B)).axialField (ParticularParameters.nativeStrip associatedStrip) n) (((data x l j).localized k).curlPotential (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n) z = vectorMode ((data x l j).background.frequency n) ((data x l j).background.phase n) (((data x l j).corrected (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) k).amplitude n) z := ClosedNativeWaveIdentities.native_realizes_curl_at (a := data x l j) (s := ParticularParameters.nativeStrip associatedStrip) (d := directions (B := B)) n k z (native_rawJets Hc j hj Hs l n k hz) (frequency_ne Hc l j hj n) (native_tangency_germ Hc j hj Hs l n k hz).eq_of_nhds theorem native_divergence_zero {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) {α : ℝ} (j : ℤ) (hj : j ≠ 0) (Hs : LabelSumBounds.UniformWaveClass (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) nativeEnvelope α (currentSource x j)) (l : Label B N0) (n : ℕ) (k : Frequency) {z : Native} (hz : z ∈ controlPatch l n k) : cylindricalDivergence ((data x l j).background.radius n) ((directions (B := B)).radialField n) (fun _ => (directions (B := B)).angular) ((directions (B := B)).axialField (ParticularParameters.nativeStrip associatedStrip) n) (vectorMode ((data x l j).background.frequency n) ((data x l j).background.phase n) (((data x l j).corrected (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) k).amplitude n)) z = 0 := by obtain ⟨hR,hT,_⟩ := controlPatch_geometry x l n k hz exact ClosedNativeWaveIdentities.native_divergence_zero_at (a := data x l j) (s := ParticularParameters.nativeStrip associatedStrip) (d := directions (B := B)) n k z (native_rawJets Hc j hj Hs l n k hz) (native_geometry x l j n hR hT) (frequency_ne Hc l j hj n) (native_tangency_germ Hc j hj Hs l n k hz) /-- The support information supplied by the actual incoming source and the common-cover cutoff. The last alternative is proved by zero source on the whole native solve path. It contains no differential equation. -/ structure SupportData (x : CycleState (Label B N0)) (l : Label B N0) (j : ℤ) where cells : PeriodizedWaveBounds.Cells Native Frequency cutoff_support : ∀ n k, support ((data x l j).cutoff n k) ⊆ cells.carrier n k cover : ∀ n k z, z ∈ (ParticularParameters.nativeStrip associatedStrip).domain → z ∈ cells.carrier n k → z ∈ controlPatch l n k ∨ ((data x l j).cutoff n k =ᶠ[𝓝 z] fun _ => 0) ∨ (((data x l j).amplitude n k =ᶠ[𝓝 z] fun _ => 0) ∧ ((data x l j).pressure n k =ᶠ[𝓝 z] fun _ => 0) ∧ ((data x l j).source n =ᶠ[𝓝 z] fun _ => 0)) theorem localized_zero_of_fields {D I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] (a : PeriodizedWaveBounds.CopyData D I) {n : ℕ} {k : I} {z : D} (ha : a.amplitude n k =ᶠ[𝓝 z] fun _ => 0) (hp : a.pressure n k =ᶠ[𝓝 z] fun _ => 0) : ((a.localized k).amplitude n =ᶠ[𝓝 z] fun _ => 0) ∧ ((a.localized k).pressure n =ᶠ[𝓝 z] fun _ => 0) := by constructor · filter_upwards [ha] with y hy change a.cutoff n k y • a.amplitude n k y = 0 rw [hy,smul_zero] · filter_upwards [hp] with y hy change (a.cutoff n k y : ℂ) * a.pressure n k y = 0 rw [hy,mul_zero] theorem SupportData.localized_alternative {x : CycleState (Label B N0)} {l : Label B N0} {j : ℤ} (S : SupportData x l j) {n : ℕ} {k : Frequency} {z : Native} (hz : z ∈ (ParticularParameters.nativeStrip associatedStrip).domain) (hk : z ∈ S.cells.carrier n k) : z ∈ controlPatch l n k ∨ (((data x l j).localized k).amplitude n =ᶠ[𝓝 z] fun _ => 0) ∧ (((data x l j).localized k).pressure n =ᶠ[𝓝 z] fun _ => 0) := by rcases S.cover n k z hz hk with hc | hcut | ⟨ha,hp,_⟩ · exact Or.inl hc · exact Or.inr (localized_zero_of_cutoff_germ _ hcut) · exact Or.inr (localized_zero_of_fields _ ha hp) noncomputable def actualWave (x : CycleState (Label B N0)) (l : Label B N0) (j : ℤ) := (parameters x l).wave associatedStrip (assembly x l).context (assembly x l).state (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput j theorem common_cancellation {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) {α : ℝ} (j : ℤ) (hj : j ≠ 0) (Hs : LabelSumBounds.UniformWaveClass (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) nativeEnvelope α (currentSource x j)) (l : Label B N0) (S : SupportData x l j) (n : ℕ) {z : Native} (hz : z ∈ (ParticularParameters.nativeStrip associatedStrip).domain) : (actualWave x l j).harmonicResidual (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n z + (fun i => (data x l j).source n z i * carrier ((data x l j).background.frequency n) ((data x l j).background.phase n) z) = (fun i => ((data x l j).globalGood (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n z i + (data x l j).globalGaussian (directions (B := B)) n z i) * carrier ((data x l j).background.frequency n) ((data x l j).background.phase n) z) := by apply (data x l j).common_cancellation S.cells S.cutoff_support (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) ?_ n hz intro m k y hy hk rcases S.cover m k y hy hk with hc | hcut | ⟨ha,hp,hf⟩ · exact native_cancellation Hc j hj Hs l m k hc · exact cancellation_of_cutoff_germ _ _ _ hcut · obtain ⟨ha',hp'⟩ := localized_zero_of_fields _ ha hp exact CorrectionStep.local_cancellation_of_zero_germs _ _ _ ha' hp' ((data x l j).localGaussian_zero_of_fields _ ha hf) hf theorem common_realizes_curl {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) {α : ℝ} (j : ℤ) (hj : j ≠ 0) (Hs : LabelSumBounds.UniformWaveClass (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) nativeEnvelope α (currentSource x j)) (l : Label B N0) (S : SupportData x l j) (n : ℕ) {z : Native} (hz : z ∈ (ParticularParameters.nativeStrip associatedStrip).domain) : CurlClassBounds.cylindricalCurl ((data x l j).background.radius n) ((directions (B := B)).radialField n) (fun _ => (directions (B := B)).angular) ((directions (B := B)).axialField (ParticularParameters.nativeStrip associatedStrip) n) ((data x l j).common.curlPotential (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n) z = vectorMode ((actualWave x l j).frequency n) ((actualWave x l j).phase n) ((actualWave x l j).amplitude n) z := by apply (data x l j).common_realizes_curl S.cells S.cutoff_support (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) ?_ n hz intro m k y hy hk rcases S.localized_alternative hy hk with hc | ⟨ha,_⟩ · exact native_realizes_curl Hc j hj Hs l m k hc · exact (LocalizedCurlRealization.native_identities_of_zero_germ _ _ _ ha).1 theorem common_divergence_zero {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) {α : ℝ} (j : ℤ) (hj : j ≠ 0) (Hs : LabelSumBounds.UniformWaveClass (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) nativeEnvelope α (currentSource x j)) (l : Label B N0) (S : SupportData x l j) (n : ℕ) {z : Native} (hz : z ∈ (ParticularParameters.nativeStrip associatedStrip).domain) : cylindricalDivergence ((data x l j).background.radius n) ((directions (B := B)).radialField n) (fun _ => (directions (B := B)).angular) ((directions (B := B)).axialField (ParticularParameters.nativeStrip associatedStrip) n) (vectorMode ((actualWave x l j).frequency n) ((actualWave x l j).phase n) ((actualWave x l j).amplitude n)) z = 0 := by apply (data x l j).common_divergence_zero S.cells S.cutoff_support (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) ?_ n hz intro m k y hy hk rcases S.localized_alternative hy hk with hc | ⟨ha,_⟩ · exact native_divergence_zero Hc j hj Hs l m k hc · exact (LocalizedCurlRealization.native_identities_of_zero_germ _ _ _ ha).2 theorem common_smooth {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) {α : ℝ} (j : ℤ) (hj : j ≠ 0) (Hs : LabelSumBounds.UniformWaveClass (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) nativeEnvelope α (currentSource x j)) (l : Label B N0) (S : SupportData x l j) (n : ℕ) : ContDiffOn ℝ ∞ ((actualWave x l j).amplitude n) (ParticularParameters.nativeStrip associatedStrip).domain ∧ ContDiffOn ℝ ∞ ((actualWave x l j).pressure n) (ParticularParameters.nativeStrip associatedStrip).domain := by have hs := (ParticularParameters.nativeStrip associatedStrip).isOpen_domain constructor <;> apply hs.contDiffOn_iff.mpr <;> intro z hz · by_cases he : ∃ k, z ∈ S.cells.carrier n k · obtain ⟨k,hk⟩ := he have hn : ContDiffAt ℝ ∞ (((data x l j).corrected (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) k).amplitude n) z := by rcases S.localized_alternative hz hk with hc | ⟨ha,_⟩ · exact (native_rawJets Hc j hj Hs l n k hc).corrected_amplitude · exact contDiffAt_const.congr_of_eventuallyEq (LocalizedCurlRealization.native_zero_germs _ _ _ ha).2.1 exact hn.congr_of_eventuallyEq ((data x l j).commonCorrected_amplitude_germ S.cells S.cutoff_support (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n hk) · exact contDiffAt_const.congr_of_eventuallyEq ((data x l j).commonCorrected_zero_germ S.cells S.cutoff_support (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) (not_exists.mp he)) · by_cases he : ∃ k, z ∈ S.cells.carrier n k · obtain ⟨k,hk⟩ := he have hn : ContDiffAt ℝ ∞ (((data x l j).localized k).pressure n) z := by rcases S.localized_alternative hz hk with hc | ⟨_,hp⟩ · have hr := (ActualParticularStageControls.raw_jets x (carrier_frequency Hc) j hj Hs).2 exact (Complex.ofRealCLM.contDiff.contDiffAt.comp z (native_cutoff_smooth x l j n k).contDiffAt).mul (hr.smooth l n k z hz hc) · exact contDiffAt_const.congr_of_eventuallyEq hp exact hn.congr_of_eventuallyEq ((data x l j).common_pressure_germ S.cells S.cutoff_support n hk) · exact contDiffAt_const.congr_of_eventuallyEq ((data x l j).common_zero_germs S.cells S.cutoff_support (not_exists.mp he)).2 theorem common_amplitude_invariant (x : CycleState (Label B N0)) (l : Label B N0) (j : ℤ) (n : ℕ) : CopyAngularInvariance.Invariant (directions (B := B)).angular ((actualWave x l j).amplitude n) := by exact (data x l j).commonCorrected_invariant (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) (directions (B := B)).angular (fun m k => (native_angular x l j m k).cutoff) (fun m k => (native_angular x l j m k).amplitude) (fun m => (native_angular x l j m 0).radius) (fun m => (native_angular x l j m 0).radial_field) (fun _ => CopyAngularInvariance.Invariant.const _) (fun m => (native_angular x l j m 0).phase) n theorem common_pressure_invariant (x : CycleState (Label B N0)) (l : Label B N0) (j : ℤ) (n : ℕ) : CopyAngularInvariance.Invariant (directions (B := B)).angular ((actualWave x l j).pressure n) := (data x l j).common_pressure_invariant (directions (B := B)).angular (fun m k => (native_angular x l j m k).cutoff) (fun m k => (native_angular x l j m k).pressure) n theorem common_good_invariant (x : CycleState (Label B N0)) (l : Label B N0) (j : ℤ) (n : ℕ) : CopyAngularInvariance.Invariant (directions (B := B)).angular ((data x l j).globalGood (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n) := (data x l j).globalGood_invariant (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) (fun m k => (native_angular x l j m k).cutoff) (fun m k => (native_angular x l j m k).amplitude) (fun m k => (native_angular x l j m k).pressure) (fun m => (native_angular x l j m 0).radius) (fun m => (native_angular x l j m 0).radial_base) (fun m => (native_angular x l j m 0).frequency_base) (fun m => (native_angular x l j m 0).axial_base) (fun m => (native_angular x l j m 0).radial_field) (fun _ => CopyAngularInvariance.Invariant.const _) (fun m => (native_angular x l j m 0).phase) n theorem common_gaussian_invariant (x : CycleState (Label B N0)) (l : Label B N0) (j : ℤ) (n : ℕ) : CopyAngularInvariance.Invariant (directions (B := B)).angular ((data x l j).globalGaussian (directions (B := B)) n) := (data x l j).globalGaussian_invariant (directions (B := B)) (directions (B := B)).angular (fun m k => (native_angular x l j m k).cutoff) (fun m k => (native_angular x l j m k).amplitude) (by intro m change CopyAngularInvariance.Invariant (((0 : Parameter),1),(0 : TorusInverse.Plane)) (angleLift (residualSource (assembly x l).context (assembly x l).state (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput j m)) exact angleLift_invariant _) n theorem source_frequency_ne {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) (l : Label B N0) (n : ℕ) : (assembly x l).carrierBlock.frequency n ≠ 0 := by change (x.coefficients.blocks l).frequency n ≠ 0 rw [carrier_frequency Hc] exact (Scaling.carrier_frequency_pos (ChartScales.epsilon_pos ActualPrimary.h n)).ne' noncomputable def actualUpdate (x : CycleState (Label B N0)) (l : Label B N0) (N : ℕ) := (parameters x l).updateBlock associatedStrip (assembly x l).context (assembly x l).state (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput N noncomputable def actualGood (x : CycleState (Label B N0)) (l : Label B N0) (N : ℕ) := (parameters x l).goodBlock associatedStrip (assembly x l).context (assembly x l).state (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput N noncomputable def actualGaussian (x : CycleState (Label B N0)) (l : Label B N0) (N : ℕ) := (parameters x l).gaussianBlock (assembly x l).context (assembly x l).state (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput N theorem update_represents {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) (l : Label B N0) (N : ℕ) : (actualUpdate x l N).oscillation = (fun n z i => ∑ j ∈ modes N, (vectorMode ((actualWave x l j).frequency n) ((actualWave x l j).phase n) ((actualWave x l j).amplitude n) (angleShuffle z) i).re) ∧ (actualUpdate x l N).oscillatoryPressure = (fun n z => ∑ j ∈ modes N, (mode ((actualWave x l j).frequency n) ((actualWave x l j).phase n) ((actualWave x l j).pressure n) (angleShuffle z)).re) := by have hθ : (directions (B := B)).angular = (((0 : Parameter),1),(0 : TorusInverse.Plane)) := rfl constructor · funext n z i rw [actualUpdate, ParticularParameters.updateBlock, assembledBlock_value] apply Finset.sum_congr rfl intro j hj have hinv := common_amplitude_invariant x l j n rw [hθ] at hinv have hi := invariant_angleShuffle hinv z.1 z.2 change Complex.re (_ * _) = ((actualWave x l j).amplitude n (angleShuffle z) i * carrier ((actualCarrier (parameters x l).background (assembly x l).carrierBlock j).frequency n) ((actualCarrier (parameters x l).background (assembly x l).carrierBlock j).phase n) (angleShuffle z)).re rw [actualCarrier_character (parameters x l).background (assembly x l).carrierBlock j (source_frequency_ne Hc l) n z, hi] rfl · funext n z rw [actualUpdate, ParticularParameters.updateBlock, assembledBlock_pressure_value] apply Finset.sum_congr rfl intro j hj have hinv := common_pressure_invariant x l j n rw [hθ] at hinv have hi := invariant_angleShuffle hinv z.1 z.2 change Complex.re (_ * _) = ((actualWave x l j).pressure n (angleShuffle z) * carrier ((actualCarrier (parameters x l).background (assembly x l).carrierBlock j).frequency n) ((actualCarrier (parameters x l).background (assembly x l).carrierBlock j).phase n) (angleShuffle z)).re rw [actualCarrier_character (parameters x l).background (assembly x l).carrierBlock j (source_frequency_ne Hc l) n z, hi] rfl theorem native_phase_smooth {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) (l : Label B N0) (j : ℤ) (n : ℕ) : ContDiffOn ℝ ∞ ((data x l j).background.phase n) (ParticularParameters.nativeStrip associatedStrip).domain := by apply (ParticularParameters.nativeStrip associatedStrip).isOpen_domain.contDiffOn_iff.mpr intro z hz have hp := ActualPrimaryCoherence.piece_domain_positive ActualPrimary.standardRegion (show nativeToFull z ∈ (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip ActualPrimary.nominal ActualPrimary.standardRegion)).domain from hz) exact data_phase_smoothAt Hc l j n hp.1 hp.2 theorem wave_smooth {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) {α : ℝ} (j : ℤ) (hj : j ≠ 0) (Hs : LabelSumBounds.UniformWaveClass (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) nativeEnvelope α (currentSource x j)) (l : Label B N0) (S : SupportData x l j) (n : ℕ) (i : Fin 3) : ContDiffOn ℝ ∞ (fun z => vectorMode ((actualWave x l j).frequency n) ((actualWave x l j).phase n) ((actualWave x l j).amplitude n) (angleShuffle z) i) (HarmonicResidual.liftDomain associatedStrip.domain) := by have hf := HarmonicCalculus.contDiffOn_mode ((actualWave x l j).frequency n) (native_phase_smooth Hc l j n) (contDiffOn_pi.mp (common_smooth Hc j hj Hs l S n).1 i) exact hf.comp (angleShuffle (P := Parameter)).contDiff.contDiffOn (fun _ hz => hz.1) theorem pressure_smooth {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) {α : ℝ} (j : ℤ) (hj : j ≠ 0) (Hs : LabelSumBounds.UniformWaveClass (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) nativeEnvelope α (currentSource x j)) (l : Label B N0) (S : SupportData x l j) (n : ℕ) : ContDiffOn ℝ ∞ (fun z => mode ((actualWave x l j).frequency n) ((actualWave x l j).phase n) ((actualWave x l j).pressure n) (angleShuffle z)) (HarmonicResidual.liftDomain associatedStrip.domain) := by have hf := HarmonicCalculus.contDiffOn_mode ((actualWave x l j).frequency n) (native_phase_smooth Hc l j n) (common_smooth Hc j hj Hs l S n).2 exact hf.comp (angleShuffle (P := Parameter)).contDiff.contDiffOn (fun _ hz => hz.1) noncomputable def supportData (x : CycleState (Label B N0)) (hs : ActualParticularStageControls.InputSupport x) (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) (l : Label B N0) (j : ℤ) : SupportData x l j where cells := ActualParticularStageControls.carrierCells l cutoff_support := ActualParticularStageControls.data_cutoff_support x l j cover n k _ hz hk := ActualParticularStageControls.data_control_alternative x hs hN l j n k hz hk theorem source_phase_smooth {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) (l : Label B N0) (n : ℕ) : ContDiffOn ℝ ∞ ((assembly x l).carrierBlock.phase n) associatedStrip.domain := by have hsection : ContDiff ℝ ∞ (fun z : Parameter × TorusInverse.Plane => angleShuffle (z,0)) := (angleShuffle (P := Parameter)).contDiff.comp (contDiff_id.prodMk contDiff_const) have hmap : MapsTo (fun z : Parameter × TorusInverse.Plane => angleShuffle (z,0)) associatedStrip.domain (ParticularParameters.nativeStrip associatedStrip).domain := fun _ hz => hz have hh := (native_phase_smooth Hc l 1 n).comp hsection.contDiffOn hmap have he : (fun z => (data x l 1).background.phase n (angleShuffle (z,0))) = (assembly x l).carrierBlock.phase n := by funext z change (assembly x l).carrierBlock.phase n z + ((assembly x l).carrierBlock.angularFrequency n : ℝ) / (assembly x l).carrierBlock.frequency n * 0 = _ simp change ContDiffOn ℝ ∞ (fun z => (data x l 1).background.phase n (angleShuffle (z,0))) associatedStrip.domain at hh rw [he] at hh exact hh theorem source_angular_ne {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) (l : Label B N0) (n : ℕ) : (assembly x l).carrierBlock.angularFrequency n ≠ 0 := by change (x.coefficients.blocks l).angularFrequency n ≠ 0 rw [← (Hc l).angular] exact PrimaryGeometryAssembly.angularMode_ne_zero ActualPrimary.certificate ActualPrimary.modulation (ActualPrimary.choice B N0).prepared l.1 l.2 theorem associated_base_smooth : MeanIncrementBounds.SmoothTriple associatedStrip.domain (associatedContext (B := B)).base := by have hh := (CommonBaseContext.context_base_bounds ActualPrimary.certificate ActualPrimary.modulation ActualPrimary.upper B ActualPrimary.standardRegion (CommonWindow.index ActualPrimary.h)).smooth exact ⟨fun n => (hh.radial n).comp cycleAssoc.symm.contDiff.contDiffOn (fun _ hz => hz), fun n => (hh.angular n).comp cycleAssoc.symm.contDiff.contDiffOn (fun _ hz => hz), fun n => (hh.axial n).comp cycleAssoc.symm.contDiff.contDiffOn (fun _ hz => hz)⟩ theorem associated_radial_smooth (n : ℕ) : ContDiffOn ℝ ∞ (HarmonicResidual.contextFrame (associatedContext (B := B)) n).radial associatedStrip.domain := by apply associatedStrip.isOpen_domain.contDiffOn_iff.mpr intro z hz have hR : 0 < z.1.1 := BaseContextAssembly.nativeStrip_radius ActualPrimary.nominal ActualPrimary.standardRegion hz have hp : ContDiffAt ℝ ∞ (associatedContext (B := B)).operators.radialProfile z := by change ContDiffAt ℝ ∞ (fun y : Parameter × TorusInverse.Plane => ChartScales.radialExponent ActualPrimary.h * y.1.1 ^ (ChartScales.radialExponent ActualPrimary.h - 1)) z exact contDiffAt_const.mul (contDiffAt_fst.fst.rpow_const_of_ne hR.ne') exact contDiffAt_const.add ((contDiffAt_const.mul hp).smul contDiffAt_const) theorem pair_smooth {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] {U : Set D} {f : D → ℂ} (hf : ContDiffOn ℝ ∞ f U) (j : ℤ) : HarmonicResidual.SmoothCoefficients U (ErrorHarmonics.conjugatePair j f) := by have hh := HarmonicWaveInteraction.smoothCoefficients_single (hf.div_const 2) j exact hh.add hh.conjugateReverse theorem update_smooth {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) {α : ℝ} (N : ℕ) (Hs : ∀ j ∈ modes N, LabelSumBounds.UniformWaveClass (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) nativeEnvelope α (currentSource x j)) (l : Label B N0) (S : ∀ j ∈ modes N, SupportData x l j) (n : ℕ) : (∀ i, HarmonicResidual.SmoothCoefficients associatedStrip.domain ((actualUpdate x l N).velocity n i)) ∧ HarmonicResidual.SmoothCoefficients associatedStrip.domain ((actualUpdate x l N).pressure n) := by have hj (j : ℤ) (h : j ∈ modes N) : j ≠ 0 := (mem_modes N j).mp h |>.1 have hsection : ContDiff ℝ ∞ (fun z : Parameter × TorusInverse.Plane => angleShuffle (z,0)) := (angleShuffle (P := Parameter)).contDiff.comp (contDiff_id.prodMk contDiff_const) have hmap : MapsTo (fun z : Parameter × TorusInverse.Plane => angleShuffle (z,0)) associatedStrip.domain (ParticularParameters.nativeStrip associatedStrip).domain := fun _ hz => hz constructor · intro i m change ContDiffOn ℝ ∞ ((∑ j ∈ modes N, ErrorHarmonics.conjugatePair j (fun z => (actualWave x l j).amplitude n (angleShuffle (z,0)) i)) m) _ rw [AddMonoidAlgebra.coeff_sum, Finsupp.finsetSum_apply] convert! ContDiffOn.sum (fun j h => pair_smooth ((contDiffOn_pi.mp (common_smooth Hc j (hj j h) (Hs j h) l (S j h) n).1 i).comp hsection.contDiffOn hmap) j m) using 1 ext y simp only [Finset.sum_apply, Function.comp_def] · intro m change ContDiffOn ℝ ∞ ((∑ j ∈ modes N, ErrorHarmonics.conjugatePair j (fun z => (actualWave x l j).pressure n (angleShuffle (z,0)))) m) _ rw [AddMonoidAlgebra.coeff_sum, Finsupp.finsetSum_apply] convert! ContDiffOn.sum (fun j h => pair_smooth ((common_smooth Hc j (hj j h) (Hs j h) l (S j h) n).2.comp hsection.contDiffOn hmap) j m) using 1 ext y simp only [Finset.sum_apply, Function.comp_def] abbrev SourceClasses (x : CycleState (Label B N0)) (N : ℕ) (α : ℝ) : Prop := ∀ j ∈ modes N, LabelSumBounds.UniformWaveClass (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) nativeEnvelope α (currentSource x j) theorem section_equation {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) {α : ℝ} (j : ℤ) (hj : j ≠ 0) (Hs : LabelSumBounds.UniformWaveClass (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) nativeEnvelope α (currentSource x j)) (l : Label B N0) (S : SupportData x l j) (n : ℕ) (z : (Parameter × TorusInverse.Plane) × ℝ) (hz : z.1 ∈ associatedStrip.domain) (i : Fin 3) : (actualWave x l j).harmonicResidual (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n (angleShuffle z) i + residualSource (assembly x l).context (assembly x l).state (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput j n z.1 i * HarmonicFields.character j ((assembly x l).carrierBlock.frequency n * (assembly x l).carrierBlock.phase n z.1 + ((assembly x l).carrierBlock.angularFrequency n : ℝ) * z.2) = ((data x l j).globalGood (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n (angleShuffle (z.1,0)) i + (data x l j).globalGaussian (directions (B := B)) n (angleShuffle (z.1,0)) i) * HarmonicFields.character j ((assembly x l).carrierBlock.frequency n * (assembly x l).carrierBlock.phase n z.1 + ((assembly x l).carrierBlock.angularFrequency n : ℝ) * z.2) := by have hg := common_good_invariant x l j n have he := common_gaussian_invariant x l j n have hθ : (directions (B := B)).angular = (((0 : Parameter),1),(0 : TorusInverse.Plane)) := rfl rw [hθ] at hg he have hgs := invariant_angleShuffle hg z.1 z.2 have hes := invariant_angleShuffle he z.1 z.2 have hh := congrFun (common_cancellation Hc j hj Hs l S n (z := angleShuffle z) hz) i change (actualWave x l j).harmonicResidual (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n (angleShuffle z) i + residualSource (assembly x l).context (assembly x l).state (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput j n z.1 i * carrier ((actualCarrier (parameters x l).background (assembly x l).carrierBlock j).frequency n) ((actualCarrier (parameters x l).background (assembly x l).carrierBlock j).phase n) (angleShuffle z) = ((data x l j).globalGood (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n (angleShuffle z) i + (data x l j).globalGaussian (directions (B := B)) n (angleShuffle z) i) * carrier ((actualCarrier (parameters x l).background (assembly x l).carrierBlock j).frequency n) ((actualCarrier (parameters x l).background (assembly x l).carrierBlock j).phase n) (angleShuffle z) at hh rw [actualCarrier_character (parameters x l).background (assembly x l).carrierBlock j (source_frequency_ne Hc l) n z, hgs, hes] at hh exact hh theorem cancellation_sum {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) {α : ℝ} (N : ℕ) (Hs : SourceClasses x N α) (l : Label B N0) (S : ∀ j ∈ modes N, SupportData x l j) (hBand : (HarmonicResidual.residualBlock (assembly x l).context (assembly x l).state (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput).BandLimited N) (n : ℕ) (z : (Parameter × TorusInverse.Plane) × ℝ) (hz : z.1 ∈ associatedStrip.domain) : (fun i => ∑ j ∈ modes N, ((actualWave x l j).harmonicResidual (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n (angleShuffle z) i).re) + (HarmonicResidual.residualBlock (assembly x l).context (assembly x l).state (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput).oscillation n z = (actualGood x l N).oscillation n z + (actualGaussian x l N).oscillation n z := by apply finite_cancellation (assembly x l).context (assembly x l).state (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput N hBand (fun j n z => (actualWave x l j).harmonicResidual (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n (angleShuffle z)) (fun j n z => (data x l j).globalGood (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n (angleShuffle (z,0))) (fun j n z => (data x l j).globalGaussian (directions (B := B)) n (angleShuffle (z,0))) n z intro j hj i exact section_equation Hc j ((mem_modes N j).mp hj).1 (Hs j hj) l (S j hj) n z hz i theorem context_linear_sum {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) {α : ℝ} (N : ℕ) (Hs : SourceClasses x N α) (l : Label B N0) (S : ∀ j ∈ modes N, SupportData x l j) (n : ℕ) (z : (Parameter × TorusInverse.Plane) × ℝ) (hz : z.1 ∈ associatedStrip.domain) : linearBlockField (assembly x l).context (assembly x l).carrierBlock (actualUpdate x l N) n z = fun i => ∑ j ∈ modes N, ((actualWave x l j).harmonicResidual (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n (angleShuffle z) i).re := by have hu := update_represents Hc l N have hv (j : ℤ) (hj : j ∈ modes N) (i : Fin 3) := wave_smooth Hc j ((mem_modes N j).mp hj).1 (Hs j hj) l (S j hj) n i have hp (j : ℤ) (hj : j ∈ modes N) := pressure_smooth Hc j ((mem_modes N j).mp hj).1 (Hs j hj) l (S j hj) n have hvs (i : Fin 3) : ContDiffOn ℝ ∞ (fun y => (actualUpdate x l N).oscillation n y i) (HarmonicResidual.liftDomain associatedStrip.domain) := by rw [hu.1] exact ContDiffOn.sum (fun j hj => Complex.reCLM.contDiff.comp_contDiffOn (hv j hj i)) have hps : ContDiffOn ℝ ∞ ((actualUpdate x l N).oscillatoryPressure n) (HarmonicResidual.liftDomain associatedStrip.domain) := by rw [hu.2] exact ContDiffOn.sum (fun j hj => Complex.reCLM.contDiff.comp_contDiffOn (hp j hj)) have hcarrier : SameCarrier (assembly x l).carrierBlock (actualUpdate x l N) := ⟨rfl,rfl,rfl⟩ have hr : ContDiffOn ℝ ∞ (radialDirection (assembly x l).context n) (HarmonicResidual.liftDomain associatedStrip.domain) := HarmonicResidual.liftDirection_smooth (associated_radial_smooth n) have hB := associated_base_smooth (B := B) rw [linearBlockField_eq_real associatedStrip.isOpen_domain (assembly x l).context (assembly x l).carrierBlock (actualUpdate x l N) n hr contDiffOn_const hB (by simpa only [withCarrier_of_same hcarrier] using hvs) (by simpa only [withCarrier_of_same hcarrier] using hps) ⟨hz,trivial⟩, withCarrier_of_same hcarrier, hu.1, hu.2] have he := real_linearResidual_sum (Vθ := angularDirection) (modes N) (HarmonicResidual.liftDomain_open associatedStrip.isOpen_domain) ((assembly x l).context.operators.epsilon n) (fun y : (Parameter × TorusInverse.Plane) × ℝ => (assembly x l).context.operators.radius y.1) (timeDirection (assembly x l).context n) hr contDiffOn_const (show ContDiffOn ℝ ∞ (axialDirection (assembly x l).context n) (HarmonicResidual.liftDomain associatedStrip.domain) from contDiffOn_const) (contextRealBase (assembly x l).context n) (fun j y => vectorMode ((actualWave x l j).frequency n) ((actualWave x l j).phase n) ((actualWave x l j).amplitude n) (angleShuffle y)) (fun j y => mode ((actualWave x l j).frequency n) ((actualWave x l j).phase n) ((actualWave x l j).pressure n) (angleShuffle y)) hv hp (fun i => ((contextRealBase_smooth hB n i).contDiffAt ((HarmonicResidual.liftDomain_open associatedStrip.isOpen_domain).mem_nhds ⟨hz,trivial⟩)).differentiableAt (by simp)) ⟨hz,trivial⟩ rw [← complexBase_eq_realLift] at he rw [he] funext i apply Finset.sum_congr rfl intro j hj exact congrArg (fun f => (f i).re) ((parameters x l).native_context_residual associatedStrip (assembly x l).context (assembly x l).state (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput j (associated_frame_match l) n z).symm theorem context_linear_cancellation_of_support {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) {α : ℝ} (N : ℕ) (Hs : SourceClasses x N α) (l : Label B N0) (S : ∀ j ∈ modes N, SupportData x l j) (hBand : (HarmonicResidual.residualBlock (assembly x l).context (assembly x l).state (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput).BandLimited N) (n : ℕ) (z : (Parameter × TorusInverse.Plane) × ℝ) (hz : z.1 ∈ associatedStrip.domain) : linearBlockField (assembly x l).context (assembly x l).carrierBlock (actualUpdate x l N) n z + (HarmonicResidual.residualBlock (assembly x l).context (assembly x l).state (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput).oscillation n z = (actualGood x l N).oscillation n z + (actualGaussian x l N).oscillation n z := by rw [context_linear_sum Hc N Hs l S n z hz] exact cancellation_sum Hc N Hs l S hBand n z hz theorem full_divergence_zero {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) {α : ℝ} (N : ℕ) (Hs : SourceClasses x N α) (l : Label B N0) (S : ∀ j ∈ modes N, SupportData x l j) (n : ℕ) (z : (Parameter × TorusInverse.Plane) × ℝ) (hz : z.1 ∈ associatedStrip.domain) : cylindricalDivergence (fun y => (assembly x l).context.operators.radius y.1) (radialDirection (assembly x l).context n) angularDirection (axialDirection (assembly x l).context n) (fun y i => ((actualUpdate x l N).oscillation n y i : ℂ)) z = 0 := by rw [(update_represents Hc l N).1] apply real_divergence_sum_zero (modes N) · intro j hj i exact ((wave_smooth Hc j ((mem_modes N j).mp hj).1 (Hs j hj) l (S j hj) n i).contDiffAt ((HarmonicResidual.liftDomain_open associatedStrip.isOpen_domain).mem_nhds ⟨hz,trivial⟩)).differentiableAt (by simp) · intro j hj rw [(parameters x l).native_context_divergence associatedStrip (assembly x l).context (associated_frame_match l)] exact common_divergence_zero Hc j ((mem_modes N j).mp hj).1 (Hs j hj) l (S j hj) n hz theorem modeSolenoidal_of_support {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) {α : ℝ} (N : ℕ) (Hs : SourceClasses x N α) (l : Label B N0) (S : ∀ j ∈ modes N, SupportData x l j) : HarmonicWaveInteraction.ModeSolenoidal associatedStrip (assembly x l).context (actualUpdate x l N) := by apply HarmonicWaveInteraction.modeSolenoidal_of_full (assembly x l).context (actualUpdate x l N) · exact source_phase_smooth Hc l · exact source_angular_ne Hc l · intro n exact (update_smooth Hc N Hs l S n).1 · exact full_divergence_zero Hc N Hs l S /-- Actual incoming support and source classes imply solenoidality of the finite particular correction. -/ theorem modeSolenoidal {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) (hs : ActualParticularStageControls.InputSupport x) (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) {α : ℝ} (N : ℕ) (Hs : SourceClasses x N α) (l : Label B N0) : HarmonicWaveInteraction.ModeSolenoidal associatedStrip (assembly x l).context (actualUpdate x l N) := modeSolenoidal_of_support Hc N Hs l (fun j _ => supportData x hs hN l j) /-- The actual current residual is cancelled by the finite common-cover solve, with the computed retained and Gaussian terms on the right. -/ theorem context_linear_cancellation {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) (hs : ActualParticularStageControls.InputSupport x) (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) {α : ℝ} (N : ℕ) (Hs : SourceClasses x N α) (l : Label B N0) (hBand : (HarmonicResidual.residualBlock (assembly x l).context (assembly x l).state (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput).BandLimited N) (n : ℕ) (z : (Parameter × TorusInverse.Plane) × ℝ) (hz : z.1 ∈ associatedStrip.domain) : linearBlockField (assembly x l).context (assembly x l).carrierBlock (actualUpdate x l N) n z + (HarmonicResidual.residualBlock (assembly x l).context (assembly x l).state (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput).oscillation n z = (actualGood x l N).oscillation n z + (actualGaussian x l N).oscillation n z := context_linear_cancellation_of_support Hc N Hs l (fun j _ => supportData x hs hN l j) hBand n z hz noncomputable def cycleUpdate (x : CycleState (Label B N0)) (l : Label B N0) (N : ℕ) := StateReindex.block cycleAssoc (actualUpdate x l N) theorem cycle_modeSolenoidal {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) (hs : ActualParticularStageControls.InputSupport x) (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) {α : ℝ} (N : ℕ) (Hs : SourceClasses x N α) (l : Label B N0) : HarmonicWaveInteraction.ModeSolenoidal (BaseContextAssembly.nativeStrip ActualPrimary.nominal ActualPrimary.standardRegion) (ActualPrimary.commonContext B) (cycleUpdate x l N) := by have hh := ModeSolenoidalReindex.modeSolenoidal_pull cycleAssoc (modeSolenoidal Hc hs hN N Hs l) simp only [assembly, associatedStrip, associatedContext, MeanBoundsReindex.strip_roundtrip, StateReindex.context_roundtrip] at hh ⊢ exact hh theorem actualUpdate_eq_canonical {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) (l : Label B N0) (N : ℕ) : actualUpdate x l N = (canonicalParameters l).updateBlock associatedStrip (assembly x l).context (assembly x l).state (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput N := by unfold actualUpdate rw [parameters_eq_canonical x l (carrier_frequency Hc l)] theorem linearBlockField_pull {D E : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] [NormedAddCommGroup E] [NormedSpace ℝ E] (e : D ≃ₗᵢ[ℝ] E) (c : Context E) (a b : HarmonicBlock E) (n : ℕ) (z : D × ℝ) : linearBlockField (StateReindex.context e c) (StateReindex.block e a) (StateReindex.block e b) n z = linearBlockField c a b n (StateReindex.cylinder e z) := by have hcar : HarmonicWaveInteraction.withCarrier (StateReindex.block e a) (StateReindex.block e b) = StateReindex.block e (HarmonicWaveInteraction.withCarrier a b) := rfl have he := StateReindex.linearResidual_field_pull (StateReindex.cylinder e) (c.operators.epsilon n) (fun y : E × ℝ => c.operators.radius y.1) (radialDirection c n) angularDirection (axialDirection c n) (timeDirection c n) (complexBase c n) (LinearWaveResidual.realLift ((HarmonicWaveInteraction.withCarrier a b).oscillation n)) (fun y => ((HarmonicWaveInteraction.withCarrier a b).oscillatoryPressure n y : ℂ)) z have hθ : StateReindex.vector (StateReindex.cylinder e) (angularDirection (D := E)) = angularDirection (D := D) := by funext y change (e.symm 0, (1 : ℝ)) = (0,1) rw [map_zero] have hr : radialDirection (StateReindex.context e c) n = StateReindex.vector (StateReindex.cylinder e) (radialDirection c n) := StateReindex.radialDirection_pull e c n have hz : axialDirection (StateReindex.context e c) n = StateReindex.vector (StateReindex.cylinder e) (axialDirection c n) := StateReindex.axialDirection_pull e c n have ht : timeDirection (StateReindex.context e c) n = StateReindex.vector (StateReindex.cylinder e) (timeDirection c n) := StateReindex.timeDirection_pull e c n have hb : complexBase (StateReindex.context e c) n = fun y => complexBase c n (StateReindex.cylinder e y) := rfl rw [hθ] at he unfold linearBlockField rw [hcar, StateReindex.block_oscillation, StateReindex.block_pressure, hr, hz, ht, hb] exact congrArg (fun f => fun i => (f i).re) he theorem cycle_context_linear_cancellation {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) (hs : ActualParticularStageControls.InputSupport x) (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) {α : ℝ} (N : ℕ) (Hs : SourceClasses x N α) (l : Label B N0) (hBand : (HarmonicResidual.residualBlock (ActualPrimary.commonContext B) x.state (x.coefficients.blocks l) (x.coefficients.gaussian l) (x.coefficients.aliasCoefficients l)).BandLimited N) (n : ℕ) (z : CyclePoint × ℝ) (hz : z.1 ∈ (BaseContextAssembly.nativeStrip ActualPrimary.nominal ActualPrimary.standardRegion).domain) : linearBlockField (ActualPrimary.commonContext B) (x.coefficients.blocks l) (cycleUpdate x l N) n z + (HarmonicResidual.residualBlock (ActualPrimary.commonContext B) x.state (x.coefficients.blocks l) (x.coefficients.gaussian l) (x.coefficients.aliasCoefficients l)).oscillation n z = (StateReindex.block cycleAssoc (actualGood x l N)).oscillation n z + (StateReindex.block cycleAssoc (actualGaussian x l N)).oscillation n z := by have hBand' : (HarmonicResidual.residualBlock (assembly x l).context (assembly x l).state (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput).BandLimited N := by change (HarmonicResidual.residualBlock (StateReindex.context cycleAssoc.symm (ActualPrimary.commonContext B)) (StateReindex.state cycleAssoc.symm x.state) (StateReindex.block cycleAssoc.symm (x.coefficients.blocks l)) (StateReindex.blockCoefficients cycleAssoc.symm (x.coefficients.gaussian l)) (StateReindex.blockCoefficients cycleAssoc.symm (x.coefficients.aliasCoefficients l))).BandLimited N rw [StateReindex.residualBlock_pull] exact StateReindex.block_bandLimited cycleAssoc.symm hBand have hz' : (StateReindex.cylinder cycleAssoc z).1 ∈ associatedStrip.domain := by change cycleAssoc.symm (cycleAssoc z.1) ∈ (BaseContextAssembly.nativeStrip ActualPrimary.nominal ActualPrimary.standardRegion).domain simpa only [cycleAssoc.symm_apply_apply] using hz have hh := context_linear_cancellation Hc hs hN N Hs l hBand' n (StateReindex.cylinder cycleAssoc z) hz' have hlin := linearBlockField_pull cycleAssoc (assembly x l).context (assembly x l).carrierBlock (actualUpdate x l N) n z have hlin' : linearBlockField (ActualPrimary.commonContext B) (x.coefficients.blocks l) (cycleUpdate x l N) n z = linearBlockField (assembly x l).context (assembly x l).carrierBlock (actualUpdate x l N) n (StateReindex.cylinder cycleAssoc z) := by simp only [assembly, associatedContext, StateReindex.context_roundtrip, StateReindex.block_roundtrip] at hlin ⊢ exact hlin have hres : (HarmonicResidual.residualBlock (assembly x l).context (assembly x l).state (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput).oscillation n (StateReindex.cylinder cycleAssoc z) = (HarmonicResidual.residualBlock (ActualPrimary.commonContext B) x.state (x.coefficients.blocks l) (x.coefficients.gaussian l) (x.coefficients.aliasCoefficients l)).oscillation n z := by change (HarmonicResidual.residualBlock (StateReindex.context cycleAssoc.symm (ActualPrimary.commonContext B)) (StateReindex.state cycleAssoc.symm x.state) (StateReindex.block cycleAssoc.symm (x.coefficients.blocks l)) (StateReindex.blockCoefficients cycleAssoc.symm (x.coefficients.gaussian l)) (StateReindex.blockCoefficients cycleAssoc.symm (x.coefficients.aliasCoefficients l))).oscillation n _ = _ rw [StateReindex.residualBlock_pull, StateReindex.block_oscillation] simp only [StateReindex.oscillation, StateReindex.cylinder_apply, cycleAssoc.symm_apply_apply, Prod.eta] rw [hres] at hh rw [hlin', StateReindex.block_oscillation, StateReindex.block_oscillation] exact hh end NavierStokes.ActualParticularDynamics