import Euler.MeanOrbitSmoothL2Field import Euler.MeanPacketForcing import Euler.LpSmoothFieldAlgebra import Euler.MeanPacketProvider import Euler.LpSmoothCoefficientContinuity import Euler.SmoothL2CoefficientPath /-! # Solved mean fields are actual admissible forcing fields The genuine continuous L² solution path and its solved spatial translation orbit produce the literal smooth L² slices required by the forcing interface. The same construction applies to its actual time derivative and pressure force. -/ /-! ## From `Euler/MeanPacketForcingAlgebra.lean` The text of `Euler/MeanPacketForcingAlgebra.lean`, folded into this file, which was its only importer. -/ section /-! # Genuine algebraic closure of admissible mean forcing Admissibility is preserved by finite sums, bounded linear maps, and actual spatial directional derivatives. Every witness consists of literal smooth fields and their continuous L² jets; no inverse or equation is assumed. -/ noncomputable section namespace EulerMeanPacketProvider open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerMeanSolenoidal EulerLpTranslation EulerLpTranslation.SmoothL2Field EulerPacketPointJets EulerPacketProfileRecursion open scoped ContDiff namespace Forcing variable {D : Data} {raw raw' : VectorField} /-- The time path is constructed from the actual zeroth L² jet. -/ def ofSlices (A : ℝ → SmoothL2Field Space) (hA : ∀ n, Continuous (fun t : Icc (0 : ℝ) D.T => (A t).jetLp n)) (heq : ∀ (t : Icc (0 : ℝ) D.T) x θ, raw (t,(x,θ)) = (A t).field x) : Forcing D raw where slices := A jets_continuous := hA path := ⟨fun t => (A t).toLp, continuous_toLp (fun t : Icc (0 : ℝ) D.T => A t) (hA 0)⟩ path_eq _ := rfl raw_eq := heq /-- Applying a genuine bounded linear map preserves every actual L² jet. -/ def map (G : Forcing D raw) (L : Space →L[ℝ] Space) : Forcing D (fun z => L (raw z)) := ofSlices (fun t => mapField L (G.slices t)) (continuous_jetLp_mapField L (fun t : Icc (0 : ℝ) D.T => G.slices t) G.jets_continuous) (fun t x θ => by simp only [G.raw_eq t x θ, mapField_field]) def smul (G : Forcing D raw) (c : ℝ) : Forcing D (c • raw) := G.map (c • ContinuousLinearMap.id ℝ Space) end Forcing end EulerMeanPacketProvider end end /-! ## From `Euler/MeanPacketForcingProduct.lean` The text of `Euler/MeanPacketForcingProduct.lean`, folded into this file, which was its only importer. -/ section /-! Actual multiplication closure for admissible mean forcing. -/ noncomputable section namespace EulerMeanPacketProvider.Forcing open Set EulerSmoothLimit EulerMeanCoefficients EulerPacketProfileRecursion EulerLpSmoothCoefficientProduct variable {D : Data} {raw : VectorField} /-- Multiplying the raw field by a genuinely bounded smooth coefficient path preserves all actual L² spatial jets and their time continuity. -/ def multiply (G : Forcing D raw) (A : SmoothCoefficientPath (Icc (0 : ℝ) D.T) (Space →L[ℝ] Space)) : Forcing D (fun z => A.field (D.clamp z.1) z.2.1 (raw z)) := ofSlices (fun r => product A (D.clamp r) (G.slices r)) (fun n => by simpa only [Data.clamp_coe] using continuous_product_jet A (fun t : Icc (0 : ℝ) D.T => G.slices t) G.jets_continuous n) (fun t x θ => by rw [G.raw_eq t x θ]; rfl) end EulerMeanPacketProvider.Forcing end end /-! ## From `Euler/MeanPacketNonlinearForcing.lean` The text of `Euler/MeanPacketNonlinearForcing.lean`, folded into this file, which was its only importer. -/ section /-! # Nonlinear closure of actual admissible mean forcing Sobolev evaluation supplies bounded coefficients from one actual smooth L² factor. Consequently finite-dimensional bilinear products preserve the literal spatial L² jets and their time continuity without an extra product regularity assumption. -/ noncomputable section namespace EulerMeanPacketProvider open Set ContinuousLinearMap EulerSmoothLimit EulerMeanCoefficients EulerMeanSobolevBoundedField EulerPacketPointJets EulerPacketProfileRecursion namespace Forcing variable {D : Data} {raw raw' : VectorField} /-- Admissibility depends only on the raw field on the actual time interval. -/ def congr (G : Forcing D raw) (heq : ∀ (t : Icc (0 : ℝ) D.T) x θ, raw' (t,(x,θ)) = raw (t,(x,θ))) : Forcing D raw' where slices := G.slices jets_continuous := G.jets_continuous path := G.path path_eq := G.path_eq raw_eq t x θ := (heq t x θ).trans (G.raw_eq t x θ) end Forcing end EulerMeanPacketProvider end end noncomputable section namespace EulerMeanPacketProvider open Set MeasureTheory EulerSmoothLimit EulerMeanSolenoidal EulerMeanSmoothRepresentative EulerMeanTimeContinuousTranslation EulerMeanPathTimeDerivative EulerMeanScalarPressure EulerPacketPointJets EulerPacketProfileRecursion open scoped ContDiff namespace Forcing variable {D : Data} {raw : VectorField} /-- Actual path-orbit regularity is converted into literal spatial derivative data. -/ def ofOrbitPath (p : C(Icc (0 : ℝ) D.T,L2)) (hp : ContDiff ℝ ∞ (fun a : Space => pathTranslation D.T a p)) (heq : ∀ (t : Icc (0 : ℝ) D.T) x θ, raw (t,(x,θ)) = representative (p t) (pathTranslation_evaluation_contDiff D.T p hp t) x) : Forcing D raw where slices t := smoothL2Field (p (D.clamp t)) (pathTranslation_evaluation_contDiff D.T p hp (D.clamp t)) jets_continuous n := by simpa only [Data.clamp_coe] using smoothL2Field_path_jet_continuous D.T p hp n path := p path_eq t := by rw [Data.clamp_coe, smoothL2Field_toLp] raw_eq t x θ := by simpa only [Data.clamp_coe, smoothL2Field_field] using heq t x θ /-- The output velocity of the genuine source mean solve can be used as the next forcing input. -/ def vectorForcing (G : Forcing D raw) : Forcing D G.vector := ofOrbitPath G.velocityPath G.velocityPath_orbit (fun t x θ => by simp only [vector, pathRepresentative, Data.clamp_coe]) /-- Its true continuous time derivative has the same literal spatial admissibility. -/ def vectorDerivativeForcing (G : Forcing D raw) : Forcing D G.vectorDerivative := ofOrbitPath G.derivativePath G.derivativePath_orbit (fun t x θ => by simp only [vectorDerivative, pathRepresentative, Data.clamp_coe]) def pressureForce (G : Forcing D raw) : VectorField := fun z => pathRepresentative D.T G.pressureForcePath G.pressureForcePath_orbit (D.clamp z.1) z.2.1 /-- The physical pressure gradient, rather than the unneeded scalar pressure value, is spatially L². -/ def pressureForceForcing (G : Forcing D raw) : Forcing D G.pressureForce := ofOrbitPath G.pressureForcePath G.pressureForcePath_orbit (fun t x θ => by simp only [pressureForce, pathRepresentative, Data.clamp_coe]) end Forcing end EulerMeanPacketProvider