import Euler.MeanSourceStrongInverse import Euler.MeanSourceSpatialRegularity import Euler.MeanContinuousPressure import Euler.MeanClassicalConstraints import Euler.MeanCoefficientFrame import Euler.SmoothCoefficientPath import Euler.MeanPathSpatialRepresentative import Euler.MeanClassicalWordBounds import Euler.ContinuousForcingTimeLp import Euler.TimeLpLinearity /-! # Concrete source data for the mean packet provider This record contains only the given matrix coefficients and the manuscript's pointwise inequalities and time identities. Its solver and strong evolution are the previously constructed actual variational inverse, not input fields. -/ /-! ## From `Euler/MeanPressureRepresentative.lean` The text of `Euler/MeanPressureRepresentative.lean`, folded into this file, which was its only importer. -/ section /-! # A normalized scalar pressure for the actual mean solution The radial integral is applied to the real F-adjoint pressure force, whose closed-gradient-space membership was proved from the actual Gram equation. The resulting scalar is spatially smooth, normalized at zero, and gives the pointwise physical equation. No scalar potential or pressure time derivative is assumed. -/ noncomputable section namespace EulerMeanScalarPressure open Set MeasureTheory InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerMeanSolenoidal EulerMeanSmoothRepresentative EulerMeanCoefficients EulerMeanTimeContinuousTranslation EulerMeanVariationalInverse EulerMeanPressure EulerCanonicalGraphPotential EulerTimeLp EulerVolterraConvolution open scoped ContDiff /-- The canonical smooth spatial representative of an actual continuous L² path. -/ def pathRepresentative (T : ℝ) (p : C(Icc (0 : ℝ) T,L2)) (hp : ContDiff ℝ ∞ (fun a : Space => pathTranslation T a p)) (t : Icc (0 : ℝ) T) : Space → Space := representative (p t) (pathTranslation_evaluation_contDiff T p hp t) theorem pathRepresentative_smooth (T : ℝ) (p : C(Icc (0 : ℝ) T,L2)) (hp : ContDiff ℝ ∞ (fun a : Space => pathTranslation T a p)) (t : Icc (0 : ℝ) T) : ContDiff ℝ ∞ (pathRepresentative T p hp t) := representative_smooth _ _ theorem pathRepresentative_ae (T : ℝ) (p : C(Icc (0 : ℝ) T,L2)) (hp : ContDiff ℝ ∞ (fun a : Space => pathTranslation T a p)) (t : Icc (0 : ℝ) T) : (p t : Space → Space) =ᵐ[volume] pathRepresentative T p hp t := representative_ae _ _ /-- An actual L² equation between continuous spatial representatives holds everywhere. -/ theorem representative_equation (B D R f : L2) (hB : SmoothOrbit B) (hD : SmoothOrbit D) (hR : SmoothOrbit R) (hf : SmoothOrbit f) (M : Field) (heq : D+multiplier M B+R=f) (x : Space) : representative D hD x+M x (representative B hB x)+representative R hR x = representative f hf x := by have hae : (fun y => representative D hD y+M y (representative B hB y)+representative R hR y) =ᵐ[volume] representative f hf := by filter_upwards [representative_ae B hB, representative_ae D hD, representative_ae R hR, representative_ae f hf, multiplier_ae M B, Lp.coeFn_add D (multiplier M B), Lp.coeFn_add (D+multiplier M B) R] with y hby hdy hry hfy hmy hsum hsum2 have hy := congrArg (fun z : L2 => z y) heq rw [hsum2] at hy simp only [Pi.add_apply] at hy rw [hsum] at hy simpa only [Pi.add_apply, hmy, hby, hdy, hry, hfy] using hy exact congrFun (Measure.eq_of_ae_eq hae (((representative_smooth D hD).continuous.add (M.continuous.clm_apply (representative_smooth B hB).continuous)).add (representative_smooth R hR).continuous) (representative_smooth f hf).continuous) x theorem pathRepresentative_equation (T : ℝ) (B D R f : C(Icc (0 : ℝ) T,L2)) (hB : ContDiff ℝ ∞ (fun a : Space => pathTranslation T a B)) (hD : ContDiff ℝ ∞ (fun a : Space => pathTranslation T a D)) (hR : ContDiff ℝ ∞ (fun a : Space => pathTranslation T a R)) (hf : ContDiff ℝ ∞ (fun a : Space => pathTranslation T a f)) (M : C(Icc (0 : ℝ) T,Field)) (heq : ∀ t, D t+multiplier (M t) (B t)+R t=f t) (t : Icc (0 : ℝ) T) (x : Space) : pathRepresentative T D hD t x+M t x (pathRepresentative T B hB t x)+ pathRepresentative T R hR t x = pathRepresentative T f hf t x := representative_equation (B t) (D t) (R t) (f t) (pathTranslation_evaluation_contDiff T B hB t) (pathTranslation_evaluation_contDiff T D hD t) (pathTranslation_evaluation_contDiff T R hR t) (pathTranslation_evaluation_contDiff T f hf t) (M t) (heq t) x variable (T : ℝ) (hT : 0 ≤ T) (F F₁ : SmoothCoefficientPath (Icc (0 : ℝ) T) (Space →L[ℝ] Space)) (FInv : C(Icc (0 : ℝ) T,L2 →L[ℝ] L2)) {A : L2 →L[ℝ] L2} {L : ℝ} {u f : TimeLp T L2} (s : StrongMeanEvolution T hT FInv (operatorPath T F.field) (operatorPath T F₁.field) A L u f) (c : ℝ) (hc : 0 < c) (hLower : ∀ t v, c*‖v‖^2 ≤ ‖solenoidalFrame T (operatorPath T F.field) t v‖^2) (fC : C(Icc (0 : ℝ) T,L2)) (hR : ContDiff ℝ ∞ (fun a : Space => pathTranslation T a (s.pressurePath c hc hLower fC))) /-- The concrete normalized scalar mean pressure, constructed by a radial integral. -/ def pressureScalar (t : Icc (0 : ℝ) T) : Space → ℝ := radialPotential (fun x => (F.field t x).adjoint (pathRepresentative T (s.pressurePath c hc hLower fC) hR t x)) /-- Spatial smoothness, normalization, and exact gradient of the constructed pressure. -/ theorem pressureScalar_spec (t : Icc (0 : ℝ) T) : ContDiff ℝ ∞ (pressureScalar T hT F F₁ FInv s c hc hLower fC hR t) ∧ pressureScalar T hT F F₁ FInv s c hc hLower fC hR t 0 = 0 ∧ ∀ x, gradient (pressureScalar T hT F F₁ FInv s c hc hLower fC hR t) x = (F.field t x).adjoint (pathRepresentative T (s.pressurePath c hc hLower fC) hR t x) := by have hAdj : ContDiff ℝ ∞ (fun x : Space => (F.field t x).adjoint) := (EulerTransverseGramInverse.realAdjoint (U := Space) (E := Space)).contDiff.comp (F.smooth t) exact weighted_pressure_has_potential (F.field t) (adjointField (F.field t)) (fun _ => rfl) (s.pressurePath c hc hLower fC t) (s.pressurePath_gradient c hc hLower fC t) (pathRepresentative T (s.pressurePath c hc hLower fC) hR t) (pathRepresentative_ae T _ hR t) (hAdj.clm_apply (pathRepresentative_smooth T _ hR t)) /-- The physical pressure force is exactly the actual residual, because the inverse-transpose cancels the transpose of the given frame. -/ theorem pressureScalar_physicalGradient (Finv : C(Icc (0 : ℝ) T,Field)) (hFinv : ∀ t x v, F.field t x (Finv t x v) = v) (t : Icc (0 : ℝ) T) (x : Space) : (Finv t x).adjoint (gradient (pressureScalar T hT F F₁ FInv s c hc hLower fC hR t) x) = pathRepresentative T (s.pressurePath c hc hLower fC) hR t x := by rw [(pressureScalar_spec T hT F F₁ FInv s c hc hLower fC hR t).2.2 x] apply ext_inner_right ℝ intro v rw [adjoint_inner_left, adjoint_inner_left, hFinv] /-- The constructed pressure gives the literal pointwise source equation. -/ theorem pressureScalar_equation (hTpos : 0 < T) (hFTime : ∀ t : Icc (0 : ℝ) T, HasDerivWithinAt (extendPath T hT (operatorPath T F.field)) (operatorPath T F₁.field t) (Icc (0 : ℝ) T) t) (M : SmoothCoefficientPath (Icc (0 : ℝ) T) (Space →L[ℝ] Space)) (hMF : ∀ t x v, F₁.field t x v = M.field t x (F.field t x v)) (Finv : C(Icc (0 : ℝ) T,Field)) (hFinv : ∀ t x v, F.field t x (Finv t x v) = v) (hB : ContDiff ℝ ∞ (fun a : Space => pathTranslation T a s.continuousVelocity)) (hD : ContDiff ℝ ∞ (fun a : Space => pathTranslation T a (s.classicalPhysicalDerivative c hc hLower fC))) (hfC : ContDiff ℝ ∞ (fun a : Space => pathTranslation T a fC)) (t : Icc (0 : ℝ) T) (x : Space) : pathRepresentative T (s.classicalPhysicalDerivative c hc hLower fC) hD t x+ M.field t x (pathRepresentative T s.continuousVelocity hB t x)+ (Finv t x).adjoint (gradient (pressureScalar T hT F F₁ FInv s c hc hLower fC hR t) x) = pathRepresentative T fC hfC t x := by rw [pressureScalar_physicalGradient T hT F F₁ FInv s c hc hLower fC hR Finv hFinv t x] exact pathRepresentative_equation T s.continuousVelocity (s.classicalPhysicalDerivative c hc hLower fC) (s.pressurePath c hc hLower fC) fC hB hD hR hfC M.field (s.pressurePath_equation c hc hLower fC hTpos hFTime (operatorPath T M.field) (operatorPath_comp T M.field F.field F₁.field hMF)) t x end EulerMeanScalarPressure end end noncomputable section namespace EulerMeanPacketProvider open Set MeasureTheory InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerMeanSolenoidal EulerMeanCoefficients EulerMeanBoundary EulerMeanHarmonic EulerMeanSourceInverse EulerMeanVariationalInverse EulerLiftedPressure EulerTimeLp EulerVolterraConvolution open scoped ContDiff NNReal /-- Literal coefficient data and source smallness hypotheses. -/ structure Data where T : ℝ T_pos : 0 < T ℓ : ℝ ℓ_pos : 0 < ℓ ℓ_le_one : ℓ ≤ 1 F : SmoothCoefficientPath (Icc (0 : ℝ) T) (Space →L[ℝ] Space) F₁ : SmoothCoefficientPath (Icc (0 : ℝ) T) (Space →L[ℝ] Space) F₂ : SmoothCoefficientPath (Icc (0 : ℝ) T) (Space →L[ℝ] Space) M : SmoothCoefficientPath (Icc (0 : ℝ) T) (Space →L[ℝ] Space) H : SmoothCoefficientPath (Icc (0 : ℝ) T) (Space →L[ℝ] Space) FInv : C(Icc (0 : ℝ) T,Field) M0 : BoundedSmoothField (Space →L[ℝ] Space) Be : ℝ Bc : ℝ L : ℝ r : ℝ K : ℝ Be_nonneg : 0 ≤ Be Bc_nonneg : 0 ≤ Bc L_lower : boundaryLocalizationC1*Bc ≤ L r_nonneg : 0 ≤ r r_le_quarter : r ≤ 1/4 K_nonneg : 0 ≤ K exterior_lower : ∀ x, r ≤ ‖ℓ • x‖ → ∀ v : Space, -Be*‖v‖^2 ≤ ⟪M0.field x v,v⟫_ℝ core_lower : ∀ x, ‖ℓ • x‖ < r → ∀ v : Space, -Bc*‖v‖^2 ≤ ⟪M0.field x v,v⟫_ℝ inverse_left : ∀ t x v, FInv t x (F.field t x v) = v inverse_right : ∀ t x v, F.field t x (FInv t x v) = v inverse_initial : ∀ x v, FInv ⟨0, le_rfl, T_pos.le⟩ x v = v derivative_initial : ∀ x, F₁.field ⟨0, le_rfl, T_pos.le⟩ x = M0.field x frame_time : ∀ t ∈ Icc (0 : ℝ) T, ∀ x : Space, HasDerivWithinAt (fun s => extendPath (Y := Field) T T_pos.le F.field s x) (extendPath (Y := Field) T T_pos.le F₁.field t x) (Icc (0 : ℝ) T) t derivative_time : ∀ t ∈ Icc (0 : ℝ) T, ∀ x : Space, HasDerivWithinAt (fun s => extendPath (Y := Field) T T_pos.le F₁.field s x) (extendPath (Y := Field) T T_pos.le F₂.field t x) (Icc (0 : ℝ) T) t second_equation : ∀ t x v, F₂.field t x v = -(H.field t x (F.field t x v)) strain_equation : ∀ t x v, F₁.field t x v = M.field t x (F.field t x v) curvature_upper : ∀ t x v, ⟪H.field t x v,v⟫_ℝ ≤ K*‖v‖^2 small : K*(T^2/2)+Be*T+boundaryLocalizationC2*Bc*r^3*T ≤ 1/2 namespace Data variable (D : Data) abbrev opF := operatorPath D.T D.F.field abbrev opF₁ := operatorPath D.T D.F₁.field abbrev opF₂ := operatorPath D.T D.F₂.field abbrev opM := operatorPath D.T D.M.field abbrev opH := operatorPath D.T D.H.field abbrev opInv := operatorPath D.T D.FInv theorem opInv_left : ∀ t v, D.opInv t (D.opF t v) = v := operatorPath_inverse D.T D.FInv D.F.field D.inverse_left theorem opInv_right : ∀ t v, D.opF t (D.opInv t v) = v := operatorPath_inverse D.T D.F.field D.FInv D.inverse_right theorem opInv_initial : D.opInv ⟨0, le_rfl, D.T_pos.le⟩ = ContinuousLinearMap.id ℝ L2 := operatorPath_identity_at D.T D.FInv ⟨0, le_rfl, D.T_pos.le⟩ D.inverse_initial theorem opF_time : ∀ t : Icc (0 : ℝ) D.T, HasDerivWithinAt (extendPath D.T D.T_pos.le D.opF) (D.opF₁ t) (Icc (0 : ℝ) D.T) t := operatorPath_hasDerivWithinAt D.T D.T_pos.le D.F.field D.F₁.field D.frame_time theorem opF₁_time : ∀ t : Icc (0 : ℝ) D.T, HasDerivWithinAt (extendPath D.T D.T_pos.le D.opF₁) (D.opF₂ t) (Icc (0 : ℝ) D.T) t := operatorPath_hasDerivWithinAt D.T D.T_pos.le D.F₁.field D.F₂.field D.derivative_time theorem opF₁_initial : D.opF₁ ⟨0, le_rfl, D.T_pos.le⟩ = coefficientOperator D.M0.field D.M0.field.continuous.aestronglyMeasurable ‖D.M0.field‖₊ D.M0.field.norm_coe_le_norm := operatorPath_initial_coefficient D.T D.T_pos.le D.F₁.field D.M0.field D.derivative_initial ‖D.M0.field‖₊ D.M0.field.norm_coe_le_norm theorem opF₂_eq : ∀ t, D.opF₂ t = -(D.opH t).comp (D.opF t) := by intro t apply ContinuousLinearMap.ext intro v exact operatorPath_neg_comp D.T D.H.field D.F.field D.F₂.field D.second_equation t v theorem opStrain_eq : ∀ t v, D.opF₁ t v = D.opM t (D.opF t v) := operatorPath_comp D.T D.M.field D.F.field D.F₁.field D.strain_equation theorem opCurvature_upper : ∀ t v, ⟪D.opH t v,v⟫_ℝ ≤ D.K*‖v‖^2 := operatorPath_quadratic_upper D.T D.H.field D.K D.curvature_upper /-- The actual source weak inverse with the harmonic boundary estimate discharged. -/ def solver : TimeLp D.T L2 →L[ℝ] meanDerivatives D.T D.T_pos.le D.opInv := sourceMeanSolver D.T D.T_pos.le D.ℓ D.ℓ_pos D.M0.field D.M0.field.continuous.aestronglyMeasurable ‖D.M0.field‖₊ D.M0.field.norm_coe_le_norm D.Be D.Bc D.L D.r D.Be_nonneg D.Bc_nonneg D.L_lower D.r_nonneg D.r_le_quarter D.exterior_lower D.core_lower D.opInv D.opH D.K D.K_nonneg D.opInv_initial D.opCurvature_upper D.small /-- The source strong evolution is obtained from the constructed inverse. -/ def evolution (f : TimeLp D.T L2) : StrongMeanEvolution D.T D.T_pos.le D.opInv D.opF D.opF₁ (boundaryOperator (scaledCutoff D.ℓ D.ℓ_pos)) D.L (D.solver f) f := Classical.choice (sourceMeanSolver_strong D.T D.T_pos.le D.ℓ D.ℓ_pos D.M0.field D.M0.field.continuous.aestronglyMeasurable ‖D.M0.field‖₊ D.M0.field.norm_coe_le_norm D.Be D.Bc D.L D.r D.Be_nonneg D.Bc_nonneg D.L_lower D.r_nonneg D.r_le_quarter D.exterior_lower D.core_lower D.opInv D.opF D.opF₁ D.opF₂ D.opH D.K D.K_nonneg D.opInv_initial D.opCurvature_upper D.small D.opF_time D.opF₁_time D.opInv_left D.opInv_right D.opF₁_initial D.opF₂_eq f) abbrev frameLower : ℝ := meanFrameCoercivity D.T D.opInv theorem frameLower_pos : 0 < D.frameLower := meanFrameCoercivity_pos D.T D.opInv theorem frame_lower : ∀ t v, D.frameLower*‖v‖^2 ≤ ‖solenoidalFrame D.T D.opF t v‖^2 := solenoidalFrame_lower D.T D.opInv D.opF D.opInv_left end Data end EulerMeanPacketProvider