import Euler.PacketCylinderMeanStep import Euler.PacketCylinderPrefixLocality import Euler.PacketCylinderKnownForce import Euler.PacketCylinderFieldSupport import Euler.PacketCylinderHighMean import Euler.TransversePacketForcing /-! The literal recursive high forcing is admissible for the constructed transverse inverse. -/ /-! ## From `Euler/PacketCylinderHighSupport.lean` The text of `Euler/PacketCylinderHighSupport.lean`, folded into this file, which was its only importer. -/ section /-! # Support of the literal recursive high forcing Exterior pure-mean interactions are angle-independent and are removed by the actual angular mean. The remaining terms use only the already supported prefix high fields, correctors and physical pressure gradients. -/ noncomputable section namespace EulerPacketCylinderField open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerPacketPointJets EulerPacketProfileRecursion variable {P T : ℝ} [Fact (0 < P)] theorem Field.timeDerivative_zero_outside {raw raw_t : VectorField} (G : Field P T raw) (H : Field P T raw_t) (hT : 0 < T) (hd : TimeDerivative hT.le G H) (S : Set Space) (hs : ∀ (t : Icc (0 : ℝ) T) x, x ∉ S → ∀ θ : ℝ, raw (t,(x,θ)) = 0) (t : Icc (0 : ℝ) T) (x : Space) (hx : x ∉ S) (θ : ℝ) : raw_t (t,(x,θ)) = 0 := by have h₁ := G.raw_hasDerivWithinAt hT.le H hd t x θ have h₂ : HasDerivWithinAt (fun r => raw (r,(x,θ))) (0 : Space) (Icc (0 : ℝ) T) t := (hasDerivWithinAt_const (t : ℝ) (Icc (0 : ℝ) T) (0 : Space)).congr_of_mem (fun r hr => hs ⟨r,hr⟩ x hx θ) t.property exact (h₁.derivWithin ((uniqueDiffOn_Icc hT) _ t.property)).symm.trans (h₂.derivWithin ((uniqueDiffOn_Icc hT) _ t.property)) variable {O : Operators} {p : ℕ} {a : ℕ → Profile} theorem PrefixFields.knownForce_angleIndependent (F : PrefixFields P T p a) (C : CoefficientData P T O) (hp : 1 ≤ p) (hT : 0 < T) {corrector_t : VectorField} (Ct : Field P T corrector_t) (hCt : TimeDerivative hT.le (F.corrector (p-1) (by omega)) Ct) (S : Set Space) (hS : IsClosed S) (L : PrefixLocality T p a S) (hpressure : ∀ (t : Icc (0 : ℝ) T) x, x ∉ S → ∀ θ : ℝ, pressureGradient (a (p-1)).highPressure (t,(x,θ)) = 0) (t : Icc (0 : ℝ) T) (x : Space) (hx : x ∉ S) (θ : ℝ) : EulerPacketProfileRecursion.knownForce O p a (t,(x,θ)) = EulerPacketProfileRecursion.knownForce O p a (t,(x,0)) := by have hlin (s : ℝ) : linearPart (O.strain (t,(x,s))) (slicedJet O.interval (a (p-1)).corrector (t,(x,s))) = 0 := by change (slicedJet O.interval (a (p-1)).corrector (t,(x,s))).2 timeDirection + O.strain (t,(x,s)) ((a (p-1)).corrector (t,(x,s))) = 0 rw [C.interval_eq,(F.corrector (p-1) (by omega)).slicedJet_temporal hT Ct hCt] rw [(F.corrector (p-1) (by omega)).timeDerivative_zero_outside Ct hT hCt S (L.corrector_zero (p-1) (by omega)) t x hx s,L.corrector_zero (p-1) (by omega) t x hx s, map_zero,add_zero] have hpr (s : ℝ) : slowPressure (O.inverseFrame (t,(x,s))) (pressureJet (a (p-1)).highPressure (t,(x,s))) = 0 := by change (O.inverseFrame (t,(x,s))).adjoint (pressureGradient (a (p-1)).highPressure (t,(x,s))) = 0 rw [hpressure t x hx s,map_zero] unfold EulerPacketProfileRecursion.knownForce rw [hlin θ,hlin 0,hpr θ,hpr 0,F.nonlinear_angleIndependent C hp S hS L t x hx θ] theorem PrefixFields.highForce_zero_outside (F : PrefixFields P T p a) (C : CoefficientData P T O) (hp : 2 ≤ p) (hT : 0 < T) {corrector_t : VectorField} (Ct : Field P T corrector_t) (hCt : TimeDerivative hT.le (F.corrector (p-1) (by omega)) Ct) (S : Set Space) (hS : IsClosed S) (L : PrefixLocality T p a S) (hpressure : ∀ (t : Icc (0 : ℝ) T) x, x ∉ S → ∀ θ : ℝ, pressureGradient (a (p-1)).highPressure (t,(x,θ)) = 0) (t : Icc (0 : ℝ) T) (x : Space) (hx : x ∉ S) (θ : ℝ) : EulerPacketProfileRecursion.highForce O p a (t,(x,θ)) = 0 := by have hknown := F.knownForce_angleIndependent C (by omega) hT Ct hCt S hS L hpressure t x hx have hmean : EulerPacketProfileRecursion.meanForce O p a (t,(x,θ)) = EulerPacketProfileRecursion.knownForce O p a (t,(x,θ)) := by unfold EulerPacketProfileRecursion.meanForce EulerPacketProfileRecursion.angleMean rw [C.period_eq] have he : (fun s : ℝ => EulerPacketProfileRecursion.knownForce O p a (t,(x,s))) = fun _ : ℝ => EulerPacketProfileRecursion.knownForce O p a (t,(x,0)) := funext hknown rw [he,intervalIntegral.integral_const,sub_zero,smul_smul, inv_mul_cancel₀ (ne_of_gt (Fact.out : 0 < P)),one_smul,hknown θ] have hfast : fastAdvection (O.normal (t,(x,θ))) (slicedJet O.interval (meanResult O p a).1 (t,(x,θ))) (slicedJet O.interval (a 1).high (t,(x,θ))) = 0 := by change inner ℝ (O.normal (t,(x,θ))) ((meanResult O p a).1 (t,(x,θ))) • (slicedJet O.interval (a 1).high (t,(x,θ))).2 angleDirection = 0 rw [slicedJet_angle,raw_fderiv_zero_outside S hS (L.high_zero 1 (by omega)) t x hx θ, zero_apply,smul_zero] change EulerPacketProfileRecursion.knownForce O p a (t,(x,θ)) - EulerPacketProfileRecursion.meanForce O p a (t,(x,θ)) - _ = 0 rw [hmean,hfast,sub_self,sub_zero] end EulerPacketCylinderField end end /-! ## From `Euler/PacketCylinderHighForcing.lean` The text of `Euler/PacketCylinderHighForcing.lean`, folded into this file, which was its only importer. -/ section /-! Supported, zero-mean raw cylinder witnesses feed the actual high-mode solver. -/ noncomputable section namespace EulerPacketCylinderField.Field open Set MeasureTheory EulerSmoothLimit EulerLiftedGradientSpace EulerLpCylinderPaths EulerCylinderPathProduct EulerCylinderSmoothOrbit EulerLpCylinderTranslation EulerPacketProfileRecursion EulerCylinderAngleAverage variable {P : ℝ} [Fact (0 < P)] {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] /-- Only actual support and literal mean zero are added to the existing field witness. -/ def transverseForcing (D : EulerTransversePacketProvider.Data U) {raw : VectorField} (G : Field P D.T raw) (hs : ∀ t, G.path t ∈ Supported P Space D.support D.support_measurable) (hm : ∀ (t : Icc (0 : ℝ) D.T) x, (∫ θ in (0 : ℝ)..P, raw (t,(x,θ))) = 0) : EulerTransversePacketProvider.Forcing P D raw where path := supportedPath P D.support D.support_measurable G.path hs path_orbit := by simpa only [include_supportedPath] using G.orbit raw_eq t x θ := by simpa only [include_supportedPath] using G.raw_eq t x θ mean_zero t := G.average_zero_of_raw_integral hm t /-- A literal compact-support proof may be used directly, without selecting a new representative. -/ def transverseForcingOfRaw (D : EulerTransversePacketProvider.Data U) {raw : VectorField} (G : Field P D.T raw) (hs : ∀ (t : Icc (0 : ℝ) D.T) x, x ∉ D.support → ∀ θ : ℝ, raw (t,(x,θ)) = 0) (hm : ∀ (t : Icc (0 : ℝ) D.T) x, (∫ θ in (0 : ℝ)..P, raw (t,(x,θ))) = 0) : EulerTransversePacketProvider.Forcing P D raw := G.transverseForcing D (G.supported_of_raw_zero D.support D.support_measurable hs) hm end EulerPacketCylinderField.Field end end noncomputable section namespace EulerPacketCylinderField open Set MeasureTheory EulerSmoothLimit EulerPacketPointJets EulerPacketProfileRecursion variable {P T : ℝ} [Fact (0 < P)] def Field.changeTime {raw : VectorField} {T' : ℝ} (G : Field P T raw) (h : T = T') : Field P T' raw := h ▸ G theorem Field.changeTime_derivative {raw raw_t : VectorField} {T' : ℝ} (G : Field P T raw) (H : Field P T raw_t) (h : T = T') (hT : 0 ≤ T) (hT' : 0 ≤ T') (hd : TimeDerivative hT G H) : TimeDerivative hT' (G.changeTime h) (H.changeTime h) := by subst T' exact hd def Field.transverseForcingOfRawTime {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] (D : EulerTransversePacketProvider.Data U) {raw : VectorField} (G : Field P T raw) (hT : T = D.T) (hs : ∀ (t : Icc (0 : ℝ) T) x, x ∉ D.support → ∀ θ : ℝ, raw (t,(x,θ)) = 0) (hm : ∀ (t : Icc (0 : ℝ) T) x, (∫ θ in (0 : ℝ)..P, raw (t,(x,θ))) = 0) : EulerTransversePacketProvider.Forcing P D raw := by subst T exact G.transverseForcingOfRaw D hs hm variable (M : EulerMeanPacketProvider.Data) {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] (D : EulerTransversePacketProvider.Data U) (hT : M.T = D.T) {O : Operators} {p : ℕ} {a : ℕ → Profile} /-- Every hypothesis concerns already constructed prefix fields or the actual prescribed coefficients. -/ def PrefixFields.highForcing (F : PrefixFields P M.T p a) (C : CoefficientData P M.T O) (hp : 2 ≤ p) {corrector_t : VectorField} (Ct : Field P M.T corrector_t) (hCt : TimeDerivative M.T_pos.le (F.corrector (p-1) (by omega)) Ct) (pressure : Field P M.T (pressureGradient (a (p-1)).highPressure)) (hmean : O.meanSolve = EulerMeanPacketProvider.meanSolve M) (L : PrefixLocality M.T p a D.support) (hpressure : ∀ (t : Icc (0 : ℝ) M.T) x, x ∉ D.support → ∀ θ : ℝ, pressureGradient (a (p-1)).highPressure (t,(x,θ)) = 0) : EulerTransversePacketProvider.Forcing P D (EulerPacketProfileRecursion.highForce O p a) := (F.actualHighForce M C hp Ct hCt pressure hmean).transverseForcingOfRawTime D hT (F.highForce_zero_outside C hp M.T_pos Ct hCt D.support D.support_compact.isClosed L hpressure) (F.actualHighForce_mean_zero M C hp Ct hCt pressure hmean) end EulerPacketCylinderField