import Euler.CylinderAngleAverageEvolution import Euler.SourceCylinderEquation import Euler.SourceCylinderRegularity import Euler.SourceNormalCoefficient import Euler.SourceCylinderClassicalEquation import Euler.CylinderScalarAverage /-! # The solved normal pressure source has zero angular mean The zero mode is proved for the actual Duhamel solution and then transferred to its continuous scalar representative. No zero-mean condition on the solution or on its pressure residual is assumed. -/ /-! ## From `Euler/SourceCylinderPressureSource.lean` The text of `Euler/SourceCylinderPressureSource.lean`, folded into this file, which was its only importer. -/ section /-! # The actual scalar pressure source on cylinder L² The normal functional is constructed from the positive one-column Gram matrix. Applying it to f−2MA gives a genuine scalar L² path, with the literal normal residual as representative and genuine smooth mixed translation orbit. -/ noncomputable section namespace EulerSourceCylinderEquation open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerSmoothLimit EulerMeanCoefficients EulerLiftedGradientSpace EulerLpCylinderTranslation EulerLpCylinderPaths EulerLpCylinderRectangular EulerSourceNormalCoefficient open scoped ContDiff BoundedContinuousFunction variable (period : ℝ) [Fact (0 < period)] {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] (S : Set Space) (hS : MeasurableSet S) (T : ℝ) (hT : 0 ≤ T) (Q Q₁ : SmoothCoefficientPath (Icc (0 : ℝ) T) (U →L[ℝ] Space)) (c : ℝ) (hc : 0 < c) (hQ : ∀ t x v, c*‖v‖^2 ≤ ‖Q.field t x v‖^2) (f : C(Icc (0 : ℝ) T,Supported period Space S hS)) (a₀ : Supported period U S hS) (M : SmoothCoefficientPath (Icc (0 : ℝ) T) (Space →L[ℝ] Space)) (m : SmoothCoefficientPath (Icc (0 : ℝ) T) Space) (cm : ℝ) (hcm : 0 < cm) (hm : ∀ t x, cm ≤ ‖m.field t x‖^2) /-- A genuine supported scalar path representing the right side of ∂θπ in (11). -/ def pressureSource : C(Icc (0 : ℝ) T,Supported period ℝ S hS) := supportedMultiplierMap period S hS (normalFunctional m cm hcm hm) (f - (2 : ℝ) • supportedMultiplierMap period S hS M.field (velocity period S hS T hT Q Q₁ c hc hQ f a₀)) /-- The pressure source is precisely the manuscript's scalar quotient. -/ theorem pressureSource_ae (t : Icc (0 : ℝ) T) : (pressureSource period S hS T hT Q Q₁ c hc hQ f a₀ M m cm hcm hm t : CylinderL2 period ℝ) =ᵐ[liftMeasure period] fun x => (⟪m.field t x.1,(f t : CylinderL2 period Space) x⟫_ℝ - 2*⟪m.field t x.1,M.field t x.1 ((velocity period S hS T hT Q Q₁ c hc hQ f a₀ t : CylinderL2 period Space) x)⟫_ℝ) / ‖m.field t x.1‖^2 := by let v := velocity period S hS T hT Q Q₁ c hc hQ f a₀ t let w := supportedOperatorMap period S hS (M.field t) v let r : Supported period Space S hS := f t - (2 : ℝ) • w let N := normalFunctional m cm hcm hm t filter_upwards [EulerLpOperatorField.full_ae (liftMeasure period) (fieldLift period N) (r : CylinderL2 period Space), EulerLpOperatorField.full_ae (liftMeasure period) (fieldLift period (M.field t)) (v : CylinderL2 period Space), Lp.coeFn_sub (f t : CylinderL2 period Space) ((2 : ℝ) • (w : CylinderL2 period Space)), Lp.coeFn_smul (2 : ℝ) (w : CylinderL2 period Space)] with x hn hM hr hs change (EulerLpOperatorField.full (liftMeasure period) (fieldLift period N) (r : CylinderL2 period Space)) x = _ rw [hn] change normalFunctional m cm hcm hm t x.1 ((r : CylinderL2 period Space) x) = _ rw [normalFunctional_apply] change (⟪m.field t x.1,((f t : CylinderL2 period Space) - (2 : ℝ) • (w : CylinderL2 period Space)) x⟫_ℝ) / _ = _ rw [hr] simp only [Pi.sub_apply] rw [hs] simp only [Pi.smul_apply] change (⟪m.field t x.1,(f t : CylinderL2 period Space) x - (2 : ℝ) • (EulerLpOperatorField.full (liftMeasure period) (fieldLift period (M.field t)) (v : CylinderL2 period Space)) x⟫_ℝ) / _ = _ rw [hM,inner_sub_right,inner_smul_right] rfl /-- The actual scalar pressure source inherits genuine mixed regularity from the solve. -/ theorem pressureSource_contDiff (hSc : IsCompact S) (hf : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate period a (includePath period S hS f))) (ha₀ : ContDiff ℝ ∞ (fun a : LiftTangent => translate period a (a₀ : CylinderL2 period U))) : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate period a (includePath period S hS (pressureSource period S hS T hT Q Q₁ c hc hQ f a₀ M m cm hcm hm))) := by let v := velocity period S hS T hT Q Q₁ c hc hQ f a₀ let w := supportedMultiplierMap period S hS M.field v have hv := velocity_contDiff period S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ have hw := supported_product_orbit_contDiff period M.field M.translation_contDiff S hS v hv have hr : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate period a (includePath period S hS (f - (2 : ℝ) • w))) := by simpa only [map_sub,map_smul] using hf.sub (hw.const_smul (2 : ℝ)) exact supported_product_orbit_contDiff period (normalFunctional m cm hcm hm) (normalFunctional_translation_contDiff m cm hcm hm) S hS (f - (2 : ℝ) • w) hr end EulerSourceCylinderEquation end end /-! ## From `Euler/SourceCylinderMeanZero.lean` The text of `Euler/SourceCylinderMeanZero.lean`, folded into this file, which was its only importer. -/ section /-! The actual source transverse solve preserves the angular zero mode constraint. -/ noncomputable section namespace EulerSourceCylinderEquation open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace EulerMeanCoefficients EulerLpCylinderTranslation EulerLpCylinderPaths EulerLpCylinderRectangular EulerSourceForwardCoefficient EulerSourceCylinderForcing EulerSourceCylinderForward EulerCylinderAngleAverage open scoped BoundedContinuousFunction variable (P : ℝ) [Fact (0 < P)] {U E : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] (S : Set Space) (hS : MeasurableSet S) (T : ℝ) (hT : 0 ≤ T) (Q Q₁ : SmoothCoefficientPath (Icc (0 : ℝ) T) (U →L[ℝ] E)) (c : ℝ) (hc : 0 < c) (hQ : ∀ t x v, c*‖v‖^2 ≤ ‖Q.field t x v‖^2) (f : C(Icc (0 : ℝ) T,Supported P E S hS)) (a₀ : Supported P U S hS) theorem projectedForcing_average_zero (hf : ∀ t, average P (f t : CylinderL2 P E) = 0) (t : Icc (0 : ℝ) T) : average P (projectedForcing P S hS Q c hc hQ f t : CylinderL2 P U) = 0 := by change average P (fullOperatorMap P (sourceForcing Q c hc hQ t) (f t : CylinderL2 P E)) = 0 rw [average_fullOperator, hf t, map_zero] /-- The real Gram-projected Duhamel coordinate solution has zero angular mean. -/ theorem coordinates_average_zero (hf : ∀ t, average P (f t : CylinderL2 P E) = 0) (ha₀ : average P (a₀ : CylinderL2 P U) = 0) (t : Icc (0 : ℝ) T) : average P (coordinates P S hS T hT Q Q₁ c hc hQ f a₀ t : CylinderL2 P U) = 0 := solution_full_average_zero P S hS T hT (sourceGenerator Q Q₁ c hc hQ) (evolution P T hT Q Q₁ c hc hQ S hS) (projectedForcing P S hS Q c hc hQ f) a₀ (projectedForcing_average_zero P S hS T Q c hc hQ f hf) ha₀ t /-- Physical reconstruction by the true frame preserves the same zero mode. -/ theorem velocity_average_zero (hf : ∀ t, average P (f t : CylinderL2 P E) = 0) (ha₀ : average P (a₀ : CylinderL2 P U) = 0) (t : Icc (0 : ℝ) T) : average P (velocity P S hS T hT Q Q₁ c hc hQ f a₀ t : CylinderL2 P E) = 0 := by change average P (fullOperatorMap P (Q.field t) (coordinates P S hS T hT Q Q₁ c hc hQ f a₀ t : CylinderL2 P U)) = 0 rw [average_fullOperator, coordinates_average_zero P S hS T hT Q Q₁ c hc hQ f a₀ hf ha₀ t, map_zero] end EulerSourceCylinderEquation end end noncomputable section namespace EulerSourceCylinderEquation open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerMeanCoefficients EulerLiftedGradientSpace EulerLpCylinderTranslation EulerLpCylinderPaths EulerLpCylinderRectangular EulerSourceNormalCoefficient EulerCylinderAngleAverage open scoped ContDiff BoundedContinuousFunction variable (P : ℝ) [Fact (0 < P)] {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] (S : Set Space) (hS : MeasurableSet S) (T : ℝ) (hT : 0 ≤ T) (Q Q₁ : SmoothCoefficientPath (Icc (0 : ℝ) T) (U →L[ℝ] Space)) (c : ℝ) (hc : 0 < c) (hQ : ∀ t x v, c*‖v‖^2 ≤ ‖Q.field t x v‖^2) (f : C(Icc (0 : ℝ) T,Supported P Space S hS)) (a₀ : Supported P U S hS) (M : SmoothCoefficientPath (Icc (0 : ℝ) T) (Space →L[ℝ] Space)) (m : SmoothCoefficientPath (Icc (0 : ℝ) T) Space) (cm : ℝ) (hcm : 0 < cm) (hm : ∀ t x, cm ≤ ‖m.field t x‖^2) theorem pressureSource_average_zero (hf₀ : ∀ t, average P (f t : CylinderL2 P Space) = 0) (ha₀ : average P (a₀ : CylinderL2 P U) = 0) (t : Icc (0 : ℝ) T) : average P (pressureSource P S hS T hT Q Q₁ c hc hQ f a₀ M m cm hcm hm t : CylinderL2 P ℝ) = 0 := by change average P (fullOperatorMap P (normalFunctional m cm hcm hm t) ((f t : CylinderL2 P Space) - (2 : ℝ) • fullOperatorMap P (M.field t) (velocity P S hS T hT Q Q₁ c hc hQ f a₀ t : CylinderL2 P Space))) = 0 rw [average_fullOperator, map_sub, map_smul, average_fullOperator, velocity_average_zero P S hS T hT Q Q₁ c hc hQ f a₀ hf₀ ha₀ t, hf₀ t, map_zero, smul_zero, sub_self, map_zero] theorem pressureSource_slice_contDiff (hSc : IsCompact S) (hf : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a (includePath P S hS f))) (ha₀ : ContDiff ℝ ∞ (fun a : LiftTangent => translate P a (a₀ : CylinderL2 P U))) (t : Icc (0 : ℝ) T) : ContDiff ℝ ∞ (fun a : LiftTangent => translate P a (pressureSource P S hS T hT Q Q₁ c hc hQ f a₀ M m cm hcm hm t : CylinderL2 P ℝ)) := by exact (ContinuousMap.evalCLM ℝ t : C(Icc (0 : ℝ) T,CylinderL2 P ℝ) →L[ℝ] CylinderL2 P ℝ).contDiff.comp (pressureSource_contDiff P S hS T hT Q Q₁ c hc hQ f a₀ M m cm hcm hm hSc hf ha₀) end EulerSourceCylinderEquation namespace EulerSourceCylinderClassical open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerMeanCoefficients EulerLiftedGradientSpace EulerLpCylinderTranslation EulerLpCylinderPaths EulerSourceCylinderEquation EulerCylinderSmoothOrbit EulerCylinderAngleAverage open scoped ContDiff BoundedContinuousFunction variable (P : ℝ) [Fact (0 < P)] {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] (S : Set Space) (hS : MeasurableSet S) (hSc : IsCompact S) (T : ℝ) (hT : 0 ≤ T) (Q Q₁ : SmoothCoefficientPath (Icc (0 : ℝ) T) (U →L[ℝ] Space)) (c : ℝ) (hc : 0 < c) (hQ : ∀ t x v, c*‖v‖^2 ≤ ‖Q.field t x v‖^2) (f : C(Icc (0 : ℝ) T,Supported P Space S hS)) (a₀ : Supported P U S hS) (hf : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a (includePath P S hS f))) (ha₀ : ContDiff ℝ ∞ (fun a : LiftTangent => translate P a (a₀ : CylinderL2 P U))) (M : SmoothCoefficientPath (Icc (0 : ℝ) T) (Space →L[ℝ] Space)) (m : SmoothCoefficientPath (Icc (0 : ℝ) T) Space) (cm : ℝ) (hcm : 0 < cm) (hm : ∀ t x, cm ≤ ‖m.field t x‖^2) omit [Fact (0 < P)] in include hcm hm in theorem normal_ne_zero_of_lower (t : Icc (0 : ℝ) T) (x : Space) : m.field t x ≠ 0 := by intro he have h := hm t x rw [he, norm_zero, zero_pow (by decide : 2 ≠ 0)] at h exact (not_le_of_gt hcm) h /-- The actual scalar L² class represents the literal normal quotient. -/ theorem pressureSource_ae_normalResidual (t : Icc (0 : ℝ) T) : (pressureSource P S hS T hT Q Q₁ c hc hQ f a₀ M m cm hcm hm t : CylinderL2 P ℝ) =ᵐ[liftMeasure P] normalResidual P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m t := by filter_upwards [pressureSource_ae P S hS T hT Q Q₁ c hc hQ f a₀ M m cm hcm hm t, field_ae P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ t, pointField_ae P (includePath P S hS f) hf t] with x hs hv hforce change (f t : CylinderL2 P Space) x = pointField P (includePath P S hS f) hf t x at hforce rw [hs, hv, hforce] rfl include hcm hm in /-- Zero mean of the forcing and initial coordinate implies zero mean of the literal pressure source of the constructed solution. -/ theorem normalResidual_mean_zero (hf₀ : ∀ t, average P (f t : CylinderL2 P Space) = 0) (ha₀zero : average P (a₀ : CylinderL2 P U) = 0) (t : Icc (0 : ℝ) T) (y : Space) : (∫ s in (0 : ℝ)..P, normalResidual P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m t (y,(s : AddCircle P))) = 0 := by exact EulerCylinderScalarPrimitive.scalar_mean_zero P (pressureSource P S hS T hT Q Q₁ c hc hQ f a₀ M m cm hcm hm t) (pressureSource_slice_contDiff P S hS T hT Q Q₁ c hc hQ f a₀ M m cm hcm hm hSc hf ha₀ t) (normalResidual P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m t) (normalResidual_continuous P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m (normal_ne_zero_of_lower T m cm hcm hm) t) (pressureSource_ae_normalResidual P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m cm hcm hm t) (pressureSource_average_zero P S hS T hT Q Q₁ c hc hQ f a₀ M m cm hcm hm hf₀ ha₀zero t) y end EulerSourceCylinderClassical