import NavierStokes.LabelSupportPreservation import NavierStokes.HarmonicStructurePreservation import NavierStokes.LocalResidualGrouping import NavierStokes.AxisymmetricResidualGrouping import NavierStokes.MeanBoundsReindex import NavierStokes.MeanStageRegularity import NavierStokes.WaveStateRegularity import NavierStokes.MeanStateRegularity import NavierStokes.BandReindexedSignedMeanGain import NavierStokes.PhysicalResidualNaturality import NavierStokes.UniformBlockBounds import NavierStokes.UniformHarmonicInteraction import NavierStokes.LocalizedCurlRealization import NavierStokes.LocalizedMeanInteraction import NavierStokes.HarmonicSourceSupport import NavierStokes.NativePrincipalEquations import NavierStokes.ParticularCopyBounds import NavierStokes.SignedCopyBounds import NavierStokes.LocalizedWaveBounds import NavierStokes.MovingMomentBounds import NavierStokes.GaugeDebtIncrement import NavierStokes.GaugeMassPreservation import NavierStokes.RankStateBounds import NavierStokes.SignedMeanGain import NavierStokes.PeriodizedWaveBounds import NavierStokes.MeanIncrementBounds import NavierStokes.HarmonicFields import NavierStokes.ExponentLedger import NavierStokes.CorrectionState import NavierStokes.LinearWaveResidual import NavierStokes.DefectIncrementBounds import NavierStokes.HarmonicResidual import NavierStokes.LiftedMeanResidual import NavierStokes.MeanChartCompatibility import NavierStokes.HarmonicCovariance import NavierStokes.HarmonicMeanInteraction import NavierStokes.PhysicalMeanDomain import NavierStokes.SignedWaveUpdate import NavierStokes.VariableGaugeMean import NavierStokes.PhysicalResidualBridge import NavierStokes.LabelSumBounds import NavierStokes.HarmonicWaveInteraction import NavierStokes.LocalSignedRequest import NavierStokes.ParticularWaveAssembly import NavierStokes.LocalRankDefect import NavierStokes.StateReindex import NavierStokes.CorrectionStepCovariance import NavierStokes.CorrectionStepFullResidual /-! # Exact field bookkeeping for one correction cycle `NavierStokes.CorrectionStepCovariance` supplies the exact changes of the angularly averaged residual, and `NavierStokes.CorrectionStepFullResidual` assembles the full residual and its exact increment. Here we use these identities to track the residual through the stages of a correction cycle. -/ noncomputable section namespace NavierStokes.CorrectionStep open Set WeightedClasses MeanIncrementBounds open scoped ContDiff BigOperators variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] section TemporalComposition open CorrectionState variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] noncomputable def meanBar (f : ScalarField (PressureStream.Lift S)) : ScalarField (PressureStream.Lift S) := fun n x => PressureStream.torusAverage (f n) (x.1, x.2.1) end TemporalComposition section TemporalAngularGain open CorrectionState variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] end TemporalAngularGain section TemporalPressureAndAxial open CorrectionState variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] end TemporalPressureAndAxial /-! ## One physical field behind the chart family The predicate below is deliberately stronger than an indexed collection of unrelated chart solutions. Every chart is tied to the same physical fields by specified maps and the manuscript's velocity, pressure, and residual units. Operator naturality and the concrete chart maps are separate obligations. -/ section PhysicalRepresentation open CorrectionState variable {P : Type} structure PhysicalFields (P : Type) where mean : P → Fin 3 → ℝ pressure : P → ℝ oscillation : P × ℝ → Fin 3 → ℝ oscillatoryPressure : P × ℝ → ℝ baseError : P × ℝ → Fin 3 → ℝ gaussianError : P × ℝ → Fin 3 → ℝ aliasError : P × ℝ → Fin 3 → ℝ noncomputable def PhysicalFields.add (u v : PhysicalFields P) : PhysicalFields P where mean := u.mean + v.mean pressure := u.pressure + v.pressure oscillation := u.oscillation + v.oscillation oscillatoryPressure := u.oscillatoryPressure + v.oscillatoryPressure baseError := u.baseError + v.baseError gaussianError := u.gaussianError + v.gaussianError aliasError := u.aliasError + v.aliasError noncomputable def meanComponents (m : Triple D) (n : ℕ) (x : D) : Fin 3 → ℝ := ![m.radial n x, m.angular n x, m.axial n x] /-- `chart` includes the actual torus covering as well as spatial/time rescaling. `domain n` specifies where that band is active. -/ structure RepresentsPhysical (chart : ℕ → P → D) (domain : ℕ → Set P) (Q : ℕ → ℝ) (A : ℝ) (u : State D) (v : PhysicalFields P) : Prop where mean : ∀ n x, x ∈ domain n → ∀ i, meanComponents u.mean n (chart n x) i = Q n ^ A * v.mean x i pressure : ∀ n x, x ∈ domain n → u.pressure n (chart n x) = Q n ^ (2 * A) * v.pressure x oscillation : ∀ n x, x ∈ domain n → ∀ θ i, u.oscillation n (chart n x, θ) i = Q n ^ A * v.oscillation (x, θ) i oscillatoryPressure : ∀ n x, x ∈ domain n → ∀ θ, u.oscillatoryPressure n (chart n x, θ) = Q n ^ (2 * A) * v.oscillatoryPressure (x, θ) baseError : ∀ n x, x ∈ domain n → ∀ θ i, u.errors.base n (chart n x, θ) i = Q n ^ (2 * A + 1 / 2) * v.baseError (x, θ) i gaussianError : ∀ n x, x ∈ domain n → ∀ θ i, u.errors.gaussian n (chart n x, θ) i = Q n ^ (2 * A + 1 / 2) * v.gaussianError (x, θ) i aliasError : ∀ n x, x ∈ domain n → ∀ θ i, u.errors.aliasError n (chart n x, θ) i = Q n ^ (2 * A + 1 / 2) * v.aliasError (x, θ) i end PhysicalRepresentation section RankMeanComposition open CorrectionState variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] end RankMeanComposition section ExcludedMeanErrors open CorrectionState MeasureTheory omit [NormedAddCommGroup D] [NormedSpace ℝ D] in theorem angularAverage_add {f g : OscillatoryScalar D} (hf : ∀ n x, Continuous (fun θ : ℝ => f n (x, θ))) (hg : ∀ n x, Continuous (fun θ : ℝ => g n (x, θ))) : angularAverage (f + g) = angularAverage f + angularAverage g := by funext n x change (∫ θ in (0 : ℝ)..2 * Real.pi, f n (x, θ) + g n (x, θ)) / (2 * Real.pi) = _ rw [intervalIntegral.integral_add ((hf n x).intervalIntegrable _ _) ((hg n x).intervalIntegrable _ _), add_div] rfl omit [NormedAddCommGroup D] [NormedSpace ℝ D] in theorem angularMeanVector_add {f g : Oscillation D} (hf : AngularContinuous f) (hg : AngularContinuous g) : angularMeanVector (f + g) = angularMeanVector f + angularMeanVector g := by funext n x i exact congrFun (congrFun (angularAverage_add (fun n x => hf n x i) (fun n x => hg n x i)) n) x /-- The same cancellation only uses angular continuity on the selected fiber. No regularity outside the current physical domain is needed. -/ theorem meanGoodResidual_at (c : Context D) (u : State D) (n : ℕ) (x : D) (i : Fin 3) (hb : Continuous (fun θ : ℝ => u.errors.base n (x, θ) i)) (hg : Continuous (fun θ : ℝ => u.errors.gaussian n (x, θ) i)) (ha : Continuous (fun θ : ℝ => u.errors.aliasError n (x, θ) i)) : u.meanGoodResidual c n x i = u.reducedMeanResidual c n x i - angularMeanVector u.errors.gaussian n x i - angularMeanVector u.errors.aliasError n x i := by change u.reducedMeanResidual c n x i + HarmonicResidual.realAngularMean (fun θ => u.errors.base n (x, θ) i) - HarmonicResidual.realAngularMean (fun θ => u.errors.base n (x, θ) i + u.errors.gaussian n (x, θ) i + u.errors.aliasError n (x, θ) i) = _ rw [HarmonicResidual.realAngularMean_add (hb.fun_add hg) ha, HarmonicResidual.realAngularMean_add hb hg] dsimp only [angularMeanVector, angularAverage, HarmonicResidual.realAngularMean, HarmonicFields.period] ring end ExcludedMeanErrors section ConcreteRankConstruction open CorrectionState end ConcreteRankConstruction section RankPressureConstruction open CorrectionState variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] end RankPressureConstruction section PressureAliasBookkeeping open CorrectionState variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] end PressureAliasBookkeeping section ActualHarmonicForcing open CorrectionState end ActualHarmonicForcing section TemporalMasses open CorrectionState MeasureTheory variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] end TemporalMasses section ActualMeanAndDivergence open CorrectionState theorem angularMean_fullGoodResidual {U : Set D} {c : Context D} {u : State D} (H : LiftedMeanResidual.MeanHypotheses U c u) (n : ℕ) {x : D} (hx : x ∈ U) (i : Fin 3) : angularMeanVector (fullGoodResidual c u) n x i = u.meanGoodResidual c n x i := LiftedMeanResidual.angularMean_fullGoodResidual H n hx i noncomputable def meanLift (m : Triple D) : Oscillation D := fun n x => meanComponents m n x.1 noncomputable def meanDivergence (c : Context D) (m : Triple D) : ScalarField D := fun n x => c.operators.dr m.radial n x + m.radial n x / c.operators.radius x + c.operators.dz m.axial n x noncomputable def fullDivergence (c : Context D) (u : State D) : OscillatoryScalar D := fun n => LiftedMeanResidual.realDivergence (fun x => c.operators.radius x.1) (radialDirection c n) angularDirection (axialDirection c n) (u.totalVelocity c n) theorem meanLift_divergence {U : Set D} (hU : IsOpen U) (c : Context D) (m : Triple D) (hm : SmoothTriple U m) (n : ℕ) {x : D} (hx : x ∈ U) (θ : ℝ) : LiftedMeanResidual.realDivergence (fun y => c.operators.radius y.1) (radialDirection c n) angularDirection (axialDirection c n) (meanLift m n) (x, θ) = meanDivergence c m n x := by have hr := ((hm.radial n).contDiffAt (hU.mem_nhds hx)).differentiableAt (by simp) have ht := ((hm.angular n).contDiffAt (hU.mem_nhds hx)).differentiableAt (by simp) have hz := ((hm.axial n).contDiffAt (hU.mem_nhds hx)).differentiableAt (by simp) change HarmonicCalculus.along (LiftedMeanResidual.liftDirection (fun y => c.operators.eR + (c.operators.radialFrequency n * c.operators.radialProfile y) • c.operators.vR)) (LiftedMeanResidual.liftScalar (m.radial n)) (x, θ) + m.radial n x / c.operators.radius x + HarmonicCalculus.along LiftedMeanResidual.angularDirection (LiftedMeanResidual.liftScalar (m.angular n)) (x, θ) / c.operators.radius x + HarmonicCalculus.along (LiftedMeanResidual.liftDirection (fun _ => c.operators.epsilon n • c.operators.eZ)) (LiftedMeanResidual.liftScalar (m.axial n)) (x, θ) = _ rw [LiftedMeanResidual.along_lift hr, LiftedMeanResidual.theta_lift_zero ht, LiftedMeanResidual.along_lift hz] simp only [HarmonicCalculus.along, meanDivergence, Operators.dr, graphDerivative, Operators.dz, map_add, map_smul, smul_eq_mul, zero_div, add_zero] ring /-- Addition preserves actual cylindrical divergence by the derivative sum rule. The correction's divergence is a separate explicit summand. -/ theorem fullDivergence_actual_update (c : Context D) (u : State D) (m : Triple D) (p : ScalarField D) (w : Oscillation D) (q : OscillatoryScalar D) (e : ExcludedErrors D) (n : ℕ) (x : D × ℝ) (hu : ∀ i, DifferentiableAt ℝ (fun y => u.totalVelocity c n y i) x) (hi : ∀ i, DifferentiableAt ℝ (fun y => meanLift m n y i + w n y i) x) : fullDivergence c (u.addIncrement m p w q e) n x = fullDivergence c u n x + LiftedMeanResidual.realDivergence (fun y => c.operators.radius y.1) (radialDirection c n) angularDirection (axialDirection c n) (fun y => meanLift m n y + w n y) x := by have hv : (u.addIncrement m p w q e).totalVelocity c n = fun y => u.totalVelocity c n y + (meanLift m n y + w n y) := by funext y i have ht := congrFun (congrFun (congrFun (State.totalVelocity_addIncrement u c m p w q e) n) y) i simpa only [Pi.add_apply, meanLift, meanComponents, add_assoc] using ht unfold fullDivergence rw [hv] exact LiftedMeanResidual.realDivergence_add _ _ _ _ hu hi end ActualMeanAndDivergence section MeanDivergencePreservation open CorrectionState theorem meanAddition_fullDivergence {U : Set D} (hU : IsOpen U) (c : Context D) (u : State D) (m : Triple D) (p : ScalarField D) (q : OscillatoryScalar D) (e : ExcludedErrors D) (hm : SmoothTriple U m) (n : ℕ) {x : D} (hx : x ∈ U) (θ : ℝ) (hu : ∀ i, DifferentiableAt ℝ (fun y => u.totalVelocity c n y i) (x, θ)) : fullDivergence c (u.addIncrement m p 0 q e) n (x, θ) = fullDivergence c u n (x, θ) + meanDivergence c m n x := by have hi (i : Fin 3) : DifferentiableAt ℝ (fun y => meanLift m n y i) (x, θ) := by have hs := LiftedMeanResidual.liftScalar_smooth (LiftedMeanResidual.tripleVector_smooth hm n i) exact (hs.contDiffAt ((LiftedMeanResidual.cylinder_open hU).mem_nhds ⟨hx, mem_univ θ⟩)).differentiableAt (by simp) have he := fullDivergence_actual_update c u m p 0 q e n (x, θ) hu (fun i => by simpa only [Pi.zero_apply, add_zero] using hi i) simp only [Pi.zero_apply, add_zero] at he rw [meanLift_divergence hU c m hm n hx θ] at he exact he variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] theorem meanDivergence_eq_graph (p : ReconstructionData) (epsilon fast : ℕ → ℝ) (axial slowTime : S × PressureStream.Plane) (temporal : PressureStream.Plane) (c : Context (PressureStream.Lift S)) (hcompat : c.operators = graphOperators p epsilon fast axial slowTime temporal) (m : Triple (PressureStream.Lift S)) (n : ℕ) (x : PressureStream.Lift S) : meanDivergence c m n x = PressureStream.graphDivergence (PressureStream.physicalSpeed p.exponent (p.frequency n)) (0, p.radialDirection) (epsilon n • axial) (m.radial n) (m.axial n) x := by unfold meanDivergence rw [hcompat, graphOperators_dr, graphOperators_dz] rfl variable [FiniteDimensional ℝ S] end MeanDivergencePreservation section CommonTemporalConstruction open CorrectionState variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] theorem common_fastTime (h : ℝ) (index : ℕ → ℕ) (c : Context (PressureStream.Lift S)) (hv : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) (hf : ∀ n, c.operators.fastCoefficient n = ChartScales.Tg ^ index n * ChartScales.Q n ^ (1 + h)) (f : ScalarField (PressureStream.Lift S)) (n : ℕ) (x : PressureStream.Lift S) : c.operators.fastTime f n x = MeanChartCompatibility.fastAtIndex h n (index n) (f n) x := by simp only [Operators.fastTime, hv, hf, MeanChartCompatibility.fastAtIndex, PressureStream.graphDz] variable [FiniteDimensional ℝ S] end CommonTemporalConstruction section CommonTemporalScale open CorrectionState variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] omit [NormedAddCommGroup D] [NormedSpace ℝ D] in theorem triple_ext {a b : Triple D} (hr : a.radial = b.radial) (ht : a.angular = b.angular) (hz : a.axial = b.axial) : a = b := by cases a cases b simp only [Triple.mk.injEq] at * exact ⟨hr, ht, hz⟩ variable [FiniteDimensional ℝ S] end CommonTemporalScale section HarmonicStateUpdates open CorrectionState /-- Add coefficient families on the same fixed label carrier. -/ noncomputable def addBlock (a b : HarmonicBlock D) : HarmonicBlock D := { a with velocity := fun n i => a.velocity n i + b.velocity n i pressure := fun n => a.pressure n + b.pressure n } structure SameCarrier (a b : HarmonicBlock D) : Prop where frequency : b.frequency = a.frequency phase : b.phase = a.phase angular : b.angularFrequency = a.angularFrequency omit [NormedAddCommGroup D] [NormedSpace ℝ D] in theorem addBlock_oscillation (a b : HarmonicBlock D) (h : SameCarrier a b) : (addBlock a b).oscillation = a.oscillation + b.oscillation := by funext n x i simp only [addBlock, HarmonicBlock.oscillation, HarmonicFields.field, HarmonicFields.evaluate_add, Complex.add_re, Pi.add_apply, h.frequency, h.phase, h.angular] omit [NormedAddCommGroup D] [NormedSpace ℝ D] in theorem addBlock_pressure (a b : HarmonicBlock D) (h : SameCarrier a b) : (addBlock a b).oscillatoryPressure = a.oscillatoryPressure + b.oscillatoryPressure := by funext n x simp only [addBlock, HarmonicBlock.oscillatoryPressure, HarmonicFields.field, HarmonicFields.evaluate_add, Complex.add_re, Pi.add_apply, h.frequency, h.phase, h.angular] omit [NormedAddCommGroup D] [NormedSpace ℝ D] in theorem addBlock_band {a b : HarmonicBlock D} {N M : ℕ} (ha : a.BandLimited N) (hb : b.BandLimited M) : (addBlock a b).BandLimited (max N M) := ⟨fun n i => (ha.1 n i |>.mono (le_max_left _ _)).add (hb.1 n i |>.mono (le_max_right _ _)), fun n => (ha.2 n |>.mono (le_max_left _ _)).add (hb.2 n |>.mono (le_max_right _ _))⟩ theorem block_waveBounds_all {s : StripData D} {P : ℕ → D → ℝ} {α : ℝ} (b : HarmonicBlock D) (hb : b.WaveBounds s P α) (hzero : ∀ n i, b.velocity n i 0 = 0) (hP : ∀ n x, x ∈ s.domain → 0 ≤ P n x) : ∀ i j, WaveClass s P α (fun n x => b.velocity n i j x) := by intro i j by_cases hj : j = 0 · subst j have hz : WaveClass s P α (0 : ℕ → D → ℂ) := MemClass.zero (fun n x hx => mul_nonneg (Real.sqrt_nonneg (s.zeta x)) (hP n x hx)) apply WaveInteractionBounds.class_congr hz intro n x hx simp only [hzero, Pi.zero_apply] · exact hb i j hj omit [NormedAddCommGroup D] [NormedSpace ℝ D] in theorem block_angularContinuous (b : HarmonicBlock D) : AngularContinuous b.oscillation := fun n x i => Complex.continuous_re.comp (HarmonicFields.field_angular_continuous (b.velocity n i) (b.frequency n) (b.phase n) (b.angularFrequency n) x) end HarmonicStateUpdates section MeanWaveComposition open CorrectionState end MeanWaveComposition section RankRetainedAlias open CorrectionState variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] end RankRetainedAlias section SignedTensorRemainder open CorrectionState MeasureTheory omit [NormedAddCommGroup D] [NormedSpace ℝ D] in theorem AngularContinuous.sub {u v : Oscillation D} (hu : AngularContinuous u) (hv : AngularContinuous v) : AngularContinuous (u - v) := fun n x i => (hu n x i).sub (hv n x i) noncomputable def subBlock (a b : HarmonicBlock D) : HarmonicBlock D := { a with velocity := fun n i => a.velocity n i - b.velocity n i pressure := fun n => a.pressure n - b.pressure n } omit [NormedAddCommGroup D] [NormedSpace ℝ D] in theorem subBlock_oscillation (a b : HarmonicBlock D) (h : SameCarrier a b) : (subBlock a b).oscillation = a.oscillation - b.oscillation := by funext n x i simp only [subBlock, HarmonicBlock.oscillation, HarmonicResidual.field_sub, Complex.sub_re, Pi.sub_apply, h.frequency, h.phase, h.angular] omit [NormedAddCommGroup D] [NormedSpace ℝ D] in theorem subBlock_band {a b : HarmonicBlock D} {N M : ℕ} (ha : a.BandLimited N) (hb : b.BandLimited M) : (subBlock a b).BandLimited (max N M) := ⟨fun n i => HarmonicResidual.band_sub (ha.1 n i |>.mono (le_max_left _ _)) (hb.1 n i |>.mono (le_max_right _ _)), fun n => HarmonicResidual.band_sub (ha.2 n |>.mono (le_max_left _ _)) (hb.2 n |>.mono (le_max_right _ _))⟩ end SignedTensorRemainder section LocalMeanConstruction open CorrectionState PhysicalMeanDomain variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] end LocalMeanConstruction section ConstructedSignedBlocks open CorrectionState SignedWaveUpdate /-- The class of a literal coefficient difference is transported from the full cylindrical coefficient domain to the actual harmonic blocks. -/ theorem blockOfCoefficients_difference_mem {s : StripData (D × ℝ)} {P : ℕ → D × ℝ → ℝ} {α : ℝ} (a b : LinearWaveBounds.WaveCoefficients (D × ℝ)) (kp : ℕ → ℤ) (hab : WaveClass s P α (fun n x => a.amplitude n x - b.amplitude n x)) : (subBlock (blockOfCoefficients a kp) (blockOfCoefficients b kp)).WaveBounds (sectionStrip s) (fun n x => P n (x, 0)) α := by have hsection := class_zeroSection hab intro i j hj have hh := conjugatePair_class (CurlClassBounds.class_component hsection i) j apply WaveInteractionBounds.class_congr hh intro n x hx change ErrorHarmonics.conjugatePair 1 (fun x => a.amplitude n (x,0) i - b.amplitude n (x,0) i) j x = ErrorHarmonics.conjugatePair 1 (fun x => a.amplitude n (x,0) i) j x - ErrorHarmonics.conjugatePair 1 (fun x => b.amplitude n (x,0) i) j x simp only [conjugatePair_apply] split_ifs <;> simp only [map_sub, map_zero, sub_div] <;> ring /-- The tangent and curl-difference blocks used by the tensor estimate are the blocks of the actual signed quotient, homogeneous pressure, cutoff, and curl construction. Their classes are conclusions from primitive data. -/ theorem constructedSignedBlock_bounds {s : StripData (D × ℝ)} {d : LinearWaveBounds.GraphDirections (D × ℝ)} {a : LinearWaveBounds.WaveCoefficients (D × ℝ)} {P₀ P : ℕ → D × ℝ → ℝ} {α₀ B κ : ℝ} (hbase : LinearWaveBounds.InputBounds s P₀ α₀ κ d a) (hκ : κ ≤ 1 / 2) {H : ℕ → D × ℝ → Mat2} {T R : ℕ → D × ℝ → Vec2} {mask ψ : ℕ → D × ℝ → ℝ} {v Ndot : ℕ → D × ℝ → Space} {A : ℕ → D × ℝ → Space →L[ℝ] Space} (hcov : CovarianceControl s H T) (hR : ∀ i, MeanClass s (B - 1 / 2 - κ) (fun n x => R n x i)) (hm : UnweightedClass s 0 mask) (hv : MemClass s P 0 v) (hN : PhaseJetBounds.PolynomialJets (CurlClassBounds.phaseDomain s) (a.normal s d)) (hNdot : UnweightedClass s 0 Ndot) (hA : UnweightedClass s 0 A) {b M : ℝ} (hb : 0 < b) (hlo : ∀ n x, x ∈ s.domain → b ≤ ‖a.normal s d n x‖) (hhi : ∀ n x, x ∈ s.domain → ‖a.normal s d n x‖ ≤ M) (hK : BandBound s (1 / 2) (fun n => 1 / a.frequency n)) {radius : D × ℝ → ℝ} (hradius : a.radius = fun _ => radius) (hψ : UnweightedClass s 0 ψ) (kp : ℕ → ℤ) (j : Fin 2) : let z := SignedWaveUpdate.coefficients a s d H T R mask v Ndot A j let tangent := blockOfCoefficients (z.withCutoff ψ) kp let exactBlock := blockOfCoefficients (z.corrected s d ψ) kp tangent.WaveBounds (sectionStrip s) (fun n x => P n (x,0)) (B - κ) ∧ exactBlock.WaveBounds (sectionStrip s) (fun n x => P n (x,0)) (B - κ) ∧ exactBlock.PressureBounds (sectionStrip s) (fun n x => P n (x,0)) (B + 1 / 2 - κ) ∧ (subBlock exactBlock tangent).WaveBounds (sectionStrip s) (fun n x => P n (x,0)) (B + 1 / 2 - 2 * κ) := by let z := SignedWaveUpdate.coefficients a s d H T R mask v Ndot A j have hi : LinearWaveBounds.InputBounds s P (B - κ) κ d z := by convert! coefficients_inputBounds hbase hcov hR hm hv hN hNdot hA hb hlo hhi hK j using 1 ring have ht := blockOfCoefficients_classes (z.withCutoff ψ) kp (LinearWaveBounds.component_classes (hi.with_cutoff hψ).amplitude) (hi.with_cutoff hψ).pressure have he := signed_bounds hbase hκ hcov hR hm hv hN hNdot hA hb hlo hhi hK hradius hψ j have hex := blockOfCoefficients_classes (z.corrected s d ψ) kp he.1 he.2.1 exact ⟨ht.1, hex.1, hex.2, blockOfCoefficients_difference_mem (z.corrected s d ψ) (z.withCutoff ψ) kp he.2.2.1⟩ end ConstructedSignedBlocks section CumulativeWaveUpdates open CorrectionState omit [NormedAddCommGroup D] [NormedSpace ℝ D] in theorem twoWaveUpdates_band {old particular signed : HarmonicBlock D} {N M K : ℕ} (ho : old.BandLimited N) (hp : particular.BandLimited M) (hs : signed.BandLimited K) : (addBlock (addBlock old particular) signed).BandLimited (max (max N M) K) := addBlock_band (addBlock_band ho hp) hs end CumulativeWaveUpdates section LocalCommonClock open CorrectionState PhysicalMeanDomain variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] theorem temporalAtIndex_local_smooth (h : ℝ) (n i : ℕ) {V : Set S} (hV : IsOpen V) {f : PressureStream.Lift S → ℝ} (hf : ContDiffOn ℝ ∞ f (slowDomain V)) (hp : PeriodicOn V f) : ContDiffOn ℝ ∞ (MeanChartCompatibility.temporalAtIndex h n i f) (slowDomain V) := by rw [MeanChartCompatibility.temporalAtIndex_eq_native] exact contDiffOn_const.mul (PhysicalMeanDomain.desiredIncrement_contDiffOn h n hV hf hp) /-- The common clock cancels the actual local residual. Localization is used only to prove a germ identity for the same torus inverse. -/ theorem temporalAtIndex_local_fast (h : ℝ) (n i : ℕ) {V : Set S} (hV : IsOpen V) {f : PressureStream.Lift S → ℝ} (hf : ContDiffOn ℝ ∞ f (slowDomain V)) (hp : PeriodicOn V f) {x : PressureStream.Lift S} (hx : x.2.1 ∈ V) : MeanChartCompatibility.fastAtIndex h n i (MeanChartCompatibility.temporalAtIndex h n i f) x = -TemporalMeanUpdate.centered f x := by obtain ⟨cutoff, _, hsupport, hglobal, he⟩ := exists_fiber_localization hV hx hf have hd := ((desiredIncrement_fiberLocal h n).germ he).eventuallyEq x.1 x.2.2 have hc := ((centered_fiberLocal.germ he).eventuallyEq x.1 x.2.2).self_of_nhds have hi : MeanChartCompatibility.temporalAtIndex h n i (localize cutoff f) =ᶠ[nhds x] MeanChartCompatibility.temporalAtIndex h n i f := by rw [MeanChartCompatibility.temporalAtIndex_eq_native, MeanChartCompatibility.temporalAtIndex_eq_native] exact hd.mono fun y hy => congrArg (MeanChartCompatibility.commonRatio h n i * ·) hy have hsolve := MeanChartCompatibility.temporalAtIndex_fast_cancellation h n i hglobal (localize_periodic hsupport hp) x simpa only [MeanChartCompatibility.fastAtIndex, PressureStream.graphDz, hi.fderiv_eq, hc] using hsolve end LocalCommonClock section GaugeMeanBookkeeping open CorrectionState VariableGaugeMean variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] noncomputable def gaugeTemporalPressureChange (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) : ScalarField (PressureStream.Lift S) := (temporalStageState g h index axial c u).pressure - u.pressure noncomputable def gaugeRankPressureChange (g : GaugeData S) (r : RankData S) (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) : ScalarField (PressureStream.Lift S) := (rankStageState g r axial c u).pressure - u.pressure theorem gaugeTemporalStage_covariance (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) : (temporalStageState g h index axial c u).covariance = u.covariance := by simp only [temporalStageState, reconstructState, State.addIncrement, add_zero] rfl theorem gaugeRankStage_covariance (g : GaugeData S) (r : RankData S) (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) : (rankStageState g r axial c u).covariance = u.covariance := by simp only [rankStageState, reconstructState, State.addIncrement, add_zero] rfl theorem gaugeTemporalStage_cumulative {s : StripData (PressureStream.Lift S)} (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) {H : ℝ} (hu : CorrectionState.CumulativeBounds s u) (hi : IncrementBounds s H (temporalIncrementState g h index axial c u)) (hp : MeanClass s H (gaugeTemporalPressureChange g h index axial c u)) (hH : 9 / 10 ≤ H) : CorrectionState.CumulativeBounds s (temporalStageState g h index axial c u) := by refine ⟨cumulative_updated hu.velocity hi hH, ?_⟩ have he : (temporalStageState g h index axial c u).pressure = u.pressure + gaugeTemporalPressureChange g h index axial c u := by unfold gaugeTemporalPressureChange abel rw [he] exact hu.pressure.add (hp.mono_exponent hH) theorem gaugeRankStage_cumulative {s : StripData (PressureStream.Lift S)} (g : GaugeData S) (r : RankData S) (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) {H : ℝ} (hu : CorrectionState.CumulativeBounds s u) (hi : IncrementBounds s H (rankIncrementState g r axial c u)) (hp : MeanClass s H (gaugeRankPressureChange g r axial c u)) (hH : 9 / 10 ≤ H) : CorrectionState.CumulativeBounds s (rankStageState g r axial c u) := by refine ⟨cumulative_updated hu.velocity hi hH, ?_⟩ have he : (rankStageState g r axial c u).pressure = u.pressure + gaugeRankPressureChange g r axial c u := by unfold gaugeRankPressureChange abel rw [he] exact hu.pressure.add (hp.mono_exponent hH) end GaugeMeanBookkeeping section GaugeTemporalResidual open CorrectionState VariableGaugeMean PhysicalMeanDomain variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] /-- The actual gauge stream may differ from the desired axial inverse; its entire fast derivative is retained as the named axial alias. -/ theorem gaugeTemporal_fastCancellation {U : Set (PressureStream.Lift S)} (hU : IsOpen U) {V : Set S} (hV : IsOpen V) (hUV : ∀ x ∈ U, x.2.1 ∈ V) (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) (hv : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) (hfast : ∀ n, c.operators.fastCoefficient n = ChartScales.Tg ^ index n * ChartScales.Q n ^ (1 + h)) (hi : SmoothTriple U (temporalIncrementState g h index axial c u)) (hθ : ∀ n, ContDiffOn ℝ ∞ (u.thetaResidual c n) (slowDomain V)) (hz : ∀ n, ContDiffOn ℝ ∞ (u.axialResidual c n) (slowDomain V)) (hpθ : ∀ n, PeriodicOn V (u.thetaResidual c n)) (hpz : ∀ n, PeriodicOn V (u.axialResidual c n)) (n : ℕ) {x : PressureStream.Lift S} (hx : x ∈ U) : c.operators.fastTime (temporalIncrementState g h index axial c u).angular n x + (u.thetaResidual c n x - meanBar (u.thetaResidual c) n x) = 0 ∧ c.operators.fastTime (temporalIncrementState g h index axial c u).axial n x + (u.axialResidual c n x - meanBar (u.axialResidual c) n x) = temporalAliasState g h index c u n (x, 0) 2 := by have hθf := temporalAtIndex_local_fast h n (index n) hV (hθ n) (hpθ n) (hUV x hx) have hzf := temporalAtIndex_local_fast h n (index n) hV (hz n) (hpz n) (hUV x hx) let desired : ScalarField (PressureStream.Lift S) := fun m => MeanChartCompatibility.temporalAtIndex h m (index m) (u.axialResidual c m) have hdes : DifferentiableAt ℝ (desired n) x := ((temporalAtIndex_local_smooth h n (index n) hV (hz n) (hpz n)).contDiffAt ((slowDomain_open hV).mem_nhds (hUV x hx))).differentiableAt (by simp) have hinc : DifferentiableAt ℝ ((temporalIncrementState g h index axial c u).axial n) x := ((hi.axial n).contDiffAt (hU.mem_nhds hx)).differentiableAt (by simp) have hd : HasFDerivAt (temporalAxialDifference g h index c u n) (fderiv ℝ (desired n) x - fderiv ℝ ((temporalIncrementState g h index axial c u).axial n) x) x := hdes.hasFDerivAt.sub hinc.hasFDerivAt have he : c.operators.fastTime (temporalAxialDifference g h index c u) n x = c.operators.fastTime desired n x - c.operators.fastTime (temporalIncrementState g h index axial c u).axial n x := by simp only [Operators.fastTime, hd.fderiv, _root_.sub_apply, mul_sub] constructor · rw [common_fastTime h index c hv hfast] change MeanChartCompatibility.fastAtIndex h n (index n) (MeanChartCompatibility.temporalAtIndex h n (index n) (u.thetaResidual c n)) x + _ = 0 rw [hθf] simp only [TemporalMeanUpdate.centered, meanBar] ring · have hdesired : c.operators.fastTime desired n x = -(u.axialResidual c n x - meanBar (u.axialResidual c) n x) := by rw [common_fastTime h index c hv hfast] exact hzf change _ = -c.operators.fastTime (temporalAxialDifference g h index c u) n x rw [he, hdesired] ring theorem gaugeTemporalStage_theta_exact {U : Set (PressureStream.Lift S)} (hU : IsOpen U) {V : Set S} (hV : IsOpen V) (hUV : ∀ x ∈ U, x.2.1 ∈ V) (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) (hv : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) (hfast : ∀ n, c.operators.fastCoefficient n = ChartScales.Tg ^ index n * ChartScales.Q n ^ (1 + h)) (hprofile : ContDiffOn ℝ ∞ c.operators.radialProfile U) (hb : SmoothTriple U c.base) (hm : SmoothTriple U u.mean) (hi : SmoothTriple U (temporalIncrementState g h index axial c u)) (hW : ∀ i j, SmoothOn U (u.covariance i j)) (hθ : ∀ n, ContDiffOn ℝ ∞ (u.thetaResidual c n) (slowDomain V)) (hz : ∀ n, ContDiffOn ℝ ∞ (u.axialResidual c n) (slowDomain V)) (hpθ : ∀ n, PeriodicOn V (u.thetaResidual c n)) (hpz : ∀ n, PeriodicOn V (u.axialResidual c n)) : Agree U ((temporalStageState g h index axial c u).thetaResidual c) (meanBar (u.thetaResidual c) + thetaRemainder c.operators c.base u.mean (temporalIncrementState g h index axial c u)) := by have he := thetaResidual_change hU c.operators hprofile hb hm hi u.covariance hW c.virtualTheta have hnew : (temporalStageState g h index axial c u).thetaResidual c = MeanIncrementBounds.thetaResidual c.operators c.base (updated u.mean (temporalIncrementState g h index axial c u)) u.covariance c.virtualTheta := by simp [State.thetaResidual, temporalStageState, reconstructState, State.addIncrement] rfl intro n x hx have hc := (gaugeTemporal_fastCancellation hU hV hUV g h index axial c u hv hfast hi hθ hz hpθ hpz n hx).1 have he' := he n hx rw [hnew] simp only [Pi.add_apply, Pi.sub_apply] at he' ⊢ change _ - u.thetaResidual c n x = _ at he' linarith theorem gaugeTemporalStage_axial_exact {U : Set (PressureStream.Lift S)} (hU : IsOpen U) {V : Set S} (hV : IsOpen V) (hUV : ∀ x ∈ U, x.2.1 ∈ V) (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) (hv : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) (hfast : ∀ n, c.operators.fastCoefficient n = ChartScales.Tg ^ index n * ChartScales.Q n ^ (1 + h)) (hprofile : ContDiffOn ℝ ∞ c.operators.radialProfile U) (hb : SmoothTriple U c.base) (hm : SmoothTriple U u.mean) (hi : SmoothTriple U (temporalIncrementState g h index axial c u)) (hW : ∀ i j, SmoothOn U (u.covariance i j)) (hp : SmoothOn U u.pressure) (hnp : SmoothOn U (temporalStageState g h index axial c u).pressure) (hθ : ∀ n, ContDiffOn ℝ ∞ (u.thetaResidual c n) (slowDomain V)) (hz : ∀ n, ContDiffOn ℝ ∞ (u.axialResidual c n) (slowDomain V)) (hpθ : ∀ n, PeriodicOn V (u.thetaResidual c n)) (hpz : ∀ n, PeriodicOn V (u.axialResidual c n)) : Agree U (fun n x => (temporalStageState g h index axial c u).axialResidual c n x - temporalAliasState g h index c u n (x, 0) 2) (meanBar (u.axialResidual c) + axialRemainder c.operators c.base u.mean (temporalIncrementState g h index axial c u) (gaugeTemporalPressureChange g h index axial c u)) := by have he := axialResidual_change hU c.operators hprofile hb hm hi u.covariance hW u.pressure (gaugeTemporalPressureChange g h index axial c u) c.virtualAxial hp (hnp.sub hp) have hpressure : u.pressure + gaugeTemporalPressureChange g h index axial c u = (temporalStageState g h index axial c u).pressure := by unfold gaugeTemporalPressureChange abel have hnew : (temporalStageState g h index axial c u).axialResidual c = MeanIncrementBounds.axialResidual c.operators c.base (updated u.mean (temporalIncrementState g h index axial c u)) u.covariance (u.pressure + gaugeTemporalPressureChange g h index axial c u) c.virtualAxial := by rw [hpressure] simp [State.axialResidual, temporalStageState, reconstructState, State.addIncrement] rfl intro n x hx have hc := (gaugeTemporal_fastCancellation hU hV hUV g h index axial c u hv hfast hi hθ hz hpθ hpz n hx).2 have he' := he n hx rw [hnew] simp only [Pi.add_apply, Pi.sub_apply] at he' ⊢ change _ - u.axialResidual c n x = _ at he' linarith end GaugeTemporalResidual section GaugeTemporalGain open CorrectionState VariableGaugeMean PhysicalMeanDomain variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] /-- The actual variable-gauge temporal update has the same differentiated mean remainder as the fixed-gauge update. Its axial alias remains explicit. -/ theorem gaugeTemporalStage_mean_gain {s : StripData (PressureStream.Lift S)} {V : Set S} (hV : IsOpen V) (hUV : ∀ x ∈ s.domain, x.2.1 ∈ V) (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) {H κ β : ℝ} (hv : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) (hfast : ∀ n, c.operators.fastCoefficient n = ChartScales.Tg ^ index n * ChartScales.Q n ^ (1 + h)) (ho : OperatorBounds s c.operators κ) (hb : BaseBounds s c.base) (hu : CorrectionState.CumulativeBounds s u) (hi : IncrementBounds s H (temporalIncrementState g h index axial c u)) (hdp : MeanClass s H (gaugeTemporalPressureChange g h index axial c u)) (hW : ∀ i j, SmoothOn s.domain (u.covariance i j)) (hbarθ : MeanClass s β (meanBar (u.thetaResidual c))) (hbarz : MeanClass s β (meanBar (u.axialResidual c))) (hθ : ∀ n, ContDiffOn ℝ ∞ (u.thetaResidual c n) (slowDomain V)) (hz : ∀ n, ContDiffOn ℝ ∞ (u.axialResidual c n) (slowDomain V)) (hpθ : ∀ n, PeriodicOn V (u.thetaResidual c n)) (hpz : ∀ n, PeriodicOn V (u.axialResidual c n)) (hH : 9 / 10 ≤ H) (hβ : β ≤ H + 1 - 2 * κ) : MeanClass s β ((temporalStageState g h index axial c u).thetaResidual c) ∧ MeanClass s β (fun n x => (temporalStageState g h index axial c u).axialResidual c n x - temporalAliasState g h index c u n (x, 0) 2) := by have hnp : SmoothOn s.domain (temporalStageState g h index axial c u).pressure := by have he : (temporalStageState g h index axial c u).pressure = u.pressure + gaugeTemporalPressureChange g h index axial c u := by unfold gaugeTemporalPressureChange abel rw [he] exact fun n => (hu.pressure.smooth n).add (hdp.smooth n) constructor · apply class_congr (hbarθ.add ((thetaRemainder_mem ho hb hu.velocity hi hH).mono_exponent hβ)) exact gaugeTemporalStage_theta_exact s.isOpen_domain hV hUV g h index axial c u hv hfast (ho.radialProfile.smooth 0) hb.smooth hu.velocity.smooth hi.smooth hW hθ hz hpθ hpz · apply class_congr (hbarz.add ((axialRemainder_mem ho hb hu.velocity hi hH hdp).mono_exponent hβ)) exact gaugeTemporalStage_axial_exact s.isOpen_domain hV hUV g h index axial c u hv hfast (ho.radialProfile.smooth 0) hb.smooth hu.velocity.smooth hi.smooth hW hu.pressure.smooth hnp hθ hz hpθ hpz end GaugeTemporalGain section GaugeAliasBookkeeping open CorrectionState VariableGaugeMean variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] noncomputable def gaugeRefreshPressureAlias (g : GaugeData S) (c : Context (PressureStream.Lift S)) (old current : State (PressureStream.Lift S)) : State (PressureStream.Lift S) := { current with errors := { current.errors with aliasError := current.errors.aliasError + (pressureAliasState g c current - pressureAliasState g c old) } } end GaugeAliasBookkeeping section PhysicalResidualDecomposition open CorrectionState PhysicalResidualBridge ProblemStatement Filter open scoped Topology end PhysicalResidualDecomposition section SourceCoefficientCompatibility open CorrectionState HarmonicFields MeasureTheory end SourceCoefficientCompatibility section AssembledSignedTensor open CorrectionState variable {ι : Type} end AssembledSignedTensor section WaveStageGain open CorrectionState end WaveStageGain section WaveMeanResidual open CorrectionState VariableGaugeMean noncomputable def zeroTriple : Triple D := ⟨0, 0, 0⟩ omit [NormedAddCommGroup D] [NormedSpace ℝ D] in theorem updated_zeroTriple (m : Triple D) : updated m zeroTriple = m := by apply triple_ext <;> simp only [updated, zeroTriple, add_zero] variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] /-- Insert the actual oscillation and its actual excluded error, then reconstruct pressure from the resulting literal covariance. -/ noncomputable def gaugeWaveStage (g : GaugeData S) (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) (w : Oscillation (PressureStream.Lift S)) (q : OscillatoryScalar (PressureStream.Lift S)) (e : ExcludedErrors (PressureStream.Lift S)) : State (PressureStream.Lift S) := reconstructState g c (u.addIncrement zeroTriple 0 w q e) noncomputable def gaugeWavePressureChange (g : GaugeData S) (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) (w : Oscillation (PressureStream.Lift S)) (q : OscillatoryScalar (PressureStream.Lift S)) (e : ExcludedErrors (PressureStream.Lift S)) : ScalarField (PressureStream.Lift S) := (gaugeWaveStage g c u w q e).pressure - u.pressure theorem gaugeWaveStage_mean (g : GaugeData S) (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) (w : Oscillation (PressureStream.Lift S)) (q : OscillatoryScalar (PressureStream.Lift S)) (e : ExcludedErrors (PressureStream.Lift S)) : (gaugeWaveStage g c u w q e).mean = u.mean := updated_zeroTriple u.mean theorem gaugeWaveStage_cumulative {s : StripData (PressureStream.Lift S)} {α : ℝ} (g : GaugeData S) (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) (w : Oscillation (PressureStream.Lift S)) (q : OscillatoryScalar (PressureStream.Lift S)) (e : ExcludedErrors (PressureStream.Lift S)) (hm : CorrectionState.CumulativeBounds s u) (hδp : MeanClass s α (gaugeWavePressureChange g c u w q e)) (hα : 9 / 10 ≤ α) : CorrectionState.CumulativeBounds s (gaugeWaveStage g c u w q e) := by constructor · rw [gaugeWaveStage_mean] exact hm.velocity · have he : (gaugeWaveStage g c u w q e).pressure = u.pressure + gaugeWavePressureChange g c u w q e := by unfold gaugeWavePressureChange; abel rw [he] exact hm.pressure.add (hδp.mono_exponent hα) end WaveMeanResidual section SignedParameters open CorrectionState /-- Fixed primitive data of one primary signed slot. No output field, output estimate, or state transition is stored in this record. -/ structure SignedParameters (D : Type) [NormedAddCommGroup D] [NormedSpace ℝ D] where base : LinearWaveBounds.WaveCoefficients (D × ℝ) directions : LinearWaveBounds.GraphDirections (D × ℝ) matrix : ℕ → D × ℝ → SignedWaveUpdate.Mat2 target : ℕ → D × ℝ → SignedWaveUpdate.Vec2 mask : ℕ → D × ℝ → ℝ fundamental : ℕ → D × ℝ → ProblemStatement.Space normalMotion : ℕ → D × ℝ → ProblemStatement.Space action : ℕ → D × ℝ → ProblemStatement.Space →L[ℝ] ProblemStatement.Space cutoff : ℕ → D × ℝ → ℝ angularFrequency : ℕ → ℤ column : Fin 2 noncomputable def SignedParameters.coefficients (p : SignedParameters D) (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : LinearWaveBounds.WaveCoefficients (D × ℝ) := SignedWaveUpdate.coefficients p.base (HarmonicWaveInteraction.productStrip s) p.directions p.matrix p.target request p.mask p.fundamental p.normalMotion p.action p.column noncomputable def SignedParameters.exactBlock (p : SignedParameters D) (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : HarmonicBlock D := SignedWaveUpdate.blockOfCoefficients ((p.coefficients s request).corrected (HarmonicWaveInteraction.productStrip s) p.directions p.cutoff) p.angularFrequency noncomputable def SignedParameters.tangentBlock (p : SignedParameters D) (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : HarmonicBlock D := SignedWaveUpdate.blockOfCoefficients ((p.coefficients s request).withCutoff p.cutoff) p.angularFrequency noncomputable def SignedParameters.curlBlock (p : SignedParameters D) (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : HarmonicBlock D := subBlock (p.exactBlock s request) (p.tangentBlock s request) theorem sectionStrip_productStrip (s : StripData D) : SignedWaveUpdate.sectionStrip (HarmonicWaveInteraction.productStrip s) = s := by cases s rfl /-- Every output bound here is derived from the same explicit signed quotient and curl, on the exact product strip used by the current state. -/ theorem SignedParameters.block_bounds (p : SignedParameters D) (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) {P₀ : ℕ → D × ℝ → ℝ} {P : ℕ → D → ℝ} {α₀ B κ : ℝ} (hbase : LinearWaveBounds.InputBounds (HarmonicWaveInteraction.productStrip s) P₀ α₀ κ p.directions p.base) (hκ : κ ≤ 1 / 2) (hcov : SignedWaveUpdate.CovarianceControl (HarmonicWaveInteraction.productStrip s) p.matrix p.target) (hR : ∀ i, MeanClass (HarmonicWaveInteraction.productStrip s) (B - 1 / 2 - κ) (fun n x => request n x i)) (hm : UnweightedClass (HarmonicWaveInteraction.productStrip s) 0 p.mask) (hv : MemClass (HarmonicWaveInteraction.productStrip s) (fun n x => P n x.1) 0 p.fundamental) (hN : PhaseJetBounds.PolynomialJets (CurlClassBounds.phaseDomain (HarmonicWaveInteraction.productStrip s)) (p.base.normal (HarmonicWaveInteraction.productStrip s) p.directions)) (hNdot : UnweightedClass (HarmonicWaveInteraction.productStrip s) 0 p.normalMotion) (hA : UnweightedClass (HarmonicWaveInteraction.productStrip s) 0 p.action) {b M : ℝ} (hb : 0 < b) (hlo : ∀ n x, x ∈ (HarmonicWaveInteraction.productStrip s).domain → b ≤ ‖p.base.normal (HarmonicWaveInteraction.productStrip s) p.directions n x‖) (hhi : ∀ n x, x ∈ (HarmonicWaveInteraction.productStrip s).domain → ‖p.base.normal (HarmonicWaveInteraction.productStrip s) p.directions n x‖ ≤ M) (hK : BandBound (HarmonicWaveInteraction.productStrip s) (1 / 2) (fun n => 1 / p.base.frequency n)) {radius : D × ℝ → ℝ} (hradius : p.base.radius = fun _ => radius) (hψ : UnweightedClass (HarmonicWaveInteraction.productStrip s) 0 p.cutoff) : (p.tangentBlock s request).WaveBounds s P (B - κ) ∧ (p.exactBlock s request).WaveBounds s P (B - κ) ∧ (p.exactBlock s request).PressureBounds s P (B + 1 / 2 - κ) ∧ (p.curlBlock s request).WaveBounds s P (B + 1 / 2 - 2 * κ) := by have he := constructedSignedBlock_bounds hbase hκ hcov hR hm hv hN hNdot hA hb hlo hhi hK hradius hψ p.angularFrequency p.column simpa only [SignedParameters.tangentBlock, SignedParameters.exactBlock, SignedParameters.curlBlock, SignedParameters.coefficients, sectionStrip_productStrip] using he structure SignedParameters.Control (p : SignedParameters D) (s : StripData D) (P₀ : ℕ → D × ℝ → ℝ) (P : ℕ → D → ℝ) (α₀ κ : ℝ) where baseBounds : LinearWaveBounds.InputBounds (HarmonicWaveInteraction.productStrip s) P₀ α₀ κ p.directions p.base kappa_le_half : κ ≤ 1 / 2 covariance : SignedWaveUpdate.CovarianceControl (HarmonicWaveInteraction.productStrip s) p.matrix p.target mask : UnweightedClass (HarmonicWaveInteraction.productStrip s) 0 p.mask fundamental : MemClass (HarmonicWaveInteraction.productStrip s) (fun n x => P n x.1) 0 p.fundamental normal : PhaseJetBounds.PolynomialJets (CurlClassBounds.phaseDomain (HarmonicWaveInteraction.productStrip s)) (p.base.normal (HarmonicWaveInteraction.productStrip s) p.directions) normalMotion : UnweightedClass (HarmonicWaveInteraction.productStrip s) 0 p.normalMotion action : UnweightedClass (HarmonicWaveInteraction.productStrip s) 0 p.action lower : ℝ upper : ℝ lower_pos : 0 < lower norm_lower : ∀ n x, x ∈ (HarmonicWaveInteraction.productStrip s).domain → lower ≤ ‖p.base.normal (HarmonicWaveInteraction.productStrip s) p.directions n x‖ norm_upper : ∀ n x, x ∈ (HarmonicWaveInteraction.productStrip s).domain → ‖p.base.normal (HarmonicWaveInteraction.productStrip s) p.directions n x‖ ≤ upper inverseFrequency : BandBound (HarmonicWaveInteraction.productStrip s) (1 / 2) (fun n => 1 / p.base.frequency n) radius : D × ℝ → ℝ radius_eq : p.base.radius = fun _ => radius cutoff : UnweightedClass (HarmonicWaveInteraction.productStrip s) 0 p.cutoff theorem SignedParameters.Control.bounds {p : SignedParameters D} {s : StripData D} {P₀ : ℕ → D × ℝ → ℝ} {P : ℕ → D → ℝ} {α₀ κ B : ℝ} (h : p.Control s P₀ P α₀ κ) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) (hR : ∀ i, MeanClass (HarmonicWaveInteraction.productStrip s) (B - 1 / 2 - κ) (fun n x => request n x i)) : (p.tangentBlock s request).WaveBounds s P (B - κ) ∧ (p.exactBlock s request).WaveBounds s P (B - κ) ∧ (p.exactBlock s request).PressureBounds s P (B + 1 / 2 - κ) ∧ (p.curlBlock s request).WaveBounds s P (B + 1 / 2 - 2 * κ) := p.block_bounds s request h.baseBounds h.kappa_le_half h.covariance hR h.mask h.fundamental h.normal h.normalMotion h.action h.lower_pos h.norm_lower h.norm_upper h.inverseFrequency h.radius_eq h.cutoff end SignedParameters section ActualSignedStage open CorrectionState end ActualSignedStage section LinearCoefficientBridge open CorrectionState /-- The actual real linearized cylindrical residual of a block, evaluated with the carrier of the old spatial label. -/ noncomputable def linearBlockField (c : Context D) (a b : HarmonicBlock D) : Oscillation D := fun n x i => (LinearWaveResidual.linearResidual (c.operators.epsilon n) (fun y : D × ℝ => 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 : ℂ)) x i).re theorem linearCoefficients_field {U : Set D} (hU : IsOpen U) (c : Context D) (a b : HarmonicBlock D) (n : ℕ) (hr : ContDiffOn ℝ ∞ (HarmonicResidual.contextFrame c n).radial U) (hz : ContDiffOn ℝ ∞ (HarmonicResidual.contextFrame c n).axial U) (hB : ∀ i, ContDiffOn ℝ ∞ (fun y => HarmonicResidual.contextBase c n y i) U) (hb : ∀ i, HarmonicResidual.SmoothCoefficients U (b.velocity n i)) (hp : HarmonicResidual.SmoothCoefficients U (b.pressure n)) (hΦ : ContDiffOn ℝ ∞ (a.phase n) U) {x : D × ℝ} (hx : x ∈ HarmonicResidual.liftDomain U) (i : Fin 3) : (HarmonicFields.field (HarmonicWaveInteraction.linearCoefficients c a b n i) (a.frequency n) (a.phase n) (a.angularFrequency n) x).re = linearBlockField c a b n x i := by have he := HarmonicResidual.field_linearResidual hU (HarmonicResidual.contextFrame c n) hr hz (fun l => HarmonicResidual.smoothCoefficients_constant (hB l)) (fun l => (hb l).realCoefficients) hp.realCoefficients hΦ (a.frequency n) (a.angularFrequency n) hx change HarmonicResidual.vectorField (HarmonicWaveInteraction.linearCoefficients c a b n) (a.frequency n) (a.phase n) (a.angularFrequency n) x = _ at he have hbase : HarmonicResidual.vectorField (fun l => HarmonicFields.constantCoefficient (fun y => HarmonicResidual.contextBase c n y l)) (a.frequency n) (a.phase n) (a.angularFrequency n) = complexBase c n := by funext y l exact HarmonicResidual.field_constant _ _ _ _ y have hamp : HarmonicResidual.vectorField (fun l => HarmonicResidual.realCoefficients (b.velocity n l)) (a.frequency n) (a.phase n) (a.angularFrequency n) = LinearWaveResidual.realLift ((HarmonicWaveInteraction.withCarrier a b).oscillation n) := by funext y l exact HarmonicResidual.field_realCoefficients _ _ _ _ y have hpress : HarmonicFields.field (HarmonicResidual.realCoefficients (b.pressure n)) (a.frequency n) (a.phase n) (a.angularFrequency n) = fun y => ((HarmonicWaveInteraction.withCarrier a b).oscillatoryPressure n y : ℂ) := by funext y exact HarmonicResidual.field_realCoefficients _ _ _ _ y rw [hbase, hamp, hpress] at he exact congrArg Complex.re (congrFun he i) /-- An actual field cancellation determines every nonzero coefficient. The Gaussian is subtracted only after its full field is retained in the identity. The conclusion uses the literal `linearGoodBlock`. -/ theorem linearGoodBlock_cancel {U : Set D} (hU : IsOpen U) (c : Context D) (a b source good : HarmonicBlock D) (g : HarmonicResidual.BlockCoefficients D) (n : ℕ) (hr : ContDiffOn ℝ ∞ (HarmonicResidual.contextFrame c n).radial U) (hz : ContDiffOn ℝ ∞ (HarmonicResidual.contextFrame c n).axial U) (hB : ∀ i, ContDiffOn ℝ ∞ (fun y => HarmonicResidual.contextBase c n y i) U) (hb : ∀ i, HarmonicResidual.SmoothCoefficients U (b.velocity n i)) (hp : HarmonicResidual.SmoothCoefficients U (b.pressure n)) (hΦ : ContDiffOn ℝ ∞ (a.phase n) U) (hkp : a.angularFrequency n ≠ 0) (hs : ∀ i, HarmonicFields.ConjugateSymmetric (source.velocity n i)) (hg : ∀ i, HarmonicFields.ConjugateSymmetric (good.velocity n i)) {x : D} (hx : x ∈ U) (j : ℤ) (hj : j ≠ 0) (i : Fin 3) (hcancel : ∀ θ, linearBlockField c a b n (x, θ) i + (HarmonicWaveInteraction.withCarrier a source).oscillation n (x, θ) i = (HarmonicWaveInteraction.withCarrier a good).oscillation n (x, θ) i + (HarmonicFields.field (g n i) (a.frequency n) (a.phase n) (a.angularFrequency n) (x, θ)).re) : source.velocity n i j x + (HarmonicWaveInteraction.linearGoodBlock c a b g).velocity n i j x = good.velocity n i j x := by have he : (source.velocity n i + HarmonicResidual.realCoefficients (HarmonicWaveInteraction.linearCoefficients c a b n i - g n i)) j x = good.velocity n i j x := by apply HarmonicWaveInteraction.coefficient_eq_of_field_eq_at _ _ (a.frequency n) (a.phase n) hkp j x intro θ rw [HarmonicResidual.field_add, HarmonicResidual.field_realCoefficients, HarmonicResidual.field_sub, Complex.sub_re, linearCoefficients_field hU c a b n hr hz hB hb hp hΦ ⟨hx, trivial⟩ i, ← HarmonicFields.field_real (hs i), ← HarmonicFields.field_real (hg i)] have hc := hcancel θ change linearBlockField c a b n (x, θ) i + (HarmonicFields.field (source.velocity n i) (a.frequency n) (a.phase n) (a.angularFrequency n) (x, θ)).re = (HarmonicFields.field (good.velocity n i) (a.frequency n) (a.phase n) (a.angularFrequency n) (x, θ)).re + _ at hc have hh : (HarmonicFields.field (source.velocity n i) (a.frequency n) (a.phase n) (a.angularFrequency n) (x, θ)).re + (linearBlockField c a b n (x, θ) i - (HarmonicFields.field (g n i) (a.frequency n) (a.phase n) (a.angularFrequency n) (x, θ)).re) = (HarmonicFields.field (good.velocity n i) (a.frequency n) (a.phase n) (a.angularFrequency n) (x, θ)).re := by linarith exact_mod_cast hh simpa only [HarmonicWaveInteraction.linearGoodBlock, HarmonicMeanInteraction.nonconstant_apply_of_ne _ hj, AddMonoidAlgebra.coeff_add, Finsupp.add_apply, Pi.add_apply] using he end LinearCoefficientBridge section ConstructedSignedLinear open CorrectionState noncomputable def contextRealBase (c : Context D) (n : ℕ) (x : D × ℝ) : Fin 3 → ℝ := ![c.base.radial n x.1, c.base.angular n x.1, c.base.axial n x.1] omit [NormedAddCommGroup D] [NormedSpace ℝ D] in theorem complexBase_eq_realLift (c : Context D) (n : ℕ) : complexBase c n = LinearWaveResidual.realLift (contextRealBase c n) := by funext x i fin_cases i <;> rfl theorem contextRealBase_smooth {U : Set D} {c : Context D} (hB : SmoothTriple U c.base) (n : ℕ) (i : Fin 3) : ContDiffOn ℝ ∞ (fun x => contextRealBase c n x i) (HarmonicResidual.liftDomain U) := by fin_cases i · exact (hB.radial n).comp contDiff_fst.contDiffOn (fun _ hx => hx.1) · exact (hB.angular n).comp contDiff_fst.contDiffOn (fun _ hx => hx.1) · exact (hB.axial n).comp contDiff_fst.contDiffOn (fun _ hx => hx.1) theorem linearBlockField_eq_real {U : Set D} (hU : IsOpen U) (c : Context D) (a b : HarmonicBlock D) (n : ℕ) (hr : ContDiffOn ℝ ∞ (radialDirection c n) (HarmonicResidual.liftDomain U)) (hz : ContDiffOn ℝ ∞ (axialDirection c n) (HarmonicResidual.liftDomain U)) (hB : SmoothTriple U c.base) (hb : ∀ i, ContDiffOn ℝ ∞ (fun x => (HarmonicWaveInteraction.withCarrier a b).oscillation n x i) (HarmonicResidual.liftDomain U)) (hp : ContDiffOn ℝ ∞ ((HarmonicWaveInteraction.withCarrier a b).oscillatoryPressure n) (HarmonicResidual.liftDomain U)) {x : D × ℝ} (hx : x ∈ HarmonicResidual.liftDomain U) : linearBlockField c a b n x = LinearWaveResidual.realComponentLinearResidual (c.operators.epsilon n) (fun y : D × ℝ => c.operators.radius y.1) (radialDirection c n) angularDirection (axialDirection c n) (timeDirection c n) (contextRealBase c n) ((HarmonicWaveInteraction.withCarrier a b).oscillation n) ((HarmonicWaveInteraction.withCarrier a b).oscillatoryPressure n) x := by have hU' := HarmonicResidual.liftDomain_open hU have he := LinearWaveResidual.realMap_linearResidual Complex.reCLM (c.operators.epsilon n) (fun y : D × ℝ => c.operators.radius y.1) (timeDirection c n) (Vθ := angularDirection) (B := contextRealBase c n) (a := LinearWaveResidual.realLift ((HarmonicWaveInteraction.withCarrier a b).oscillation n)) (p := fun y => ((HarmonicWaveInteraction.withCarrier a b).oscillatoryPressure n y : ℂ)) hU' hr contDiffOn_const hz (fun i => Complex.ofRealCLM.contDiff.comp_contDiffOn (hb i)) (fun i => ((contextRealBase_smooth hB n i).contDiffAt (hU'.mem_nhds hx)).differentiableAt (by simp)) (((Complex.ofRealCLM.contDiff.comp_contDiffOn hp).contDiffAt (hU'.mem_nhds hx)).differentiableAt (by simp)) hx rw [← complexBase_eq_realLift] at he simp only [ LinearWaveResidual.realLift, Complex.reCLM_apply, Complex.ofReal_re] at he ⊢ exact he /-- Primitive equality of the direction and background data. This record contains no residual identity and no statement about a corrected field. -/ structure WaveFrameMatch (c : Context D) (s : StripData (D × ℝ)) (d : LinearWaveBounds.GraphDirections (D × ℝ)) (a : LinearWaveBounds.WaveCoefficients (D × ℝ)) : Prop where epsilon : ∀ n, s.epsilon n = c.operators.epsilon n radius : ∀ n, a.radius n = fun y : D × ℝ => c.operators.radius y.1 radial : ∀ n, d.radialField n = radialDirection c n angular : d.angular = (0,1) axial : ∀ n, d.axialField s n = axialDirection c n time : ∀ n, LinearWaveResidual.timeDirection (s.epsilon n) (d.fastField n) (fun _ => d.slow) = timeDirection c n radialBase : ∀ n x, a.radialBase n x = c.base.radial n x.1 angularBase : ∀ n x, a.radius n x * a.frequencyBase n x = c.base.angular n x.1 axialBase : ∀ n x, a.axialBase n x = c.base.axial n x.1 theorem WaveFrameMatch.base {c : Context D} {s : StripData (D × ℝ)} {d : LinearWaveBounds.GraphDirections (D × ℝ)} {a : LinearWaveBounds.WaveCoefficients (D × ℝ)} (h : WaveFrameMatch c s d a) (n : ℕ) : LinearWaveResidual.complexBase (a.radius n) (a.radialBase n) (a.frequencyBase n) (a.axialBase n) = complexBase c n := by funext x i fin_cases i <;> simp [LinearWaveResidual.complexBase, LinearWaveResidual.base, complexBase, h.radialBase n x, h.angularBase n x, h.axialBase n x] theorem WaveFrameMatch.harmonicResidual {c : Context D} {s : StripData (D × ℝ)} {d : LinearWaveBounds.GraphDirections (D × ℝ)} {z : LinearWaveBounds.WaveCoefficients (D × ℝ)} (h : WaveFrameMatch c s d z) (n : ℕ) : z.harmonicResidual s d n = LinearWaveResidual.linearResidual (c.operators.epsilon n) (fun y : D × ℝ => c.operators.radius y.1) (radialDirection c n) angularDirection (axialDirection c n) (timeDirection c n) (complexBase c n) (HarmonicCalculus.vectorMode (z.frequency n) (z.phase n) (z.amplitude n)) (HarmonicCalculus.mode (z.frequency n) (z.phase n) (z.pressure n)) := by unfold LinearWaveBounds.WaveCoefficients.harmonicResidual rw [h.base, h.time, h.epsilon, h.radius, h.radial, h.axial, h.angular] rfl theorem linearBlockField_eq_modeResidual {U : Set D} (hU : IsOpen U) (c : Context D) (a b : HarmonicBlock D) (s : StripData (D × ℝ)) (d : LinearWaveBounds.GraphDirections (D × ℝ)) (z : LinearWaveBounds.WaveCoefficients (D × ℝ)) (hm : WaveFrameMatch c s d z) (n : ℕ) (hB : SmoothTriple U c.base) (hr : ContDiffOn ℝ ∞ (radialDirection c n) (HarmonicResidual.liftDomain U)) (hz : ContDiffOn ℝ ∞ (axialDirection c n) (HarmonicResidual.liftDomain U)) (hphase : ContDiffOn ℝ ∞ (z.phase n) (HarmonicResidual.liftDomain U)) (hv : ∀ i, ContDiffOn ℝ ∞ (fun x => z.amplitude n x i) (HarmonicResidual.liftDomain U)) (hp : ContDiffOn ℝ ∞ (z.pressure n) (HarmonicResidual.liftDomain U)) (hvel : (HarmonicWaveInteraction.withCarrier a b).oscillation n = fun x i => (HarmonicCalculus.vectorMode (z.frequency n) (z.phase n) (z.amplitude n) x i).re) (hpress : (HarmonicWaveInteraction.withCarrier a b).oscillatoryPressure n = fun x => (HarmonicCalculus.mode (z.frequency n) (z.phase n) (z.pressure n) x).re) {x : D × ℝ} (hx : x ∈ HarmonicResidual.liftDomain U) : linearBlockField c a b n x = fun i => (z.harmonicResidual s d n x i).re := by have hU' := HarmonicResidual.liftDomain_open hU have hv' i : ContDiffOn ℝ ∞ (fun y => HarmonicCalculus.vectorMode (z.frequency n) (z.phase n) (z.amplitude n) y i) (HarmonicResidual.liftDomain U) := HarmonicCalculus.contDiffOn_mode _ hphase (hv i) have hp' := HarmonicCalculus.contDiffOn_mode (z.frequency n) hphase hp have he := LinearWaveResidual.realMap_linearResidual Complex.reCLM (c.operators.epsilon n) (fun y : D × ℝ => c.operators.radius y.1) (timeDirection c n) (Vθ := angularDirection) (B := contextRealBase c n) hU' hr contDiffOn_const hz hv' (fun i => ((contextRealBase_smooth hB n i).contDiffAt (hU'.mem_nhds hx)).differentiableAt (by simp)) ((hp'.contDiffAt (hU'.mem_nhds hx)).differentiableAt (by simp)) hx rw [← complexBase_eq_realLift, ← hm.harmonicResidual] at he simp only [Complex.reCLM_apply] at he rw [← hvel, ← hpress] at he rw [linearBlockField_eq_real hU c a b n hr hz hB (fun i => by rw [hvel]; exact Complex.reCLM.contDiff.comp_contDiffOn (hv' i)) (by rw [hpress]; exact Complex.reCLM.contDiff.comp_contDiffOn hp') hx] exact he.symm /-- The ODE and phase data of the fixed primary column, before performing any signed update. All equalities concern primitive inputs. -/ structure SignedParameters.Dynamics (p : SignedParameters D) (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) where slope : ℕ → ℝ angular : SignedWaveUpdate.AngularInputs (HarmonicWaveInteraction.productStrip s) p.directions p.base p.matrix p.target request p.mask p.fundamental p.normalMotion p.action p.cutoff slope angular_direction : p.directions.angular = (0,1) angular_frequency : ∀ n, p.base.frequency n * slope n = (p.angularFrequency n : ℝ) angular_nonzero : ∀ n, p.angularFrequency n ≠ 0 geometry : ∀ n, CurlClassBounds.CylindricalGeometry (HarmonicWaveInteraction.productStrip s).domain (p.base.radius n) (p.directions.radialField n) (fun _ => p.directions.angular) (p.directions.axialField (HarmonicWaveInteraction.productStrip s) n) matrix_frozen : SignedWaveUpdate.FrozenAlong p.directions.fast p.matrix target_frozen : SignedWaveUpdate.FrozenAlong p.directions.fast p.target request_frozen : SignedWaveUpdate.FrozenAlong p.directions.fast request mask_frozen : SignedWaveUpdate.FrozenAlong p.directions.fast p.mask frequency_nonzero : ∀ n, p.base.frequency n ≠ 0 ode : ∀ n x, x ∈ (HarmonicWaveInteraction.productStrip s).domain → HarmonicCalculus.along (p.directions.fastField n) (p.fundamental n) x = TangentProjection.projectedRhs (p.base.normal (HarmonicWaveInteraction.productStrip s) p.directions n x) (p.normalMotion n x) (p.fundamental n x) (p.action n x (p.fundamental n x)) 0 (s.epsilon n * p.base.frequency n ^ 2 * ‖p.base.normal (HarmonicWaveInteraction.productStrip s) p.directions n x‖ ^ 2) action_eq : ∀ n x, x ∈ (HarmonicWaveInteraction.productStrip s).domain → CurlClassBounds.complexify (p.action n x (p.fundamental n x)) = LinearWaveResidual.shear (p.base.radius n) (p.base.frequencyBase n) (p.base.axialBase n) (p.directions.radialField n) (fun y => CurlClassBounds.complexify (p.fundamental n y)) x cutoff_smooth : ∀ n, ContDiff ℝ ∞ (p.cutoff n) theorem productStrip_domain (s : StripData D) : (HarmonicWaveInteraction.productStrip s).domain = HarmonicResidual.liftDomain s.domain := by ext x simp [HarmonicWaveInteraction.productStrip, HarmonicWaveInteraction.pullbackStrip, HarmonicWaveInteraction.projection, HarmonicResidual.liftDomain] omit [NormedAddCommGroup D] [NormedSpace ℝ D] in theorem withCarrier_of_same {a b : HarmonicBlock D} (h : SameCarrier a b) : HarmonicWaveInteraction.withCarrier a b = b := by rcases a with ⟨av,ap,ak,aΦ,akp⟩ rcases b with ⟨bv,bp,bk,bΦ,bkp⟩ rcases h with ⟨hk,hΦ,hkp⟩ simp only at hk hΦ hkp subst bk subst bΦ subst bkp rfl noncomputable def SignedParameters.gaussianBlock (p : SignedParameters D) (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : HarmonicBlock D := SignedWaveUpdate.gaussianBlock (p.coefficients s request) p.directions p.cutoff p.angularFrequency end ConstructedSignedLinear section ConstructedSignedInvariants open CorrectionState open scoped InnerProductSpace /-- Primitive localization data for the already chosen signed cutoff. -/ structure SignedParameters.GaussianControl (p : SignedParameters D) (s : StripData D) (P : ℕ → D → ℝ) where slot : GaussianTailFlat.SlotFamily (HarmonicWaveInteraction.productStrip s) cutoff : p.cutoff = slot.cutoff fast : ∀ n, slot.linear n (p.directions.fastScale n • p.directions.fast) = (slot.length n)⁻¹ edges : GaussianTailFlat.FlatEdges (HarmonicWaveInteraction.productStrip s) scales : GaussianTailFlat.BandScaleControl (HarmonicWaveInteraction.productStrip s) rate : ℝ rate_pos : 0 < rate envelope : ∀ n x, x ∈ (HarmonicWaveInteraction.productStrip s).domain → P n x.1 ≤ Real.exp (-rate * (slot.coordinate n x - 1 / 2) ^ 2 * slot.length n) end ConstructedSignedInvariants section GaugeRankMean open CorrectionState VariableGaugeMean variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] omit [FiniteDimensional ℝ S] in theorem slow_directional_zero_on {s : StripData (PressureStream.Lift S)} {U : Set S} (hU : ∀ x ∈ s.domain, x.2.1 ∈ U) {f : ScalarField (PressureStream.Lift S)} (hf : SmoothOn s.domain f) (hslow : LocalRankDefect.IsSlowOn U f) (v : PressureStream.Plane) (n : ℕ) {x : PressureStream.Lift S} (hx : x ∈ s.domain) : fderiv ℝ (f n) x (0, (0, v)) = 0 := by apply directional_zero_of_line_const ((hf.at_point s.isOpen_domain n hx).differentiableAt (by simp)) intro t rcases x with ⟨R, p, Y⟩ simp only [Prod.smul_mk, smul_zero, Prod.mk_add_mk, add_zero] rw [hslow n R p (hU _ hx), hslow n R p (hU _ hx)] /-- Slow rank increments preserve an already subtracted temporal alias. The slow axial identity comes from the constructed zero-mass stream. -/ theorem gaugeRankStage_mean_gain {s : StripData (PressureStream.Lift S)} {U : Set S} (hU : IsOpen U) (hSU : ∀ x ∈ s.domain, x.2.1 ∈ U) (g : GaugeData S) (r : RankData S) (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) (hg : LocalRankDefect.RankGeometry g r U c u) {a b : ℝ} (ha : 0 < a) (hab : a < b) (hleft : ∀ n p, p ∈ U → a ≤ r.length n p * r.inner) (hright : ∀ n p, p ∈ U → r.length n p * r.outer ≤ b) {H κ β : ℝ} (v : PressureStream.Plane) (hfast : c.operators.vT = (0, (0, v))) (ho : OperatorBounds s c.operators κ) (hb : BaseBounds s c.base) (hu : CorrectionState.CumulativeBounds s u) (hi : IncrementBounds s H (rankIncrementState g r axial c u)) (hdp : MeanClass s H (gaugeRankPressureChange g r axial c u)) (hW : ∀ i j, SmoothOn s.domain (u.covariance i j)) (A : ScalarField (PressureStream.Lift S)) (hθ : MeanClass s β (u.thetaResidual c)) (hz : MeanClass s β (u.axialResidual c - A)) (hH : 9 / 10 ≤ H) (hβ : β ≤ H + 1 - 2 * κ) : MeanClass s β ((rankStageState g r axial c u).thetaResidual c) ∧ MeanClass s β ((rankStageState g r axial c u).axialResidual c - A) := by have hslowθ : ∀ n x, x ∈ s.domain → fderiv ℝ ((rankIncrementState g r axial c u).angular n) x c.operators.vT = 0 := by intro n x hx rw [hfast] exact slow_directional_zero_on hSU hi.angular.smooth (LocalRankDefect.rank_angular_slow g r axial U c u) v n hx have hslowz : ∀ n x, x ∈ s.domain → fderiv ℝ ((rankIncrementState g r axial c u).axial n) x c.operators.vT = 0 := by intro n x hx rw [hfast] exact slow_directional_zero_on hSU hi.axial.smooth (hg.axial_slow ha hab hU hleft hright axial) v n hx have hδθ := thetaResidual_change_slow_mem ho hb hu.velocity hi hH u.covariance hW c.virtualTheta hslowθ have hδz := axialResidual_change_slow_mem ho hb hu.velocity hi hH u.covariance hW u.pressure (gaugeRankPressureChange g r axial c u) c.virtualAxial hu.pressure.smooth hdp hslowz have hpressure : u.pressure + gaugeRankPressureChange g r axial c u = (rankStageState g r axial c u).pressure := by unfold gaugeRankPressureChange abel have hnewθ : (rankStageState g r axial c u).thetaResidual c = MeanIncrementBounds.thetaResidual c.operators c.base (updated u.mean (rankIncrementState g r axial c u)) u.covariance c.virtualTheta := by change MeanIncrementBounds.thetaResidual c.operators c.base _ _ _ = _ rw [gaugeRankStage_covariance] rfl have hnewz : (rankStageState g r axial c u).axialResidual c = MeanIncrementBounds.axialResidual c.operators c.base (updated u.mean (rankIncrementState g r axial c u)) u.covariance (u.pressure + gaugeRankPressureChange g r axial c u) c.virtualAxial := by rw [hpressure] change MeanIncrementBounds.axialResidual c.operators c.base _ _ _ _ = _ rw [gaugeRankStage_covariance] rfl constructor · apply class_congr (hθ.add (hδθ.mono_exponent hβ)) intro n x hx rw [hnewθ] change _ = u.thetaResidual c n x + (_ - u.thetaResidual c n x) ring · apply class_congr (hz.add (hδz.mono_exponent hβ)) intro n x hx rw [hnewz] change _ - _ = (u.axialResidual c n x - A n x) + (_ - u.axialResidual c n x) ring end GaugeRankMean section MovingSupport open CorrectionState VariableGaugeMean variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] def GaugeSupported (a b : ℝ) (ell : S → ℝ) (U : Set S) (f : ScalarField (PressureStream.Lift S)) : Prop := ∀ n, SupportedGauge a b ell U (f n) namespace GaugeSupported variable {a b : ℝ} {ell : S → ℝ} {U : Set S} {f g : ScalarField (PressureStream.Lift S)} omit [NormedAddCommGroup S] [NormedSpace ℝ S] in theorem zero : GaugeSupported a b ell U (0 : ScalarField (PressureStream.Lift S)) := by intro n x hx hn exact (hn rfl).elim omit [NormedAddCommGroup S] [NormedSpace ℝ S] in theorem add (hf : GaugeSupported a b ell U f) (hg : GaugeSupported a b ell U g) : GaugeSupported a b ell U (f + g) := by intro n x hx hn by_cases hzero : f n x = 0 · exact hg n x hx (by simpa only [Pi.add_apply, hzero, zero_add] using hn) · exact hf n x hx hzero omit [NormedAddCommGroup S] [NormedSpace ℝ S] in theorem neg (hf : GaugeSupported a b ell U f) : GaugeSupported a b ell U (-f) := by intro n x hx hn exact hf n x hx (neg_ne_zero.mp hn) omit [NormedAddCommGroup S] [NormedSpace ℝ S] in theorem sub (hf : GaugeSupported a b ell U f) (hg : GaugeSupported a b ell U g) : GaugeSupported a b ell U (f - g) := by simpa only [sub_eq_add_neg] using hf.add hg.neg omit [NormedAddCommGroup S] [NormedSpace ℝ S] in theorem mul_right (hf : GaugeSupported a b ell U f) (g : ScalarField (PressureStream.Lift S)) : GaugeSupported a b ell U (f * g) := by intro n x hx hn exact hf n x hx (left_ne_zero_of_mul hn) omit [NormedAddCommGroup S] [NormedSpace ℝ S] in theorem mul_left (hf : GaugeSupported a b ell U f) (g : ScalarField (PressureStream.Lift S)) : GaugeSupported a b ell U (g * f) := by intro n x hx hn exact hf n x hx (right_ne_zero_of_mul hn) omit [NormedAddCommGroup S] [NormedSpace ℝ S] in theorem smul (hf : GaugeSupported a b ell U f) (t : ℝ) : GaugeSupported a b ell U (t • f) := by intro n x hx hn exact hf n x hx (right_ne_zero_of_mul hn) theorem directional (hf : GaugeSupported a b ell U f) (hU : IsOpen U) (hell : ContinuousOn ell U) (v : PressureStream.Lift S) : GaugeSupported a b ell U (fun n x => fderiv ℝ (f n) x v) := fun n => fderiv_apply_supportedGauge hU hell (hf n) (fun _ => v) theorem dr (hf : GaugeSupported a b ell U f) (hU : IsOpen U) (hell : ContinuousOn ell U) (o : Operators (PressureStream.Lift S)) : GaugeSupported a b ell U (o.dr f) := by have he := (hf.directional hU hell o.eR).add ((hf.directional hU hell o.vR).mul_left (fun n x => o.radialFrequency n * o.radialProfile x)) convert! he using 1 funext n x simp only [Operators.dr, graphDerivative, Pi.add_apply, Pi.mul_apply, smul_eq_mul] ring theorem dz (hf : GaugeSupported a b ell U f) (hU : IsOpen U) (hell : ContinuousOn ell U) (o : Operators (PressureStream.Lift S)) : GaugeSupported a b ell U (o.dz f) := (hf.directional hU hell o.eZ).mul_left (fun n _ => o.epsilon n) theorem time (hf : GaugeSupported a b ell U f) (hU : IsOpen U) (hell : ContinuousOn ell U) (o : Operators (PressureStream.Lift S)) : GaugeSupported a b ell U (o.time f) := ((hf.directional hU hell o.eT).mul_left (fun n _ => o.epsilon n)).neg.add ((hf.directional hU hell o.vT).mul_left (fun n _ => o.fastCoefficient n)) theorem radialDiv (hf : GaugeSupported a b ell U f) (hU : IsOpen U) (hell : ContinuousOn ell U) (o : Operators (PressureStream.Lift S)) (t : ℝ) : GaugeSupported a b ell U (o.radialDiv t f) := (hf.dr hU hell o).add ((hf.mul_left o.invRadius).smul t) theorem viscosity (hf : GaugeSupported a b ell U f) (hU : IsOpen U) (hell : ContinuousOn ell U) (o : Operators (PressureStream.Lift S)) (t : ℝ) : GaugeSupported a b ell U (o.viscosity t f) := (((((hf.dr hU hell o).dr hU hell o).add ((hf.dr hU hell o).mul_left o.invRadius)).add ((hf.dz hU hell o).dz hU hell o)).sub (((hf.mul_left o.invRadius).mul_left o.invRadius).smul t)).mul_left (fun n _ => o.epsilon n) end GaugeSupported structure GaugeSupportedTriple (a b : ℝ) (ell : S → ℝ) (U : Set S) (m : Triple (PressureStream.Lift S)) : Prop where radial : GaugeSupported a b ell U m.radial angular : GaugeSupported a b ell U m.angular axial : GaugeSupported a b ell U m.axial omit [NormedAddCommGroup S] [NormedSpace ℝ S] in theorem GaugeSupportedTriple.updated {a b : ℝ} {ell : S → ℝ} {U : Set S} {m h : Triple (PressureStream.Lift S)} (hm : GaugeSupportedTriple a b ell U m) (hh : GaugeSupportedTriple a b ell U h) : GaugeSupportedTriple a b ell U (updated m h) := ⟨hm.radial.add hh.radial, hm.angular.add hh.angular, hm.axial.add hh.axial⟩ theorem gr_supportedGauge {a b : ℝ} {ell : S → ℝ} {U : Set S} (hU : IsOpen U) (hell : ContinuousOn ell U) (o : Operators (PressureStream.Lift S)) (base m : Triple (PressureStream.Lift S)) (W : Tensor (PressureStream.Lift S)) (hm : GaugeSupportedTriple a b ell U m) (hW : ∀ i j, GaugeSupported a b ell U (W i j)) : GaugeSupported a b ell U (MeanIncrementBounds.gr o base m W) := by have hrr : GaugeSupported a b ell U (radialRadial base m) := ((hm.radial.mul_left base.radial).smul 2).add (hm.radial.mul_right m.radial) have hzr : GaugeSupported a b ell U (axialRadial base m) := ((hm.axial.mul_left base.radial).add (hm.radial.mul_right base.axial)).add (hm.radial.mul_right m.axial) have htt : GaugeSupported a b ell U (radialAngular base m) := ((hm.angular.mul_left base.angular).smul 2).add (hm.angular.mul_right m.angular) exact (((((hm.radial.time hU hell o).add ((hrr.add (hW 0 0)).radialDiv hU hell o 1)).add ((hzr.add (hW 2 0)).dz hU hell o)).sub ((htt.add (hW 1 1)).mul_left o.invRadius)).sub (hm.radial.viscosity hU hell o 1)).neg /-- The containing fixed annulus supplies smoothness only. The precise support conclusion retains the same moving physical edges. -/ theorem state_gr_moving_regular {coord a b : ℝ} (U : LocalSignedRequest.SlowRegion coord) (ha : 0 < a) (hab : a < b) (c : Context LocalSignedRequest.Point) (u : State LocalSignedRequest.Point) (ho : LocalRankDefect.LocalOperators U.carrier c.operators) (hb : SmoothTriple (LocalRankDefect.positiveDomain U.carrier) c.base) (hm : SmoothTriple (PhysicalMeanDomain.slowDomain U.carrier) u.mean) (hms : GaugeSupportedTriple a b (qLength coord) U.carrier u.mean) (hW : ∀ i j, SmoothOn (PhysicalMeanDomain.slowDomain U.carrier) (u.covariance i j)) (hWs : ∀ i j, GaugeSupported a b (qLength coord) U.carrier (u.covariance i j)) : SmoothOn (PhysicalMeanDomain.slowDomain U.carrier) (u.gr c) ∧ GaugeSupported a b (qLength coord) U.carrier (u.gr c) := by obtain ⟨a₀, b₀, L, ha₀, _, _, _, hleft, hright, _⟩ := qLength_reference_bounds U ha hab have contain {f : ScalarField LocalSignedRequest.Point} (hf : GaugeSupported a b (qLength coord) U.carrier f) : ∀ n, PhysicalMeanDomain.SupportedOn a₀ b₀ U.carrier (f n) := by intro n x hx hn exact ⟨(hleft _ hx).trans (hf n x hx hn).1, (hf n x hx hn).2.trans (hright _ hx)⟩ have hml : LocalRankDefect.LocalTriple a₀ b₀ U.carrier u.mean := ⟨⟨hm.radial, contain hms.radial⟩, ⟨hm.angular, contain hms.angular⟩, ⟨hm.axial, contain hms.axial⟩⟩ have hWl (i j) : LocalRankDefect.LocalShell a₀ b₀ U.carrier (u.covariance i j) := ⟨hW i j, contain (hWs i j)⟩ refine ⟨(LocalRankDefect.gr_localShell ha₀ U.isOpen hb hml ho u.covariance hWl).smooth, ?_⟩ exact gr_supportedGauge U.isOpen (((qLength_contDiffOn U.coord_pos U.coord_lt_one).mono (fun p hp => U.time_pos p hp)).continuousOn) c.operators c.base u.mean u.covariance hms hWs end MovingSupport section MovingMeanPressure open CorrectionState VariableGaugeMean LocalSignedRequest variable {coord cL cR : ℝ} (U : SlowRegion coord) (g : GaugeData PressureStream.Plane) (ha : 0 < g.radial.inner) (hd : 0 < g.radial.exponent) (hcL : 0 < cL) (hcR : 0 < cR) (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) (hell : ∀ n, g.length n = qLength coord) include hd hell local notation "stageStrip" => movingStripData U g.radial.inner g.radial.outer cL cR ha hcL hcR ε L hε hεone hL /-- The pressure difference is computed by the same variable-gauge integral. Both radial-source regularity statements and its class follow from the actual updated mean and unchanged covariance. -/ theorem reconstructedMeanStage_pressure_change_mem (c : Context Point) (u v : State Point) (inc : Triple Point) (hme : v.mean = updated u.mean inc) (hce : v.covariance = u.covariance) (hfixed : (reconstructState g c u).pressure = u.pressure) {H κ : ℝ} (hH : 9 / 10 ≤ H) (hκ : 2 * κ ≤ 9 / 10) (ho : OperatorBounds stageStrip c.operators κ) (hb : BaseBounds stageStrip c.base) (hu : CorrectionState.CumulativeBounds stageStrip u) (hi : IncrementBounds stageStrip H inc) (hop : LocalRankDefect.LocalOperators U.carrier c.operators) (hbase : SmoothTriple (LocalRankDefect.positiveDomain U.carrier) c.base) (hm : SmoothTriple (PhysicalMeanDomain.slowDomain U.carrier) u.mean) (him : SmoothTriple (PhysicalMeanDomain.slowDomain U.carrier) inc) (hms : GaugeSupportedTriple g.radial.inner g.radial.outer (qLength coord) U.carrier u.mean) (his : GaugeSupportedTriple g.radial.inner g.radial.outer (qLength coord) U.carrier inc) (hW : ∀ i j, SmoothOn (PhysicalMeanDomain.slowDomain U.carrier) (u.covariance i j)) (hWs : ∀ i j, GaugeSupported g.radial.inner g.radial.outer (qLength coord) U.carrier (u.covariance i j)) : MeanClass stageStrip H ((reconstructState g c v).pressure - u.pressure) := by have huReg := state_gr_moving_regular U ha g.radial.inner_lt_outer c u hop hbase hm hms hW hWs have hvReg := state_gr_moving_regular U ha g.radial.inner_lt_outer c v hop hbase (by rw [hme]; exact smooth_updated hm him) (by rw [hme]; exact hms.updated his) (by simpa only [hce] using hW) (by simpa only [hce] using hWs) have hcov : ∀ i j, SmoothOn (stageStrip).domain (u.covariance i j) := fun i j n => (hW i j n).mono (fun _ hx => hx.1) have hgr : MeanClass stageStrip H (v.gr c - u.gr c) := by simpa only [State.gr, hme, hce] using gr_change_mem ho hb hu.velocity hi hH u.covariance hcov hκ have hp := reconstructState_pressure_change_class U g ha hd hcL hcR ε L hε hεone hL hell c v u hvReg.1 huReg.1 hvReg.2 huReg.2 hgr simp only [hfixed] at hp exact hp /-- Direct pressure bound for the literal temporal stage. No class of a pressure source or pressure output is supplied as a hypothesis. -/ theorem gaugeTemporalStage_pressure_change_mem (h : ℝ) (index : ℕ → ℕ) (axial : PressureStream.Plane × PressureStream.Plane) (c : Context Point) (u : State Point) (hfixed : (reconstructState g c u).pressure = u.pressure) {H κ : ℝ} (hH : 9 / 10 ≤ H) (hκ : 2 * κ ≤ 9 / 10) (ho : OperatorBounds stageStrip c.operators κ) (hb : BaseBounds stageStrip c.base) (hu : CorrectionState.CumulativeBounds stageStrip u) (hi : IncrementBounds stageStrip H (temporalIncrementState g h index axial c u)) (hop : LocalRankDefect.LocalOperators U.carrier c.operators) (hbase : SmoothTriple (LocalRankDefect.positiveDomain U.carrier) c.base) (hm : SmoothTriple (PhysicalMeanDomain.slowDomain U.carrier) u.mean) (him : SmoothTriple (PhysicalMeanDomain.slowDomain U.carrier) (temporalIncrementState g h index axial c u)) (hms : GaugeSupportedTriple g.radial.inner g.radial.outer (qLength coord) U.carrier u.mean) (his : GaugeSupportedTriple g.radial.inner g.radial.outer (qLength coord) U.carrier (temporalIncrementState g h index axial c u)) (hW : ∀ i j, SmoothOn (PhysicalMeanDomain.slowDomain U.carrier) (u.covariance i j)) (hWs : ∀ i j, GaugeSupported g.radial.inner g.radial.outer (qLength coord) U.carrier (u.covariance i j)) : MeanClass stageStrip H (gaugeTemporalPressureChange g h index axial c u) := by let v := u.addIncrement (temporalIncrementState g h index axial c u) 0 0 0 ⟨0, 0, temporalAliasState g h index c u⟩ exact reconstructedMeanStage_pressure_change_mem U g ha hd hcL hcR ε L hε hεone hL hell c u v (temporalIncrementState g h index axial c u) rfl (by simp only [v, State.addIncrement, add_zero]; rfl) hfixed hH hκ ho hb hu hi hop hbase hm him hms his hW hWs /-- The same integral update for the literal rank stage, with its full centrifugal source change derived by the nonlinear mean identity. -/ theorem gaugeRankStage_pressure_change_mem (r : RankData PressureStream.Plane) (axial : PressureStream.Plane × PressureStream.Plane) (c : Context Point) (u : State Point) (hfixed : (reconstructState g c u).pressure = u.pressure) {H κ : ℝ} (hH : 9 / 10 ≤ H) (hκ : 2 * κ ≤ 9 / 10) (ho : OperatorBounds stageStrip c.operators κ) (hb : BaseBounds stageStrip c.base) (hu : CorrectionState.CumulativeBounds stageStrip u) (hi : IncrementBounds stageStrip H (rankIncrementState g r axial c u)) (hop : LocalRankDefect.LocalOperators U.carrier c.operators) (hbase : SmoothTriple (LocalRankDefect.positiveDomain U.carrier) c.base) (hm : SmoothTriple (PhysicalMeanDomain.slowDomain U.carrier) u.mean) (him : SmoothTriple (PhysicalMeanDomain.slowDomain U.carrier) (rankIncrementState g r axial c u)) (hms : GaugeSupportedTriple g.radial.inner g.radial.outer (qLength coord) U.carrier u.mean) (his : GaugeSupportedTriple g.radial.inner g.radial.outer (qLength coord) U.carrier (rankIncrementState g r axial c u)) (hW : ∀ i j, SmoothOn (PhysicalMeanDomain.slowDomain U.carrier) (u.covariance i j)) (hWs : ∀ i j, GaugeSupported g.radial.inner g.radial.outer (qLength coord) U.carrier (u.covariance i j)) : MeanClass stageStrip H (gaugeRankPressureChange g r axial c u) := by let v := u.addIncrement (rankIncrementState g r axial c u) 0 0 0 ExcludedErrors.zero exact reconstructedMeanStage_pressure_change_mem U g ha hd hcL hcR ε L hε hεone hL hell c u v (rankIncrementState g r axial c u) rfl (by simp only [v, State.addIncrement, add_zero]; rfl) hfixed hH hκ ho hb hu hi hop hbase hm him hms his hW hWs end MovingMeanPressure section TemporalRegularity open CorrectionState VariableGaugeMean LocalSignedRequest variable {coord : ℝ} (U : SlowRegion coord) (g : GaugeData PressureStream.Plane) (ha : 0 < g.radial.inner) (hd : 0 < g.radial.exponent) (hell : ∀ n, g.length n = qLength coord) (h : ℝ) (index : ℕ → ℕ) (axial : PressureStream.Plane × PressureStream.Plane) (c : Context Point) (u : State Point) (hθ : ∀ n, ContDiffOn ℝ ∞ (u.thetaResidual c n) (PhysicalMeanDomain.slowDomain U.carrier)) (hz : ∀ n, ContDiffOn ℝ ∞ (u.axialResidual c n) (PhysicalMeanDomain.slowDomain U.carrier)) (hpθ : ∀ n, PhysicalMeanDomain.PeriodicOn U.carrier (u.thetaResidual c n)) (hpz : ∀ n, PhysicalMeanDomain.PeriodicOn U.carrier (u.axialResidual c n)) (hsz : GaugeSupported g.radial.inner g.radial.outer (qLength coord) U.carrier (u.axialResidual c)) include ha hd hell hθ hz hpθ hpz hsz in /-- Full local smoothness of the actual temporal stream components, including the axis where the annular support makes the quotients zero. -/ theorem gaugeTemporalIncrement_smooth : SmoothTriple (PhysicalMeanDomain.slowDomain U.carrier) (temporalIncrementState g h index axial c u) := by let pot := temporalPotential g h index c u have hf : SmoothOn (PhysicalMeanDomain.slowDomain U.carrier) pot := by intro n simpa only [pot, temporalPotential, hell] using streamPotential_q_contDiffOn U ha g.radial.inner_lt_outer hd (g.radial.frequency n) g.radial.radialDirection (temporalAtIndex_contDiffOn h n (index n) U.isOpen (hz n) (hpz n)) (temporalAtIndex_supportedGauge h n (index n) (hsz n)) have hs : GaugeSupported g.radial.inner g.radial.outer (qLength coord) U.carrier pot := by intro n simpa only [pot, temporalPotential, hell] using streamPotential_supportedGauge (M := g.radial.frequency n) ha g.radial.inner_lt_outer hd (qLength coord) g.radial.radialDirection U.isOpen (fun s hs => qLength_pos U.coord_pos U.coord_lt_one (U.time_pos s hs)) (temporalAtIndex_contDiffOn h n (index n) U.isOpen (hz n) (hpz n)) (temporalAtIndex_supportedGauge h n (index n) (hsz n)) obtain ⟨a, b, L, ha₀, _, _, _, hleft, hright, _⟩ := qLength_reference_bounds U ha g.radial.inner_lt_outer have hfShell : LocalRankDefect.LocalShell a b U.carrier pot := ⟨hf, fun n x hx hn => ⟨(hleft _ hx).trans (hs n x hx hn).1, (hs n x hx hn).2.trans (hright _ hx)⟩⟩ constructor · intro n exact (((contDiffOn_infty_iff_fderiv_of_isOpen (PhysicalMeanDomain.slowDomain_open U.isOpen)).mp (hf n)).2.clm_apply contDiffOn_const).neg · intro n exact temporalAtIndex_contDiffOn h n (index n) U.isOpen (hθ n) (hpθ n) · have hrad := hfShell.directional U.isOpen (1, 0) have htor := hfShell.directional U.isOpen (0, (0, g.radial.radialDirection)) have hspeed : SmoothOn (LocalRankDefect.positiveDomain U.carrier) (fun n (x : Point) => PressureStream.physicalSpeed g.radial.exponent (g.radial.frequency n) x.1) := by intro n x hx exact ((PressureStream.physicalSpeed_smooth g.radial.exponent (g.radial.frequency n) hx.1.ne').comp x contDiffAt_fst).contDiffWithinAt have hprod := htor.coefficient_mul ha₀ U.isOpen hspeed have hgraph : SmoothOn (PhysicalMeanDomain.slowDomain U.carrier) (fun n => PressureStream.graphDr (PressureStream.physicalSpeed g.radial.exponent (g.radial.frequency n)) (0, g.radial.radialDirection) (pot n)) := by have he : (fun n => PressureStream.graphDr (PressureStream.physicalSpeed g.radial.exponent (g.radial.frequency n)) (0, g.radial.radialDirection) (pot n)) = (fun n x => fderiv ℝ (pot n) x (1, 0)) + (fun n (x : Point) => PressureStream.physicalSpeed g.radial.exponent (g.radial.frequency n) x.1) * (fun n x => fderiv ℝ (pot n) x (0, (0, g.radial.radialDirection))) := by funext n x change fderiv ℝ (pot n) x (1, _ • (0, g.radial.radialDirection)) = _ rw [show (((1 : ℝ), PressureStream.physicalSpeed g.radial.exponent (g.radial.frequency n) x.1 • ((0 : PressureStream.Plane), g.radial.radialDirection)) : Point) = ((1, (0, (0 : PressureStream.Plane))) : Point) + PressureStream.physicalSpeed g.radial.exponent (g.radial.frequency n) x.1 • ((0, (0, g.radial.radialDirection)) : Point) by simp] simp only [map_add, map_smul, smul_eq_mul, Pi.add_apply, Pi.mul_apply] rfl rw [he] exact hrad.smooth.add hprod.smooth intro n exact (hgraph n).add (VariableGaugeMean.divideRadius_contDiffOn ha₀ U.isOpen (hf n) (hfShell.supported n)) end TemporalRegularity section PeriodizedSignedConstruction open CorrectionState VariableGaugeMean LocalSignedRequest variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] {I : Type} /-- The primitive native data of one signed spatial label. Every copy uses the same carrier, base, and graph directions. -/ structure PeriodizedSignedParameters (D I : Type) [NormedAddCommGroup D] [NormedSpace ℝ D] where base : LinearWaveBounds.WaveCoefficients (D × ℝ) directions : LinearWaveBounds.GraphDirections (D × ℝ) matrix : I → ℕ → D × ℝ → SignedWaveUpdate.Mat2 target : I → ℕ → D × ℝ → SignedWaveUpdate.Vec2 mask : I → ℕ → D × ℝ → ℝ fundamental : I → ℕ → D × ℝ → ProblemStatement.Space normalMotion : I → ℕ → D × ℝ → ProblemStatement.Space action : I → ℕ → D × ℝ → ProblemStatement.Space →L[ℝ] ProblemStatement.Space cutoff : I → ℕ → D × ℝ → ℝ angularFrequency : ℕ → ℤ column : Fin 2 namespace PeriodizedSignedParameters variable (p : PeriodizedSignedParameters D I) noncomputable def native (i : I) : SignedParameters D where base := p.base directions := p.directions matrix := p.matrix i target := p.target i mask := p.mask i fundamental := p.fundamental i normalMotion := p.normalMotion i action := p.action i cutoff := p.cutoff i angularFrequency := p.angularFrequency column := p.column /-- The native fields are evaluated from the signed quotient and projected homogeneous pressure before the one native cutoff is applied. -/ noncomputable def copyData (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : PeriodizedWaveBounds.CopyData (D × ℝ) I where background := p.base amplitude n i := ((p.native i).coefficients s request).amplitude n pressure n i := ((p.native i).coefficients s request).pressure n cutoff n i := p.cutoff i n source := fun _ _ => 0 noncomputable def exactBlock (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : HarmonicBlock D := SignedWaveUpdate.blockOfCoefficients ((p.copyData s request).commonCorrected (HarmonicWaveInteraction.productStrip s) p.directions) p.angularFrequency noncomputable def tangentBlock (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : HarmonicBlock D := SignedWaveUpdate.blockOfCoefficients (p.copyData s request).common p.angularFrequency noncomputable def curlBlock (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : HarmonicBlock D := subBlock (p.exactBlock s request) (p.tangentBlock s request) noncomputable def goodBlock (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : HarmonicBlock D := SignedWaveUpdate.coefficientBlock p.base.frequency (fun n x => p.base.phase n (x,0)) p.angularFrequency (fun n x => (p.copyData s request).globalGood (HarmonicWaveInteraction.productStrip s) p.directions n (x,0)) (fun _ _ => 0) noncomputable def gaussianBlock (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : HarmonicBlock D := SignedWaveUpdate.coefficientBlock p.base.frequency (fun n x => p.base.phase n (x,0)) p.angularFrequency (fun n x => (p.copyData s request).globalGaussian p.directions n (x,0)) (fun _ _ => 0) theorem exact_tangent_carrier (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : SameCarrier (p.exactBlock s request) (p.tangentBlock s request) := ⟨rfl, rfl, rfl⟩ theorem exactBlock_split (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : (p.exactBlock s request).oscillation = (p.tangentBlock s request).oscillation + (p.curlBlock s request).oscillation := by rw [curlBlock, subBlock_oscillation _ _ (p.exact_tangent_carrier s request)] abel theorem exactBlock_band (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : (p.exactBlock s request).BandLimited 1 := SignedWaveUpdate.coefficientBlock_band _ _ _ _ _ theorem tangentBlock_band (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : (p.tangentBlock s request).BandLimited 1 := SignedWaveUpdate.coefficientBlock_band _ _ _ _ _ theorem gaussianBlock_band (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : (p.gaussianBlock s request).BandLimited 1 := SignedWaveUpdate.coefficientBlock_band _ _ _ _ _ end PeriodizedSignedParameters end PeriodizedSignedConstruction section ParticularConstruction open CorrectionState VariableGaugeMean variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] /-- Primitive per-band data of the actual complex Volterra inverse. The interval may vary with the physical clock. No solved field is stored. -/ structure ParticularParameters (P : Type) [NormedAddCommGroup P] [NormedSpace ℝ P] where tangent : ℤ → ℕ → CommonCoverSolve.TangentData P ProblemStatement.Space geometry : ℕ → CommonCoverSolve.Geometry length : ℕ → ℝ length_pos : ∀ n, 0 < length n cutoff : ℕ → TorusInverse.Plane → ℝ background : LinearWaveBounds.WaveCoefficients ((P × ℝ) × TorusInverse.Plane) directions : LinearWaveBounds.GraphDirections ((P × ℝ) × TorusInverse.Plane) namespace ParticularParameters variable (p : ParticularParameters P) noncomputable def copyData (c : Context (P × TorusInverse.Plane)) (u : State (P × TorusInverse.Plane)) (b : HarmonicBlock (P × TorusInverse.Plane)) (G A : HarmonicResidual.BlockCoefficients (P × TorusInverse.Plane)) (j : ℤ) : PeriodizedWaveBounds.CopyData ((P × ℝ) × TorusInverse.Plane) TorusInverse.Frequency where background := ParticularWaveAssembly.actualCarrier p.background b j amplitude n k := (ParticularWaveBounds.complexCopyCoefficients (ParticularWaveAssembly.actualCarrier p.background b j) (fun n => ParticularWaveAssembly.angleTangent (p.tangent j n)) (ParticularWaveAssembly.sourceFamily c u b G A j) p.geometry (fun _ => k) p.length p.length_pos).amplitude n pressure n k := (ParticularWaveBounds.complexCopyCoefficients (ParticularWaveAssembly.actualCarrier p.background b j) (fun n => ParticularWaveAssembly.angleTangent (p.tangent j n)) (ParticularWaveAssembly.sourceFamily c u b G A j) p.geometry (fun _ => k) p.length p.length_pos).pressure n cutoff n k x := p.cutoff n ((p.geometry n).coordinates k x.2) source := ParticularWaveAssembly.sourceFamily c u b G A j noncomputable def nativeStrip (s : StripData (P × TorusInverse.Plane)) : StripData ((P × ℝ) × TorusInverse.Plane) := ParticularWaveBounds.reindexStrip ParticularWaveAssembly.angleShuffle.symm (HarmonicWaveInteraction.productStrip s) noncomputable def wave (s : StripData (P × TorusInverse.Plane)) (c : Context (P × TorusInverse.Plane)) (u : State (P × TorusInverse.Plane)) (b : HarmonicBlock (P × TorusInverse.Plane)) (G A : HarmonicResidual.BlockCoefficients (P × TorusInverse.Plane)) (j : ℤ) : LinearWaveBounds.WaveCoefficients ((P × ℝ) × TorusInverse.Plane) := (p.copyData c u b G A j).commonCorrected (nativeStrip s) p.directions noncomputable def updateBlock (s : StripData (P × TorusInverse.Plane)) (c : Context (P × TorusInverse.Plane)) (u : State (P × TorusInverse.Plane)) (b : HarmonicBlock (P × TorusInverse.Plane)) (G A : HarmonicResidual.BlockCoefficients (P × TorusInverse.Plane)) (N : ℕ) : HarmonicBlock (P × TorusInverse.Plane) := ParticularWaveAssembly.assembledBlock N b.frequency b.phase b.angularFrequency (fun j n x => (p.wave s c u b G A j).amplitude n (ParticularWaveAssembly.angleShuffle (x,0))) (fun j n x => (p.wave s c u b G A j).pressure n (ParticularWaveAssembly.angleShuffle (x,0))) noncomputable def goodBlock (s : StripData (P × TorusInverse.Plane)) (c : Context (P × TorusInverse.Plane)) (u : State (P × TorusInverse.Plane)) (b : HarmonicBlock (P × TorusInverse.Plane)) (G A : HarmonicResidual.BlockCoefficients (P × TorusInverse.Plane)) (N : ℕ) : HarmonicBlock (P × TorusInverse.Plane) := ParticularWaveAssembly.assembledBlock N b.frequency b.phase b.angularFrequency (fun j n x => (p.copyData c u b G A j).globalGood (nativeStrip s) p.directions n (ParticularWaveAssembly.angleShuffle (x,0))) (fun _ _ _ => 0) noncomputable def gaussianBlock (c : Context (P × TorusInverse.Plane)) (u : State (P × TorusInverse.Plane)) (b : HarmonicBlock (P × TorusInverse.Plane)) (G A : HarmonicResidual.BlockCoefficients (P × TorusInverse.Plane)) (N : ℕ) : HarmonicBlock (P × TorusInverse.Plane) := ParticularWaveAssembly.assembledBlock N b.frequency b.phase b.angularFrequency (fun j n x => (p.copyData c u b G A j).globalGaussian p.directions n (ParticularWaveAssembly.angleShuffle (x,0))) (fun _ _ _ => 0) theorem updateBlock_band (s : StripData (P × TorusInverse.Plane)) (c : Context (P × TorusInverse.Plane)) (u : State (P × TorusInverse.Plane)) (b : HarmonicBlock (P × TorusInverse.Plane)) (G A : HarmonicResidual.BlockCoefficients (P × TorusInverse.Plane)) (N : ℕ) : (p.updateBlock s c u b G A N).BandLimited N := ParticularWaveAssembly.assembledBlock_band _ _ _ _ _ _ theorem gaussianBlock_band (c : Context (P × TorusInverse.Plane)) (u : State (P × TorusInverse.Plane)) (b : HarmonicBlock (P × TorusInverse.Plane)) (G A : HarmonicResidual.BlockCoefficients (P × TorusInverse.Plane)) (N : ℕ) : (p.gaussianBlock c u b G A N).BandLimited N := ParticularWaveAssembly.assembledBlock_band _ _ _ _ _ _ end ParticularParameters end ParticularConstruction section ActualCycle open CorrectionState VariableGaugeMean abbrev CyclePoint := LocalSignedRequest.Point abbrev CycleSlow := ℝ × PressureStream.Plane noncomputable def cycleAssoc : CyclePoint ≃ₗᵢ[ℝ] (CycleSlow × TorusInverse.Plane) := ParticularWaveBounds.liftAssoc PressureStream.Plane /-- Finite labeled coefficient data of the current fields. Correct representation is a separate invariant, not part of the construction. -/ structure CycleCoefficients (ι : Type) where labels : ℕ → Finset ι blocks : ι → HarmonicBlock CyclePoint gaussian : ι → HarmonicResidual.BlockCoefficients CyclePoint aliasCoefficients : ι → HarmonicResidual.BlockCoefficients CyclePoint residualBand : ℕ /-- Fixed geometric and primitive solver data for an actual correction cycle. The only state-dependent source is computed inside the stages. -/ structure CycleParameters (ι : Type) where gauge : GaugeData PressureStream.Plane strip : StripData CyclePoint patch : SignedStressPrimitive.Patch coordinate : ℝ timeExponent : ℝ commonIndex : ℕ → ℕ axial : PressureStream.Plane × PressureStream.Plane particular : ι → ParticularParameters CycleSlow signed : ι → PeriodizedSignedParameters CyclePoint TorusInverse.Frequency rank : RankData PressureStream.Plane namespace CycleParameters variable {ι : Type} (p : CycleParameters ι) (v : CycleCoefficients ι) (c : Context CyclePoint) (u : State CyclePoint) noncomputable def particularBlock (l : ι) : HarmonicBlock CyclePoint := StateReindex.block cycleAssoc ((p.particular l).updateBlock (ParticularWaveBounds.reindexStrip cycleAssoc.symm p.strip) (StateReindex.context cycleAssoc.symm c) (StateReindex.state cycleAssoc.symm u) (StateReindex.block cycleAssoc.symm (v.blocks l)) (StateReindex.blockCoefficients cycleAssoc.symm (v.gaussian l)) (StateReindex.blockCoefficients cycleAssoc.symm (v.aliasCoefficients l)) v.residualBand) noncomputable def particularGaussianBlock (l : ι) : HarmonicBlock CyclePoint := StateReindex.block cycleAssoc ((p.particular l).gaussianBlock (StateReindex.context cycleAssoc.symm c) (StateReindex.state cycleAssoc.symm u) (StateReindex.block cycleAssoc.symm (v.blocks l)) (StateReindex.blockCoefficients cycleAssoc.symm (v.gaussian l)) (StateReindex.blockCoefficients cycleAssoc.symm (v.aliasCoefficients l)) v.residualBand) noncomputable def particularVelocity : Oscillation CyclePoint := LabelSumBounds.fieldSum v.labels (fun l => (p.particularBlock v c u l).oscillation) noncomputable def particularPressure : OscillatoryScalar CyclePoint := fun n x => ∑ l ∈ v.labels n, (p.particularBlock v c u l).oscillatoryPressure n x noncomputable def particularGaussian : Oscillation CyclePoint := LabelSumBounds.fieldSum v.labels (fun l => (p.particularGaussianBlock v c u l).oscillation) noncomputable def afterParticular : State CyclePoint := gaugeWaveStage p.gauge c u (p.particularVelocity v c u) (p.particularPressure v c u) ⟨0, p.particularGaussian v c u, 0⟩ /-- The signed request is recomputed from the actual state after the particular solve; it is not supplied independently. -/ noncomputable def signedRequest : ℕ → CyclePoint × ℝ → SignedWaveUpdate.Vec2 := LocalSignedRequest.fullRequest p.strip p.patch p.coordinate c (p.afterParticular v c u) noncomputable def signedBlock (l : ι) : HarmonicBlock CyclePoint := (p.signed l).exactBlock p.strip (p.signedRequest v c u) noncomputable def signedGaussianBlock (l : ι) : HarmonicBlock CyclePoint := (p.signed l).gaussianBlock p.strip (p.signedRequest v c u) noncomputable def signedVelocity : Oscillation CyclePoint := LabelSumBounds.fieldSum v.labels (fun l => (p.signedBlock v c u l).oscillation) noncomputable def signedPressure : OscillatoryScalar CyclePoint := fun n x => ∑ l ∈ v.labels n, (p.signedBlock v c u l).oscillatoryPressure n x noncomputable def signedGaussian : Oscillation CyclePoint := LabelSumBounds.fieldSum v.labels (fun l => (p.signedGaussianBlock v c u l).oscillation) noncomputable def afterSigned : State CyclePoint := gaugeWaveStage p.gauge c (p.afterParticular v c u) (p.signedVelocity v c u) (p.signedPressure v c u) ⟨0, p.signedGaussian v c u, 0⟩ noncomputable def temporalIncrement : Triple CyclePoint := temporalIncrementState p.gauge p.timeExponent p.commonIndex p.axial c (p.afterSigned v c u) noncomputable def afterTemporal : State CyclePoint := temporalStageState p.gauge p.timeExponent p.commonIndex p.axial c (p.afterSigned v c u) noncomputable def rankIncrement : Triple CyclePoint := rankIncrementState p.gauge p.rank p.axial c (p.afterTemporal v c u) noncomputable def afterRank : State CyclePoint := rankStageState p.gauge p.rank p.axial c (p.afterTemporal v c u) /-- Four literal updates followed by replacement of the obsolete radial pressure alias. The current radial alias is recorded exactly once. -/ noncomputable def next : State CyclePoint := gaugeRefreshPressureAlias p.gauge c u (p.afterRank v c u) noncomputable def finalBlock (l : ι) : HarmonicBlock CyclePoint := addBlock (addBlock (v.blocks l) (p.particularBlock v c u l)) (p.signedBlock v c u l) theorem particularBlock_band (l : ι) : (p.particularBlock v c u l).BandLimited v.residualBand := StateReindex.block_bandLimited cycleAssoc ((p.particular l).updateBlock_band _ _ _ _ _ _ _) theorem particularGaussianBlock_band (l : ι) : (p.particularGaussianBlock v c u l).BandLimited v.residualBand := StateReindex.block_bandLimited cycleAssoc ((p.particular l).gaussianBlock_band _ _ _ _ _ _) theorem finalBlock_band {N : ℕ} (hb : ∀ l, (v.blocks l).BandLimited N) (l : ι) : (p.finalBlock v c u l).BandLimited (max (max N v.residualBand) 1) := twoWaveUpdates_band (hb l) (p.particularBlock_band v c u l) ((p.signed l).exactBlock_band p.strip (p.signedRequest v c u)) theorem next_oscillation : (p.next v c u).oscillation = u.oscillation + p.particularVelocity v c u + p.signedVelocity v c u := by simp only [next, gaugeRefreshPressureAlias, afterRank, rankStageState, afterTemporal, temporalStageState, afterSigned, afterParticular, gaugeWaveStage, reconstructState, State.addIncrement, add_zero] theorem next_oscillatoryPressure : (p.next v c u).oscillatoryPressure = u.oscillatoryPressure + p.particularPressure v c u + p.signedPressure v c u := by simp only [next, gaugeRefreshPressureAlias, afterRank, rankStageState, afterTemporal, temporalStageState, afterSigned, afterParticular, gaugeWaveStage, reconstructState, State.addIncrement, add_zero] theorem next_mean : (p.next v c u).mean = updated (updated u.mean (p.temporalIncrement v c u)) (p.rankIncrement v c u) := by change updated (updated (p.afterSigned v c u).mean (p.temporalIncrement v c u)) (p.rankIncrement v c u) = _ have he : (p.afterSigned v c u).mean = u.mean := by simp only [afterSigned, afterParticular, gaugeWaveStage, reconstructState, State.addIncrement, updated_zeroTriple] rw [he] theorem next_base_error : (p.next v c u).errors.base = u.errors.base := by simp only [next, gaugeRefreshPressureAlias, afterRank, rankStageState, afterTemporal, temporalStageState, afterSigned, afterParticular, gaugeWaveStage, reconstructState, State.addIncrement, ExcludedErrors.add, ExcludedErrors.zero, add_zero] theorem next_gaussian_error : (p.next v c u).errors.gaussian = u.errors.gaussian + p.particularGaussian v c u + p.signedGaussian v c u := by simp only [next, gaugeRefreshPressureAlias, afterRank, rankStageState, afterTemporal, temporalStageState, afterSigned, afterParticular, gaugeWaveStage, reconstructState, State.addIncrement, ExcludedErrors.add, ExcludedErrors.zero, add_zero] theorem next_alias_error : (p.next v c u).errors.aliasError = u.errors.aliasError + temporalAliasState p.gauge p.timeExponent p.commonIndex c (p.afterSigned v c u) + (pressureAliasState p.gauge c (p.afterRank v c u) - pressureAliasState p.gauge c u) := by change (p.afterRank v c u).errors.aliasError + _ = _ have he : (p.afterRank v c u).errors.aliasError = u.errors.aliasError + temporalAliasState p.gauge p.timeExponent p.commonIndex c (p.afterSigned v c u) := by simp only [afterRank, rankStageState, afterTemporal, temporalStageState, afterSigned, afterParticular, gaugeWaveStage, reconstructState, State.addIncrement, ExcludedErrors.add, ExcludedErrors.zero, add_zero] rw [he] theorem next_reconstructed : (reconstructState p.gauge c (p.next v c u)).pressure = (p.next v c u).pressure := rfl end CycleParameters end ActualCycle section ConstructedTemporalStage open CorrectionState VariableGaugeMean LocalSignedRequest variable {coord cL cR : ℝ} (U : SlowRegion coord) (g : GaugeData PressureStream.Plane) (ha : 0 < g.radial.inner) (hd : 0 < g.radial.exponent) (hcL : 0 < cL) (hcR : 0 < cR) (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) (hell : ∀ n, g.length n = qLength coord) include hd hell local notation "stageStrip" => movingStripData U g.radial.inner g.radial.outer cL cR ha hcL hcR ε L hε hεone hL /-- Full mean-step bound for the constructed temporal inverse and stream. The increment and pressure-change classes are conclusions. -/ theorem gaugeTemporalStage_constructed {h H κ β : ℝ} (hh : 0 ≤ h) (hscale : ∀ n, ChartScales.S n ≤ L n) (index : ℕ → ℕ) (gap : ℕ) (hgap : ∀ n, ChartScales.nativeIndex h n ≤ index n + gap) (axial : PressureStream.Plane × PressureStream.Plane) (c : Context Point) (u : State Point) (heps : c.operators.epsilon = ε) (hv : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) (hfast : ∀ n, c.operators.fastCoefficient n = ChartScales.Tg ^ index n * ChartScales.Q n ^ (1 + h)) (hfixed : (reconstructState g c u).pressure = u.pressure) (hH : 9 / 10 ≤ H) (hκ : 2 * κ ≤ 9 / 10) (hβ : β ≤ H + 1 - 2 * κ) (ho : OperatorBounds stageStrip c.operators κ) (hb : BaseBounds stageStrip c.base) (hu : CorrectionState.CumulativeBounds stageStrip u) (hop : LocalRankDefect.LocalOperators U.carrier c.operators) (hbase : SmoothTriple (LocalRankDefect.positiveDomain U.carrier) c.base) (hm : SmoothTriple (PhysicalMeanDomain.slowDomain U.carrier) u.mean) (hms : GaugeSupportedTriple g.radial.inner g.radial.outer (qLength coord) U.carrier u.mean) (hW : ∀ i j, SmoothOn (PhysicalMeanDomain.slowDomain U.carrier) (u.covariance i j)) (hWs : ∀ i j, GaugeSupported g.radial.inner g.radial.outer (qLength coord) U.carrier (u.covariance i j)) (hθ : ∀ n, ContDiffOn ℝ ∞ (u.thetaResidual c n) (PhysicalMeanDomain.slowDomain U.carrier)) (hz : ∀ n, ContDiffOn ℝ ∞ (u.axialResidual c n) (PhysicalMeanDomain.slowDomain U.carrier)) (hpθ : ∀ n, PhysicalMeanDomain.PeriodicOn U.carrier (u.thetaResidual c n)) (hpz : ∀ n, PhysicalMeanDomain.PeriodicOn U.carrier (u.axialResidual c n)) (hsθ : GaugeSupported g.radial.inner g.radial.outer (qLength coord) U.carrier (u.thetaResidual c)) (hsz : GaugeSupported g.radial.inner g.radial.outer (qLength coord) U.carrier (u.axialResidual c)) (hcθ : MeanClass stageStrip H (u.thetaResidual c)) (hcz : MeanClass stageStrip H (u.axialResidual c)) (hbarθ : MeanClass stageStrip β (meanBar (u.thetaResidual c))) (hbarz : MeanClass stageStrip β (meanBar (u.axialResidual c))) : IncrementBounds stageStrip H (temporalIncrementState g h index axial c u) ∧ MeanClass stageStrip H (gaugeTemporalPressureChange g h index axial c u) ∧ CorrectionState.CumulativeBounds stageStrip (temporalStageState g h index axial c u) ∧ SmoothTriple (PhysicalMeanDomain.slowDomain U.carrier) (temporalStageState g h index axial c u).mean ∧ GaugeSupportedTriple g.radial.inner g.radial.outer (qLength coord) U.carrier (temporalStageState g h index axial c u).mean ∧ MeanClass stageStrip β ((temporalStageState g h index axial c u).thetaResidual c) ∧ MeanClass stageStrip β (fun n x => (temporalStageState g h index axial c u).axialResidual c n x - temporalAliasState g h index c u n (x,0) 2) := by obtain ⟨hR, hT, hZ⟩ := temporalIncrementState_classes U g ha hd hcL hcR ε L hε hεone hL hell hh hscale index gap hgap axial c u heps hθ hz hpθ hpz hsz hcθ hcz have hi : IncrementBounds stageStrip H (temporalIncrementState g h index axial c u) := ⟨hR, hT, hZ⟩ have him := gaugeTemporalIncrement_smooth U g ha hd hell h index axial c u hθ hz hpθ hpz hsz have his : GaugeSupportedTriple g.radial.inner g.radial.outer (qLength coord) U.carrier (temporalIncrementState g h index axial c u) := by have hs n := temporalIncrementState_supportedGauge U g ha hd hell c u h index axial n (hz n) (hpz n) (hsz n) (hsθ n) exact ⟨fun n => (hs n).1, fun n => (hs n).2.1, fun n => (hs n).2.2⟩ have hp := gaugeTemporalStage_pressure_change_mem U g ha hd hcL hcR ε L hε hεone hL hell h index axial c u hfixed hH hκ ho hb hu hi hop hbase hm him hms his hW hWs have hgain := gaugeTemporalStage_mean_gain (s := stageStrip) U.isOpen (fun _ hx => hx.1) g h index axial c u hv hfast ho hb hu hi hp (fun i j n => (hW i j n).mono (fun _ hx => hx.1)) hbarθ hbarz hθ hz hpθ hpz hH hβ exact ⟨hi, hp, gaugeTemporalStage_cumulative g h index axial c u hu hi hp hH, smooth_updated hm him, hms.updated his, hgain⟩ end ConstructedTemporalStage section ConstructedRankStage open CorrectionState VariableGaugeMean LocalSignedRequest variable {coord cL cR A B : ℝ} (U : SlowRegion coord) (g : GaugeData PressureStream.Plane) (r : RankData PressureStream.Plane) (ha : 0 < g.radial.inner) (hd : 0 < g.radial.exponent) (hcL : 0 < cL) (hcR : 0 < cR) (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) (hell : ∀ n, g.length n = qLength coord) include hd hell local notation "stageStrip" => movingStripData U g.radial.inner g.radial.outer cL cR ha hcL hcR ε L hε hεone hL /-- The actual rank increment and its pressure change are derived from the measured debt. The previous temporal alias stays subtracted. -/ theorem gaugeRankStage_constructed (axial : PressureStream.Plane × PressureStream.Plane) (c : Context Point) (u : State Point) (hg : LocalRankDefect.RankGeometry g r U.carrier c u) (hparam : RankStateBounds.NormalizedParameters coord A B r U.carrier) (hB : B ≠ 0) (hleft : g.radial.inner < r.inner) (hright : r.outer < g.radial.outer) {H κ β : ℝ} (hH : 9 / 10 ≤ H) (hκ : 2 * κ ≤ 9 / 10) (hβ : β ≤ H + 1 - 2 * κ) (hfast : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) (hfixed : (reconstructState g c u).pressure = u.pressure) (ho : OperatorBounds stageStrip c.operators κ) (hb : BaseBounds stageStrip c.base) (hu : CorrectionState.CumulativeBounds stageStrip u) (hop : LocalRankDefect.LocalOperators U.carrier c.operators) (hbase : SmoothTriple (LocalRankDefect.positiveDomain U.carrier) c.base) (hm : SmoothTriple (PhysicalMeanDomain.slowDomain U.carrier) u.mean) (hms : GaugeSupportedTriple g.radial.inner g.radial.outer (qLength coord) U.carrier u.mean) (hW : ∀ i j, SmoothOn (PhysicalMeanDomain.slowDomain U.carrier) (u.covariance i j)) (hWs : ∀ i j, GaugeSupported g.radial.inner g.radial.outer (qLength coord) U.carrier (u.covariance i j)) (hdebt : UnweightedClass (PhysicalMeanDomain.localSlowStripData U.carrier U.isOpen ε L hε hεone hL) H (debt c u)) (aliasField : ScalarField Point) (hθ : MeanClass stageStrip β (u.thetaResidual c)) (hz : MeanClass stageStrip β (u.axialResidual c - aliasField)) : IncrementBounds stageStrip H (rankIncrementState g r axial c u) ∧ MeanClass stageStrip H (gaugeRankPressureChange g r axial c u) ∧ CorrectionState.CumulativeBounds stageStrip (rankStageState g r axial c u) ∧ SmoothTriple (PhysicalMeanDomain.slowDomain U.carrier) (rankStageState g r axial c u).mean ∧ GaugeSupportedTriple g.radial.inner g.radial.outer (qLength coord) U.carrier (rankStageState g r axial c u).mean ∧ MeanClass stageStrip β ((rankStageState g r axial c u).thetaResidual c) ∧ MeanClass stageStrip β ((rankStageState g r axial c u).axialResidual c - aliasField) := by have heps : BandBound stageStrip 1 c.operators.epsilon := by rw [ho.epsilon_eq] simpa only [Real.rpow_one] using bandBound_rpow stageStrip 1 have hi := RankStateBounds.rankIncrementState_bounds U g r ha hcL hcR ε L hε hεone hL c u hg hparam hB hleft hright axial heps hdebt obtain ⟨a, b, L₀, ha₀, hab, _, _, hLo, hHi, _⟩ := qLength_reference_bounds U ha g.radial.inner_lt_outer have hleft₀ (n : ℕ) (x : PressureStream.Plane) (hx : x ∈ U.carrier) : a ≤ r.length n x * r.inner := by rw [hparam.length n x hx] exact (hLo x hx).trans (mul_le_mul_of_nonneg_left hleft.le (qLength_pos U.coord_pos U.coord_lt_one (U.time_pos x hx)).le) have hright₀ (n : ℕ) (x : PressureStream.Plane) (hx : x ∈ U.carrier) : r.length n x * r.outer ≤ b := by rw [hparam.length n x hx] exact (mul_le_mul_of_nonneg_left hright.le (qLength_pos U.coord_pos U.coord_lt_one (U.time_pos x hx)).le).trans (hHi x hx) have hil := hg.increment_localTriple ha₀ hab U.isOpen hleft₀ hright₀ axial have his : GaugeSupportedTriple g.radial.inner g.radial.outer (qLength coord) U.carrier (rankIncrementState g r axial c u) := by have hsup n := hg.increment_supportedGauge ha₀ hab U.isOpen hleft₀ hright₀ axial n have enlarge {f : Point → ℝ} (n : ℕ) (hf : SupportedGauge r.inner r.outer (r.length n) U.carrier f) : SupportedGauge g.radial.inner g.radial.outer (qLength coord) U.carrier f := by intro x hx hn have hs := hf x hx hn rw [hparam.length n x.2.1 hx] at hs have hq := (qLength_pos U.coord_pos U.coord_lt_one (U.time_pos x.2.1 hx)).le exact ⟨(mul_le_mul_of_nonneg_left hleft.le hq).trans hs.1, hs.2.trans (mul_le_mul_of_nonneg_left hright.le hq)⟩ exact ⟨fun n => enlarge n (hsup n).1, fun n => enlarge n (hsup n).2.1, fun n => enlarge n (hsup n).2.2⟩ have hp := gaugeRankStage_pressure_change_mem U g ha hd hcL hcR ε L hε hεone hL hell r axial c u hfixed hH hκ ho hb hu hi hop hbase hm hil.smooth hms his hW hWs have hgain := gaugeRankStage_mean_gain (s := stageStrip) U.isOpen (fun _ hx => hx.1) g r axial c u hg ha₀ hab hleft₀ hright₀ (TorusInverse.vector .temporal) hfast ho hb hu hi hp (fun i j n => (hW i j n).mono (fun _ hx => hx.1)) aliasField hθ hz hH hβ exact ⟨hi, hp, gaugeRankStage_cumulative g r axial c u hu hi hp hH, smooth_updated hm hil.smooth, hms.updated his, hgain⟩ end ConstructedRankStage section CycleMassPreservation open Set WeightedClasses MeanIncrementBounds CorrectionState VariableGaugeMean LocalSignedRequest open scoped ContDiff BigOperators namespace CycleParameters variable {ι : Type} (p : CycleParameters ι) (v : CycleCoefficients ι) (c : Context CyclePoint) (u : State CyclePoint) theorem afterParticular_mean : (p.afterParticular v c u).mean = u.mean := gaugeWaveStage_mean _ _ _ _ _ _ theorem afterSigned_mean : (p.afterSigned v c u).mean = u.mean := (gaugeWaveStage_mean _ _ _ _ _ _).trans (p.afterParticular_mean v c u) /-- Both actual conserved masses survive all four stages. All radial integrals are evaluated on the valid local slow region. -/ theorem next_preserve_masses {coord : ℝ} (U : SlowRegion coord) (ha : 0 < p.gauge.radial.inner) (hd : 0 < p.gauge.radial.exponent) (hell : ∀ n, p.gauge.length n = qLength coord) (hm : SmoothTriple (PhysicalMeanDomain.slowDomain U.carrier) u.mean) (hms : GaugeSupportedTriple p.gauge.radial.inner p.gauge.radial.outer (qLength coord) U.carrier u.mean) (hθ : ∀ n, ContDiffOn ℝ ∞ ((p.afterSigned v c u).thetaResidual c n) (PhysicalMeanDomain.slowDomain U.carrier)) (hz : ∀ n, ContDiffOn ℝ ∞ ((p.afterSigned v c u).axialResidual c n) (PhysicalMeanDomain.slowDomain U.carrier)) (hpθ : ∀ n, PhysicalMeanDomain.PeriodicOn U.carrier ((p.afterSigned v c u).thetaResidual c n)) (hpz : ∀ n, PhysicalMeanDomain.PeriodicOn U.carrier ((p.afterSigned v c u).axialResidual c n)) (hsθ : GaugeSupported p.gauge.radial.inner p.gauge.radial.outer (qLength coord) U.carrier ((p.afterSigned v c u).thetaResidual c)) (hsz : GaugeSupported p.gauge.radial.inner p.gauge.radial.outer (qLength coord) U.carrier ((p.afterSigned v c u).axialResidual c)) (hg : LocalRankDefect.RankGeometry p.gauge p.rank U.carrier c (p.afterTemporal v c u)) (hrlength : ∀ n x, x ∈ U.carrier → p.rank.length n x = qLength coord x) (hleft : p.gauge.radial.inner ≤ p.rank.inner) (hright : p.rank.outer ≤ p.gauge.radial.outer) (n : ℕ) {x : PressureStream.Plane} (hx : x ∈ U.carrier) : radialMoment 2 (p.next v c u).mean.angular n x = radialMoment 2 u.mean.angular n x ∧ radialMoment 1 (p.next v c u).mean.axial n x = radialMoment 1 u.mean.axial n x := by have hmid : SmoothTriple (PhysicalMeanDomain.slowDomain U.carrier) (p.afterSigned v c u).mean := by rw [p.afterSigned_mean v c u] exact hm have hi := gaugeTemporalIncrement_smooth U p.gauge ha hd hell p.timeExponent p.commonIndex p.axial c (p.afterSigned v c u) hθ hz hpθ hpz hsz have him : SmoothTriple (PhysicalMeanDomain.slowDomain U.carrier) (p.afterTemporal v c u).mean := smooth_updated hmid hi have his : GaugeSupportedTriple p.gauge.radial.inner p.gauge.radial.outer (qLength coord) U.carrier (p.temporalIncrement v c u) := by have hs k := temporalIncrementState_supportedGauge U p.gauge ha hd hell c (p.afterSigned v c u) p.timeExponent p.commonIndex p.axial k (hz k) (hpz k) (hsz k) (hsθ k) exact ⟨fun k => (hs k).1, fun k => (hs k).2.1, fun k => (hs k).2.2⟩ have hmidd : GaugeSupportedTriple p.gauge.radial.inner p.gauge.radial.outer (qLength coord) U.carrier (p.afterSigned v c u).mean := by rw [p.afterSigned_mean v c u] exact hms have hmids : GaugeSupportedTriple p.gauge.radial.inner p.gauge.radial.outer (qLength coord) U.carrier (p.afterTemporal v c u).mean := hmidd.updated his have ht := GaugeMassPreservation.temporalStage_preserve_masses_on U p.gauge ha hd hell p.timeExponent p.commonIndex p.axial c (p.afterSigned v c u) (fun k => (hmid.angular k).continuousOn) (fun k => (hmid.axial k).continuousOn) hθ hz hpθ hpz hsz n hx change radialMoment 2 (p.afterTemporal v c u).mean.angular n x = radialMoment 2 (p.afterSigned v c u).mean.angular n x ∧ radialMoment 1 (p.afterTemporal v c u).mean.axial n x = radialMoment 1 (p.afterSigned v c u).mean.axial n x at ht rw [p.afterSigned_mean v c u] at ht obtain ⟨a, b, L, ha₀, hab, _, _, hLo, hHi, _⟩ := qLength_reference_bounds U ha p.gauge.radial.inner_lt_outer have hrl (k : ℕ) (y : PressureStream.Plane) (hy : y ∈ U.carrier) : a ≤ p.rank.length k y * p.rank.inner := by rw [hrlength k y hy] exact (hLo y hy).trans (mul_le_mul_of_nonneg_left hleft (qLength_pos U.coord_pos U.coord_lt_one (U.time_pos y hy)).le) have hrr (k : ℕ) (y : PressureStream.Plane) (hy : y ∈ U.carrier) : p.rank.length k y * p.rank.outer ≤ b := by rw [hrlength k y hy] exact (mul_le_mul_of_nonneg_left hright (qLength_pos U.coord_pos U.coord_lt_one (U.time_pos y hy)).le).trans (hHi y hy) have localize {f : ScalarField Point} (hf : GaugeSupported p.gauge.radial.inner p.gauge.radial.outer (qLength coord) U.carrier f) : ∀ k, PhysicalMeanDomain.SupportedOn a b U.carrier (f k) := by intro k y hy hn exact ⟨(hLo _ hy).trans (hf k y hy hn).1, (hf k y hy hn).2.trans (hHi _ hy)⟩ have hml : LocalRankDefect.LocalTriple a b U.carrier (p.afterTemporal v c u).mean := ⟨⟨him.radial, localize hmids.radial⟩, ⟨him.angular, localize hmids.angular⟩, ⟨him.axial, localize hmids.axial⟩⟩ have hr := hg.preserve_masses ha₀ hab U.isOpen hrl hrr p.axial hml n hx exact ⟨hr.1.trans ht.1, hr.2.trans ht.2⟩ end CycleParameters end CycleMassPreservation section CycleMeanCompletion open Set WeightedClasses MeanIncrementBounds CorrectionState VariableGaugeMean LocalSignedRequest open scoped ContDiff BigOperators namespace CycleParameters variable {ι : Type} (p : CycleParameters ι) (v : CycleCoefficients ι) (c : Context CyclePoint) (u : State CyclePoint) {coord cL cR A B : ℝ} (U : SlowRegion coord) (ha : 0 < p.gauge.radial.inner) (hd : 0 < p.gauge.radial.exponent) (hcL : 0 < cL) (hcR : 0 < cR) (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) (hell : ∀ n, p.gauge.length n = qLength coord) include hd hell local notation "stageStrip" => movingStripData U p.gauge.radial.inner p.gauge.radial.outer cL cR ha hcL hcR ε L hε hεone hL local notation "slowStrip" => PhysicalMeanDomain.localSlowStripData U.carrier U.isOpen ε L hε hεone hL local notation "signedState" => p.afterSigned v c u local notation "temporalState" => p.afterTemporal v c u end CycleParameters end CycleMeanCompletion section PeriodizedNativeBounds open Set Filter WeightedClasses CorrectionState open scoped ContDiff Topology variable {D I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] /-- Only primitive background fields remain in this native family. Its amplitude and pressure are zero, so its bounds assume no constructed output. -/ noncomputable def nativeBackground (a : LinearWaveBounds.WaveCoefficients D) : LocalizedWaveBounds.WaveFamily D I := LocalizedWaveBounds.WaveFamily.ofCoefficients (fun _ => { a with amplitude := 0, pressure := 0 }) theorem localInput_of_coefficients (a : PeriodizedWaveBounds.CopyData D I) {s : StripData D} {K : ℕ → I → Set D} {P : ℕ → D → ℝ} {α κ : ℝ} {d : LinearWaveBounds.GraphDirections D} (h : LocalizedWaveBounds.InputBounds s K (fun n _ => P n) 0 κ d (nativeBackground a.background)) (hP : ∀ n x, x ∈ s.domain → 0 ≤ P n x) (ha : PeriodizedWaveBounds.LocalJets s (fun n x => Real.sqrt (s.zeta x) * P n x) α K a.amplitude) (hp : PeriodizedWaveBounds.LocalJets s (fun n x => Real.sqrt (s.zeta x) * P n x) (α + 1 / 2) K a.pressure) : LocalizedWaveBounds.InputBounds s K (fun n _ => P n) α κ d (LocalizedWaveBounds.rawFamily a) := by have hw n x hx := mul_nonneg (Real.sqrt_nonneg (s.zeta x)) (hP n x hx) exact ⟨h.loss_nonneg, h.radial_profile, h.radial_scale, h.fast_scale, h.frequency_scale, h.radius, h.inverse_radius, h.radial_base, h.frequency_base, h.axial_base, h.radial_base_aux, h.frequency_base_aux, h.axial_base_aux, h.normal, h.defect, fun j => (LocalizedWaveBounds.LocalClass.of_localJets hw ha).map (ContinuousLinearMap.proj j), LocalizedWaveBounds.LocalClass.of_localJets hw hp⟩ namespace PeriodizedSignedParameters variable (p : PeriodizedSignedParameters D I) (s : StripData D) /-- Uniform native-copy input data for the signed quotient. The current request is deliberately absent; it is supplied from the measured residual. -/ structure NativeControl (P : ℕ → D → ℝ) (κ : ℝ) where cells : PeriodizedWaveBounds.Cells (D × ℝ) I phasePatch : ℕ → I → Set (D × ℝ) background : LocalizedWaveBounds.InputBounds (HarmonicWaveInteraction.productStrip s) phasePatch (fun n _ x => P n x.1) 0 κ p.directions (nativeBackground p.base) covariance : SignedCopyBounds.NativeCovariance (HarmonicWaveInteraction.productStrip s) phasePatch p.matrix p.target mask : PeriodizedWaveBounds.LocalJets (HarmonicWaveInteraction.productStrip s) (fun _ _ => 1) 0 phasePatch (fun n i => p.mask i n) fundamental : PeriodizedWaveBounds.LocalJets (HarmonicWaveInteraction.productStrip s) (fun n x => P n x.1) 0 phasePatch (fun n i => p.fundamental i n) normalMotion : PeriodizedWaveBounds.LocalJets (HarmonicWaveInteraction.productStrip s) (fun _ _ => 1) 0 phasePatch (fun n i => p.normalMotion i n) action : PeriodizedWaveBounds.LocalJets (HarmonicWaveInteraction.productStrip s) (fun _ _ => 1) 0 phasePatch (fun n i => p.action i n) cutoff : PeriodizedWaveBounds.LocalJets (HarmonicWaveInteraction.productStrip s) (fun _ _ => 1) 0 phasePatch (fun n i => p.cutoff i n) cutoff_support : ∀ n i, Function.support (p.cutoff i n) ⊆ cells.carrier n i phase_cover : ∀ n i x, x ∈ (HarmonicWaveInteraction.productStrip s).domain → x ∈ cells.carrier n i → x ∈ phasePatch n i ∨ (p.cutoff i n =ᶠ[𝓝 x] fun _ => 0) ∨ (p.mask i n =ᶠ[𝓝 x] fun _ => 0) envelope_nonneg : ∀ n x, x ∈ s.domain → 0 ≤ P n x lower : ℝ upper : ℝ lower_pos : 0 < lower normal_lower : ∀ n i x, x ∈ (HarmonicWaveInteraction.productStrip s).domain → x ∈ phasePatch n i → lower ≤ ‖p.base.normal (HarmonicWaveInteraction.productStrip s) p.directions n x‖ normal_upper : ∀ n i x, x ∈ (HarmonicWaveInteraction.productStrip s).domain → x ∈ phasePatch n i → ‖p.base.normal (HarmonicWaveInteraction.productStrip s) p.directions n x‖ ≤ upper inverse_frequency : BandBound (HarmonicWaveInteraction.productStrip s) (1 / 2) (fun n => 1 / p.base.frequency n) variable {p s} {P : ℕ → D → ℝ} {κ β : ℝ} theorem raw_zero_of_mask (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) (n : ℕ) (i : I) (x : D × ℝ) (hm : p.mask i n x = 0) : (p.copyData s request).amplitude n i x = 0 ∧ (p.copyData s request).pressure n i x = 0 := by simp [copyData, native, SignedParameters.coefficients, SignedWaveUpdate.coefficients, SignedWaveUpdate.homogeneousCoefficients, SignedWaveUpdate.signedVector, SignedWaveUpdate.signedScalar, hm, ParticularWaveBounds.projectedPressure, TangentProjection.pressureCoefficient] theorem localized_zero_of_mask (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) {n : ℕ} {i : I} {x : D × ℝ} (hm : p.mask i n =ᶠ[𝓝 x] fun _ => 0) : ((p.copyData s request).localized i).amplitude n =ᶠ[𝓝 x] (fun _ => 0) ∧ ((p.copyData s request).localized i).pressure n =ᶠ[𝓝 x] (fun _ => 0) := by constructor · filter_upwards [hm] with y hy change p.cutoff i n y • (p.copyData s request).amplitude n i y = 0 rw [(raw_zero_of_mask request n i y hy).1, smul_zero] · filter_upwards [hm] with y hy change (p.cutoff i n y : ℂ) * (p.copyData s request).pressure n i y = 0 rw [(raw_zero_of_mask request n i y hy).2, mul_zero] theorem NativeControl.raw_jets (h : p.NativeControl s P κ) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) (hR : ∀ j, MeanClass (HarmonicWaveInteraction.productStrip s) β (fun n x => request n x j)) : PeriodizedWaveBounds.LocalJets (HarmonicWaveInteraction.productStrip s) (fun n x => Real.sqrt (s.zeta x.1) * P n x.1) (β + 1 / 2) h.phasePatch (p.copyData s request).amplitude ∧ PeriodizedWaveBounds.LocalJets (HarmonicWaveInteraction.productStrip s) (fun n x => Real.sqrt (s.zeta x.1) * P n x.1) (β + 1) h.phasePatch (p.copyData s request).pressure := by have hK : UniformPrimaryWeights.UniformBandBound (HarmonicWaveInteraction.productStrip s) (1 / 2) (fun (_ : I) n => 1 / p.base.frequency n) := by obtain ⟨C, hC, q, hb⟩ := h.inverse_frequency exact ⟨C, hC, q, fun _ n => hb n⟩ exact SignedCopyBounds.coefficients_jets (a := fun _ => p.base) (d := fun _ => p.directions) h.covariance (fun j => PeriodizedWaveBounds.LocalJets.of_memClass (hR j)) h.mask h.fundamental (fun n x hx => h.envelope_nonneg n x.1 hx) h.background.normal.to_localJets h.normalMotion h.action h.lower_pos h.normal_lower h.normal_upper hK p.column /-- All five full-lift classes are obtained from the actual quotient and uniform native data. Background estimates are used only on the cells. -/ theorem NativeControl.global_bounds (h : p.NativeControl s P κ) (hκ : κ ≤ 1 / 2) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) (hR : ∀ j, MeanClass (HarmonicWaveInteraction.productStrip s) β (fun n x => request n x j)) : WaveClass (HarmonicWaveInteraction.productStrip s) (fun n x => P n x.1) (β + 1 / 2) (p.copyData s request).common.amplitude ∧ WaveClass (HarmonicWaveInteraction.productStrip s) (fun n x => P n x.1) (β + 1 / 2) ((p.copyData s request).commonCorrected (HarmonicWaveInteraction.productStrip s) p.directions).amplitude ∧ WaveClass (HarmonicWaveInteraction.productStrip s) (fun n x => P n x.1) (β + 1) (p.copyData s request).common.pressure ∧ WaveClass (HarmonicWaveInteraction.productStrip s) (fun n x => P n x.1) (β + 1 - κ) ((p.copyData s request).common.curlCorrection (HarmonicWaveInteraction.productStrip s) p.directions) ∧ WaveClass (HarmonicWaveInteraction.productStrip s) (fun n x => P n x.1) (β + 1 - 3 * κ) ((p.copyData s request).globalGood (HarmonicWaveInteraction.productStrip s) p.directions) := by obtain ⟨ha, hp⟩ := h.raw_jets request hR have hinput := localInput_of_coefficients (p.copyData s request) h.background (fun n x hx => h.envelope_nonneg n x.1 hx) ha (by simp only [show β + 1 / 2 + 1 / 2 = β + 1 by ring]; exact hp) have hcover : ∀ n i x, x ∈ (HarmonicWaveInteraction.productStrip s).domain → x ∈ h.cells.carrier n i → x ∈ h.phasePatch n i ∨ (((p.copyData s request).localized i).amplitude n =ᶠ[𝓝 x] fun _ => 0) ∧ (((p.copyData s request).localized i).pressure n =ᶠ[𝓝 x] fun _ => 0) := by intro n i x hx hi rcases h.phase_cover n i x hx hi with hp | hcut | hmask · exact Or.inl hp · exact Or.inr ((p.copyData s request).localized_zero_germs hcut) · exact Or.inr (localized_zero_of_mask request hmask) have hh := LocalizedWaveBounds.common_bounds_from_supported_native (p.copyData s request) h.cells h.cutoff_support h.phasePatch (fun n x hx => h.envelope_nonneg n x.1 hx) (hinput.with_cutoff (LocalizedWaveBounds.LocalClass.of_localJets (fun _ _ _ => zero_le_one) h.cutoff)) hκ h.lower_pos h.normal_lower h.normal_upper (LocalizedWaveBounds.LocalClass.band_const h.inverse_frequency) hcover simpa only [show β + 1 / 2 + 1 / 2 = β + 1 by ring] using hh end PeriodizedSignedParameters namespace ParticularParameters open CommonCoverSolve TorusInverse variable {Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] (p : ParticularParameters Q) (s : StripData (Q × Plane)) (c : Context (Q × Plane)) (u : State (Q × Plane)) (b : HarmonicBlock (Q × Plane)) (G A : HarmonicResidual.BlockCoefficients (Q × Plane)) (j : ℤ) noncomputable def nativeTangent : ℕ → TangentData (Q × ℝ) ProblemStatement.Space := fun n => ParticularWaveAssembly.angleTangent (p.tangent j n) /-- Input bounds for the actual complex Volterra solve on all of its native cells. The modal forcing is the literal current residual source. -/ structure NativeControl (W : ℕ → (Q × ℝ) × Plane → ℝ) (α κ : ℝ) where cells : PeriodizedWaveBounds.Cells ((Q × ℝ) × Plane) Frequency phasePatch : ℕ → Frequency → Set ((Q × ℝ) × Plane) background : LocalizedWaveBounds.InputBounds (nativeStrip s) phasePatch (fun n _ => W n) 0 κ p.directions (nativeBackground (p.copyData c u b G A j).background) frame : ℕ → PrimaryODE.FrameData ((Q × ℝ) × ℝ) envelope : ℕ → ℝ → ℝ realControl : ParticularCopyBounds.ModalControl (nativeStrip s) α frame (fun n => ParticularWaveBounds.realData (p.nativeTangent j n) ((p.copyData c u b G A j).source n)) j p.geometry p.length envelope phasePatch imagControl : ParticularCopyBounds.ModalControl (nativeStrip s) α frame (fun n => ParticularWaveBounds.imagData (p.nativeTangent j n) ((p.copyData c u b G A j).source n)) j p.geometry p.length envelope phasePatch envelope_nonneg : ∀ n x, x ∈ (nativeStrip s).domain → 0 ≤ W n x envelope_compare : ∀ n i x, x ∈ (nativeStrip s).domain → x ∈ phasePatch n i → envelope n ((p.geometry n).coordinates i x.2).2 ≤ W n x normal : PeriodizedWaveBounds.LocalJets (nativeStrip s) (fun _ _ => 1) 0 phasePatch (fun n i x => (p.nativeTangent j n).normal (ParticularWaveBounds.nativePoint (p.geometry n) i x)) normalMotion : PeriodizedWaveBounds.LocalJets (nativeStrip s) (fun _ _ => 1) 0 phasePatch (fun n i x => (p.nativeTangent j n).normalDot (ParticularWaveBounds.nativePoint (p.geometry n) i x)) action : PeriodizedWaveBounds.LocalJets (nativeStrip s) (fun _ _ => 1) 0 phasePatch (fun n i x => (p.nativeTangent j n).action (ParticularWaveBounds.nativePoint (p.geometry n) i x)) source : PeriodizedWaveBounds.LocalJets (nativeStrip s) (fun n x => Real.sqrt ((nativeStrip s).zeta x) * W n x) α phasePatch (fun n _ => (p.copyData c u b G A j).source n) cutoff : PeriodizedWaveBounds.LocalJets (nativeStrip s) (fun _ _ => 1) 0 phasePatch (p.copyData c u b G A j).cutoff cutoff_support : ∀ n i, Function.support ((p.copyData c u b G A j).cutoff n i) ⊆ cells.carrier n i phase_cover : ∀ n i x, x ∈ (nativeStrip s).domain → x ∈ cells.carrier n i → x ∈ phasePatch n i ∨ ∀ᶠ y in 𝓝 x, ((p.geometry n).coordinates i y.2).2 ∈ Icc 0 (p.length n) ∧ ∀ v ∈ Icc 0 (p.length n), (p.copyData c u b G A j).source n (y.1, (p.geometry n).path i y.2 v) = 0 lower : ℝ upper : ℝ lower_pos : 0 < lower normal_lower : ∀ n i x, x ∈ (nativeStrip s).domain → x ∈ phasePatch n i → lower ≤ ‖(p.nativeTangent j n).normal (ParticularWaveBounds.nativePoint (p.geometry n) i x)‖ normal_upper : ∀ n i x, x ∈ (nativeStrip s).domain → x ∈ phasePatch n i → ‖(p.nativeTangent j n).normal (ParticularWaveBounds.nativePoint (p.geometry n) i x)‖ ≤ upper normal_match : ∀ n i x, x ∈ (nativeStrip s).domain → x ∈ phasePatch n i → (p.copyData c u b G A j).background.normal (nativeStrip s) p.directions n x = (p.nativeTangent j n).normal (ParticularWaveBounds.nativePoint (p.geometry n) i x) inverse_frequency : BandBound (nativeStrip s) (1 / 2) (fun n => 1 / (p.copyData c u b G A j).background.frequency n) variable {p s c u b G A j} {W : ℕ → (Q × ℝ) × Plane → ℝ} {α κ : ℝ} theorem raw_zero_of_source_path {n : ℕ} {i : Frequency} {x : (Q × ℝ) × Plane} (hf : ∀ᶠ y in 𝓝 x, ((p.geometry n).coordinates i y.2).2 ∈ Icc 0 (p.length n) ∧ ∀ v ∈ Icc 0 (p.length n), (p.copyData c u b G A j).source n (y.1, (p.geometry n).path i y.2 v) = 0) : (p.copyData c u b G A j).amplitude n i =ᶠ[𝓝 x] (fun _ => 0) ∧ (p.copyData c u b G A j).pressure n i =ᶠ[𝓝 x] (fun _ => 0) ∧ (p.copyData c u b G A j).source n =ᶠ[𝓝 x] (fun _ => 0) := by refine ⟨?_, ?_, ?_⟩ · filter_upwards [hf] with y hy exact ParticularWaveBounds.complexCopyVelocity_zero_of_path (p.nativeTangent j n) ((p.copyData c u b G A j).source n) (p.geometry n) (p.length_pos n).le i y.1 y.2 hy.2 · filter_upwards [hf] with y hy exact ParticularWaveBounds.complexCopyPressure_zero_of_path (p.nativeTangent j n) ((p.copyData c u b G A j).source n) (p.geometry n) (p.length_pos n).le i ((p.copyData c u b G A j).background.frequency n) y.1 y.2 hy.2 hy.1 · filter_upwards [hf] with y hy simpa only [Geometry.path_current, Prod.mk.eta] using hy.2 _ hy.1 theorem localized_zero_of_source_path {n : ℕ} {i : Frequency} {x : (Q × ℝ) × Plane} (hf : ∀ᶠ y in 𝓝 x, ((p.geometry n).coordinates i y.2).2 ∈ Icc 0 (p.length n) ∧ ∀ v ∈ Icc 0 (p.length n), (p.copyData c u b G A j).source n (y.1, (p.geometry n).path i y.2 v) = 0) : ((p.copyData c u b G A j).localized i).amplitude n =ᶠ[𝓝 x] (fun _ => 0) ∧ ((p.copyData c u b G A j).localized i).pressure n =ᶠ[𝓝 x] (fun _ => 0) := by obtain ⟨ha, hp, _⟩ := raw_zero_of_source_path hf constructor · filter_upwards [ha] with y hy change _ • (p.copyData c u b G A j).amplitude n i y = 0 rw [hy, smul_zero] · filter_upwards [hp] with y hy change _ * (p.copyData c u b G A j).pressure n i y = 0 rw [hy, mul_zero] theorem NativeControl.raw_jets (h : p.NativeControl s c u b G A j W α κ) : PeriodizedWaveBounds.LocalJets (nativeStrip s) (fun n x => Real.sqrt ((nativeStrip s).zeta x) * W n x) α h.phasePatch (p.copyData c u b G A j).amplitude ∧ PeriodizedWaveBounds.LocalJets (nativeStrip s) (fun n x => Real.sqrt ((nativeStrip s).zeta x) * W n x) (α + 1 / 2) h.phasePatch (p.copyData c u b G A j).pressure := ParticularCopyBounds.coefficients_jets (p.copyData c u b G A j).background (p.nativeTangent j) (p.copyData c u b G A j).source p.geometry p.length p.length_pos h.envelope W h.frame j h.phasePatch h.realControl h.imagControl h.envelope_nonneg h.envelope_compare h.normal h.normalMotion h.action h.source h.lower_pos h.normal_lower h.normal_upper h.inverse_frequency /-- The global amplitude, pressure, exact curl, and retained linear error are derived from native modal inputs for the same actual residual solve. -/ theorem NativeControl.global_bounds (h : p.NativeControl s c u b G A j W α κ) (hκ : κ ≤ 1 / 2) : WaveClass (nativeStrip s) W α (p.copyData c u b G A j).common.amplitude ∧ WaveClass (nativeStrip s) W α (p.wave s c u b G A j).amplitude ∧ WaveClass (nativeStrip s) W (α + 1 / 2) (p.copyData c u b G A j).common.pressure ∧ WaveClass (nativeStrip s) W (α + 1 / 2 - κ) ((p.copyData c u b G A j).common.curlCorrection (nativeStrip s) p.directions) ∧ WaveClass (nativeStrip s) W (α + 1 / 2 - 3 * κ) ((p.copyData c u b G A j).globalGood (nativeStrip s) p.directions) := by obtain ⟨ha, hp⟩ := h.raw_jets have hin := localInput_of_coefficients (p.copyData c u b G A j) h.background h.envelope_nonneg ha hp exact LocalizedWaveBounds.common_bounds_from_supported_native (M := h.upper) (p.copyData c u b G A j) h.cells h.cutoff_support h.phasePatch h.envelope_nonneg (hin.with_cutoff (LocalizedWaveBounds.LocalClass.of_localJets (fun _ _ _ => zero_le_one) h.cutoff)) hκ h.lower_pos (fun n i x hx hi => by rw [h.normal_match n i x hx hi] exact h.normal_lower n i x hx hi) (fun n i x hx hi => by rw [h.normal_match n i x hx hi] exact h.normal_upper n i x hx hi) (LocalizedWaveBounds.LocalClass.band_const h.inverse_frequency) (fun n i x hx hi => (h.phase_cover n i x hx hi).imp_right localized_zero_of_source_path) theorem sectionStrip_nativeStrip (s : StripData (Q × Plane)) : ParticularWaveAssembly.sectionStrip (nativeStrip s) = s := by cases s rfl theorem assembled_bounds (p : ParticularParameters Q) (s : StripData (Q × Plane)) (c : Context (Q × Plane)) (u : State (Q × Plane)) (b : HarmonicBlock (Q × Plane)) (G A : HarmonicResidual.BlockCoefficients (Q × Plane)) (N : ℕ) {W : ℕ → (Q × ℝ) × Plane → ℝ} {α κ : ℝ} (C : ∀ j ∈ ParticularWaveAssembly.modes N, p.NativeControl s c u b G A j W α κ) (hW : ∀ n x, x ∈ (nativeStrip s).domain → 0 ≤ W n x) (hκ : κ ≤ 1 / 2) : (p.updateBlock s c u b G A N).WaveBounds s (fun n x => W n (ParticularWaveAssembly.angleShuffle (x,0))) α ∧ (p.updateBlock s c u b G A N).PressureBounds s (fun n x => W n (ParticularWaveAssembly.angleShuffle (x,0))) (α + 1 / 2) ∧ (p.goodBlock s c u b G A N).WaveBounds s (fun n x => W n (ParticularWaveAssembly.angleShuffle (x,0))) (α + 1 / 2 - 3 * κ) := by have hu := ParticularWaveAssembly.assembledBlock_classes (s := ParticularWaveAssembly.sectionStrip (nativeStrip s)) N b.frequency b.phase b.angularFrequency (fun n x hx => hW n _ hx) (fun j hj => ParticularWaveAssembly.nativeSlice_waveClass ((C j hj).global_bounds hκ).2.1) (fun j hj => ParticularWaveAssembly.nativeSlice_waveClass ((C j hj).global_bounds hκ).2.2.1) have hg := ParticularWaveAssembly.assembledBlock_classes (s := ParticularWaveAssembly.sectionStrip (nativeStrip s)) (γ := (0 : ℝ)) N b.frequency b.phase b.angularFrequency (fun n x hx => hW n _ hx) (fun j hj => ParticularWaveAssembly.nativeSlice_waveClass ((C j hj).global_bounds hκ).2.2.2.2) (fun _ _ => MemClass.zero (fun n x hx => mul_nonneg (Real.sqrt_nonneg _) (hW n _ hx))) rw [sectionStrip_nativeStrip] at hu hg exact ⟨hu.1, hu.2, hg.1⟩ end ParticularParameters end PeriodizedNativeBounds section NativeEquations open Set Filter WeightedClasses HarmonicCalculus CorrectionState open scoped ContDiff Topology variable {D I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] /-- Angular and radial geometry of the actual raw copies. The analytic bounds on the normal and material defect remain restricted to `C`. -/ structure NativeAngularGeometry (a : PeriodizedWaveBounds.CopyData D I) (s : StripData D) (d : LinearWaveBounds.GraphDirections D) (C : ℕ → I → Set D) : Prop where open_patch : ∀ n i, IsOpen (C n i) phase_smooth : ∀ n, ContDiffOn ℝ ∞ (a.background.phase n) s.domain radius_nonzero : ∀ n i x, x ∈ s.domain → x ∈ C n i → a.background.radius n x ≠ 0 radial_radius : ∀ n i x, x ∈ s.domain → x ∈ C n i → along (d.radialField n) (a.background.radius n) x = 1 radius : ∀ n, CopyAngularInvariance.Invariant d.angular (a.background.radius n) radial_base : ∀ n, CopyAngularInvariance.Invariant d.angular (a.background.radialBase n) frequency_base : ∀ n, CopyAngularInvariance.Invariant d.angular (a.background.frequencyBase n) axial_base : ∀ n, CopyAngularInvariance.Invariant d.angular (a.background.axialBase n) radial_field : ∀ n, CopyAngularInvariance.Invariant d.angular (d.radialField n) phase : ∀ n, ∃ m, CopyAngularInvariance.AffinePhase d.angular m (a.background.phase n) amplitude : ∀ i n, CopyAngularInvariance.Invariant d.angular (a.amplitude n i) pressure : ∀ i n, CopyAngularInvariance.Invariant d.angular (a.pressure n i) cutoff : ∀ i n, CopyAngularInvariance.Invariant d.angular (a.cutoff n i) theorem harmonicResidual_zero_germ (a : LinearWaveBounds.WaveCoefficients D) (s : StripData D) (d : LinearWaveBounds.GraphDirections D) {n : ℕ} {x : D} (ha : a.amplitude n =ᶠ[𝓝 x] fun _ => 0) (hp : a.pressure n =ᶠ[𝓝 x] fun _ => 0) : a.harmonicResidual s d n =ᶠ[𝓝 x] fun _ => 0 := by have hv : vectorMode (a.frequency n) (a.phase n) (a.amplitude n) =ᶠ[𝓝 x] fun _ => 0 := by filter_upwards [ha] with y hy ext j simp only [vectorMode, mode, hy, Pi.zero_apply, zero_mul] have hpr : mode (a.frequency n) (a.phase n) (a.pressure n) =ᶠ[𝓝 x] fun _ => 0 := by filter_upwards [hp] with y hy simp only [mode, hy, zero_mul] have hh := ParticularWaveAssembly.linearResidual_germ hv hpr (s.epsilon n) (a.radius n) (d.radialField n) (fun _ => d.angular) (d.axialField s n) (LinearWaveResidual.timeDirection (s.epsilon n) (d.fastField n) (fun _ => d.slow)) (LinearWaveResidual.complexBase (a.radius n) (a.radialBase n) (a.frequencyBase n) (a.axialBase n)) simp only [PeriodizedWaveBounds.linearResidual_zero] at hh exact hh theorem local_cancellation_of_zero_germs (a : PeriodizedWaveBounds.CopyData D I) (s : StripData D) (d : LinearWaveBounds.GraphDirections D) {n : ℕ} {i : I} {x : D} (ha : (a.localized i).amplitude n =ᶠ[𝓝 x] fun _ => 0) (hp : (a.localized i).pressure n =ᶠ[𝓝 x] fun _ => 0) (hg : a.localGaussian d n i =ᶠ[𝓝 x] fun _ => 0) (hf : a.source n =ᶠ[𝓝 x] fun _ => 0) : (a.corrected s d i).harmonicResidual s d n x + (fun j => a.source n x j * carrier (a.background.frequency n) (a.background.phase n) x) = (fun j => (a.localGood s d n i x j + a.localGaussian d n i x j) * carrier (a.background.frequency n) (a.background.phase n) x) := by have hz := (LocalizedWaveBounds.nativeFamily a).outputs_zero_germs s d ha hp have hcor : (a.corrected s d i).amplitude n =ᶠ[𝓝 x] fun _ => 0 := hz.2.1 have hgood : a.localGood s d n i =ᶠ[𝓝 x] fun _ => 0 := hz.2.2 have hres := harmonicResidual_zero_germ (a.corrected s d i) s d hcor hp rw [hres.self_of_nhds, hf.self_of_nhds, hgood.self_of_nhds, hg.self_of_nhds] ext j simp namespace PeriodizedSignedParameters variable {p : PeriodizedSignedParameters D I} {s : StripData D} {P : ℕ → D → ℝ} {κ β : ℝ} (h : p.NativeControl s P κ) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) /-- Primitive angular identities and the fixed unit fundamental's ODE. The signed principal equation and every cutoff/curl identity are derived. -/ structure NativeDynamics where slope : ℕ → ℝ angular : ∀ i, SignedWaveUpdate.AngularInputs (HarmonicWaveInteraction.productStrip s) p.directions p.base (p.matrix i) (p.target i) request (p.mask i) (p.fundamental i) (p.normalMotion i) (p.action i) (p.cutoff i) slope open_patch : ∀ n i, IsOpen (h.phasePatch n i) radius_nonzero : ∀ n i x, x ∈ (HarmonicWaveInteraction.productStrip s).domain → x ∈ h.phasePatch n i → p.base.radius n x ≠ 0 radial_radius : ∀ n i x, x ∈ (HarmonicWaveInteraction.productStrip s).domain → x ∈ h.phasePatch n i → along (p.directions.radialField n) (p.base.radius n) x = 1 matrix_frozen : ∀ i, SignedWaveUpdate.FrozenAlong p.directions.fast (p.matrix i) target_frozen : ∀ i, SignedWaveUpdate.FrozenAlong p.directions.fast (p.target i) request_frozen : SignedWaveUpdate.FrozenAlong p.directions.fast request mask_frozen : ∀ i, SignedWaveUpdate.FrozenAlong p.directions.fast (p.mask i) frequency_nonzero : ∀ n, p.base.frequency n ≠ 0 ode : ∀ n i x, x ∈ (HarmonicWaveInteraction.productStrip s).domain → x ∈ h.phasePatch n i → along (p.directions.fastField n) (p.fundamental i n) x = TangentProjection.projectedRhs (p.base.normal (HarmonicWaveInteraction.productStrip s) p.directions n x) (p.normalMotion i n x) (p.fundamental i n x) (p.action i n x (p.fundamental i n x)) 0 (s.epsilon n * p.base.frequency n ^ 2 * ‖p.base.normal (HarmonicWaveInteraction.productStrip s) p.directions n x‖ ^ 2) action_eq : ∀ n i x, x ∈ (HarmonicWaveInteraction.productStrip s).domain → x ∈ h.phasePatch n i → CurlClassBounds.complexify (p.action i n x (p.fundamental i n x)) = LinearWaveResidual.shear (p.base.radius n) (p.base.frequencyBase n) (p.base.axialBase n) (p.directions.radialField n) (fun y => CurlClassBounds.complexify (p.fundamental i n y)) x variable {h request} theorem NativeDynamics.principal (d : NativeDynamics h request) (hR : ∀ j, MeanClass (HarmonicWaveInteraction.productStrip s) β (fun n x => request n x j)) (n : ℕ) (i : I) {x : D × ℝ} (hx : x ∈ (HarmonicWaveInteraction.productStrip s).domain) (hi : x ∈ h.phasePatch n i) : ((p.copyData s request).raw i).principal (HarmonicWaveInteraction.productStrip s) p.directions n x = 0 := NativePrincipalEquations.signed_coefficients_principal_at (a := fun _ => p.base) (dirs := fun _ => p.directions) h.covariance (fun j => PeriodizedWaveBounds.LocalJets.of_memClass (hR j)) h.mask h.fundamental p.column n i hx hi (d.matrix_frozen i) (d.target_frozen i) d.request_frozen (d.mask_frozen i) (d.frequency_nonzero n) (d.ode n i x hx hi) (d.action_eq n i x hx hi) end PeriodizedSignedParameters namespace ParticularParameters open CommonCoverSolve TorusInverse ParticularWaveAssembly CopyAngularInvariance variable {Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] {p : ParticularParameters Q} {s : StripData (Q × Plane)} {c : Context (Q × Plane)} {u : State (Q × Plane)} {b : HarmonicBlock (Q × Plane)} {G A : HarmonicResidual.BlockCoefficients (Q × Plane)} {j : ℤ} {W : ℕ → (Q × ℝ) × Plane → ℝ} {α κ : ℝ} (h : p.NativeControl s c u b G A j W α κ) structure NativeDynamics : Prop where background : BackgroundControl (nativeStrip s) p.directions p.background b j open_patch : ∀ n i, IsOpen (h.phasePatch n i) frequency_nonzero : ∀ n, (j : ℝ) * b.frequency n ≠ 0 damping : ∀ n i x, x ∈ (nativeStrip s).domain → x ∈ h.phasePatch n i → (p.nativeTangent j n).damping (ParticularWaveBounds.nativePoint (p.geometry n) i x) = s.epsilon n * ((j : ℝ) * b.frequency n) ^ 2 * ‖(p.copyData c u b G A j).background.normal (nativeStrip s) p.directions n x‖ ^ 2 fast : ∀ n, p.directions.fastScale n • p.directions.fast = ((0 : Q × ℝ), ParticularWaveBounds.slotDirection (p.geometry n)) action : ∀ n i x, x ∈ (nativeStrip s).domain → x ∈ h.phasePatch n i → ∀ z : ProblemStatement.Space, CurlClassBounds.complexify ((p.nativeTangent j n).action (ParticularWaveBounds.nativePoint (p.geometry n) i x) z) = LinearWaveResidual.shear (p.background.radius n) (p.background.frequencyBase n) (p.background.axialBase n) (p.directions.radialField n) (fun _ => CurlClassBounds.complexify z) x variable {h} theorem NativeDynamics.principal (d : NativeDynamics h) (n : ℕ) (i : Frequency) {x : (Q × ℝ) × Plane} (hx : x ∈ (nativeStrip s).domain) (hi : x ∈ h.phasePatch n i) : ((p.copyData c u b G A j).raw i).principal (nativeStrip s) p.directions n x = -(p.copyData c u b G A j).source n x := NativePrincipalEquations.complexCopyCoefficients_principal_at (p.copyData c u b G A j).background p.length_pos h.realControl h.imagControl n i hx hi (d.frequency_nonzero n) (h.normal_match n i x hx hi) (d.damping n i x hx hi) (d.fast n) (d.action n i x hx hi) end ParticularParameters end NativeEquations section PeriodizedSignedLinear open Set Filter WeightedClasses HarmonicCalculus CorrectionState open scoped ContDiff Topology variable {D I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] namespace NativeAngularGeometry variable {a : PeriodizedWaveBounds.CopyData D I} {s : StripData D} {d : LinearWaveBounds.GraphDirections D} {C : ℕ → I → Set D} (g : NativeAngularGeometry a s d C) include g theorem common_amplitude (n : ℕ) : CopyAngularInvariance.Invariant d.angular (a.common.amplitude n) := a.common_amplitude_invariant d.angular (fun n i => g.cutoff i n) (fun n i => g.amplitude i n) n theorem common_pressure (n : ℕ) : CopyAngularInvariance.Invariant d.angular (a.common.pressure n) := a.common_pressure_invariant d.angular (fun n i => g.cutoff i n) (fun n i => g.pressure i n) n theorem good (n : ℕ) : CopyAngularInvariance.Invariant d.angular (a.globalGood s d n) := a.globalGood_invariant s d (fun n i => g.cutoff i n) (fun n i => g.amplitude i n) (fun n i => g.pressure i n) g.radius g.radial_base g.frequency_base g.axial_base g.radial_field (fun _ => CopyAngularInvariance.Invariant.const _) g.phase n theorem gaussian (hf : ∀ n, CopyAngularInvariance.Invariant d.angular (a.source n)) (n : ℕ) : CopyAngularInvariance.Invariant d.angular (a.globalGaussian d n) := a.globalGaussian_invariant d d.angular (fun n i => g.cutoff i n) (fun n i => g.amplitude i n) hf n end NativeAngularGeometry namespace PeriodizedSignedParameters variable {p : PeriodizedSignedParameters D I} {s : StripData D} {P : ℕ → D → ℝ} {κ β : ℝ} {h : p.NativeControl s P κ} {request : ℕ → D × ℝ → SignedWaveUpdate.Vec2} (d : NativeDynamics h request) (i₀ : I) theorem frame_common (p : PeriodizedSignedParameters D I) (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) {c : Context D} (hm : WaveFrameMatch c (HarmonicWaveInteraction.productStrip s) p.directions p.base) : WaveFrameMatch c (HarmonicWaveInteraction.productStrip s) p.directions ((p.copyData s request).commonCorrected (HarmonicWaveInteraction.productStrip s) p.directions) := ⟨hm.epsilon, hm.radius, hm.radial, hm.angular, hm.axial, hm.time, hm.radialBase, hm.angularBase, hm.axialBase⟩ theorem exactBlock_zero (p : PeriodizedSignedParameters D I) (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : HarmonicWaveInteraction.ZeroMode (p.exactBlock s request) := (SignedWaveUpdate.coefficientBlock_zero_coefficient _ _ _ _ _).1 theorem exactBlock_pressure_zero (p : PeriodizedSignedParameters D I) (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : ∀ n, (p.exactBlock s request).pressure n 0 = 0 := (SignedWaveUpdate.coefficientBlock_zero_coefficient _ _ _ _ _).2 end PeriodizedSignedParameters end PeriodizedSignedLinear section ParticularLinear open Set WeightedClasses HarmonicCalculus open ParticularWaveBounds LinearWaveBounds variable {D E : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] [NormedAddCommGroup E] [NormedSpace ℝ E] theorem harmonicResidual_reindex (e : D ≃ₗᵢ[ℝ] E) (a : WaveCoefficients E) (s : StripData E) (d : GraphDirections E) (n : ℕ) (x : D) : (reindexCoefficients e a).harmonicResidual (reindexStrip e s) (reindexDirections e d) n x = a.harmonicResidual s d n (e x) := by have ht : LinearWaveResidual.timeDirection ((reindexStrip e s).epsilon n) ((reindexDirections e d).fastField n) (fun _ => (reindexDirections e d).slow) = reindexVector e (LinearWaveResidual.timeDirection (s.epsilon n) (d.fastField n) (fun _ => d.slow)) := by funext y simp only [LinearWaveResidual.timeDirection, GraphDirections.fastField, reindexDirections, reindexStrip, reindexVector, map_sub, map_smul] unfold WaveCoefficients.harmonicResidual rw [reindex_radialField, reindex_axialField, ht] exact StateReindex.linearResidual_field_pull e (s.epsilon n) (a.radius n) (d.radialField n) (fun _ => d.angular) (d.axialField s n) (LinearWaveResidual.timeDirection (s.epsilon n) (d.fastField n) (fun _ => d.slow)) (LinearWaveResidual.complexBase (a.radius n) (a.radialBase n) (a.frequencyBase n) (a.axialBase n)) (vectorMode (a.frequency n) (a.phase n) (a.amplitude n)) (mode (a.frequency n) (a.phase n) (a.pressure n)) x open CorrectionState TorusInverse CommonCoverSolve ParticularWaveAssembly CopyAngularInvariance open scoped ContDiff BigOperators namespace ParticularParameters variable {Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] {p : ParticularParameters Q} {s : StripData (Q × Plane)} {c : Context (Q × Plane)} {u : State (Q × Plane)} {b : HarmonicBlock (Q × Plane)} {G A : HarmonicResidual.BlockCoefficients (Q × Plane)} {j : ℤ} {W : ℕ → (Q × ℝ) × Plane → ℝ} {α κ : ℝ} {h : p.NativeControl s c u b G A j W α κ} theorem NativeDynamics.frequency_ne (d : NativeDynamics h) (n : ℕ) : b.frequency n ≠ 0 := by intro hz exact d.frequency_nonzero n (by rw [hz, mul_zero]) theorem NativeDynamics.pressure_smooth (d : NativeDynamics h) (hκ : κ ≤ 1 / 2) (n : ℕ) : ContDiffOn ℝ ∞ (fun x => mode ((p.wave s c u b G A j).frequency n) ((p.wave s c u b G A j).phase n) ((p.wave s c u b G A j).pressure n) (angleShuffle x)) (HarmonicResidual.liftDomain s.domain) := by have hf := HarmonicCalculus.contDiffOn_mode ((j : ℝ) * b.frequency n) (d.background.phase_smooth n) ((h.global_bounds hκ).2.2.1.smooth n) exact hf.comp (angleShuffle (P := Q)).contDiff.contDiffOn (fun _ hx => hx.1) theorem angleStrip_nativeStrip (s : StripData (Q × Plane)) : reindexStrip angleShuffle (nativeStrip s) = HarmonicWaveInteraction.productStrip s := by cases s rfl theorem frame_wave (p : ParticularParameters Q) (s : StripData (Q × Plane)) (c : Context (Q × Plane)) (u : State (Q × Plane)) (b : HarmonicBlock (Q × Plane)) (G A : HarmonicResidual.BlockCoefficients (Q × Plane)) (j : ℤ) (hm : WaveFrameMatch c (HarmonicWaveInteraction.productStrip s) (reindexDirections angleShuffle p.directions) (reindexCoefficients angleShuffle p.background)) : WaveFrameMatch c (HarmonicWaveInteraction.productStrip s) (reindexDirections angleShuffle p.directions) (reindexCoefficients angleShuffle (p.wave s c u b G A j)) := ⟨hm.epsilon, hm.radius, hm.radial, hm.angular, hm.axial, hm.time, hm.radialBase, hm.angularBase, hm.axialBase⟩ theorem native_context_residual (p : ParticularParameters Q) (s : StripData (Q × Plane)) (c : Context (Q × Plane)) (u : State (Q × Plane)) (b : HarmonicBlock (Q × Plane)) (G A : HarmonicResidual.BlockCoefficients (Q × Plane)) (j : ℤ) (hm : WaveFrameMatch c (HarmonicWaveInteraction.productStrip s) (reindexDirections angleShuffle p.directions) (reindexCoefficients angleShuffle p.background)) (n : ℕ) (x : (Q × Plane) × ℝ) : (p.wave s c u b G A j).harmonicResidual (nativeStrip s) p.directions n (angleShuffle x) = LinearWaveResidual.linearResidual (c.operators.epsilon n) (fun y : (Q × Plane) × ℝ => c.operators.radius y.1) (radialDirection c n) angularDirection (axialDirection c n) (timeDirection c n) (complexBase c n) (fun y => vectorMode ((p.wave s c u b G A j).frequency n) ((p.wave s c u b G A j).phase n) ((p.wave s c u b G A j).amplitude n) (angleShuffle y)) (fun y => mode ((p.wave s c u b G A j).frequency n) ((p.wave s c u b G A j).phase n) ((p.wave s c u b G A j).pressure n) (angleShuffle y)) x := by rw [← harmonicResidual_reindex angleShuffle (p.wave s c u b G A j) (nativeStrip s) p.directions, angleStrip_nativeStrip, (p.frame_wave s c u b G A j hm).harmonicResidual] rfl variable (p : ParticularParameters Q) (s : StripData (Q × Plane)) (c : Context (Q × Plane)) (u : State (Q × Plane)) (b : HarmonicBlock (Q × Plane)) (G A : HarmonicResidual.BlockCoefficients (Q × Plane)) (N : ℕ) (C : ∀ j ∈ modes N, p.NativeControl s c u b G A j W α κ) (dyn : ∀ j hj, NativeDynamics (C j hj)) end ParticularParameters end ParticularLinear section SupportedWaveGain open Set Filter WeightedClasses MeanIncrementBounds CorrectionState open scoped ContDiff Topology variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] end SupportedWaveGain section ActualRecurrence open Set CorrectionState WeightedClasses open scoped BigOperators abbrev AxisymmetricAlias := ℕ → CyclePoint → Fin 3 → ℝ noncomputable def coefficientField (b : HarmonicBlock CyclePoint) (a : HarmonicResidual.BlockCoefficients CyclePoint) : Oscillation CyclePoint := fun n x i => (HarmonicFields.field (a n i) (b.frequency n) (b.phase n) (b.angularFrequency n) x).re /-- The axisymmetric alias is kept separately from the spatial labels. No slot support is imposed on a zero angular mode. -/ structure CycleRepresentation {ι : Type} (v : CycleCoefficients ι) (u : State CyclePoint) (axis : AxisymmetricAlias) : Prop where velocity : ∀ n x i, u.oscillation n x i = ∑ l ∈ v.labels n, (v.blocks l).oscillation n x i pressure : ∀ n x, u.oscillatoryPressure n x = ∑ l ∈ v.labels n, (v.blocks l).oscillatoryPressure n x gaussian : ∀ n x i, u.errors.gaussian n x i = ∑ l ∈ v.labels n, coefficientField (v.blocks l) (v.gaussian l) n x i aliasError : ∀ n x i, u.errors.aliasError n x i = (∑ l ∈ v.labels n, coefficientField (v.blocks l) (v.aliasCoefficients l) n x i) + axis n x.1 i /-- A common integer bound for stored coefficient values, including errors. -/ structure CoefficientBands {ι : Type} (v : CycleCoefficients ι) : Prop where velocityPressure : ∀ l, (v.blocks l).BandLimited v.residualBand gaussian : ∀ l n i, HarmonicFields.BandLimited (v.gaussian l n i) v.residualBand aliasError : ∀ l n i, HarmonicFields.BandLimited (v.aliasCoefficients l n i) v.residualBand namespace CycleParameters variable {ι : Type} (p : CycleParameters ι) (v : CycleCoefficients ι) (c : Context CyclePoint) (u : State CyclePoint) theorem particular_carrier (l : ι) : SameCarrier (v.blocks l) (p.particularBlock v c u l) := ⟨rfl,rfl,rfl⟩ theorem particularGaussian_carrier (l : ι) : SameCarrier (v.blocks l) (p.particularGaussianBlock v c u l) := ⟨rfl,rfl,rfl⟩ /-- The new nonzero harmonic data are literal sums of the old and constructed coefficients. All new mean aliases remain in the separate field. -/ noncomputable def nextCoefficients : CycleCoefficients ι where labels := v.labels blocks := p.finalBlock v c u gaussian := fun l => v.gaussian l + (p.particularGaussianBlock v c u l).velocity + (p.signedGaussianBlock v c u l).velocity aliasCoefficients := v.aliasCoefficients residualBand := 2 * max v.residualBand 1 noncomputable def nextAxisymmetricAlias (axis : AxisymmetricAlias) : AxisymmetricAlias := fun n x i => axis n x i + VariableGaugeMean.temporalAliasState p.gauge p.timeExponent p.commonIndex c (p.afterSigned v c u) n (x,0) i + (VariableGaugeMean.pressureAliasState p.gauge c (p.afterRank v c u) n (x,0) i - VariableGaugeMean.pressureAliasState p.gauge c u n (x,0) i) theorem finalBlock_oscillation (hc : ∀ l, SameCarrier (v.blocks l) (p.signedBlock v c u l)) (l : ι) : (p.finalBlock v c u l).oscillation = (v.blocks l).oscillation + (p.particularBlock v c u l).oscillation + (p.signedBlock v c u l).oscillation := by have hs : SameCarrier (addBlock (v.blocks l) (p.particularBlock v c u l)) (p.signedBlock v c u l) := ⟨(hc l).frequency,(hc l).phase,(hc l).angular⟩ rw [finalBlock, addBlock_oscillation _ _ hs, addBlock_oscillation _ _ (p.particular_carrier v c u l)] theorem finalBlock_pressure (hc : ∀ l, SameCarrier (v.blocks l) (p.signedBlock v c u l)) (l : ι) : (p.finalBlock v c u l).oscillatoryPressure = (v.blocks l).oscillatoryPressure + (p.particularBlock v c u l).oscillatoryPressure + (p.signedBlock v c u l).oscillatoryPressure := by have hs : SameCarrier (addBlock (v.blocks l) (p.particularBlock v c u l)) (p.signedBlock v c u l) := ⟨(hc l).frequency,(hc l).phase,(hc l).angular⟩ rw [finalBlock, addBlock_pressure _ _ hs, addBlock_pressure _ _ (p.particular_carrier v c u l)] theorem nextCoefficients_gaussian_field (hc : ∀ l, SameCarrier (v.blocks l) (p.signedBlock v c u l)) (l : ι) (n : ℕ) (x : CyclePoint × ℝ) (i : Fin 3) : coefficientField ((p.nextCoefficients v c u).blocks l) ((p.nextCoefficients v c u).gaussian l) n x i = coefficientField (v.blocks l) (v.gaussian l) n x i + (p.particularGaussianBlock v c u l).oscillation n x i + (p.signedGaussianBlock v c u l).oscillation n x i := by have hs : SameCarrier (v.blocks l) (p.signedGaussianBlock v c u l) := ⟨(hc l).frequency,(hc l).phase,(hc l).angular⟩ have hp := p.particularGaussian_carrier v c u l change (HarmonicFields.field (v.gaussian l n i + (p.particularGaussianBlock v c u l).velocity n i + (p.signedGaussianBlock v c u l).velocity n i) ((v.blocks l).frequency n) ((v.blocks l).phase n) ((v.blocks l).angularFrequency n) x).re = _ rw [HarmonicResidual.field_add, HarmonicResidual.field_add, Complex.add_re, Complex.add_re] simp only [coefficientField, HarmonicBlock.oscillation, hp.frequency, hp.phase, hp.angular, hs.frequency, hs.phase, hs.angular] theorem next_representation {axis : AxisymmetricAlias} (hrep : CycleRepresentation v u axis) (hc : ∀ l, SameCarrier (v.blocks l) (p.signedBlock v c u l)) : CycleRepresentation (p.nextCoefficients v c u) (p.next v c u) (p.nextAxisymmetricAlias v c u axis) := by constructor · intro n x i rw [p.next_oscillation] simp only [Pi.add_apply, hrep.velocity n x i, particularVelocity, signedVelocity, LabelSumBounds.fieldSum, nextCoefficients, p.finalBlock_oscillation v c u hc, Finset.sum_add_distrib] · intro n x rw [p.next_oscillatoryPressure] simp only [Pi.add_apply, hrep.pressure n x, particularPressure, signedPressure, nextCoefficients, p.finalBlock_pressure v c u hc, Finset.sum_add_distrib] · intro n x i rw [p.next_gaussian_error] simp only [Pi.add_apply, hrep.gaussian n x i, particularGaussian, signedGaussian, LabelSumBounds.fieldSum, p.nextCoefficients_gaussian_field v c u hc, show (p.nextCoefficients v c u).labels = v.labels from rfl, Finset.sum_add_distrib] · intro n x i rw [p.next_alias_error] simp only [Pi.add_apply, Pi.sub_apply, hrep.aliasError n x i, nextCoefficients, coefficientField, finalBlock, addBlock, nextAxisymmetricAlias] simp only [VariableGaugeMean.temporalAliasState, VariableGaugeMean.pressureAliasState] ring theorem next_coefficient_bands (h : CoefficientBands v) : CoefficientBands (p.nextCoefficients v c u) := by have hn : max v.residualBand 1 ≤ 2 * max v.residualBand 1 := by omega have hb l : (p.finalBlock v c u l).BandLimited (max v.residualBand 1) := by simpa only [max_self] using p.finalBlock_band v c u h.velocityPressure l have hg l n i : HarmonicFields.BandLimited ((p.nextCoefficients v c u).gaussian l n i) (max v.residualBand 1) := by exact (((h.gaussian l n i).mono (le_max_left _ _)).add (((p.particularGaussianBlock_band v c u l).1 n i).mono (le_max_left _ _))).add ((((p.signed l).gaussianBlock_band p.strip (p.signedRequest v c u)).1 n i).mono (le_max_right _ _)) exact ⟨fun l => ⟨fun n i => ((hb l).1 n i).mono hn, fun n => ((hb l).2 n).mono hn⟩, fun l n i => (hg l n i).mono hn, fun l n i => (h.aliasError l n i).mono ((le_max_left _ _).trans hn)⟩ /-- The residual value bound of the next actual state is derived from stored coefficient bands, independently of a norm estimate. -/ theorem next_residual_band (h : CoefficientBands v) (l : ι) : (HarmonicResidual.residualBlock c (p.next v c u) ((p.nextCoefficients v c u).blocks l) ((p.nextCoefficients v c u).gaussian l) ((p.nextCoefficients v c u).aliasCoefficients l)).BandLimited (p.nextCoefficients v c u).residualBand := by have hb : (p.finalBlock v c u l).BandLimited (max v.residualBand 1) := by simpa only [max_self] using p.finalBlock_band v c u h.velocityPressure l have hg n i : HarmonicFields.BandLimited ((p.nextCoefficients v c u).gaussian l n i) (max v.residualBand 1) := by exact (((h.gaussian l n i).mono (le_max_left _ _)).add (((p.particularGaussianBlock_band v c u l).1 n i).mono (le_max_left _ _))).add ((((p.signed l).gaussianBlock_band p.strip (p.signedRequest v c u)).1 n i).mono (le_max_right _ _)) have ha n i : HarmonicFields.BandLimited ((p.nextCoefficients v c u).aliasCoefficients l n i) (max v.residualBand 1) := (h.aliasError l n i).mono (le_max_left _ _) have he := HarmonicResidual.residualBlock_band c (p.next v c u) (p.finalBlock v c u l) ((p.nextCoefficients v c u).gaussian l) ((p.nextCoefficients v c u).aliasCoefficients l) hb hg ha have hn : max (max v.residualBand 1 + max v.residualBand 1) (max v.residualBand 1) = 2 * max v.residualBand 1 := by omega simp only [hn] at he exact he end CycleParameters /-- The represented state and its literal coefficient data evolve together. -/ structure CycleState (ι : Type) where state : State CyclePoint coefficients : CycleCoefficients ι axisymmetricAlias : AxisymmetricAlias namespace CycleState variable {ι : Type} noncomputable def step (p : CycleParameters ι) (c : Context CyclePoint) (u : CycleState ι) : CycleState ι where state := p.next u.coefficients c u.state coefficients := p.nextCoefficients u.coefficients c u.state axisymmetricAlias := p.nextAxisymmetricAlias u.coefficients c u.state u.axisymmetricAlias noncomputable def iterate (p : ℕ → CycleParameters ι) (c : Context CyclePoint) (seed : CycleState ι) : ℕ → CycleState ι | 0 => seed | n + 1 => (iterate p c seed n).step (p n) c theorem iterate_zero (p : ℕ → CycleParameters ι) (c : Context CyclePoint) (seed : CycleState ι) : iterate p c seed 0 = seed := rfl theorem iterate_succ (p : ℕ → CycleParameters ι) (c : Context CyclePoint) (seed : CycleState ι) (n : ℕ) : iterate p c seed (n+1) = (iterate p c seed n).step (p n) c := rfl theorem iterate_representation (p : ℕ → CycleParameters ι) (c : Context CyclePoint) (seed : CycleState ι) (hseed : CycleRepresentation seed.coefficients seed.state seed.axisymmetricAlias) (hc : ∀ n l, let v := iterate p c seed n SameCarrier (v.coefficients.blocks l) ((p n).signedBlock v.coefficients c v.state l)) : ∀ n, let v := iterate p c seed n CycleRepresentation v.coefficients v.state v.axisymmetricAlias := by intro n induction n with | zero => exact hseed | succ n ih => exact (p n).next_representation (iterate p c seed n).coefficients c (iterate p c seed n).state ih (hc n) theorem iterate_bands (p : ℕ → CycleParameters ι) (c : Context CyclePoint) (seed : CycleState ι) (hseed : CoefficientBands seed.coefficients) : ∀ n, CoefficientBands (iterate p c seed n).coefficients := by intro n induction n with | zero => exact hseed | succ n ih => exact (p n).next_coefficient_bands (iterate p c seed n).coefficients c (iterate p c seed n).state ih end CycleState end ActualRecurrence section PeriodizedCurl open Set Filter WeightedClasses HarmonicCalculus CorrectionState open scoped ContDiff Topology InnerProductSpace variable {D I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] theorem cylindricalDivergence_reindex {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] (e : D ≃ₗᵢ[ℝ] E) (R : E → ℝ) (Vr Vθ Vz : E → E) (a : E → ComplexVector) (x : D) : cylindricalDivergence (fun y => R (e y)) (StateReindex.vector e Vr) (StateReindex.vector e Vθ) (StateReindex.vector e Vz) (fun y => a (e y)) x = cylindricalDivergence R Vr Vθ Vz a (e x) := by simp only [cylindricalDivergence, StateReindex.along_pull_component] namespace PeriodizedSignedParameters variable {p : PeriodizedSignedParameters D I} {s : StripData D} {P : ℕ → D → ℝ} {κ β : ℝ} (h : p.NativeControl s P κ) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) variable {h request} end PeriodizedSignedParameters open CommonCoverSolve TorusInverse ParticularWaveAssembly ParticularWaveBounds LinearWaveBounds namespace ParticularParameters variable {Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] {p : ParticularParameters Q} {s : StripData (Q × Plane)} {c : Context (Q × Plane)} {u : State (Q × Plane)} {b : HarmonicBlock (Q × Plane)} {G A : HarmonicResidual.BlockCoefficients (Q × Plane)} {j : ℤ} {W : ℕ → (Q × ℝ) × Plane → ℝ} {α κ : ℝ} (h : p.NativeControl s c u b G A j W α κ) variable {h} theorem native_context_divergence (p : ParticularParameters Q) (s : StripData (Q × Plane)) (c : Context (Q × Plane)) (hm : WaveFrameMatch c (HarmonicWaveInteraction.productStrip s) (reindexDirections angleShuffle p.directions) (reindexCoefficients angleShuffle p.background)) (a : ((Q × ℝ) × Plane) → ComplexVector) (n : ℕ) (x : (Q × Plane) × ℝ) : cylindricalDivergence (fun y => c.operators.radius y.1) (radialDirection c n) angularDirection (axialDirection c n) (fun y => a (angleShuffle y)) x = cylindricalDivergence (p.background.radius n) (p.directions.radialField n) (fun _ => p.directions.angular) (p.directions.axialField (nativeStrip s) n) a (angleShuffle x) := by have hr : StateReindex.vector (angleShuffle (P := Q)) (p.directions.radialField n) = radialDirection c n := (reindex_radialField (angleShuffle (P := Q)) p.directions n).symm.trans (hm.radial n) have hz : StateReindex.vector (angleShuffle (P := Q)) (p.directions.axialField (nativeStrip s) n) = axialDirection c n := by change reindexVector (angleShuffle (P := Q)) (p.directions.axialField (nativeStrip s) n) = _ rw [← reindex_axialField (angleShuffle (P := Q)) p.directions (nativeStrip s) n, angleStrip_nativeStrip] exact hm.axial n have hθ : StateReindex.vector (angleShuffle (P := Q)) (fun _ => p.directions.angular) = angularDirection (D := Q × Plane) := by funext y exact hm.angular have hR : (fun y => p.background.radius n (angleShuffle y)) = (fun y : (Q × Plane) × ℝ => c.operators.radius y.1) := hm.radius n have he := cylindricalDivergence_reindex (angleShuffle (P := Q)) (p.background.radius n) (p.directions.radialField n) (fun _ => p.directions.angular) (p.directions.axialField (nativeStrip s) n) a x rw [hr, hz, hθ, hR] at he exact he variable (p : ParticularParameters Q) (s : StripData (Q × Plane)) (c : Context (Q × Plane)) (u : State (Q × Plane)) (b : HarmonicBlock (Q × Plane)) (G A : HarmonicResidual.BlockCoefficients (Q × Plane)) (N : ℕ) (C : ∀ j ∈ modes N, p.NativeControl s c u b G A j W α κ) (dyn : ∀ j hj, NativeDynamics (C j hj)) end ParticularParameters end PeriodizedCurl section UniformCycleGains open Set Filter WeightedClasses MeanIncrementBounds CorrectionState open LabelSumBounds UniformHarmonicInteraction open scoped ContDiff Topology variable {D ι : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] /-- Coefficient extraction preserves constants chosen before the spatial label. The identity concerns the actual linear field and retained Gaussian. -/ theorem linearGoodBlock_cancel_uniform {s : StripData D} {P : ι → ℕ → D → ℝ} {γ : ℝ} (c : Context D) (a b source good : ι → HarmonicBlock D) (g : ι → HarmonicResidual.BlockCoefficients D) (hr : ∀ n, ContDiffOn ℝ ∞ (HarmonicResidual.contextFrame c n).radial s.domain) (hz : ∀ n, ContDiffOn ℝ ∞ (HarmonicResidual.contextFrame c n).axial s.domain) (hB : SmoothTriple s.domain c.base) (hb : ∀ l n i, HarmonicResidual.SmoothCoefficients s.domain ((b l).velocity n i)) (hp : ∀ l n, HarmonicResidual.SmoothCoefficients s.domain ((b l).pressure n)) (hΦ : ∀ l n, ContDiffOn ℝ ∞ ((a l).phase n) s.domain) (hkp : ∀ l n, (a l).angularFrequency n ≠ 0) (hs : ∀ l n i, HarmonicFields.ConjugateSymmetric ((source l).velocity n i)) (hg : ∀ l n i, HarmonicFields.ConjugateSymmetric ((good l).velocity n i)) (hgood : UniformVelocity s P γ good) (hcancel : ∀ l n x, x ∈ s.domain → ∀ θ i, linearBlockField c (a l) (b l) n (x,θ) i + (HarmonicWaveInteraction.withCarrier (a l) (source l)).oscillation n (x,θ) i = (HarmonicWaveInteraction.withCarrier (a l) (good l)).oscillation n (x,θ) i + (HarmonicFields.field (g l n i) ((a l).frequency n) ((a l).phase n) ((a l).angularFrequency n) (x,θ)).re) : ∀ i j, j ≠ 0 → UniformWaveClass s P γ (fun l n x => (source l).velocity n i j x + (HarmonicWaveInteraction.linearGoodBlock c (a l) (b l) (g l)).velocity n i j x) := by intro i j hj apply (hgood i j hj).congr intro l n x hx exact (linearGoodBlock_cancel s.isOpen_domain c (a l) (b l) (source l) (good l) (g l) n (hr n) (hz n) (fun k => HarmonicMeanInteraction.tripleField_smooth hB n k) (hb l n) (hp l n) (hΦ l n) (hkp l n) (hs l n) (hg l n) hx j hj i (fun θ => hcancel l n x hx θ i)).symm /-- The exact nonlinear update preserves the joint label/band estimate. All three wave products and the support-local mean interaction are retained. -/ theorem waveStage_residual_uniform {s : StripData D} {P : ι → ℕ → D → ℝ} {κ α β H γ : ℝ} {C : ℕ → ι → Set D} (c : Context D) (ho : OperatorBounds s c.operators κ) (hκ : κ ≤ 1 / 2) (hR : ∀ x ∈ s.domain, 0 < c.operators.radius x) (u v : State D) (hmean : v.mean = u.mean) (hm : IncrementBounds s H u.mean) (hbase : SmoothTriple s.domain c.base) (a b : ι → HarmonicBlock D) {M N : ℕ} (ha : UniformVelocity s P α a) (hb : UniformVelocity s P β b) (ha0 : ∀ l, HarmonicWaveInteraction.ZeroMode (a l)) (hb0 : ∀ l, HarmonicWaveInteraction.ZeroMode (b l)) (hM : ∀ l, (a l).BandLimited M) (hN : ∀ l, (b l).BandLimited N) (hΦ : ∀ l n, ContDiffOn ℝ ∞ ((a l).phase n) s.domain) (hk : ∀ l n, (a l).frequency n ≠ 0) (hkp : ∀ l n, (a l).angularFrequency n ≠ 0) (hda : ∀ l, HarmonicWaveInteraction.ModeSolenoidal s c (a l)) (hdb : ∀ l, HarmonicWaveInteraction.ModeSolenoidal s c (HarmonicWaveInteraction.withCarrier (a l) (b l))) (hNormal : ∀ i, LocalizedWaveBounds.LocalUnweighted s C 0 (fun n l x => HarmonicMeanInteraction.slowNormal c ho hR (a l).phase n x i)) (hFreq : LocalizedWaveBounds.LocalUnweighted s C (-(1/2)) (fun n l _ => (a l).frequency n)) (hAng : LocalizedWaveBounds.LocalUnweighted s C (-(1/2)) (fun n l _ => ((a l).angularFrequency n : ℝ))) (hz : ∀ n l x, x ∈ s.domain → x ∉ C n l → ∀ i j, j ≠ 0 → (b l).velocity n i j =ᶠ[𝓝 x] fun _ => 0) (hP0 : ∀ l n x, x ∈ s.domain → 0 ≤ P l n x) (hP1 : ∀ l n x, x ∈ s.domain → P l n x ≤ 1) (hpa : ∀ l n, HarmonicResidual.SmoothCoefficients s.domain ((a l).pressure n)) (hpb : ∀ l n, HarmonicResidual.SmoothCoefficients s.domain ((b l).pressure n)) (G g A₀ A₁ : ι → HarmonicResidual.BlockCoefficients D) (hA : ∀ l n i, HarmonicFields.BandLimited (A₁ l n i - A₀ l n i) 0) (hlinear : ∀ i j, j ≠ 0 → UniformWaveClass s P γ (fun l n x => (HarmonicResidual.residualBlock c u (a l) (G l) (A₀ l)).velocity n i j x + (HarmonicWaveInteraction.linearGoodBlock c (a l) (b l) (g l)).velocity n i j x)) (hγm : γ ≤ β + H - 1/2) (hγc : γ ≤ α + β - κ) (hγs : γ ≤ 2*β - κ) : UniformVelocity s P γ (fun l => HarmonicResidual.residualBlock c v (HarmonicWaveInteraction.addBlock (a l) (b l)) (G l + g l) (A₁ l)) := by have hca l := block_waveBounds_all (a l) (waveBounds_each ha l) (ha0 l) (hP0 l) have hcb l := block_waveBounds_all (b l) (waveBounds_each hb l) (hb0 l) (hP0 l) intro i j hj have hnon := UniformHarmonicInteraction.interactionBlock_uniform c ho hκ hR hm ha hb ha0 hb0 hM hN hΦ hk hda hdb hNormal hFreq hAng hz hP0 hP1 hj i apply ((hlinear i j hj).add (hnon.mono_exponent (le_min hγm (le_min hγc hγs)))).congr intro l n x hx have hr : ContDiffOn ℝ ∞ (HarmonicResidual.contextFrame c n).radial s.domain := contDiffOn_const.add ((contDiffOn_const.mul (ho.radialProfile.smooth 0)).smul contDiffOn_const) have he := HarmonicWaveInteraction.residualBlock_wave_update_split s.isOpen_domain c u v hmean (a l) (b l) (G l) (g l) (A₀ l) (A₁ l) (hA l) n hr contDiffOn_const (hΦ l n) (hkp l n) (fun k => HarmonicMeanInteraction.tripleField_smooth hbase n k) (fun k => HarmonicMeanInteraction.tripleField_smooth hm.smooth n k) (fun k m => (hca l k m).smooth n) (fun k m => (hcb l k m).smooth n) (hpa l n) (hpb l n) hx j i change _ = _ at he linear_combination -he /-- The unchanged oscillation retains a uniform residual estimate after an actual mean increment; pressure recomputation and axisymmetric aliases may change freely. -/ theorem meanStage_residual_uniform {s : StripData D} {P : ι → ℕ → D → ℝ} {κ α H γ : ℝ} {C : ℕ → ι → Set D} (c : Context D) (ho : OperatorBounds s c.operators κ) (hκ : κ ≤ 1/2) (hR : ∀ x ∈ s.domain, 0 < c.operators.radius x) (u v : State D) (h : Triple D) (he : v.mean = updated u.mean h) (hbase : SmoothTriple s.domain c.base) (hm : SmoothTriple s.domain u.mean) (hh : IncrementBounds s H h) (b : ι → HarmonicBlock D) (hb : UniformVelocity s P α b) (hNormal : ∀ i, LocalizedWaveBounds.LocalUnweighted s C 0 (fun n l x => HarmonicMeanInteraction.slowNormal c ho hR (b l).phase n x i)) (hFreq : LocalizedWaveBounds.LocalUnweighted s C (-(1/2)) (fun n l _ => (b l).frequency n)) (hAng : LocalizedWaveBounds.LocalUnweighted s C (-(1/2)) (fun n l _ => ((b l).angularFrequency n : ℝ))) (hz : ∀ n l x, x ∈ s.domain → x ∉ C n l → ∀ i j, j ≠ 0 → (b l).velocity n i j =ᶠ[𝓝 x] fun _ => 0) (G A₀ A₁ : ι → HarmonicResidual.BlockCoefficients D) (hA : ∀ l n i, HarmonicFields.BandLimited (A₁ l n i - A₀ l n i) 0) (hold : UniformVelocity s P γ (fun l => HarmonicResidual.residualBlock c u (b l) (G l) (A₀ l))) (hγ : γ ≤ α + H - 1/2) : UniformVelocity s P γ (fun l => HarmonicResidual.residualBlock c v (b l) (G l) (A₁ l)) := by intro i j hj have hdelta := LocalizedMeanInteraction.uniform_realMeanCross_class c ho hκ hR hh hb hNormal hFreq hAng hz hj i apply ((hold i j hj).add (hdelta.mono_exponent hγ)).congr intro l n x hx have hm' := (s.isOpen_domain.mem_nhds hx) have hd := HarmonicMeanInteraction.residualBlock_axisymmetric_alias_update c u v h he (b l) (G l) (A₀ l) (A₁ l) (hA l) n (fun k => ((HarmonicMeanInteraction.tripleField_smooth hbase n k).contDiffAt hm').differentiableAt (by simp)) (fun k => ((HarmonicMeanInteraction.tripleField_smooth hm n k).contDiffAt hm').differentiableAt (by simp)) (fun k => ((HarmonicMeanInteraction.tripleField_smooth hh.smooth n k).contDiffAt hm').differentiableAt (by simp)) hj i change _ = _ at hd linear_combination -hd end UniformCycleGains section ConstructedWaveGains open Set Filter WeightedClasses MeanIncrementBounds CorrectionState open HarmonicCalculus ParticularWaveAssembly ParticularWaveBounds open scoped ContDiff Topology InnerProductSpace variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] theorem meanIncrement_of_cumulative {s : StripData D} {m : Triple D} (h : MeanIncrementBounds.CumulativeBounds s m) : IncrementBounds s (9/10) m := ⟨by convert! h.radial using 1; norm_num, h.angular, h.axial⟩ namespace ParticularParameters open TorusInverse variable {Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] end ParticularParameters namespace PeriodizedSignedParameters variable {I : Type} {p : PeriodizedSignedParameters D I} {s : StripData D} {P : ℕ → D → ℝ} {B κ : ℝ} {h : p.NativeControl s P κ} {request : ℕ → D × ℝ → SignedWaveUpdate.Vec2} end PeriodizedSignedParameters end ConstructedWaveGains section ConstructedWaveMeans open Set Filter WeightedClasses MeanIncrementBounds CorrectionState VariableGaugeMean LocalSignedRequest open scoped ContDiff BigOperators Topology section CovarianceAssembly variable {D ι : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] theorem assembledCovarianceIncrement_mem {s : StripData D} {P : ι → ℕ → D → ℝ} {α β : ℝ} (hαβ : α ≤ β) {d h : ℝ} {vr vt : TorusInverse.Plane} {sys : PartitionedCovariance.SlotSystem d h vr vt} (labels : ℕ → Finset ι) (label : ℕ → ι → SlotColoring.Label) (hinj : ∀ n, Set.InjOn (label n) (labels n : Set ι)) (hlevel : ∀ n l, l ∈ labels n → 1 ≤ (label n l).1) (χ : ℕ → D → LabelSumBounds.WindowPoint) (hχ : ∀ n, ContinuousOn (χ n) s.domain) (Y : ℕ → D → TorusInverse.Plane) (a b : ι → HarmonicBlock D) (N : ℕ) (hNa : ∀ l, (a l).BandLimited N) (hNb : ∀ l, (b l).BandLimited N) (hcarrier : ∀ l, LabelSumBounds.SameCarrier (a l) (b l)) (ha : UniformHarmonicInteraction.UniformVelocity s P α a) (hb : UniformHarmonicInteraction.UniformVelocity s P β b) (ha0 : ∀ l, HarmonicWaveInteraction.ZeroMode (a l)) (hb0 : ∀ l, HarmonicWaveInteraction.ZeroMode (b l)) (hP0 : ∀ l n x, x ∈ s.domain → 0 ≤ P l n x) (hP1 : ∀ l n x, x ∈ s.domain → P l n x ≤ 1) (hkp : ∀ l n, (a l).angularFrequency n ≠ 0) (hsu : LabelSumBounds.SupportedOscillations sys label χ Y s.domain (fun l => (a l).oscillation)) (hsv : LabelSumBounds.SupportedOscillations sys label χ Y s.domain (fun l => (b l).oscillation)) (u : State D) (hrep : u.oscillation = LabelSumBounds.fieldSum labels (fun l => (a l).oscillation)) : SignedMeanGain.TensorClass s (α + β) (SignedMeanGain.covarianceIncrement u.oscillation (LabelSumBounds.fieldSum labels (fun l => (b l).oscillation))) := by rw [hrep] exact fun i j => LabelSumBounds.harmonic_covariance_increment_sum_mem hαβ labels label hinj hlevel χ hχ Y a b N hNa hNb hcarrier (LabelSumBounds.uniform_coefficients_of_nonzero a ha ha0 hP0) (LabelSumBounds.uniform_coefficients_of_nonzero b hb hb0 hP0) hP0 hP1 hkp hsu hsv i j end CovarianceAssembly section WavePressureDebt variable {coord cL cR : ℝ} (U : SlowRegion coord) (g : GaugeData PressureStream.Plane) (ha : 0 < g.radial.inner) (hd : 0 < g.radial.exponent) (hcL : 0 < cL) (hcR : 0 < cR) (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) (hell : ∀ n, g.length n = qLength coord) local notation "st" => movingStripData U g.radial.inner g.radial.outer cL cR ha hcL hcR ε L hε hεone hL local notation "ss" => PhysicalMeanDomain.localSlowStripData U.carrier U.isOpen ε L hε hεone hL variable (c : Context Point) (u : State Point) (w : Oscillation Point) (q : OscillatoryScalar Point) (gaussian : Oscillation Point) (hop : LocalRankDefect.LocalOperators U.carrier c.operators) (hbase : SmoothTriple (LocalRankDefect.positiveDomain U.carrier) c.base) (hm : GaugeDebtIncrement.RegularTriple U g.radial.inner g.radial.outer u.mean) (hW : ∀ i j, GaugeDebtIncrement.Regular U g.radial.inner g.radial.outer (u.covariance i j)) (hX : ∀ i j, GaugeDebtIncrement.Regular U g.radial.inner g.radial.outer (SignedMeanGain.covarianceIncrement u.oscillation w i j)) {κ α : ℝ} (ho : OperatorBounds (movingStripData U g.radial.inner g.radial.outer cL cR ha hcL hcR ε L hε hεone hL) c.operators κ) (hcX : SignedMeanGain.TensorClass (movingStripData U g.radial.inner g.radial.outer cL cR ha hcL hcR ε L hε hεone hL) α (SignedMeanGain.covarianceIncrement u.oscillation w)) include hd hell hop hbase hm hW hX ho hcX in theorem gaugeWaveStage_pressure_from_covariance (hfixed : (reconstructState g c u).pressure = u.pressure) : MeanClass st (α-κ) (SignedMeanGain.pressureChange g c u w q gaussian) := by let v := SignedMeanGain.waveStage g c u w q gaussian have hmu := GaugeDebtIncrement.waveStage_mean_regular U g c u w q gaussian hm have hvW := GaugeDebtIncrement.waveStage_covariance_regular U g c u w q gaussian hW hX have hgu := hm.gr ha g.radial.inner_lt_outer hbase hop u.covariance hW have hgv := hmu.gr ha g.radial.inner_lt_outer hbase hop v.covariance hvW have hgr : MeanClass st (α-κ) (v.gr c - u.gr c) := by apply class_congr (SignedMeanGain.radialCovarianceChange_mem ho hcX) intro n x hx exact GaugeDebtIncrement.waveStage_gr_agree U ha g.radial.inner_lt_outer g c u w q gaussian hop hbase hm hW hX n hx.1 have hp := reconstructState_pressure_change_class U g ha hd hcL hcR ε L hε hεone hL hell c v u hgv.smooth hgu.smooth hgv.supported hgu.supported hgr simp only [hfixed] at hp exact hp include hd hell hop hbase hm hW hX ho hcX in theorem gaugeWaveStage_mean_from_covariance (hfixed : (reconstructState g c u).pressure = u.pressure) (hb : BaseBounds st c.base) (hu : CorrectionState.CumulativeBounds st u) (hα : 9/10 ≤ α-κ) {β : ℝ} (hβ : β ≤ α-κ) (hθ : MeanClass st β (u.thetaResidual c)) (hz : MeanClass st β (u.axialResidual c)) (hdebt : ∀ i : Fin 3, UnweightedClass ss β (fun n x => debt c u n x i)) : let v := SignedMeanGain.waveStage g c u w q gaussian MeanClass st (α-κ) (SignedMeanGain.pressureChange g c u w q gaussian) ∧ CorrectionState.CumulativeBounds st v ∧ MeanClass st β (v.thetaResidual c) ∧ MeanClass st β (v.axialResidual c) ∧ (∀ i : Fin 3, UnweightedClass ss β (fun n x => debt c v n x i)) := by let v := SignedMeanGain.waveStage g c u w q gaussian have hp := gaugeWaveStage_pressure_from_covariance U g ha hd hcL hcR ε L hε hεone hL hell c u w q gaussian hop hbase hm hW hX ho hcX hfixed have hWs : ∀ i j, SmoothOn (st).domain (u.covariance i j) := fun i j n => ((hW i j).smooth n).mono (fun _ hx => hx.1) have ht : MeanClass st (α-κ) (v.thetaResidual c - u.thetaResidual c) := by apply class_congr (SignedMeanGain.thetaCovarianceChange_mem ho hcX) exact SignedMeanGain.waveStage_theta_change (st).isOpen_domain g c u w q gaussian hb.smooth hu.velocity.smooth hWs (fun i j => (hcX i j).smooth) have hz' : MeanClass st (α-κ) (v.axialResidual c - u.axialResidual c) := by apply class_congr ((SignedMeanGain.axialCovarianceChange_mem ho hcX).add ((ho.dz hp).mono_exponent (by linarith))) exact SignedMeanGain.waveStage_axial_change (st).isOpen_domain g c u w q gaussian hb.smooth hu.velocity.smooth hWs (fun i j => (hcX i j).smooth) hu.pressure.smooth hp.smooth refine ⟨hp, gaugeWaveStage_cumulative g c u w q ⟨0,gaussian,0⟩ hu hp hα, ?_, ?_, ?_⟩ · apply class_congr (hθ.add (ht.mono_exponent hβ)) intro n x hx change v.thetaResidual c n x = u.thetaResidual c n x + (v.thetaResidual c n x - u.thetaResidual c n x) ring · apply class_congr (hz.add (hz'.mono_exponent hβ)) intro n x hx change v.axialResidual c n x = u.axialResidual c n x + (v.axialResidual c n x - u.axialResidual c n x) ring · exact GaugeDebtIncrement.debt_mem_after_change ss c u v le_rfl hβ hdebt (GaugeDebtIncrement.waveStage_debt_change_mem U ha g.radial.inner_lt_outer hcL hcR ε L hε hεone hL g c u w q gaussian hop hbase hm hW hX ho hcX) end WavePressureDebt end ConstructedWaveMeans section CycleSignedFamily open Set Filter WeightedClasses MeanIncrementBounds CorrectionState open scoped ContDiff Topology BigOperators namespace CycleParameters variable {ι : Type} (p : CycleParameters ι) (v : CycleCoefficients ι) (c : Context CyclePoint) (u : State CyclePoint) noncomputable def beforeSignedBlock (l : ι) : HarmonicBlock CyclePoint := addBlock (v.blocks l) (p.particularBlock v c u l) noncomputable def signedTangent (l : ι) : HarmonicBlock CyclePoint := (p.signed l).tangentBlock p.strip (p.signedRequest v c u) noncomputable def signedCurl (l : ι) : HarmonicBlock CyclePoint := (p.signed l).curlBlock p.strip (p.signedRequest v c u) theorem beforeSignedBlock_represents {axis : AxisymmetricAlias} (hrep : CycleRepresentation v u axis) : (p.afterParticular v c u).oscillation = LabelSumBounds.fieldSum v.labels (fun l => (p.beforeSignedBlock v c u l).oscillation) := by funext n x i change u.oscillation n x i + p.particularVelocity v c u n x i = _ rw [hrep.velocity n x i] simp only [beforeSignedBlock, addBlock_oscillation _ _ (p.particular_carrier v c u _), LabelSumBounds.fieldSum, particularVelocity, Pi.add_apply, Finset.sum_add_distrib] theorem signedVelocity_split : p.signedVelocity v c u = LabelSumBounds.fieldSum v.labels (fun l => (p.signedTangent v c u l).oscillation) + LabelSumBounds.fieldSum v.labels (fun l => (p.signedCurl v c u l).oscillation) := by funext n x i simp only [signedVelocity, signedBlock, signedTangent, signedCurl, PeriodizedSignedParameters.exactBlock_split, LabelSumBounds.fieldSum, Pi.add_apply, Finset.sum_add_distrib] private theorem block_band_mono {b : HarmonicBlock CyclePoint} {N M : ℕ} (h : b.BandLimited N) (hle : N ≤ M) : b.BandLimited M := ⟨fun n i => (h.1 n i).mono hle, fun n => (h.2 n).mono hle⟩ /-- The family in the signed covariance identity is computed from the current cycle, including its actual particular increment and signed curl. -/ noncomputable def signedFamily (primary : ι → HarmonicBlock CyclePoint) (P : ι → ℕ → CyclePoint → ℝ) {σ κ : ℝ} (hσ : 1/5 ≤ σ) (N : ℕ) (hprimary : ∀ l, (primary l).BandLimited N) (hband : CoefficientBands v) (hcp : ∀ l, SameCarrier (v.blocks l) (primary l)) (hcs : ∀ l, SameCarrier (v.blocks l) (p.signedBlock v c u l)) (hold : ∀ i j, LabelSumBounds.UniformWaveClass p.strip P (1/2) (fun l n x => (v.blocks l).velocity n i j x)) (hdiff : ∀ i j, LabelSumBounds.UniformWaveClass p.strip P (17/25) (fun l n x => (v.blocks l).velocity n i j x - (primary l).velocity n i j x)) (hpart : ∀ i j, LabelSumBounds.UniformWaveClass p.strip P (1/2+σ) (fun l n x => (p.particularBlock v c u l).velocity n i j x)) (htangent : ∀ i j, LabelSumBounds.UniformWaveClass p.strip P (1/2+σ-κ) (fun l n x => (p.signedTangent v c u l).velocity n i j x)) (hcurl : ∀ i j, LabelSumBounds.UniformWaveClass p.strip P (1+σ-2*κ) (fun l n x => (p.signedCurl v c u l).velocity n i j x)) (hP0 : ∀ l n x, x ∈ p.strip.domain → 0 ≤ P l n x) (hP1 : ∀ l n x, x ∈ p.strip.domain → P l n x ≤ 1) (hkp : ∀ l n, (v.blocks l).angularFrequency n ≠ 0) : LabelSumBounds.SignedFamily p.strip P (1/2) (17/25) (1/2+σ-κ) (1+σ-2*κ) where primary := primary old := p.beforeSignedBlock v c u tangent := p.signedTangent v c u curl := p.signedCurl v c u bandwidth := max (max N v.residualBand) 1 primary_band l := block_band_mono (hprimary l) ((le_max_left _ _).trans (le_max_left _ _)) old_band l := block_band_mono (show (p.beforeSignedBlock v c u l).BandLimited v.residualBand from by have hb := addBlock_band (hband.velocityPressure l) (p.particularBlock_band v c u l) simp only [max_self] at hb exact hb) ((le_max_right _ _).trans (le_max_left _ _)) tangent_band l := block_band_mono ((p.signed l).tangentBlock_band _ _) (le_max_right _ _) curl_band l := block_band_mono (show (p.signedCurl v c u l).BandLimited 1 from by have hb := subBlock_band ((p.signed l).exactBlock_band p.strip (p.signedRequest v c u)) ((p.signed l).tangentBlock_band p.strip (p.signedRequest v c u)) simp only [max_self] at hb exact hb) (le_max_right _ _) primary_carrier l := ⟨(hcp l).frequency, (hcp l).phase, (hcp l).angular⟩ tangent_carrier l := ⟨(hcs l).frequency, (hcs l).phase, (hcs l).angular⟩ curl_carrier l := ⟨(hcs l).frequency, (hcs l).phase, (hcs l).angular⟩ old_bounds i j := (hold i j).add ((hpart i j).mono_exponent (by linarith)) difference_bounds i j := by apply ((hdiff i j).add ((hpart i j).mono_exponent (by linarith))).congr intro l n x hx change (v.blocks l).velocity n i j x - (primary l).velocity n i j x + (p.particularBlock v c u l).velocity n i j x = (v.blocks l).velocity n i j x + (p.particularBlock v c u l).velocity n i j x - (primary l).velocity n i j x ring tangent_bounds := htangent curl_bounds := hcurl envelope_nonneg := hP0 envelope_le_one := hP1 angular_ne_zero := hkp end CycleParameters end CycleSignedFamily section NativeSignedMeanComposition open Set WeightedClasses MeanIncrementBounds CorrectionState VariableGaugeMean LocalSignedRequest open scoped ContDiff BigOperators end NativeSignedMeanComposition section UniformPeriodizedCoefficients open Set Filter Function WeightedClasses CorrectionState open scoped ContDiff Topology variable {D I ι : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] noncomputable def jointRawBackground (a : ι → PeriodizedWaveBounds.CopyData D I) : LocalizedWaveBounds.WaveFamily D (ι × I) := LocalizedWaveBounds.WaveFamily.ofCoefficients (fun j => {(a j.1).background with amplitude := 0, pressure := 0}) noncomputable def jointRawCoefficients (a : ι → PeriodizedWaveBounds.CopyData D I) : LocalizedWaveBounds.WaveFamily D (ι × I) := LocalizedWaveBounds.WaveFamily.ofCoefficients (fun j => (a j.1).raw j.2) theorem uniform_localInput_of_coefficients (a : ι → PeriodizedWaveBounds.CopyData D I) {s : StripData D} {C : ι → ℕ → I → Set D} {W : ι → ℕ → D → ℝ} {α κ : ℝ} {d : LinearWaveBounds.GraphDirections D} (h : LocalizedWaveBounds.InputBounds s (fun n (j : ι × I) => C j.1 n j.2) (fun n j x => W j.1 n x) 0 κ d (jointRawBackground a)) (hW : ∀ l n x, x ∈ s.domain → 0 ≤ W l n x) (ha : PeriodizedWaveBounds.UniformLocalJets s (fun l n x => Real.sqrt (s.zeta x)*W l n x) α C (fun l => (a l).amplitude)) (hp : PeriodizedWaveBounds.UniformLocalJets s (fun l n x => Real.sqrt (s.zeta x)*W l n x) (α+1/2) C (fun l => (a l).pressure)) : LocalizedWaveBounds.InputBounds s (fun n (j : ι × I) => C j.1 n j.2) (fun n j x => W j.1 n x) α κ d (jointRawCoefficients a) := by have hw l n x hx := mul_nonneg (Real.sqrt_nonneg (s.zeta x)) (hW l n x hx) exact ⟨h.loss_nonneg, h.radial_profile, h.radial_scale, h.fast_scale, h.frequency_scale, h.radius, h.inverse_radius, h.radial_base, h.frequency_base, h.axial_base, h.radial_base_aux, h.frequency_base_aux, h.axial_base_aux, h.normal, h.defect, fun j => (LocalizedWaveBounds.LocalClass.of_uniformLocalJets hw ha).map (ContinuousLinearMap.proj j), LocalizedWaveBounds.LocalClass.of_uniformLocalJets hw hp⟩ /-- The native solver estimates enter before summation over copies or spatial labels. All bounds on the background remain local to `C`. -/ theorem uniform_common_bounds_from_raw (a : ι → PeriodizedWaveBounds.CopyData D I) (K : ι → PeriodizedWaveBounds.Cells D I) (hs : ∀ l n i, support ((a l).cutoff n i) ⊆ (K l).carrier n i) {s : StripData D} {C : ι → ℕ → I → Set D} {W : ι → ℕ → D → ℝ} {α κ : ℝ} {d : LinearWaveBounds.GraphDirections D} (hW : ∀ l n x, x ∈ s.domain → 0 ≤ W l n x) (h : LocalizedWaveBounds.InputBounds s (fun n (j : ι × I) => C j.1 n j.2) (fun n j x => W j.1 n x) 0 κ d (jointRawBackground a)) (ha : PeriodizedWaveBounds.UniformLocalJets s (fun l n x => Real.sqrt (s.zeta x)*W l n x) α C (fun l => (a l).amplitude)) (hp : PeriodizedWaveBounds.UniformLocalJets s (fun l n x => Real.sqrt (s.zeta x)*W l n x) (α+1/2) C (fun l => (a l).pressure)) (hcut : PeriodizedWaveBounds.UniformLocalJets s (fun _ _ _ => 1) 0 C (fun l => (a l).cutoff)) (hκ : κ ≤ 1/2) {lo hi : ℝ} (hlo : 0 < lo) (hLower : ∀ l n i x, x ∈ s.domain → x ∈ C l n i → lo ≤ ‖(a l).background.normal s d n x‖) (hUpper : ∀ l n i x, x ∈ s.domain → x ∈ C l n i → ‖(a l).background.normal s d n x‖ ≤ hi) (hfreq : LocalizedWaveBounds.LocalUnweighted s (fun n (j : ι × I) => C j.1 n j.2) (1/2) (fun n j _ => 1/(a j.1).background.frequency n)) (hcover : ∀ l n i x, x ∈ s.domain → x ∈ (K l).carrier n i → x ∈ C l n i ∨ (((a l).localized i).amplitude n =ᶠ[𝓝 x] fun _ => 0) ∧ (((a l).localized i).pressure n =ᶠ[𝓝 x] fun _ => 0)) : LabelSumBounds.UniformWaveClass s W α (fun l => (a l).common.amplitude) ∧ LabelSumBounds.UniformWaveClass s W α (fun l => ((a l).commonCorrected s d).amplitude) ∧ LabelSumBounds.UniformWaveClass s W (α+1/2) (fun l => (a l).common.pressure) ∧ LabelSumBounds.UniformWaveClass s W (α+1/2-κ) (fun l => (a l).common.curlCorrection s d) ∧ LabelSumBounds.UniformWaveClass s W (α+1/2-3*κ) (fun l => (a l).globalGood s d) := by have hin := uniform_localInput_of_coefficients a h hW ha hp have hout := hin.with_cutoff (LocalizedWaveBounds.LocalClass.of_uniformLocalJets (fun _ _ _ _ => zero_le_one) hcut) exact LocalizedWaveBounds.uniform_common_bounds_from_supported_native a K hs C hW hout hκ hlo hLower hUpper hfreq hcover namespace PeriodizedSignedParameters variable (p : ι → PeriodizedSignedParameters D I) (s : StripData D) (request : ℕ → D×ℝ → SignedWaveUpdate.Vec2) /-- Literal stored coefficients inherit the joint estimates of the actual common solves, including the exact-minus-tangent curl. -/ theorem uniform_block_bounds {P : ι → ℕ → D → ℝ} {α κ : ℝ} (ha : LabelSumBounds.UniformWaveClass (HarmonicWaveInteraction.productStrip s) (fun l n x => P l n x.1) α (fun l => ((p l).copyData s request).common.amplitude)) (he : LabelSumBounds.UniformWaveClass (HarmonicWaveInteraction.productStrip s) (fun l n x => P l n x.1) α (fun l => (((p l).copyData s request).commonCorrected (HarmonicWaveInteraction.productStrip s) (p l).directions).amplitude)) (hp : LabelSumBounds.UniformWaveClass (HarmonicWaveInteraction.productStrip s) (fun l n x => P l n x.1) (α+1/2) (fun l => ((p l).copyData s request).common.pressure)) (hc : LabelSumBounds.UniformWaveClass (HarmonicWaveInteraction.productStrip s) (fun l n x => P l n x.1) (α+1/2-κ) (fun l => ((p l).copyData s request).common.curlCorrection (HarmonicWaveInteraction.productStrip s) (p l).directions)) (hg : LabelSumBounds.UniformWaveClass (HarmonicWaveInteraction.productStrip s) (fun l n x => P l n x.1) (α+1/2-3*κ) (fun l => ((p l).copyData s request).globalGood (HarmonicWaveInteraction.productStrip s) (p l).directions)) : (∀ i j, LabelSumBounds.UniformWaveClass s P α (fun l n x => ((p l).tangentBlock s request).velocity n i j x)) ∧ (∀ i j, LabelSumBounds.UniformWaveClass s P α (fun l n x => ((p l).exactBlock s request).velocity n i j x)) ∧ (∀ j, LabelSumBounds.UniformWaveClass s P (α+1/2) (fun l n x => ((p l).exactBlock s request).pressure n j x)) ∧ (∀ i j, LabelSumBounds.UniformWaveClass s P (α+1/2-κ) (fun l n x => ((p l).curlBlock s request).velocity n i j x)) ∧ (∀ i j, LabelSumBounds.UniformWaveClass s P (α+1/2-3*κ) (fun l n x => ((p l).goodBlock s request).velocity n i j x)) := by have ht := UniformBlockBounds.blockOfCoefficients_product_uniform (fun l => ((p l).copyData s request).common) (fun l => (p l).angularFrequency) ha hp have hx := UniformBlockBounds.blockOfCoefficients_product_uniform (fun l => ((p l).copyData s request).commonCorrected (HarmonicWaveInteraction.productStrip s) (p l).directions) (fun l => (p l).angularFrequency) he hp have hd := UniformBlockBounds.commonCorrected_product_difference_uniform (fun l => (p l).copyData s request) (fun l => (p l).directions) (fun l => (p l).angularFrequency) hc have hgs := UniformBlockBounds.uniform_slice (s := s) (w := fun l n x => Real.sqrt (s.zeta x) * P l n x) hg have hgb := UniformBlockBounds.coefficientBlock_uniform (fun l => (p l).base.frequency) (fun l n x => (p l).base.phase n (x,0)) (fun l => (p l).angularFrequency) hgs (LabelSumBounds.UniformClass.zero (E := ℂ) (α := (0:ℝ)) hgs.weight_nonneg) exact ⟨ht.1,hx.1,hx.2,hd,hgb.1⟩ end PeriodizedSignedParameters end UniformPeriodizedCoefficients section CoherentReferenceParticular open Set Filter Function CorrectionState WeightedClasses ParticularWaveAssembly ParticularWaveBounds open scoped ContDiff Topology BigOperators namespace ParticularParameters open TorusInverse variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] theorem common_amplitude (p : ParticularParameters P) (c : Context (P×Plane)) (u : State (P×Plane)) (b : HarmonicBlock (P×Plane)) (G A : HarmonicResidual.BlockCoefficients (P×Plane)) (j : ℤ) (n : ℕ) : (p.copyData c u b G A j).common.amplitude n = angleLift (ParticularWaveBounds.commonVelocity (p.tangent j n) (residualSource c u b G A j n) (p.geometry n) (p.length_pos n).le (p.cutoff n)) := by funext z rcases z with ⟨⟨x,θ⟩,Y⟩ apply tsum_congr intro k exact congrArg (fun w => p.cutoff n ((p.geometry n).coordinates k Y) • w) (complexCopyVelocity_angle (p.tangent j n) (residualSource c u b G A j n) (p.geometry n) (p.length_pos n).le k x θ Y) theorem common_pressure (p : ParticularParameters P) (c : Context (P×Plane)) (u : State (P×Plane)) (b : HarmonicBlock (P×Plane)) (G A : HarmonicResidual.BlockCoefficients (P×Plane)) (j : ℤ) (n : ℕ) (hk : (j:ℝ)*b.frequency n ≠ 0) : (p.copyData c u b G A j).common.pressure n = angleLift (ParticularWaveBounds.commonPressure (p.tangent j n) (residualSource c u b G A j n) (p.geometry n) (p.length_pos n).le (p.cutoff n) ((j:ℝ)*b.frequency n)) := by funext z rcases z with ⟨⟨x,θ⟩,Y⟩ apply tsum_congr intro k exact congrArg (fun w => p.cutoff n ((p.geometry n).coordinates k Y) • w) (complexCopyPressure_angle (p.tangent j n) (residualSource c u b G A j n) (p.geometry n) (p.length_pos n).le k hk x θ Y) /-- Every target band uses the same chosen reference tangent, geometry, clock interval and cutoff. Only the current HR source is supplied at solve time. -/ noncomputable def fromReference (D : AssemblyData PhysicalParticularWave.Parameter) (h : ℝ) (gap : ℕ→ℕ) : ParticularParameters PhysicalParticularWave.Parameter where tangent j n := ScaledTangentTransport.transportTangent (D.reference.tangent j) (PhysicalParticularWave.parameterChange h (ChartScales.Q n) (ChartScales.Q D.reference.band)) (gap n) 0 (PhysicalParticularWave.clockWeight h (ChartScales.Q n) (ChartScales.Q D.reference.band)) (PhysicalParticularWave.velocityWeight h (ChartScales.Q n) (ChartScales.Q D.reference.band)) (PhysicalParticularWave.normalWeight (ChartScales.Q n) (ChartScales.Q D.reference.band) ((j:ℝ)*D.carrierBlock.frequency n) (PhysicalParticularWave.referenceFrequency D j)) geometry n := CopySolveCompatibility.transportGeometry D.reference.geometry (gap n) 0 (PhysicalParticularWave.clockWeight h (ChartScales.Q n) (ChartScales.Q D.reference.band)) (PhysicalParticularWave.ratioPower_pos (ChartScales.Q_pos n) (ChartScales.Q_pos D.reference.band) (CoordinateAlgebra.A h+1/2)).ne' length n := D.reference.length / PhysicalParticularWave.clockWeight h (ChartScales.Q n) (ChartScales.Q D.reference.band) length_pos n := div_pos D.reference.length_pos (PhysicalParticularWave.ratioPower_pos (ChartScales.Q_pos n) (ChartScales.Q_pos D.reference.band) (CoordinateAlgebra.A h+1/2)) cutoff n := D.reference.cutoff ∘ CopySolveCompatibility.nativeTimeMap 0 (PhysicalParticularWave.clockWeight h (ChartScales.Q n) (ChartScales.Q D.reference.band)) background := D.background directions := D.directions theorem fromReference_amplitude (D : AssemblyData PhysicalParticularWave.Parameter) (h : ℝ) (gap : ℕ→ℕ) (j : ℤ) (n : ℕ) : ((fromReference D h gap).copyData D.context D.state D.carrierBlock D.gaussianInput D.aliasInput j).common.amplitude n = angleLift (PhysicalParticularWave.residualBandAmplitude D h (ChartScales.Q_pos n) (ChartScales.Q_pos D.reference.band) (gap n) ((j:ℝ)*D.carrierBlock.frequency n) j n) := common_amplitude _ _ _ _ _ _ _ _ theorem fromReference_pressure (D : AssemblyData PhysicalParticularWave.Parameter) (h : ℝ) (gap : ℕ→ℕ) (j : ℤ) (n : ℕ) (hk : (j:ℝ)*D.carrierBlock.frequency n ≠ 0) : ((fromReference D h gap).copyData D.context D.state D.carrierBlock D.gaussianInput D.aliasInput j).common.pressure n = angleLift (PhysicalParticularWave.residualBandPressure D h (ChartScales.Q_pos n) (ChartScales.Q_pos D.reference.band) (gap n) ((j:ℝ)*D.carrierBlock.frequency n) j n) := common_pressure _ _ _ _ _ _ _ _ hk /-- Full-lift current-state coherence identifies the actual solved amplitude with the one reference physical wave, before taking a graph restriction. -/ theorem fromReference_coherent_amplitude (D : AssemblyData PhysicalParticularWave.Parameter) (h : ℝ) (gap : ℕ→ℕ) (j : ℤ) (n i : ℕ) (H : PhysicalResidualNaturality.BandCoherence D h (ChartScales.Q_pos n) (ChartScales.Q_pos D.reference.band) i (gap n) n) (hn : PhysicalResidualNaturality.PositiveSupport D.carrierBlock D.gaussianInput D.aliasInput n) (hr : PhysicalResidualNaturality.PositiveSupport D.carrierBlock D.gaussianInput D.aliasInput D.reference.band) : ((fromReference D h gap).copyData D.context D.state D.carrierBlock D.gaussianInput D.aliasInput j).common.amplitude n = angleLift (PhysicalParticularWave.bandAmplitude D h (ChartScales.Q_pos n) (ChartScales.Q_pos D.reference.band) (gap n) ((j:ℝ)*D.carrierBlock.frequency n) j) := by rw [fromReference_amplitude, H.residualBandAmplitude_eq hn hr] theorem fromReference_coherent_pressure (D : AssemblyData PhysicalParticularWave.Parameter) (h : ℝ) (gap : ℕ→ℕ) (j : ℤ) (n i : ℕ) (H : PhysicalResidualNaturality.BandCoherence D h (ChartScales.Q_pos n) (ChartScales.Q_pos D.reference.band) i (gap n) n) (hn : PhysicalResidualNaturality.PositiveSupport D.carrierBlock D.gaussianInput D.aliasInput n) (hr : PhysicalResidualNaturality.PositiveSupport D.carrierBlock D.gaussianInput D.aliasInput D.reference.band) (hk : (j:ℝ)*D.carrierBlock.frequency n ≠ 0) : ((fromReference D h gap).copyData D.context D.state D.carrierBlock D.gaussianInput D.aliasInput j).common.pressure n = angleLift (PhysicalParticularWave.bandPressure D h (ChartScales.Q_pos n) (ChartScales.Q_pos D.reference.band) (gap n) ((j:ℝ)*D.carrierBlock.frequency n) j) := by rw [fromReference_pressure D h gap j n hk, H.residualBandPressure_eq hn hr] end ParticularParameters end CoherentReferenceParticular section ConstructedMeanStages open Set WeightedClasses MeanIncrementBounds CorrectionState VariableGaugeMean LocalSignedRequest open scoped ContDiff BigOperators section variable (g : GaugeData PressureStream.Plane) (r : RankData PressureStream.Plane) (h : ℝ) (index : ℕ → ℕ) (axial : PressureStream.Plane × PressureStream.Plane) (c : Context Point) (u : State Point) {coord cL cR A B : ℝ} (U : SlowRegion coord) (ha : 0 < g.radial.inner) (hd : 0 < g.radial.exponent) (hcL : 0 < cL) (hcR : 0 < cR) (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) (hell : ∀ n, g.length n = qLength coord) include hd hell local notation "stageStrip" => movingStripData U g.radial.inner g.radial.outer cL cR ha hcL hcR ε L hε hεone hL local notation "slowStrip" => PhysicalMeanDomain.localSlowStripData U.carrier U.isOpen ε L hε hεone hL local notation "signedState" => u local notation "temporalState" => temporalStageState g h index axial c u theorem meanStages_constructed {σ κ : ℝ} (hfixed : (reconstructState g c u).pressure = u.pressure) (hσ : 1 / 5 ≤ σ) (hκsmall : κ ≤ 1 / 100000) (hh : 0 ≤ h) (hscale : ∀ n, ChartScales.S n ≤ L n) (gap : ℕ) (hgap : ∀ n, ChartScales.nativeIndex h n ≤ index n + gap) (hv : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) (hfast : ∀ n, c.operators.fastCoefficient n = ChartScales.Tg ^ index n * ChartScales.Q n ^ (1 + h)) (ho : OperatorBounds stageStrip c.operators κ) (hb : BaseBounds stageStrip c.base) (hsigned : CorrectionState.CumulativeBounds stageStrip signedState) (hop : LocalRankDefect.LocalOperators U.carrier c.operators) (hbase : SmoothTriple (LocalRankDefect.positiveDomain U.carrier) c.base) (hV : LocalRankDefect.IsSlowOn U.carrier c.base.angular) (hG : LocalRankDefect.IsSlowOn U.carrier c.base.axial) (hm : SmoothTriple (PhysicalMeanDomain.slowDomain U.carrier) (signedState).mean) (hms : GaugeSupportedTriple g.radial.inner g.radial.outer (qLength coord) U.carrier (signedState).mean) (hW : ∀ i j, SmoothOn (PhysicalMeanDomain.slowDomain U.carrier) ((signedState).covariance i j)) (hWs : ∀ i j, GaugeSupported g.radial.inner g.radial.outer (qLength coord) U.carrier ((signedState).covariance i j)) (hθ : ∀ n, ContDiffOn ℝ ∞ ((signedState).thetaResidual c n) (PhysicalMeanDomain.slowDomain U.carrier)) (hz : ∀ n, ContDiffOn ℝ ∞ ((signedState).axialResidual c n) (PhysicalMeanDomain.slowDomain U.carrier)) (hpθ : ∀ n, PhysicalMeanDomain.PeriodicOn U.carrier ((signedState).thetaResidual c n)) (hpz : ∀ n, PhysicalMeanDomain.PeriodicOn U.carrier ((signedState).axialResidual c n)) (hsθ : GaugeSupported g.radial.inner g.radial.outer (qLength coord) U.carrier ((signedState).thetaResidual c)) (hsz : GaugeSupported g.radial.inner g.radial.outer (qLength coord) U.carrier ((signedState).axialResidual c)) (hcθ : MeanClass stageStrip (1 + σ - 2 * κ) ((signedState).thetaResidual c)) (hcz : MeanClass stageStrip (1 + σ - 2 * κ) ((signedState).axialResidual c)) (hbarθ : MeanClass stageStrip (1 + σ + 17 / 100) (meanBar ((signedState).thetaResidual c))) (hbarz : MeanClass stageStrip (1 + σ + 17 / 100) (meanBar ((signedState).axialResidual c))) (hdebt : ∀ i : Fin 3, UnweightedClass slowStrip (1 + σ - 2 * κ) (fun n x => debt c signedState n x i)) (hg : LocalRankDefect.RankGeometry g r U.carrier c temporalState) (hparam : RankStateBounds.NormalizedParameters coord A B r U.carrier) (hB : B ≠ 0) (hleft : g.radial.inner < r.inner) (hright : r.outer < g.radial.outer) : IncrementBounds stageStrip (1 + σ - 2 * κ) (temporalIncrementState g h index axial c u) ∧ IncrementBounds stageStrip (1 + σ - 2 * κ) (rankIncrementState g r axial c temporalState) ∧ MeanClass stageStrip (1 + σ - 2 * κ) ((rankStageState g r axial c temporalState).pressure - u.pressure) ∧ CorrectionState.CumulativeBounds stageStrip (rankStageState g r axial c temporalState) ∧ DefectBounds slowStrip (σ + 1 / 10) c (rankStageState g r axial c temporalState) ∧ MeanClass stageStrip (1 + (σ + 1 / 10)) ((rankStageState g r axial c temporalState).thetaResidual c) ∧ MeanClass stageStrip (1 + (σ + 1 / 10)) ((rankStageState g r axial c temporalState).axialResidual c - fun n x => temporalAliasState g h index c signedState n (x,0) 2) := by have hH : 9 / 10 ≤ 1 + σ - 2 * κ := by linarith have hκ : 2 * κ ≤ 9 / 10 := by linarith have hβ : 1 + (σ + 1 / 10) ≤ (1 + σ - 2 * κ) + 1 - 2 * κ := by linarith obtain ⟨hi, hp, htCum, htSmooth, htSupport, htTheta, htAxial⟩ := gaugeTemporalStage_constructed U g ha hd hcL hcR ε L hε hεone hL hell hh hscale index gap hgap axial c signedState ho.epsilon_eq hv hfast hfixed hH hκ hβ ho hb hsigned hop hbase hm hms hW hWs hθ hz hpθ hpz hsθ hsz hcθ hcz (hbarθ.mono_exponent (by linarith)) (hbarz.mono_exponent (by linarith)) have hiSmooth := gaugeTemporalIncrement_smooth U g ha hd hell h index axial c signedState hθ hz hpθ hpz hsz have hiSupport : GaugeSupportedTriple g.radial.inner g.radial.outer (qLength coord) U.carrier (temporalIncrementState g h index axial c u) := by have hs n := temporalIncrementState_supportedGauge U g ha hd hell c signedState h index axial n (hz n) (hpz n) (hsz n) (hsθ n) exact ⟨fun n => (hs n).1, fun n => (hs n).2.1, fun n => (hs n).2.2⟩ have hmReg : GaugeDebtIncrement.RegularTriple U g.radial.inner g.radial.outer (signedState).mean := ⟨⟨hm.radial, hms.radial⟩, ⟨hm.angular, hms.angular⟩, ⟨hm.axial, hms.axial⟩⟩ have hiReg : GaugeDebtIncrement.RegularTriple U g.radial.inner g.radial.outer (temporalIncrementState g h index axial c u) := ⟨⟨hiSmooth.radial, hiSupport.radial⟩, ⟨hiSmooth.angular, hiSupport.angular⟩, ⟨hiSmooth.axial, hiSupport.axial⟩⟩ have htDebt := GaugeDebtIncrement.temporalStage_debt_mem U ha g.radial.inner_lt_outer hcL hcR ε L hε hεone hL g h index axial c signedState hop hbase hmReg hiReg (fun i j => ⟨hW i j, hWs i j⟩) ho hb hsigned.velocity hi hH hκ le_rfl hdebt have hcov : (temporalState).covariance = (signedState).covariance := gaugeTemporalStage_covariance g h index axial c signedState have htW : ∀ i j, SmoothOn (PhysicalMeanDomain.slowDomain U.carrier) ((temporalState).covariance i j) := by simpa only [hcov] using hW have htWs : ∀ i j, GaugeSupported g.radial.inner g.radial.outer (qLength coord) U.carrier ((temporalState).covariance i j) := by simpa only [hcov] using hWs let aliasField : ScalarField Point := fun n x => temporalAliasState g h index c signedState n (x,0) 2 obtain ⟨hrInc, hrPressure, hrCum, _, _, hrTheta, hrAxial⟩ := gaugeRankStage_constructed U g r ha hd hcL hcR ε L hε hεone hL hell axial c temporalState hg hparam hB hleft hright hH hκ hβ hv rfl ho hb htCum hop hbase htSmooth htSupport htW htWs (RankStateBounds.debtClass_of_components _ htDebt) aliasField htTheta htAxial have hrDebt := MovingMomentBounds.rankStage_defectBounds U g r ha hcL hcR ε L hε hεone hL hell axial c temporalState hg hop hbase htSmooth ⟨htSupport.radial, htSupport.angular, htSupport.axial⟩ htW htWs hV hG ho hb htCum.velocity hrInc hH (show 1 + (σ + 1 / 10) ≤ (1 + σ - 2 * κ) + 9 / 10 - 2 * κ by linarith) have hpressure : MeanClass stageStrip (1 + σ - 2 * κ) ((rankStageState g r axial c temporalState).pressure - u.pressure) := by apply class_congr (hp.add hrPressure) intro n x hx change (rankStageState g r axial c temporalState).pressure n x - u.pressure n x = ((temporalState).pressure n x - u.pressure n x) + ((rankStageState g r axial c temporalState).pressure n x - (temporalState).pressure n x) ring exact ⟨hi, hrInc, hpressure, hrCum, hrDebt, hrTheta, hrAxial⟩ end end ConstructedMeanStages section UniformParticularGain open Set Filter Function WeightedClasses CorrectionState ParticularWaveAssembly ParticularWaveBounds open scoped ContDiff Topology BigOperators namespace ParticularParameters open TorusInverse variable {Q ι : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] (p : ι → ParticularParameters Q) (s : StripData (Q×Plane)) (c : Context (Q×Plane)) (u : State (Q×Plane)) (b : ι → HarmonicBlock (Q×Plane)) (G A : ι → HarmonicResidual.BlockCoefficients (Q×Plane)) (N : ℕ) theorem uniform_assembled_bounds {W : ι → ℕ → (Q×ℝ)×Plane → ℝ} {α κ : ℝ} (hW : ∀ l n x, x ∈ (nativeStrip s).domain → 0 ≤ W l n x) (ha : ∀ j ∈ modes N, LabelSumBounds.UniformWaveClass (nativeStrip s) W α (fun l => ((p l).wave s c u (b l) (G l) (A l) j).amplitude)) (hp : ∀ j ∈ modes N, LabelSumBounds.UniformWaveClass (nativeStrip s) W (α+1/2) (fun l => ((p l).wave s c u (b l) (G l) (A l) j).pressure)) (hg : ∀ j ∈ modes N, LabelSumBounds.UniformWaveClass (nativeStrip s) W (α+1/2-3*κ) (fun l => ((p l).copyData c u (b l) (G l) (A l) j).globalGood (nativeStrip s) (p l).directions)) : (∀ i j, LabelSumBounds.UniformWaveClass s (fun l n x => W l n (angleShuffle (x,0))) α (fun l n x => ((p l).updateBlock s c u (b l) (G l) (A l) N).velocity n i j x)) ∧ (∀ j, LabelSumBounds.UniformWaveClass s (fun l n x => W l n (angleShuffle (x,0))) (α+1/2) (fun l n x => ((p l).updateBlock s c u (b l) (G l) (A l) N).pressure n j x)) ∧ (∀ i j, LabelSumBounds.UniformWaveClass s (fun l n x => W l n (angleShuffle (x,0))) (α+1/2-3*κ) (fun l n x => ((p l).goodBlock s c u (b l) (G l) (A l) N).velocity n i j x)) := by have hw l n x hx := mul_nonneg (Real.sqrt_nonneg ((nativeStrip s).zeta x)) (hW l n x hx) have hupdate := UniformBlockBounds.native_assembledBlock_original_uniform (s := s) N (fun l => (b l).frequency) (fun l => (b l).phase) (fun l => (b l).angularFrequency) hw ha hp have hgood := UniformBlockBounds.native_assembledBlock_original_uniform (s := s) N (fun l => (b l).frequency) (fun l => (b l).phase) (fun l => (b l).angularFrequency) hw hg (fun _ _ => LabelSumBounds.UniformClass.zero (E := ℂ) (α := (0:ℝ)) hw) exact ⟨hupdate.1,hupdate.2,hgood.1⟩ end ParticularParameters end UniformParticularGain section BandNativeSignedMeanComposition open Set WeightedClasses MeanIncrementBounds CorrectionState VariableGaugeMean LocalSignedRequest open scoped ContDiff BigOperators end BandNativeSignedMeanComposition section UniformSignedGain open Set Filter Function WeightedClasses MeanIncrementBounds CorrectionState open scoped ContDiff Topology BigOperators InnerProductSpace namespace PeriodizedSignedParameters variable {D I ι : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] (p : ι → PeriodizedSignedParameters D I) (s : StripData D) (request : ℕ → D×ℝ → SignedWaveUpdate.Vec2) {P : ι → ℕ → D → ℝ} {β κ : ℝ} (C : ∀ l, (p l).NativeControl s (P l) κ) (dyn : ∀ l, NativeDynamics (C l) request) (i₀ : I) include i₀ end PeriodizedSignedParameters end UniformSignedGain section FourStageMeanComposition open Set WeightedClasses MeanIncrementBounds CorrectionState VariableGaugeMean LocalSignedRequest open scoped ContDiff BigOperators section MeanCycle variable {ι : Type} (G : SignedMeanGain.Geometry) (B : SignedMeanGain.NativeData G) (c : Context Point) (u : State Point) (w₁ : Oscillation Point) (q₁ : OscillatoryScalar Point) (e₁ : Oscillation Point) {P : ι → ℕ → Point → ℝ} {σ κ : ℝ} (f : LabelSumBounds.SignedFamily G.strip P (1/2) (17/25) (1/2+σ-κ) (1+σ-2*κ)) (a : SignedMeanGain.Assembly f) (q₂ : OscillatoryScalar Point) (e₂ : Oscillation Point) local notation "u₁" => SignedMeanGain.waveStage G.gauge c u w₁ q₁ e₁ local notation "w₂" => SignedMeanGain.tangentField f a + SignedMeanGain.curlField f a local notation "u₂" => SignedMeanGain.waveStage G.gauge c u₁ w₂ q₂ e₂ end MeanCycle end FourStageMeanComposition section CycleUniformComposition open Set Filter WeightedClasses MeanIncrementBounds CorrectionState open scoped ContDiff Topology BigOperators theorem incrementBounds_updated {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] {s : StripData D} {H : ℝ} {a b : Triple D} (ha : IncrementBounds s H a) (hb : IncrementBounds s H b) : IncrementBounds s H (updated a b) := ⟨ha.radial.add hb.radial, ha.angular.add hb.angular, ha.axial.add hb.axial⟩ theorem updated_assoc {D : Type} (a b c : Triple D) : updated (updated a b) c = updated a (updated b c) := by apply triple_ext <;> exact add_assoc _ _ _ namespace CycleParameters variable {ι : Type} (p : CycleParameters ι) (v : CycleCoefficients ι) (c : Context CyclePoint) (u : State CyclePoint) /-- The actual two wave increments retain the cumulative bound and the difference from the fixed primary family, with constants before labels. -/ theorem finalBlock_uniform_cumulative (primary : ι → HarmonicBlock CyclePoint) {P : ι → ℕ → CyclePoint → ℝ} {σ κ : ℝ} (hσ : 1/5 ≤ σ) (hκsmall : κ ≤ 1/100000) (hold : ∀ i j, LabelSumBounds.UniformWaveClass p.strip P (1/2) (fun l n x => (v.blocks l).velocity n i j x)) (hdiff : ∀ i j, LabelSumBounds.UniformWaveClass p.strip P (17/25) (fun l n x => (v.blocks l).velocity n i j x - (primary l).velocity n i j x)) (hpart : ∀ i j, LabelSumBounds.UniformWaveClass p.strip P (1/2+σ) (fun l n x => (p.particularBlock v c u l).velocity n i j x)) (hsigned : ∀ i j, LabelSumBounds.UniformWaveClass p.strip P (1/2+σ-κ) (fun l n x => (p.signedBlock v c u l).velocity n i j x)) : (∀ i j, LabelSumBounds.UniformWaveClass p.strip P (1/2) (fun l n x => (p.finalBlock v c u l).velocity n i j x)) ∧ (∀ i j, LabelSumBounds.UniformWaveClass p.strip P (17/25) (fun l n x => (p.finalBlock v c u l).velocity n i j x - (primary l).velocity n i j x)) := by constructor · intro i j exact ((hold i j).add ((hpart i j).mono_exponent (by linarith))).add ((hsigned i j).mono_exponent (by linarith)) · intro i j apply (((hdiff i j).add ((hpart i j).mono_exponent (by linarith))).add ((hsigned i j).mono_exponent (by linarith))).congr intro l n x hx change (v.blocks l).velocity n i j x - (primary l).velocity n i j x + (p.particularBlock v c u l).velocity n i j x + (p.signedBlock v c u l).velocity n i j x = (v.blocks l).velocity n i j x + (p.particularBlock v c u l).velocity n i j x + (p.signedBlock v c u l).velocity n i j x - (primary l).velocity n i j x ring theorem finalBlock_increment_bounds {P : ι → ℕ → CyclePoint → ℝ} {σ κ : ℝ} (hκ : 0 ≤ κ) (hpart : ∀ i j, LabelSumBounds.UniformWaveClass p.strip P (1/2+σ) (fun l n x => (p.particularBlock v c u l).velocity n i j x)) (hsigned : ∀ i j, LabelSumBounds.UniformWaveClass p.strip P (1/2+σ-κ) (fun l n x => (p.signedBlock v c u l).velocity n i j x)) (hpp : ∀ j, LabelSumBounds.UniformWaveClass p.strip P (1+σ) (fun l n x => (p.particularBlock v c u l).pressure n j x)) (hsp : ∀ j, LabelSumBounds.UniformWaveClass p.strip P (1+σ-κ) (fun l n x => (p.signedBlock v c u l).pressure n j x)) : (∀ i j, LabelSumBounds.UniformWaveClass p.strip P (1/2+σ-κ) (fun l n x => (p.finalBlock v c u l).velocity n i j x - (v.blocks l).velocity n i j x)) ∧ (∀ j, LabelSumBounds.UniformWaveClass p.strip P (1+σ-κ) (fun l n x => (p.finalBlock v c u l).pressure n j x - (v.blocks l).pressure n j x)) := by constructor · intro i j apply (((hpart i j).mono_exponent (by linarith)).add (hsigned i j)).congr intro l n x hx change (p.particularBlock v c u l).velocity n i j x + (p.signedBlock v c u l).velocity n i j x = (v.blocks l).velocity n i j x + (p.particularBlock v c u l).velocity n i j x + (p.signedBlock v c u l).velocity n i j x - (v.blocks l).velocity n i j x ring · intro j apply (((hpp j).mono_exponent (by linarith)).add (hsp j)).congr intro l n x hx change (p.particularBlock v c u l).pressure n j x + (p.signedBlock v c u l).pressure n j x = (v.blocks l).pressure n j x + (p.particularBlock v c u l).pressure n j x + (p.signedBlock v c u l).pressure n j x - (v.blocks l).pressure n j x ring /-- Apply the complete actual mean increment once to the stored harmonic residual. The pressure-alias refresh contributes only an angular zero mode. -/ theorem meanStages_residual_gain {P : ι → ℕ → CyclePoint → ℝ} {σ κ : ℝ} (hκsmall : κ ≤ 1/100000) (ho : OperatorBounds p.strip c.operators κ) (hR : ∀ x ∈ p.strip.domain, 0 < c.operators.radius x) (hb : SmoothTriple p.strip.domain c.base) (hm : SmoothTriple p.strip.domain u.mean) (hTemporal : IncrementBounds p.strip (1+σ-2*κ) (p.temporalIncrement v c u)) (hRank : IncrementBounds p.strip (1+σ-2*κ) (p.rankIncrement v c u)) (hvelocity : UniformHarmonicInteraction.UniformVelocity p.strip P (1/2) (p.finalBlock v c u)) {C : ℕ → ι → Set CyclePoint} (hNormal : ∀ i, LocalizedWaveBounds.LocalUnweighted p.strip C 0 (fun n l x => HarmonicMeanInteraction.slowNormal c ho hR (v.blocks l).phase n x i)) (hFreq : LocalizedWaveBounds.LocalUnweighted p.strip C (-(1/2)) (fun n l _ => (v.blocks l).frequency n)) (hAng : LocalizedWaveBounds.LocalUnweighted p.strip C (-(1/2)) (fun n l _ => ((v.blocks l).angularFrequency n : ℝ))) (hz : ∀ n l x, x ∈ p.strip.domain → x ∉ C n l → ∀ i j, j ≠ 0 → (p.finalBlock v c u l).velocity n i j =ᶠ[𝓝 x] fun _ => 0) (hold : UniformHarmonicInteraction.UniformVelocity p.strip P (1/2+σ+1/10) (fun l => HarmonicResidual.residualBlock c (p.afterSigned v c u) (p.finalBlock v c u l) ((p.nextCoefficients v c u).gaussian l) (v.aliasCoefficients l))) : UniformHarmonicInteraction.UniformVelocity p.strip P (1/2+(σ+1/10)) (fun l => HarmonicResidual.residualBlock c (p.next v c u) ((p.nextCoefficients v c u).blocks l) ((p.nextCoefficients v c u).gaussian l) ((p.nextCoefficients v c u).aliasCoefficients l)) := by have hh := incrementBounds_updated hTemporal hRank have he : (p.next v c u).mean = updated (p.afterSigned v c u).mean (updated (p.temporalIncrement v c u) (p.rankIncrement v c u)) := by rw [p.next_mean v c u, p.afterSigned_mean v c u, updated_assoc] have hms : SmoothTriple p.strip.domain (p.afterSigned v c u).mean := by simpa only [p.afterSigned_mean v c u] using hm have hout := meanStage_residual_uniform c ho (by linarith) hR (p.afterSigned v c u) (p.next v c u) (updated (p.temporalIncrement v c u) (p.rankIncrement v c u)) he hb hms hh (p.finalBlock v c u) hvelocity hNormal hFreq hAng hz ((p.nextCoefficients v c u).gaussian) v.aliasCoefficients v.aliasCoefficients (fun _ _ _ => by rw [sub_self]; exact HarmonicResidual.band_zero _) hold (by linarith) simp only [add_assoc] at hout ⊢ exact hout end CycleParameters end CycleUniformComposition section ActualMovingCovariance open Set MeasureTheory WeightedClasses MeanIncrementBounds CorrectionState LocalSignedRequest open scoped ContDiff BigOperators /-- Whole-fiber periodicity of the actual real oscillation. -/ def OscillationPeriodic (U : Set PressureStream.Plane) (w : Oscillation Point) : Prop := ∀ n R s, s ∈ U → ∀ θ, FourierAlias.TorusPeriodic (fun Y => w n ((R,(s,Y)),θ)) theorem OscillationPeriodic.add {U : Set PressureStream.Plane} {u w : Oscillation Point} (hu : OscillationPeriodic U u) (hw : OscillationPeriodic U w) : OscillationPeriodic U (u+w) := fun n R s hs θ Y k => congrArg₂ (·+·) (hu n R s hs θ Y k) (hw n R s hs θ Y k) theorem OscillationPeriodic.bilinearCovariance {U : Set PressureStream.Plane} {u w : Oscillation Point} (hu : OscillationPeriodic U u) (hw : OscillationPeriodic U w) (i j : Fin 3) : MeanStateRegularity.Periodic U (bilinearCovariance u w i j) := by intro n R s hs Y k unfold CorrectionState.bilinearCovariance CorrectionState.angularAverage apply congrArg (fun t : ℝ => t / (2 * Real.pi)) apply intervalIntegral.integral_congr intro θ hθ exact congrArg₂ (· * ·) (congrFun (hu n R s hs θ Y k) i) (congrFun (hw n R s hs θ Y k) j) theorem OscillationPeriodic.covarianceIncrement {U : Set PressureStream.Plane} {u w : Oscillation Point} (hu : OscillationPeriodic U u) (hw : OscillationPeriodic U w) (i j : Fin 3) : MeanStateRegularity.Periodic U (SignedMeanGain.covarianceIncrement u w i j) := MeanStateRegularity.Periodic.sub ((hu.add hw).bilinearCovariance (hu.add hw) i j) (hu.bilinearCovariance hu i j) theorem covarianceIncrement_moving {coord a b : ℝ} (U : SlowRegion coord) {u w : Oscillation Point} (hu : WaveStateRegularity.AngularSmooth (PhysicalMeanDomain.slowDomain U.carrier) u) (hw : WaveStateRegularity.AngularSmooth (PhysicalMeanDomain.slowDomain U.carrier) w) (hs : WaveStateRegularity.WaveSupport U a b w) (hup : OscillationPeriodic U.carrier u) (hwp : OscillationPeriodic U.carrier w) (i j : Fin 3) : GaugeMomentBalances.MovingField U a b (SignedMeanGain.covarianceIncrement u w i j) := MeanStateRegularity.MovingField.of_regular (WaveStateRegularity.covarianceIncrement_regular U hu hw hs i j) (hup.covarianceIncrement hwp i j) theorem symmetricCovariance_moving {coord a b : ℝ} (U : SlowRegion coord) {u w : Oscillation Point} (hu : WaveStateRegularity.AngularSmooth (PhysicalMeanDomain.slowDomain U.carrier) u) (hw : WaveStateRegularity.AngularSmooth (PhysicalMeanDomain.slowDomain U.carrier) w) (hs : WaveStateRegularity.WaveSupport U a b w) (hup : OscillationPeriodic U.carrier u) (hwp : OscillationPeriodic U.carrier w) (i j : Fin 3) : GaugeMomentBalances.MovingField U a b (LabelSumBounds.symmetricCovariance u w i j) := by have h₁ : GaugeDebtIncrement.Regular U a b (bilinearCovariance u w i j) := by rw [bilinearCovariance_comm u w i j] exact WaveStateRegularity.bilinearCovariance_regular U hw hu hs j i exact MeanStateRegularity.MovingField.add (MeanStateRegularity.MovingField.of_regular h₁ (hup.bilinearCovariance hwp i j)) (MeanStateRegularity.MovingField.of_regular (WaveStateRegularity.bilinearCovariance_regular U hw hu hs i j) (hwp.bilinearCovariance hup i j)) end ActualMovingCovariance section ActualGaussianMeans open Set MeasureTheory WeightedClasses MeanIncrementBounds CorrectionState open scoped ContDiff BigOperators theorem block_zeroMode_pull {D E : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] [NormedAddCommGroup E] [NormedSpace ℝ E] (e : D ≃ₗᵢ[ℝ] E) (b : HarmonicBlock E) (hb : HarmonicWaveInteraction.ZeroMode b) : HarmonicWaveInteraction.ZeroMode (StateReindex.block e b) := by intro n i funext x change b.velocity n i 0 (e x) = 0 rw [hb] rfl theorem block_angularMean_zero {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] (b : HarmonicBlock D) (hb : HarmonicWaveInteraction.ZeroMode b) (hk : ∀ n, b.angularFrequency n ≠ 0) : angularMeanVector b.oscillation = 0 := by funext n x i change (∫ θ in (0:ℝ)..2*Real.pi, (HarmonicFields.field (b.velocity n i) (b.frequency n) (b.phase n) (b.angularFrequency n) (x,θ)).re) / (2*Real.pi) = 0 rw [SignedWaveUpdate.angularAverage_re_field, HarmonicFields.angularMean_field _ _ _ (hk n), hb] rfl theorem fieldSum_angularMean_zero {D ι : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] (labels : ℕ → Finset ι) (b : ι → HarmonicBlock D) (hb : ∀ l, HarmonicWaveInteraction.ZeroMode (b l)) (hk : ∀ l n, (b l).angularFrequency n ≠ 0) : angularMeanVector (LabelSumBounds.fieldSum labels (fun l => (b l).oscillation)) = 0 := by funext n x i change (∫ θ in (0:ℝ)..2*Real.pi, ∑ l ∈ labels n, (b l).oscillation n (x,θ) i) / (2*Real.pi) = 0 rw [intervalIntegral.integral_finsetSum] · rw [Finset.sum_div] apply Finset.sum_eq_zero intro l hl exact congrFun (congrFun (congrFun (block_angularMean_zero (b l) (hb l) (hk l)) n) x) i · intro l hl exact (block_angularContinuous (b l) n x i).intervalIntegrable _ _ namespace CycleParameters variable {ι : Type} (p : CycleParameters ι) (v : CycleCoefficients ι) (c : Context CyclePoint) (u : State CyclePoint) theorem particularBlock_zero (l : ι) : HarmonicWaveInteraction.ZeroMode (p.particularBlock v c u l) := block_zeroMode_pull _ _ (ParticularWaveAssembly.assembledBlock_zero _ _ _ _ _ _).1 theorem particularGaussianBlock_zero (l : ι) : HarmonicWaveInteraction.ZeroMode (p.particularGaussianBlock v c u l) := block_zeroMode_pull _ _ (ParticularWaveAssembly.assembledBlock_zero _ _ _ _ _ _).1 theorem signedGaussianBlock_zero (l : ι) : HarmonicWaveInteraction.ZeroMode (p.signedGaussianBlock v c u l) := (SignedWaveUpdate.coefficientBlock_zero_coefficient _ _ _ _ _).1 theorem gaussianIncrement_angularMeans (hk : ∀ l n, (v.blocks l).angularFrequency n ≠ 0) (hc : ∀ l, SameCarrier (v.blocks l) (p.signedBlock v c u l)) : angularMeanVector (p.particularGaussian v c u) = 0 ∧ angularMeanVector (p.signedGaussian v c u) = 0 := by constructor · exact fieldSum_angularMean_zero v.labels (p.particularGaussianBlock v c u) (p.particularGaussianBlock_zero v c u) hk · apply fieldSum_angularMean_zero v.labels (p.signedGaussianBlock v c u) (p.signedGaussianBlock_zero v c u) intro l n change (p.signedBlock v c u l).angularFrequency n ≠ 0 rw [(hc l).angular] exact hk l n theorem gaussianIncrement_angularContinuous : AngularContinuous (p.particularGaussian v c u) ∧ AngularContinuous (p.signedGaussian v c u) := ⟨LabelSumBounds.fieldSum_angularContinuous _ _ (fun _ => block_angularContinuous _), LabelSumBounds.fieldSum_angularContinuous _ _ (fun _ => block_angularContinuous _)⟩ theorem next_gaussian_angularMean (hk : ∀ l n, (v.blocks l).angularFrequency n ≠ 0) (hc : ∀ l, SameCarrier (v.blocks l) (p.signedBlock v c u l)) (hu : AngularContinuous u.errors.gaussian) : angularMeanVector (p.next v c u).errors.gaussian = angularMeanVector u.errors.gaussian := by rw [p.next_gaussian_error v c u] have hs := p.gaussianIncrement_angularContinuous v c u have hz := p.gaussianIncrement_angularMeans v c u hk hc rw [angularMeanVector_add (hu.add hs.1) hs.2, angularMeanVector_add hu hs.1, hz.1, hz.2] simp only [add_zero] theorem next_alias_lift : (p.next v c u).errors.aliasError = u.errors.aliasError + fun n x => p.nextAxisymmetricAlias v c u 0 n x.1 := by rw [p.next_alias_error v c u] funext n x i simp only [nextAxisymmetricAlias, Pi.add_apply, Pi.sub_apply, Pi.zero_apply, zero_add, VariableGaugeMean.temporalAliasState, VariableGaugeMean.pressureAliasState] ring theorem next_alias_angularContinuous (hu : AngularContinuous u.errors.aliasError) : AngularContinuous (p.next v c u).errors.aliasError := by rw [p.next_alias_lift v c u] apply hu.add intro n x i change Continuous (fun _ : ℝ => p.nextAxisymmetricAlias v c u 0 n x i) exact continuous_const theorem next_alias_angularMean (hu : AngularContinuous u.errors.aliasError) : angularMeanVector (p.next v c u).errors.aliasError = angularMeanVector u.errors.aliasError + p.nextAxisymmetricAlias v c u 0 := by have hs : AngularContinuous (fun n x => p.nextAxisymmetricAlias v c u 0 n x.1) := by intro n x i change Continuous (fun _ : ℝ => p.nextAxisymmetricAlias v c u 0 n x i) exact continuous_const rw [p.next_alias_lift v c u, angularMeanVector_add hu hs] congr 1 funext n x i exact congrFun (congrFun (angularAverage_axisymmetric (fun n x => p.nextAxisymmetricAlias v c u 0 n x i)) n) x theorem nextAliasIncrement_angular (n : ℕ) (x : CyclePoint) : p.nextAxisymmetricAlias v c u 0 n x 1 = 0 := by simp only [nextAxisymmetricAlias, Pi.zero_apply, VariableGaugeMean.temporalAliasState, VariableGaugeMean.pressureAliasState, Matrix.cons_val_one, Matrix.cons_val_zero, add_zero, sub_self] theorem nextAliasIncrement_axial (n : ℕ) (x : CyclePoint) : p.nextAxisymmetricAlias v c u 0 n x 2 = VariableGaugeMean.temporalAliasState p.gauge p.timeExponent p.commonIndex c (p.afterSigned v c u) n (x,0) 2 := by simp only [nextAxisymmetricAlias, Pi.zero_apply, VariableGaugeMean.pressureAliasState, Matrix.cons_val_two, zero_add, add_zero, sub_self] /-- The actual good mean residual gains the requested exponent. New Gaussian means vanish exactly, and the new temporal alias is the same one retained by the mean-stage calculation. -/ theorem next_meanResidualBounds {σ : ℝ} (hk : ∀ l n, (v.blocks l).angularFrequency n ≠ 0) (hc : ∀ l, SameCarrier (v.blocks l) (p.signedBlock v c u l)) (hb : ∀ n x, x ∈ p.strip.domain → ∀ i, Continuous (fun θ : ℝ => u.errors.base n (x, θ) i)) (hg : AngularContinuous u.errors.gaussian) (ha : AngularContinuous u.errors.aliasError) (hθ : MeanClass p.strip (1+σ) ((p.next v c u).thetaResidual c)) (hz : MeanClass p.strip (1+σ) ((p.next v c u).axialResidual c - fun n x => VariableGaugeMean.temporalAliasState p.gauge p.timeExponent p.commonIndex c (p.afterSigned v c u) n (x,0) 2)) (hgθ : MeanClass p.strip (1+σ) (fun n x => angularMeanVector u.errors.gaussian n x 1)) (hgz : MeanClass p.strip (1+σ) (fun n x => angularMeanVector u.errors.gaussian n x 2)) (haθ : MeanClass p.strip (1+σ) (fun n x => angularMeanVector u.errors.aliasError n x 1)) (haz : MeanClass p.strip (1+σ) (fun n x => angularMeanVector u.errors.aliasError n x 2)) : CorrectionState.MeanResidualBounds p.strip σ c (p.next v c u) := by have hbn : ∀ n x, x ∈ p.strip.domain → ∀ i, Continuous (fun θ : ℝ => (p.next v c u).errors.base n (x, θ) i) := by simpa only [p.next_base_error v c u] using hb have hgn : AngularContinuous (p.next v c u).errors.gaussian := by rw [p.next_gaussian_error v c u] exact (hg.add (p.gaussianIncrement_angularContinuous v c u).1).add (p.gaussianIncrement_angularContinuous v c u).2 have han := p.next_alias_angularContinuous v c u ha have he n x hx i := meanGoodResidual_at c (p.next v c u) n x i (hbn n x hx i) (hgn n x i) (han n x i) have hgm := p.next_gaussian_angularMean v c u hk hc hg have ham := p.next_alias_angularMean v c u ha constructor · apply class_congr (Class.sub (Class.sub hθ hgθ) haθ) intro n x hx dsimp only rw [he n x hx 1, hgm, ham] change (p.next v c u).thetaResidual c n x - angularMeanVector u.errors.gaussian n x 1 - (angularMeanVector u.errors.aliasError n x 1 + p.nextAxisymmetricAlias v c u 0 n x 1) = _ rw [p.nextAliasIncrement_angular v c u, add_zero] rfl · apply class_congr (Class.sub (Class.sub hz hgz) haz) intro n x hx dsimp only rw [he n x hx 2, hgm, ham] change (p.next v c u).axialResidual c n x - angularMeanVector u.errors.gaussian n x 2 - (angularMeanVector u.errors.aliasError n x 2 + p.nextAxisymmetricAlias v c u 0 n x 2) = _ rw [p.nextAliasIncrement_axial v c u] change (p.next v c u).axialResidual c n x - angularMeanVector u.errors.gaussian n x 2 - (angularMeanVector u.errors.aliasError n x 2 + VariableGaugeMean.temporalAliasState p.gauge p.timeExponent p.commonIndex c (p.afterSigned v c u) n (x,0) 2) = ((p.next v c u).axialResidual c n x - VariableGaugeMean.temporalAliasState p.gauge p.timeExponent p.commonIndex c (p.afterSigned v c u) n (x,0) 2) - angularMeanVector u.errors.gaussian n x 2 - angularMeanVector u.errors.aliasError n x 2 ring end CycleParameters end ActualGaussianMeans section ActualCycleMeanGain open Set WeightedClasses MeanIncrementBounds CorrectionState VariableGaugeMean LocalSignedRequest open scoped ContDiff BigOperators namespace CycleParameters /-- One geometric choice is shared by all four literal stages. -/ noncomputable def ofGeometry {ι : Type} (G : SignedMeanGain.Geometry) (h : ℝ) (index : ℕ → ℕ) (axial : PressureStream.Plane × PressureStream.Plane) (particular : ι → ParticularParameters CycleSlow) (signed : ι → PeriodizedSignedParameters CyclePoint TorusInverse.Frequency) (rank : RankData PressureStream.Plane) : CycleParameters ι where gauge := G.gauge strip := G.strip patch := G.patch coordinate := G.coord timeExponent := h commonIndex := index axial := axial particular := particular signed := signed rank := rank section ActualMean variable {ι : Type} (G : SignedMeanGain.Geometry) (B : SignedMeanGain.NativeData G) (h : ℝ) (index : ℕ → ℕ) (axial : PressureStream.Plane × PressureStream.Plane) (particular : ι → ParticularParameters CycleSlow) (signed : ι → PeriodizedSignedParameters CyclePoint TorusInverse.Frequency) (r : RankData PressureStream.Plane) (v : CycleCoefficients ι) (c : Context CyclePoint) (u : State CyclePoint) (primary : ι → HarmonicBlock CyclePoint) (P : ι → ℕ → CyclePoint → ℝ) {σ κ : ℝ} (hσ : 1/5 ≤ σ) (N : ℕ) (hprimary : ∀ l, (primary l).BandLimited N) (hband : CoefficientBands v) (hcp : ∀ l, SameCarrier (v.blocks l) (primary l)) variable (hcs : ∀ l, SameCarrier (v.blocks l) ((ofGeometry G h index axial particular signed r).signedBlock v c u l)) (hold : ∀ i j, LabelSumBounds.UniformWaveClass G.strip P (1/2) (fun l n x => (v.blocks l).velocity n i j x)) (hdiff : ∀ i j, LabelSumBounds.UniformWaveClass G.strip P (17/25) (fun l n x => (v.blocks l).velocity n i j x - (primary l).velocity n i j x)) (hpart : ∀ i j, LabelSumBounds.UniformWaveClass G.strip P (1/2+σ) (fun l n x => ((ofGeometry G h index axial particular signed r).particularBlock v c u l).velocity n i j x)) (htangent : ∀ i j, LabelSumBounds.UniformWaveClass G.strip P (1/2+σ-κ) (fun l n x => ((ofGeometry G h index axial particular signed r).signedTangent v c u l).velocity n i j x)) (hcurl : ∀ i j, LabelSumBounds.UniformWaveClass G.strip P (1+σ-2*κ) (fun l n x => ((ofGeometry G h index axial particular signed r).signedCurl v c u l).velocity n i j x)) (hP0 : ∀ l n x, x ∈ G.strip.domain → 0 ≤ P l n x) (hP1 : ∀ l n x, x ∈ G.strip.domain → P l n x ≤ 1) (hkp : ∀ l n, (v.blocks l).angularFrequency n ≠ 0) local notation "F" => signedFamily (ofGeometry G h index axial particular signed r) v c u primary P hσ N hprimary hband hcp hcs hold hdiff hpart htangent hcurl hP0 hP1 hkp end ActualMean end CycleParameters end ActualCycleMeanGain section CycleRegularityPreservation open Set CorrectionState VariableGaugeMean LocalSignedRequest MeanStateRegularity namespace CycleParameters variable {ι : Type} (p : CycleParameters ι) (v : CycleCoefficients ι) (c : Context CyclePoint) (u : State CyclePoint) /-- Primitive regularity is propagated through the literal four-stage state. The rank geometry is reused from the incoming state; its new measured-debt smoothness is proved from the updated primitive fields. -/ theorem next_primitive {coord : ℝ} (U : SlowRegion coord) (ha : 0 < p.gauge.radial.inner) (hd : 0 < p.gauge.radial.exponent) (hell : ∀ n, p.gauge.length n = qLength coord) (H : PrimitiveData U p.gauge.radial.inner p.gauge.radial.outer c u) (hX₁ : ∀ i j, GaugeMomentBalances.MovingField U p.gauge.radial.inner p.gauge.radial.outer (SignedMeanGain.covarianceIncrement u.oscillation (p.particularVelocity v c u) i j)) (hX₂ : ∀ i j, GaugeMomentBalances.MovingField U p.gauge.radial.inner p.gauge.radial.outer (SignedMeanGain.covarianceIncrement (p.afterParticular v c u).oscillation (p.signedVelocity v c u) i j)) (hg : LocalRankDefect.RankGeometry p.gauge p.rank U.carrier c u) : PrimitiveData U p.gauge.radial.inner p.gauge.radial.outer c (p.next v c u) ∧ reconstructState p.gauge c (p.next v c u) = p.next v c u := by have H₁ : PrimitiveData U p.gauge.radial.inner p.gauge.radial.outer c (p.afterParticular v c u) := H.waveStage p.gauge (p.particularVelocity v c u) (p.particularPressure v c u) (p.particularGaussian v c u) hX₁ have H₂ : PrimitiveData U p.gauge.radial.inner p.gauge.radial.outer c (p.afterSigned v c u) := H₁.waveStage p.gauge (p.signedVelocity v c u) (p.signedPressure v c u) (p.signedGaussian v c u) hX₂ have ht := MeanStageRegularity.temporalStage_primitive H₂ ha hd hell rfl p.timeExponent p.commonIndex p.axial have hgt := MeanStageRegularity.rankGeometry_for_state ht ha p.gauge.radial.inner_lt_outer hg have hr := MeanStageRegularity.rankStage_primitive ht hgt hell p.axial exact ⟨⟨hr.operators, hr.base, hr.mean, hr.covariance, hr.virtualTheta, hr.virtualAxial⟩, rfl⟩ theorem next_zeroMassesOn {coord : ℝ} (U : SlowRegion coord) (ha : 0 < p.gauge.radial.inner) (hd : 0 < p.gauge.radial.exponent) (hell : ∀ n, p.gauge.length n = qLength coord) (H : PrimitiveData U p.gauge.radial.inner p.gauge.radial.outer c u) (hX₁ : ∀ i j, GaugeMomentBalances.MovingField U p.gauge.radial.inner p.gauge.radial.outer (SignedMeanGain.covarianceIncrement u.oscillation (p.particularVelocity v c u) i j)) (hX₂ : ∀ i j, GaugeMomentBalances.MovingField U p.gauge.radial.inner p.gauge.radial.outer (SignedMeanGain.covarianceIncrement (p.afterParticular v c u).oscillation (p.signedVelocity v c u) i j)) (hg : LocalRankDefect.RankGeometry p.gauge p.rank U.carrier c u) (hlength : ∀ n x, x ∈ U.carrier → p.rank.length n x = qLength coord x) (hleft : p.gauge.radial.inner ≤ p.rank.inner) (hright : p.rank.outer ≤ p.gauge.radial.outer) (hm : GaugeMassPreservation.ZeroMassesOn U.carrier u) : GaugeMassPreservation.ZeroMassesOn U.carrier (p.next v c u) := by have H₁ : PrimitiveData U p.gauge.radial.inner p.gauge.radial.outer c (p.afterParticular v c u) := H.waveStage p.gauge (p.particularVelocity v c u) (p.particularPressure v c u) (p.particularGaussian v c u) hX₁ have H₂ : PrimitiveData U p.gauge.radial.inner p.gauge.radial.outer c (p.afterSigned v c u) := H₁.waveStage p.gauge (p.signedVelocity v c u) (p.signedPressure v c u) (p.signedGaussian v c u) hX₂ have ht := MeanStageRegularity.temporalStage_primitive H₂ ha hd hell rfl p.timeExponent p.commonIndex p.axial have hgt := MeanStageRegularity.rankGeometry_for_state ht ha p.gauge.radial.inner_lt_outer hg have hθ := H₂.theta ha p.gauge.radial.inner_lt_outer have hz := H₂.axial_reconstructed ha hd hell rfl intro n x hx have he := p.next_preserve_masses v c u U ha hd hell H.mean.regular.smooth ⟨H.mean.radial.supported,H.mean.angular.supported,H.mean.axial.supported⟩ hθ.smooth hz.smooth hθ.periodic hz.periodic hθ.supported hz.supported hgt hlength hleft hright n hx exact ⟨he.1.trans (hm n x hx).1, he.2.trans (hm n x hx).2⟩ end CycleParameters end CycleRegularityPreservation section CycleAssociationTransport open Set WeightedClasses CorrectionState open scoped BigOperators section Reindex variable {D E : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] [NormedAddCommGroup E] [NormedSpace ℝ E] end Reindex end CycleAssociationTransport section CycleResidualGrouping open Set CorrectionState open scoped BigOperators namespace CycleRepresentation variable {ι : Type} {v : CycleCoefficients ι} {u : State CyclePoint} {axis : AxisymmetricAlias} theorem withAxis (h : CycleRepresentation v u axis) : AxisymmetricResidualGrouping.Representation v.labels v.blocks v.gaussian v.aliasCoefficients u axis := ⟨h.velocity, h.pressure, h.gaussian, h.aliasError⟩ theorem fullGoodWaveResidual_grouped_local (h : CycleRepresentation v u axis) {U : Set CyclePoint} (hU : IsOpen U) {c : Context CyclePoint} {n : ℕ} (hr : LocalResidualGrouping.ExtractionRegular U c u v.labels v.blocks v.gaussian v.aliasCoefficients n) {x : CyclePoint × ℝ} (hx : x ∈ HarmonicResidual.liftDomain U) (i : Fin 3) : fullGoodWaveResidual c u n x i = ∑ l ∈ v.labels n, (HarmonicResidual.residualBlock c u (v.blocks l) (v.gaussian l) (v.aliasCoefficients l)).oscillation n x i := LocalResidualGrouping.stateGoodWaveResidual_grouped hU h.withAxis hr hx i theorem fullResidual_reconstructed_local (h : CycleRepresentation v u axis) {U : Set CyclePoint} (hU : IsOpen U) {c : Context CyclePoint} {n : ℕ} (hr : LocalResidualGrouping.ExtractionRegular U c u v.labels v.blocks v.gaussian v.aliasCoefficients n) {x : CyclePoint × ℝ} (hx : x ∈ HarmonicResidual.liftDomain U) (i : Fin 3) : fullResidual c u n x i = (∑ l ∈ v.labels n, (HarmonicResidual.residualBlock c u (v.blocks l) (v.gaussian l) (v.aliasCoefficients l)).oscillation n x i) + (HarmonicResidual.stateMeanCoefficientValue v.labels v.blocks v.gaussian v.aliasCoefficients c u n x.1 i - axis n x.1 i) + u.errors.total n x i := LocalResidualGrouping.stateFullResidual_reconstructed hU h.withAxis hr hx i end CycleRepresentation end CycleResidualGrouping section RealCoefficientStructure open Set Filter CorrectionState HarmonicFields open scoped Topology ComplexConjugate /-- The stored coefficients themselves represent real fields. Retaining this algebraic invariant lets support of the real projection control the same coefficients used in the differentiated interaction estimates. -/ structure CycleRealCoefficients {ι : Type} (v : CycleCoefficients ι) : Prop where velocity : ∀ l n i, ConjugateSymmetric ((v.blocks l).velocity n i) pressure : ∀ l n, ConjugateSymmetric ((v.blocks l).pressure n) gaussian : ∀ l n i, ConjugateSymmetric (v.gaussian l n i) private theorem conjugate_add {D : Type} {a b : Coefficients D} (ha : ConjugateSymmetric a) (hb : ConjugateSymmetric b) : ConjugateSymmetric (a+b) := by intro j x change a (-j) x + b (-j) x = conj (a j x + b j x) rw [ha j x, hb j x, map_add] private theorem conjugate_pull {D E : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] [NormedAddCommGroup E] [NormedSpace ℝ E] (e : D ≃ₗᵢ[ℝ] E) {a : Coefficients E} (ha : ConjugateSymmetric a) : ConjugateSymmetric (StateReindex.coefficients e a) := fun j x => ha j (e x) namespace CycleParameters variable {ι : Type} (p : CycleParameters ι) (v : CycleCoefficients ι) (c : Context CyclePoint) (u : State CyclePoint) theorem particularBlock_real (l : ι) : ErrorHarmonics.RealBlock (p.particularBlock v c u l) := ⟨fun n i => conjugate_pull cycleAssoc ((ParticularWaveAssembly.assembledBlock_real _ _ _ _ _ _).1 n i), fun n => conjugate_pull cycleAssoc ((ParticularWaveAssembly.assembledBlock_real _ _ _ _ _ _).2 n)⟩ theorem signedBlock_real (l : ι) : ErrorHarmonics.RealBlock (p.signedBlock v c u l) := SignedWaveUpdate.coefficientBlock_symmetric _ _ _ _ _ theorem next_realCoefficients (h : CycleRealCoefficients v) : CycleRealCoefficients (p.nextCoefficients v c u) := by have hpv l n i : ConjugateSymmetric ((p.particularBlock v c u l).velocity n i) := conjugate_pull cycleAssoc ((ParticularWaveAssembly.assembledBlock_real _ _ _ _ _ _).1 n i) have hpp l n : ConjugateSymmetric ((p.particularBlock v c u l).pressure n) := conjugate_pull cycleAssoc ((ParticularWaveAssembly.assembledBlock_real _ _ _ _ _ _).2 n) have hpg l n i : ConjugateSymmetric ((p.particularGaussianBlock v c u l).velocity n i) := conjugate_pull cycleAssoc ((ParticularWaveAssembly.assembledBlock_real _ _ _ _ _ _).1 n i) have hsv l n i : ConjugateSymmetric ((p.signedBlock v c u l).velocity n i) := (SignedWaveUpdate.coefficientBlock_symmetric _ _ _ _ _).1 n i have hsp l n : ConjugateSymmetric ((p.signedBlock v c u l).pressure n) := (SignedWaveUpdate.coefficientBlock_symmetric _ _ _ _ _).2 n have hsg l n i : ConjugateSymmetric ((p.signedGaussianBlock v c u l).velocity n i) := (SignedWaveUpdate.coefficientBlock_symmetric _ _ _ _ _).1 n i exact ⟨fun l n i => conjugate_add (conjugate_add (h.velocity l n i) (hpv l n i)) (hsv l n i), fun l n => conjugate_add (conjugate_add (h.pressure l n) (hpp l n)) (hsp l n), fun l n i => conjugate_add (conjugate_add (h.gaussian l n i) (hpg l n i)) (hsg l n i)⟩ end CycleParameters theorem block_velocity_zero_germ_of_inputSupport {U : Set CyclePoint} {S : ℕ → Set CyclePoint} (hU : IsOpen U) (hS : ∀ n, IsClosed (S n)) {b : HarmonicBlock CyclePoint} {G A : HarmonicResidual.BlockCoefficients CyclePoint} (hs : HarmonicSourceSupport.InputSupportOn U S b G A) (hr : ∀ n i, ConjugateSymmetric (b.velocity n i)) (n : ℕ) {x : CyclePoint} (hx : x ∈ U) (hn : x ∉ S n) (i : Fin 3) (j : ℤ) (hj : j ≠ 0) : b.velocity n i j =ᶠ[𝓝 x] fun _ => 0 := by apply PeriodizedWaveBounds.zero_germ_of_support (hU.isClosed_compl.union (hS n)) · have hh := (hs.velocity n i).enlarge j hj rw [HarmonicResidual.realCoefficients_eq_self (hr n i)] at hh intro z hz by_contra hz' exact hz (hh z hz') · simpa using And.intro hx hn /-- The genuine input support controls raw nonzero coefficient germs because their real-projection identity is retained. -/ theorem velocity_zero_germ_of_inputSupport {ι : Type} {v : CycleCoefficients ι} {U : Set CyclePoint} {S : ι → ℕ → Set CyclePoint} (hU : IsOpen U) (hS : ∀ l n, IsClosed (S l n)) (hs : ∀ l, HarmonicSourceSupport.InputSupportOn U (S l) (v.blocks l) (v.gaussian l) (v.aliasCoefficients l)) (hr : CycleRealCoefficients v) (l : ι) (n : ℕ) {x : CyclePoint} (hx : x ∈ U) (hn : x ∉ S l n) (i : Fin 3) (j : ℤ) (hj : j ≠ 0) : (v.blocks l).velocity n i j =ᶠ[𝓝 x] fun _ => 0 := by apply PeriodizedWaveBounds.zero_germ_of_support (hU.isClosed_compl.union (hS l n)) · have hh := ((hs l).velocity n i).enlarge j hj rw [HarmonicResidual.realCoefficients_eq_self (hr.velocity l n i)] at hh intro z hz by_contra hz' exact hz (hh z hz') · simpa using And.intro hx hn end RealCoefficientStructure section AnalyticInvariant open Set WeightedClasses MeanIncrementBounds CorrectionState LocalSignedRequest open scoped ContDiff BigOperators namespace CycleRepresentation variable {ι : Type} {v : CycleCoefficients ι} {u : State CyclePoint} {axis : AxisymmetricAlias} theorem alias_eq_lift (h : CycleRepresentation v u axis) (hz : ∀ l, v.aliasCoefficients l = 0) : u.errors.aliasError = fun n x => axis n x.1 := by funext n x i rw [h.aliasError] simp only [hz, coefficientField, Pi.zero_apply, HarmonicResidual.field_zero, Complex.zero_re, Finset.sum_const_zero, zero_add] theorem gaussian_angularContinuous (h : CycleRepresentation v u axis) : AngularContinuous u.errors.gaussian := by let b : ι → HarmonicBlock CyclePoint := fun l => ⟨v.gaussian l, 0, (v.blocks l).frequency, (v.blocks l).phase, (v.blocks l).angularFrequency⟩ have he : u.errors.gaussian = LabelSumBounds.fieldSum v.labels (fun l => (b l).oscillation) := by funext n x i exact h.gaussian n x i rw [he] exact LabelSumBounds.fieldSum_angularContinuous _ _ (fun _ => block_angularContinuous _) end CycleRepresentation /-- The quantitative and local regularity invariant is stated on the actual stored fields of `CycleState`, including the independent alias. Its definition makes no assertion that an arbitrary step preserves it. -/ structure CycleAnalyticInvariant {ι : Type} (G : SignedMeanGain.Geometry) (c : Context CyclePoint) (primary : ι → HarmonicBlock CyclePoint) (P : ι → ℕ → CyclePoint → ℝ) (labelCarrier : ι → ℕ → Set CyclePoint) (σ : ℝ) (x : CycleState ι) : Prop where representation : CycleRepresentation x.coefficients x.state x.axisymmetricAlias bands : CoefficientBands x.coefficients realCoefficients : CycleRealCoefficients x.coefficients inputSupport : ∀ l, HarmonicSourceSupport.InputSupportOn G.domain (labelCarrier l) (x.coefficients.blocks l) (x.coefficients.gaussian l) (x.coefficients.aliasCoefficients l) sourceBand : ∀ l, (HarmonicResidual.residualBlock c x.state (x.coefficients.blocks l) (x.coefficients.gaussian l) (x.coefficients.aliasCoefficients l)).BandLimited x.coefficients.residualBand zeroVelocity : ∀ l, HarmonicWaveInteraction.ZeroMode (x.coefficients.blocks l) zeroPressure : ∀ l n, (x.coefficients.blocks l).pressure n 0 = 0 carrier : ∀ l, SameCarrier (x.coefficients.blocks l) (primary l) phase : ∀ l n, ContDiffOn ℝ ∞ ((x.coefficients.blocks l).phase n) G.strip.domain frequency : ∀ l n, (x.coefficients.blocks l).frequency n ≠ 0 angular : ∀ l n, (x.coefficients.blocks l).angularFrequency n ≠ 0 coefficientSmooth : ∀ l n i, HarmonicResidual.SmoothCoefficients G.domain ((x.coefficients.blocks l).velocity n i) pressureCoefficientSmooth : ∀ l n, HarmonicResidual.SmoothCoefficients G.domain ((x.coefficients.blocks l).pressure n) gaussianCoefficientSmooth : ∀ l n i, HarmonicResidual.SmoothCoefficients G.domain (x.coefficients.gaussian l n i) solenoidal : ∀ l, HarmonicWaveInteraction.ModeSolenoidal G.strip c (x.coefficients.blocks l) wave : ∀ i j, LabelSumBounds.UniformWaveClass G.strip P (1/2) (fun l n z => (x.coefficients.blocks l).velocity n i j z) pressure : ∀ j, LabelSumBounds.UniformWaveClass G.strip P 1 (fun l n z => (x.coefficients.blocks l).pressure n j z) difference : ∀ i j, LabelSumBounds.UniformWaveClass G.strip P (17/25) (fun l n z => (x.coefficients.blocks l).velocity n i j z - (primary l).velocity n i j z) cumulative : CorrectionState.CumulativeBounds G.strip x.state covariance : ∀ i j, MeanClass G.strip 1 (x.state.covariance i j) residual : UniformHarmonicInteraction.UniformVelocity G.strip P (1/2+σ) (fun l => HarmonicResidual.residualBlock c x.state (x.coefficients.blocks l) (x.coefficients.gaussian l) (x.coefficients.aliasCoefficients l)) mean : MeanResidualBounds G.strip σ c x.state meanHypotheses : LiftedMeanResidual.MeanHypotheses G.strip.domain c x.state debt : DefectBounds G.slowStrip σ c x.state primitives : MeanStateRegularity.PrimitiveData G.region G.patch.a G.patch.b c x.state reconstructed : VariableGaugeMean.reconstructState G.gauge c x.state = x.state masses : GaugeMassPreservation.ZeroMassesOn G.region.carrier x.state oscillationSmooth : WaveStateRegularity.AngularSmooth G.domain x.state.oscillation oscillatoryPressureSmooth : ∀ n, ContDiffOn ℝ ∞ (x.state.oscillatoryPressure n) (G.domain ×ˢ (Set.univ : Set ℝ)) oscillationPeriodic : OscillationPeriodic G.region.carrier x.state.oscillation oscillationSupport : WaveStateRegularity.WaveSupport G.region G.patch.a G.patch.b x.state.oscillation gaussianFlat : ∀ β i j, LabelSumBounds.UniformClass G.strip (fun _ _ z => Real.sqrt (G.strip.zeta z)) β (fun l n z => x.coefficients.gaussian l n i j z) gaussianMean : angularMeanVector x.state.errors.gaussian = 0 aliasCoefficients : ∀ l, x.coefficients.aliasCoefficients l = 0 axisFlat : ∀ β, MeanClass G.strip β x.axisymmetricAlias baseAngular : ∀ n z, z ∈ G.domain → ∀ i, Continuous (fun θ : ℝ => x.state.errors.base n (z, θ) i) namespace CycleAnalyticInvariant variable {ι : Type} {G : SignedMeanGain.Geometry} {c : Context CyclePoint} {primary : ι → HarmonicBlock CyclePoint} {P : ι → ℕ → CyclePoint → ℝ} {labelCarrier : ι → ℕ → Set CyclePoint} {σ : ℝ} {x : CycleState ι} /-- Raw residual classes required by the next signed request are derived from the good-mean invariant and the actual all-power axis alias. -/ theorem raw_mean_bounds (H : CycleAnalyticInvariant G c primary P labelCarrier σ x) : MeanClass G.strip (1+σ) (x.state.thetaResidual c) ∧ MeanClass G.strip (1+σ) (x.state.axialResidual c) := by have ha := H.representation.alias_eq_lift H.aliasCoefficients have hca : AngularContinuous x.state.errors.aliasError := by rw [ha] intro n z i change Continuous (fun _ : ℝ => x.axisymmetricAlias n z i) exact continuous_const have ham : angularMeanVector x.state.errors.aliasError = x.axisymmetricAlias := by rw [ha] funext n z i exact congrFun (congrFun (angularAverage_axisymmetric (fun n z => x.axisymmetricAlias n z i)) n) z have he n z hz i := meanGoodResidual_at c x.state n z i (H.baseAngular n z (G.strip_subset hz) i) (H.representation.gaussian_angularContinuous n z i) (hca n z i) have haxis (i : Fin 3) : MeanClass G.strip (1+σ) (fun n z => x.axisymmetricAlias n z i) := (H.axisFlat (1+σ)).map (ContinuousLinearMap.proj i) constructor · apply class_congr (H.mean.angular.add (haxis 1)) intro n z hz dsimp only rw [he n z hz 1, H.gaussianMean, ham] change x.state.thetaResidual c n z = x.state.thetaResidual c n z - 0 - x.axisymmetricAlias n z 1 + x.axisymmetricAlias n z 1 ring · apply class_congr (H.mean.axial.add (haxis 2)) intro n z hz dsimp only rw [he n z hz 2, H.gaussianMean, ham] change x.state.axialResidual c n z = x.state.axialResidual c n z - 0 - x.axisymmetricAlias n z 2 + x.axisymmetricAlias n z 2 ring end CycleAnalyticInvariant end AnalyticInvariant section ActualWaveCycleGain open Set Filter WeightedClasses MeanIncrementBounds CorrectionState open LabelSumBounds UniformHarmonicInteraction open scoped ContDiff Topology BigOperators namespace CycleParameters variable {ι : Type} (p : CycleParameters ι) (v : CycleCoefficients ι) (c : Context CyclePoint) (u : State CyclePoint) /-- The two constructed linear cancellations give the improved residual of the literal post-signed state, including both nonlinear wave updates. The linear estimates are the native equation/jet outputs, not estimates on either complete updated residual. -/ theorem waveStages_residual_gain {P : ι → ℕ → CyclePoint → ℝ} {σ κ : ℝ} (hσ : 1/5 ≤ σ) (hκsmall : κ ≤ 1/100000) (ho : OperatorBounds p.strip c.operators κ) (hR : ∀ x ∈ p.strip.domain, 0 < c.operators.radius x) (hbase : BaseBounds p.strip c.base) (hu : MeanIncrementBounds.CumulativeBounds p.strip u.mean) (hc : ∀ l, SameCarrier (v.blocks l) (p.signedBlock v c u l)) (hold : ∀ i j, UniformWaveClass p.strip P (1/2) (fun l n x => (v.blocks l).velocity n i j x)) (hpart : ∀ i j, UniformWaveClass p.strip P (1/2+σ) (fun l n x => (p.particularBlock v c u l).velocity n i j x)) (hsigned : ∀ i j, UniformWaveClass p.strip P (1/2+σ-κ) (fun l n x => (p.signedBlock v c u l).velocity n i j x)) (hpold : ∀ l n, HarmonicResidual.SmoothCoefficients p.strip.domain ((v.blocks l).pressure n)) (hppart : ∀ l n, HarmonicResidual.SmoothCoefficients p.strip.domain ((p.particularBlock v c u l).pressure n)) (hpsigned : ∀ l n, HarmonicResidual.SmoothCoefficients p.strip.domain ((p.signedBlock v c u l).pressure n)) (hzero : ∀ l, HarmonicWaveInteraction.ZeroMode (v.blocks l)) (hband : ∀ l, (v.blocks l).BandLimited v.residualBand) (hphase : ∀ l n, ContDiffOn ℝ ∞ ((v.blocks l).phase n) p.strip.domain) (hk : ∀ l n, (v.blocks l).frequency n ≠ 0) (hkp : ∀ l n, (v.blocks l).angularFrequency n ≠ 0) (hdiv : ∀ l, HarmonicWaveInteraction.ModeSolenoidal p.strip c (v.blocks l)) (hdivpart : ∀ l, HarmonicWaveInteraction.ModeSolenoidal p.strip c (p.particularBlock v c u l)) (hdivsigned : ∀ l, HarmonicWaveInteraction.ModeSolenoidal p.strip c (p.signedBlock v c u l)) {C : ℕ → ι → Set CyclePoint} (hNormal : ∀ i, LocalizedWaveBounds.LocalUnweighted p.strip C 0 (fun n l x => HarmonicMeanInteraction.slowNormal c ho hR (v.blocks l).phase n x i)) (hFreq : LocalizedWaveBounds.LocalUnweighted p.strip C (-(1/2)) (fun n l _ => (v.blocks l).frequency n)) (hAng : LocalizedWaveBounds.LocalUnweighted p.strip C (-(1/2)) (fun n l _ => ((v.blocks l).angularFrequency n : ℝ))) (hzpart : ∀ n l x, x ∈ p.strip.domain → x ∉ C n l → ∀ i j, j ≠ 0 → (p.particularBlock v c u l).velocity n i j =ᶠ[𝓝 x] fun _ => 0) (hzsigned : ∀ n l x, x ∈ p.strip.domain → x ∉ C n l → ∀ i j, j ≠ 0 → (p.signedBlock v c u l).velocity n i j =ᶠ[𝓝 x] fun _ => 0) (hP0 : ∀ l n x, x ∈ p.strip.domain → 0 ≤ P l n x) (hP1 : ∀ l n x, x ∈ p.strip.domain → P l n x ≤ 1) (hlinearP : ∀ i j, j ≠ 0 → UniformWaveClass p.strip P (1+σ-3*κ) (fun l n x => (HarmonicResidual.residualBlock c u (v.blocks l) (v.gaussian l) (v.aliasCoefficients l)).velocity n i j x + (HarmonicWaveInteraction.linearGoodBlock c (v.blocks l) (p.particularBlock v c u l) (p.particularGaussianBlock v c u l).velocity).velocity n i j x)) (hlinearS : UniformVelocity p.strip P (1+σ-4*κ) (fun l => HarmonicWaveInteraction.linearGoodBlock c (p.beforeSignedBlock v c u l) (p.signedBlock v c u l) (p.signedGaussianBlock v c u l).velocity)) : UniformVelocity p.strip P (1/2+σ+1/10) (fun l => HarmonicResidual.residualBlock c (p.afterSigned v c u) (p.finalBlock v c u l) ((p.nextCoefficients v c u).gaussian l) (v.aliasCoefficients l)) ∧ (∀ l, HarmonicWaveInteraction.ModeSolenoidal p.strip c (p.finalBlock v c u l)) := by have hκhalf : κ ≤ 1/2 := by linarith have hpart0 l := p.particularBlock_zero v c u l have hsigned0 l := (p.signed l).exactBlock_zero p.strip (p.signedRequest v c u) have hpartc l := p.particular_carrier v c u l have hpartdiv l : HarmonicWaveInteraction.ModeSolenoidal p.strip c (HarmonicWaveInteraction.withCarrier (v.blocks l) (p.particularBlock v c u l)) := by rw [withCarrier_of_same (hpartc l)] exact hdivpart l have hfirst := waveStage_residual_uniform c ho hκhalf hR u (p.afterParticular v c u) (p.afterParticular_mean v c u) (meanIncrement_of_cumulative hu) hbase.smooth v.blocks (p.particularBlock v c u) (fun i j _ => hold i j) (fun i j _ => hpart i j) hzero hpart0 hband (p.particularBlock_band v c u) hphase hk hkp hdiv hpartdiv hNormal hFreq hAng hzpart hP0 hP1 hpold hppart v.gaussian (fun l => (p.particularGaussianBlock v c u l).velocity) v.aliasCoefficients v.aliasCoefficients (fun _ _ _ => by rw [sub_self]; exact HarmonicResidual.band_zero _) (fun i j hj => (hlinearP i j hj).mono_exponent (show 1/2+σ+1/10 ≤ 1+σ-3*κ by linarith)) (by linarith) (by linarith) (by linarith) have hbefore : ∀ i j, UniformWaveClass p.strip P (1/2) (fun l n x => (p.beforeSignedBlock v c u l).velocity n i j x) := by intro i j exact (hold i j).add ((hpart i j).mono_exponent (by linarith)) have hbzero l : HarmonicWaveInteraction.ZeroMode (p.beforeSignedBlock v c u l) := HarmonicStructurePreservation.zeroMode_addBlock (hzero l) (hpart0 l) have hbband l : (p.beforeSignedBlock v c u l).BandLimited v.residualBand := by have hb := addBlock_band (hband l) (p.particularBlock_band v c u l) simp only [max_self] at hb exact hb have hbdiv l : HarmonicWaveInteraction.ModeSolenoidal p.strip c (p.beforeSignedBlock v c u l) := HarmonicStructurePreservation.modeSolenoidal_addBlock (hpartc l).frequency (hpartc l).phase (hpartc l).angular (fun n i j => (hold i j).smooth l n) (fun n i j => (hpart i j).smooth l n) (hphase l) (hdiv l) (hdivpart l) have hbpressure l n : HarmonicResidual.SmoothCoefficients p.strip.domain ((p.beforeSignedBlock v c u l).pressure n) := by intro j exact (hpold l n j).add (hppart l n j) have hbsame l : SameCarrier (p.beforeSignedBlock v c u l) (p.signedBlock v c u l) := ⟨(hc l).frequency,(hc l).phase,(hc l).angular⟩ have hsdiv l : HarmonicWaveInteraction.ModeSolenoidal p.strip c (HarmonicWaveInteraction.withCarrier (p.beforeSignedBlock v c u l) (p.signedBlock v c u l)) := by rw [withCarrier_of_same (hbsame l)] exact hdivsigned l have hm : (p.afterSigned v c u).mean = (p.afterParticular v c u).mean := by rw [p.afterSigned_mean v c u, p.afterParticular_mean v c u] have hmean : IncrementBounds p.strip (9/10) (p.afterParticular v c u).mean := by rw [p.afterParticular_mean v c u] exact meanIncrement_of_cumulative hu have hsecond := waveStage_residual_uniform c ho hκhalf hR (p.afterParticular v c u) (p.afterSigned v c u) hm hmean hbase.smooth (p.beforeSignedBlock v c u) (p.signedBlock v c u) (fun i j _ => hbefore i j) (fun i j _ => hsigned i j) hbzero hsigned0 hbband (fun l => (p.signed l).exactBlock_band p.strip (p.signedRequest v c u)) hphase hk hkp hbdiv hsdiv hNormal hFreq hAng hzsigned hP0 hP1 hbpressure hpsigned (fun l => v.gaussian l + (p.particularGaussianBlock v c u l).velocity) (fun l => (p.signedGaussianBlock v c u l).velocity) v.aliasCoefficients v.aliasCoefficients (fun _ _ _ => by rw [sub_self]; exact HarmonicResidual.band_zero _) (fun i j hj => (hfirst i j hj).add ((hlinearS i j hj).mono_exponent (show 1/2+σ+1/10 ≤ 1+σ-4*κ by linarith))) (by linarith) (by linarith) (by linarith) refine ⟨hsecond, ?_⟩ intro l exact HarmonicStructurePreservation.modeSolenoidal_addBlock (hbsame l).frequency (hbsame l).phase (hbsame l).angular (fun n i j => (hbefore i j).smooth l n) (fun n i j => (hsigned i j).smooth l n) (hphase l) (hbdiv l) (hdivsigned l) end CycleParameters end ActualWaveCycleGain section DerivedRequestGain open Set WeightedClasses MeanIncrementBounds CorrectionState VariableGaugeMean LocalSignedRequest open scoped ContDiff /-- The actual full signed request is controlled by the current raw residuals. Their smoothness and support are derived from primitive state regularity and the actual pressure reconstruction. -/ theorem fullRequest_bounds_of_primitive (G : SignedMeanGain.Geometry) (c : Context Point) (u : State Point) (H : MeanStateRegularity.PrimitiveData G.region G.patch.a G.patch.b c u) (hfixed : (reconstructState G.gauge c u).pressure = u.pressure) {α : ℝ} (hθ : MeanClass G.strip α (u.thetaResidual c)) (hz : MeanClass G.strip α (u.axialResidual c)) : ∀ i, MeanClass (HarmonicWaveInteraction.productStrip G.strip) (α-1) (fun n x => fullRequest G.strip G.patch G.coord c u n x i) := by have H₀ : MeanStateRegularity.PrimitiveData G.region G.gauge.radial.inner G.gauge.radial.outer c u := by simpa only [G.inner_eq, G.outer_eq] using H have ht := H.theta G.patch.a_pos G.patch.a_lt_b have hz' := H₀.axial_reconstructed G.inner_pos G.exponent_pos G.length_eq hfixed have hs : ∀ n, MovingSupport G.patch.a G.patch.b G.coord G.region.carrier (u.axialResidual c n) := by simpa only [G.inner_eq, G.outer_eq] using fun n => MeanStateRegularity.MovingField.movingSupport hz' n exact fullRequest_class G.strip G.patch G.coord c u (normalizedRequest_class G.region G.patch G.left_pos G.right_pos G.epsilon G.slow G.epsilon_pos G.epsilon_le_one G.slow_ge_one c u α ht.smooth hz'.smooth (fun n => MeanStateRegularity.MovingField.movingSupport ht n) hs hθ hz) /-- The first actual wave supplies the current raw residuals and debt used by the signed request. No post-wave residual estimate is assumed. -/ theorem waveStage_mean_gain (G : SignedMeanGain.Geometry) (c : Context Point) (u : State Point) (w : Oscillation Point) (q : OscillatoryScalar Point) (gaussian : Oscillation Point) {σ κ : ℝ} (hσ : 1/5 ≤ σ) (hκ : 0 ≤ κ) (hκsmall : κ ≤ 1/100000) (H : MeanStateRegularity.PrimitiveData G.region G.patch.a G.patch.b c u) (ho : OperatorBounds G.strip c.operators κ) (hb : BaseBounds G.strip c.base) (hu : CorrectionState.CumulativeBounds G.strip u) (hfixed : (reconstructState G.gauge c u).pressure = u.pressure) (hθ : MeanClass G.strip (1+σ) (u.thetaResidual c)) (hz : MeanClass G.strip (1+σ) (u.axialResidual c)) (hd : DefectBounds G.slowStrip σ c u) (hX : ∀ i j, GaugeMomentBalances.MovingField G.region G.patch.a G.patch.b (SignedMeanGain.covarianceIncrement u.oscillation w i j)) (hXC : SignedMeanGain.TensorClass G.strip (1+σ) (SignedMeanGain.covarianceIncrement u.oscillation w)) : let next := SignedMeanGain.waveStage G.gauge c u w q gaussian MeanClass G.strip (1+σ-κ) (next.pressure-u.pressure) ∧ CorrectionState.CumulativeBounds G.strip next ∧ MeanClass G.strip (1+σ-κ) (next.thetaResidual c) ∧ MeanClass G.strip (1+σ-κ) (next.axialResidual c) ∧ DefectBounds G.slowStrip (σ-κ) c next ∧ (∀ i, MeanClass (HarmonicWaveInteraction.productStrip G.strip) (σ-κ) (fun n x => fullRequest G.strip G.patch G.coord c next n x i)) := by dsimp only have hs : movingStripData G.region G.gauge.radial.inner G.gauge.radial.outer G.leftWeight G.rightWeight G.inner_pos G.left_pos G.right_pos G.epsilon G.slow G.epsilon_pos G.epsilon_le_one G.slow_ge_one = G.strip := by simp only [SignedMeanGain.Geometry.strip, G.inner_eq, G.outer_eq] have H₀ : MeanStateRegularity.PrimitiveData G.region G.gauge.radial.inner G.gauge.radial.outer c u := by simpa only [G.inner_eq, G.outer_eq] using H have HX : ∀ i j, GaugeDebtIncrement.Regular G.region G.gauge.radial.inner G.gauge.radial.outer (SignedMeanGain.covarianceIncrement u.oscillation w i j) := by simpa only [G.inner_eq, G.outer_eq] using (fun i j => MeanStateRegularity.MovingField.regular (hX i j)) have hf := gaugeWaveStage_mean_from_covariance G.region G.gauge G.inner_pos G.exponent_pos G.left_pos G.right_pos G.epsilon G.slow G.epsilon_pos G.epsilon_le_one G.slow_ge_one G.length_eq c u w q gaussian H.operators.regular H.base.smooth H₀.mean.regular (fun i j => MeanStateRegularity.MovingField.regular (H₀.covariance i j)) HX (hs.symm ▸ ho) (hs.symm ▸ hXC) hfixed (hs.symm ▸ hb) (hs.symm ▸ hu) (show 9/10 ≤ (1+σ)-κ by linarith) le_rfl (hs.symm ▸ hθ.mono_exponent (by linarith)) (hs.symm ▸ hz.mono_exponent (by linarith)) (fun i => (hd i).mono_exponent (by linarith)) rw [hs] at hf obtain ⟨hp, hcum, htheta, haxial, hdebt⟩ := hf have Hn := H.waveStage G.gauge w q gaussian hX refine ⟨hp, hcum, htheta, haxial, ?_, ?_⟩ · simpa only [DefectBounds, SignedMeanGain.Geometry.slowStrip, show 1+(σ-κ) = 1+σ-κ by ring] using hdebt · have hr := fullRequest_bounds_of_primitive G c _ Hn (congrArg (fun a : State Point => a.pressure) (GaugeMomentBalances.reconstructState_idempotent _ _ _)) htheta haxial simpa only [show (1+σ-κ)-1 = σ-κ by ring] using hr end DerivedRequestGain section FurtherPreservation open Set WeightedClasses MeanIncrementBounds CorrectionState open scoped ContDiff namespace CycleParameters variable {ι : Type} (p : CycleParameters ι) (v : CycleCoefficients ι) (c : Context CyclePoint) (u : State CyclePoint) /-- Mean stages and the alias refresh leave the actual wave covariance unchanged. Both finite wave increments are retained in this identity. -/ theorem next_covariance : (p.next v c u).covariance = u.covariance + SignedMeanGain.covarianceIncrement u.oscillation (p.particularVelocity v c u) + SignedMeanGain.covarianceIncrement (p.afterParticular v c u).oscillation (p.signedVelocity v c u) := by change bilinearCovariance (p.next v c u).oscillation (p.next v c u).oscillation = _ rw [p.next_oscillation] change bilinearCovariance (u.oscillation + p.particularVelocity v c u + p.signedVelocity v c u) (u.oscillation + p.particularVelocity v c u + p.signedVelocity v c u) = bilinearCovariance u.oscillation u.oscillation + (bilinearCovariance (u.oscillation + p.particularVelocity v c u) (u.oscillation + p.particularVelocity v c u) - bilinearCovariance u.oscillation u.oscillation) + (bilinearCovariance (u.oscillation + p.particularVelocity v c u + p.signedVelocity v c u) (u.oscillation + p.particularVelocity v c u + p.signedVelocity v c u) - bilinearCovariance (u.oscillation + p.particularVelocity v c u) (u.oscillation + p.particularVelocity v c u)) abel theorem next_covariance_mem {α β γ : ℝ} (hα : γ ≤ α) (hβ : γ ≤ β) (hold : ∀ i j, MeanClass p.strip γ (u.covariance i j)) (hp : SignedMeanGain.TensorClass p.strip α (SignedMeanGain.covarianceIncrement u.oscillation (p.particularVelocity v c u))) (hs : SignedMeanGain.TensorClass p.strip β (SignedMeanGain.covarianceIncrement (p.afterParticular v c u).oscillation (p.signedVelocity v c u))) : ∀ i j, MeanClass p.strip γ ((p.next v c u).covariance i j) := by intro i j rw [p.next_covariance v c u] exact ((hold i j).add ((hp i j).mono_exponent hα)).add ((hs i j).mono_exponent hβ) /-- The edge weight is retained in all new Gaussian coefficients. -/ theorem next_gaussian_mem {w : ι → ℕ → CyclePoint → ℝ} {β : ℝ} (hold : ∀ i j, LabelSumBounds.UniformClass p.strip w β (fun l n z => v.gaussian l n i j z)) (hp : ∀ i j, LabelSumBounds.UniformClass p.strip w β (fun l n z => (p.particularGaussianBlock v c u l).velocity n i j z)) (hs : ∀ i j, LabelSumBounds.UniformClass p.strip w β (fun l n z => (p.signedGaussianBlock v c u l).velocity n i j z)) : ∀ i j, LabelSumBounds.UniformClass p.strip w β (fun l n z => (p.nextCoefficients v c u).gaussian l n i j z) := fun i j => ((hold i j).add (hp i j)).add (hs i j) theorem next_inputSupport {U : Set CyclePoint} {S : ι → ℕ → Set CyclePoint} (hold : ∀ l, HarmonicSourceSupport.InputSupportOn U (S l) (v.blocks l) (v.gaussian l) (v.aliasCoefficients l)) (hp : ∀ l, HarmonicSourceSupport.InputSupportOn U (S l) (p.particularBlock v c u l) (p.particularGaussianBlock v c u l).velocity 0) (hs : ∀ l, HarmonicSourceSupport.InputSupportOn U (S l) (p.signedBlock v c u l) (p.signedGaussianBlock v c u l).velocity 0) : ∀ l, HarmonicSourceSupport.InputSupportOn U (S l) ((p.nextCoefficients v c u).blocks l) ((p.nextCoefficients v c u).gaussian l) ((p.nextCoefficients v c u).aliasCoefficients l) := fun l => LabelSupportPreservation.inputSupport_two_updates (hold l) (hp l) (hs l) theorem next_oscillation_smooth {U : Set CyclePoint} (hold : WaveStateRegularity.AngularSmooth U u.oscillation) (hp : WaveStateRegularity.AngularSmooth U (p.particularVelocity v c u)) (hs : WaveStateRegularity.AngularSmooth U (p.signedVelocity v c u)) : WaveStateRegularity.AngularSmooth U (p.next v c u).oscillation := by rw [p.next_oscillation] exact (hold.add hp).add hs theorem next_oscillation_periodic {U : Set PressureStream.Plane} (hold : OscillationPeriodic U u.oscillation) (hp : OscillationPeriodic U (p.particularVelocity v c u)) (hs : OscillationPeriodic U (p.signedVelocity v c u)) : OscillationPeriodic U (p.next v c u).oscillation := by rw [p.next_oscillation] exact (hold.add hp).add hs theorem next_oscillation_support {coord a b : ℝ} {U : LocalSignedRequest.SlowRegion coord} (hold : WaveStateRegularity.WaveSupport U a b u.oscillation) (hp : WaveStateRegularity.WaveSupport U a b (p.particularVelocity v c u)) (hs : WaveStateRegularity.WaveSupport U a b (p.signedVelocity v c u)) : WaveStateRegularity.WaveSupport U a b (p.next v c u).oscillation := by rw [p.next_oscillation] exact (hold.add hp).add hs theorem finalBlock_zero (hold : ∀ l, HarmonicWaveInteraction.ZeroMode (v.blocks l)) : ∀ l, HarmonicWaveInteraction.ZeroMode (p.finalBlock v c u l) := fun l => HarmonicStructurePreservation.zeroMode_addBlock (HarmonicStructurePreservation.zeroMode_addBlock (hold l) (p.particularBlock_zero v c u l)) ((p.signed l).exactBlock_zero p.strip (p.signedRequest v c u)) theorem finalBlock_pressure_zero (hold : ∀ l n, (v.blocks l).pressure n 0 = 0) : ∀ l n, (p.finalBlock v c u l).pressure n 0 = 0 := by intro l apply HarmonicStructurePreservation.zeroPressure_addBlock (HarmonicStructurePreservation.zeroPressure_addBlock (hold l) ?_) ((p.signed l).exactBlock_pressure_zero p.strip (p.signedRequest v c u)) intro n funext x exact congrFun ((ParticularWaveAssembly.assembledBlock_zero _ _ _ _ _ _).2 n) (cycleAssoc x) theorem finalBlock_pressure_cumulative {P : ι → ℕ → CyclePoint → ℝ} {σ κ : ℝ} (hσ : 1/5 ≤ σ) (hκsmall : κ ≤ 1/100000) (hold : ∀ j, LabelSumBounds.UniformWaveClass p.strip P 1 (fun l n z => (v.blocks l).pressure n j z)) (hp : ∀ j, LabelSumBounds.UniformWaveClass p.strip P (1+σ) (fun l n z => (p.particularBlock v c u l).pressure n j z)) (hs : ∀ j, LabelSumBounds.UniformWaveClass p.strip P (1+σ-κ) (fun l n z => (p.signedBlock v c u l).pressure n j z)) : ∀ j, LabelSumBounds.UniformWaveClass p.strip P 1 (fun l n z => (p.finalBlock v c u l).pressure n j z) := fun j => ((hold j).add ((hp j).mono_exponent (by linarith))).add ((hs j).mono_exponent (by linarith)) end CycleParameters end FurtherPreservation end NavierStokes.CorrectionStep