import Euler.RegularizedTopBlocks import Euler.SobolevWordConstraints import Euler.SobolevMaximalRegularity import Euler.TimeLpStrongOperators import Euler.TimeLpLinearity import Euler.TimeLpObservation /-! Strong L²-time convergence of actual energy-order regularized state, source, and pressure words. -/ /-! ## From `Euler/RegularizedWordEquation.lean` The text of `Euler/RegularizedWordEquation.lean`, folded into this file, which was its only importer. -/ section /-! Every energy-order word of the actual heat-regularized mild solution obeys its genuine L² differential equation. -/ noncomputable section namespace EulerRegularizedWordEquation open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerSobolevHeat EulerSobolevHeatGenerator EulerMildWordEquation EulerMildTopWord EulerRegularizedTopBlocks EulerHeatRegularizedPaths EulerVolterraConvolution EulerMetricHeatEnergy EulerSobolevWordConstraints EulerDivergenceFreeHeat EulerGaussianCylinderHeat open scoped Topology variable (period : ℝ) [Fact (0 < period)] /-- A genuinely regularized derivative word as a bounded map from the source Sobolev space into H². -/ def regularizedWordBlock {q m : ℕ} (hm : m ≤ q+1) (n : ℕ) (w : Fin m → Fin 4) : SobolevSpace period q →L[ℝ] SobolevSpace period 2 := (boundedWordBlock period 2 m (by omega : 2+m ≤ q+3) w).comp (heatRegularizer period q n) /-- Every concrete regularized word block commutes with the actual heat semigroup. -/ theorem regularizedWordBlock_heat {q m : ℕ} (hm : m ≤ q+1) (n : ℕ) (w : Fin m → Fin 4) (v : NNReal) (u : SobolevSpace period q) : regularizedWordBlock period hm n w (heatOperator period q v u) = heatOperator period 2 v (regularizedWordBlock period hm n w u) := by change boundedWordBlock period 2 m (by omega) w (heatRegularizer period q n (heatOperator period q v u)) = _ rw [heatRegularizer_heat, boundedWordBlock_heat] rfl /-- Its underlying field is exactly heat applied to the actual energy-order derivative of the unregularized state. -/ theorem regularizedWordBlock_value {q m : ℕ} (hm : m ≤ q+1) (n : ℕ) (w : Fin m → Fin 4) (u : SobolevSpace period (q+1)) : value period (regularizedWordBlock period hm n w (truncateOperator period q u)) = cylinderHeat period (regularizerVariance n) (word period u hm w) := by change value period (boundedWordBlock period 2 m (by omega) w (heatRegularizer period q n (truncateOperator period q u))) = _ rw [boundedWordBlock_value, heatRegularizer_truncate] exact heatRegularizer_word period n hm w u /-- The actual regularized energy-order word path. -/ def regularizedWordPath {q m : ℕ} (hm : m ≤ q+1) (n : ℕ) (w : Fin m → Fin 4) (T : ℝ) (u : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) : C(Icc (0 : ℝ) T, SobolevSpace period 2) := mapPath period T ((regularizedWordBlock period hm n w).comp (truncateOperator period q)) u /-- At depth two the actual Laplacian evaluation is exactly the original genuine jet Laplacian. -/ theorem laplacianEvaluation_two (u : SobolevSpace period 2) : laplacianEvaluation period 2 (le_refl 2) u = jetLaplacian period (toJet period u) := by rw [laplacianEvaluation_apply, jetLaplacian] exact Finset.sum_congr rfl (fun i _ => (toJet_word period u (le_refl 2) (fun _ : Fin 2 => i)).symm) /-- Every regularized word at the full solution energy order satisfies the actual time PDE, with no top-order differentiability premise. -/ theorem regularized_word_hasDerivAt {q m : ℕ} (hm : m ≤ q+1) (n : ℕ) (w : Fin m → Fin 4) (ν : ℝ) (hν : 0 < ν) (T : ℝ) (hT : 0 ≤ T) (u₀ : SobolevSpace period (q+1)) (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) (u : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (hsol : ∀ t : Icc (0 : ℝ) T, u t = heatOperator period (q+1) (2*ν*t.val).toNNReal u₀ + ∫ r in (0 : ℝ)..t.val, heatKernel period q ν hν r (extendPath T hT f (t.val-r))) (t : ℝ) (ht : t ∈ Ioo 0 T) : HasDerivAt (fun r => value period (extendPath T hT (regularizedWordPath period hm n w T u) r)) (ν • jetLaplacian period (toJet period (regularizedWordPath period hm n w T u ⟨t, ht.1.le, ht.2.le⟩)) + value period (regularizedWordBlock period hm n w (f ⟨t, ht.1.le, ht.2.le⟩))) t := by have h := viscous_mild_block_hasDerivAt period (le_refl 2) (regularizedWordBlock period hm n w) (regularizedWordBlock_heat period hm n w) ν hν T hT u₀ (fun t _ => f t) (f.continuous.comp continuous_fst) u hsol t ht rw [laplacianEvaluation_two] at h exact h /-- Actual energy-order word regularization preserves lifted divergence-freeness. -/ theorem regularized_word_divergenceFree {q m : ℕ} (hm : m ≤ q+1) (n : ℕ) (w : Fin m → Fin 4) (κ : ℝ) (m₀ : Vector3) (u : SobolevSpace period (q+1)) (hu : value period u ∈ divergenceFreeSpace period κ m₀) : value period (regularizedWordBlock period hm n w (truncateOperator period q u)) ∈ divergenceFreeSpace period κ m₀ := by rw [regularizedWordBlock_value] apply (gradientSpace period κ m₀).orthogonalProjectionOnto_eq_zero_iff.mp apply Subtype.ext change gradientProjection period κ m₀ (cylinderHeat period (regularizerVariance n) (word period u hm w)) = 0 rw [gradientProjection_cylinderHeat] have hz : gradientProjection period κ m₀ (word period u hm w) = 0 := by have h := (gradientSpace period κ m₀).orthogonalProjectionOnto_eq_zero_iff.mpr (word_divergenceFree period hm κ m₀ u hu w) exact congrArg Subtype.val h rw [hz, map_zero] end EulerRegularizedWordEquation end end /-! ## From `Euler/RegularizedWordConvergence.lean` The text of `Euler/RegularizedWordConvergence.lean`, folded into this file, which was its only importer. -/ section /-! The actual energy-order regularized words converge uniformly in time and preserve pressure closedness. -/ noncomputable section namespace EulerRegularizedWordEquation open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerSobolevHeat EulerMildWordEquation EulerMildTopWord EulerHeatRegularizedPaths EulerVolterraConvolution EulerSobolevWordConstraints EulerDivergenceFreeHeat EulerGaussianCylinderHeat open scoped Topology variable (period : ℝ) [Fact (0 < period)] /-- The unregularized energy-order word retained as an actual H⁰ time path. -/ def energyWordPath {q m : ℕ} (hm : m ≤ q+1) (w : Fin m → Fin 4) (T : ℝ) (u : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) : C(Icc (0 : ℝ) T, SobolevSpace period 0) := mapPath period T (boundedWordBlock period 0 m (by omega : 0+m ≤ q+1) w) u /-- The actual regularized energy word is exactly the L² value of its genuine H⁰ heat path. -/ theorem regularizedWordPath_heat_value {q m : ℕ} (hm : m ≤ q+1) (n : ℕ) (w : Fin m → Fin 4) (T : ℝ) (u : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) : (valueOperator period 2).compLeftContinuous ℝ (Icc (0 : ℝ) T) (regularizedWordPath period hm n w T u) = (valueOperator period 0).compLeftContinuous ℝ (Icc (0 : ℝ) T) (pathHeat period 0 T (regularizerVariance n) (energyWordPath period hm w T u)) := by apply ContinuousMap.ext intro t change value period (regularizedWordBlock period hm n w (truncateOperator period q (u t))) = value period (heatOperator period 0 (regularizerVariance n) (boundedWordBlock period 0 m (by omega) w (u t))) rw [regularizedWordBlock_value, heatOperator_value, boundedWordBlock_value] /-- Every actual energy-order word of the regularized mild solution converges uniformly in L² time paths, including the top order. -/ theorem regularizedWordPath_value_tendsto {q m : ℕ} (hm : m ≤ q+1) (w : Fin m → Fin 4) (T : ℝ) (u : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) : Filter.Tendsto (fun n => (valueOperator period 2).compLeftContinuous ℝ (Icc (0 : ℝ) T) (regularizedWordPath period hm n w T u)) Filter.atTop (𝓝 ((valueOperator period 0).compLeftContinuous ℝ (Icc (0 : ℝ) T) (energyWordPath period hm w T u))) := by let v := energyWordPath period hm w T u have h := (pathHeat_continuous period T v).continuousAt.tendsto.comp regularizerVariance_tendsto have hzero : pathHeat period 0 T 0 v = v := by apply ContinuousMap.ext intro t exact heatOperator_zero period (v t) rw [hzero] at h have hv := ((valueOperator period 0).compLeftContinuous ℝ (Icc (0 : ℝ) T)).continuous.continuousAt.tendsto.comp h simpa only [regularizedWordPath_heat_value, Function.comp_def] using hv /-- Genuine heat smoothing preserves the lifted gradient subspace. -/ theorem cylinderHeat_gradient (κ : ℝ) (m : Vector3) (v : NNReal) (p : LiftL2 period) (hp : p ∈ gradientSpace period κ m) : cylinderHeat period v p ∈ gradientSpace period κ m := by apply (gradientSpace period κ m).starProjection_eq_self_iff.mp change gradientProjection period κ m (cylinderHeat period v p) = cylinderHeat period v p rw [gradientProjection_cylinderHeat] have hproj : gradientProjection period κ m p = p := (gradientSpace period κ m).starProjection_eq_self_iff.mpr hp rw [hproj] /-- Every regularized pressure word stays in the actual lifted gradient space, without assuming an unregularized derivative of that order. -/ theorem regularizedWordBlock_gradient {q m : ℕ} (hm : m ≤ q+1) (n : ℕ) (w : Fin m → Fin 4) (κ : ℝ) (m₀ : Vector3) (p : SobolevSpace period q) (hp : value period p ∈ gradientSpace period κ m₀) : value period (regularizedWordBlock period hm n w p) ∈ gradientSpace period κ m₀ := by change value period (boundedWordBlock period 2 m (by omega) w (heatRegularizer period q n p)) ∈ _ rw [boundedWordBlock_value] apply word_gradient period (by omega : m ≤ q+3) κ m₀ (heatRegularizer period q n p) _ w rw [heatRegularizer_value] exact cylinderHeat_gradient period κ m₀ (regularizerVariance n) (value period p) hp end EulerRegularizedWordEquation end end noncomputable section namespace EulerRegularizedWordTime open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerSobolevHeat EulerMildWordEquation EulerMildTopWord EulerRegularizedWordEquation EulerRegularizedTopBlocks EulerHeatRegularizedPaths EulerTimeLp EulerVolterraConvolution EulerGaussianCylinderHeat open scoped Topology variable (period : ℝ) [Fact (0 < period)] /-- The actual L² cylinder heat approximation converges on every Bochner L² time field. -/ theorem field_heat_timeLp_tendsto (T : ℝ) (u : TimeLp T (LiftL2 period)) : Filter.Tendsto (fun n => (cylinderHeat period (regularizerVariance n)).compLpL 2 (timeMeasure T) u) Filter.atTop (𝓝 u) := by apply strong_operator_timeLp_tendsto T (fun n => cylinderHeat period (regularizerVariance n)) 1 · intro n x simpa only [one_mul] using cylinderHeat_norm_le period (regularizerVariance n) x · intro x have h := (cylinderHeat_continuous period x).continuousAt.tendsto.comp regularizerVariance_tendsto simpa only [cylinderHeat_zero, Function.comp_def] using h /-- An actual regularized energy-order derivative of a continuous low-order source, as an L² time path. -/ def sourceWordPath {q m : ℕ} (hm : m ≤ q+1) (n : ℕ) (w : Fin m → Fin 4) (T : ℝ) (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) : C(Icc (0 : ℝ) T, LiftL2 period) := ((valueOperator period 2).comp (regularizedWordBlock period hm n w)).compLeftContinuous ℝ (Icc (0 : ℝ) T) f /-- Source smoothing agrees exactly with heat on a genuinely higher-order Bochner representative, whenever their lower fields agree almost everywhere. -/ theorem sourceWordPath_time_eq {q m : ℕ} (hm : m ≤ q+1) (n : ℕ) (w : Fin m → Fin 4) (T : ℝ) (hT : 0 ≤ T) (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) (F : TimeLp T (SobolevSpace period (q+1))) (hF : (fun t => truncateOperator period q (F t)) =ᵐ[timeMeasure T] extendPath T hT f) : pathLp T hT (sourceWordPath period hm n w T f) = (cylinderHeat period (regularizerVariance n)).compLpL 2 (timeMeasure T) ((wordOperator period (⟨⟨m, Nat.lt_succ_of_le hm⟩, w⟩ : SobolevWord (q+1))).compLpL 2 (timeMeasure T) F) := by let W := wordOperator period (⟨⟨m, Nat.lt_succ_of_le hm⟩, w⟩ : SobolevWord (q+1)) let D := (valueOperator period 2).comp (regularizedWordBlock period hm n w) have hobs := observation_time_eq T hT (truncateOperator period q) D ((cylinderHeat period (regularizerVariance n)).comp W) (regularizedWordBlock_value period hm n w) F f hF exact hobs.trans (compLpL_comp T W (cylinderHeat period (regularizerVariance n)) F).symm /-- The actual regularized source words converge strongly at the full energy order using the proved higher time regularity. -/ theorem sourceWordPath_time_tendsto {q m : ℕ} (hm : m ≤ q+1) (w : Fin m → Fin 4) (T : ℝ) (hT : 0 ≤ T) (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) (F : TimeLp T (SobolevSpace period (q+1))) (hF : (fun t => truncateOperator period q (F t)) =ᵐ[timeMeasure T] extendPath T hT f) : Filter.Tendsto (fun n => pathLp T hT (sourceWordPath period hm n w T f)) Filter.atTop (𝓝 ((wordOperator period (⟨⟨m, Nat.lt_succ_of_le hm⟩, w⟩ : SobolevWord (q+1))).compLpL 2 (timeMeasure T) F)) := by simpa only [sourceWordPath_time_eq period hm _ w T hT f F hF] using field_heat_timeLp_tendsto period T ((wordOperator period (⟨⟨m, Nat.lt_succ_of_le hm⟩, w⟩ : SobolevWord (q+1))).compLpL 2 (timeMeasure T) F) /-- The H¹ restriction of a regularized energy word is literally the corresponding block of the full maximal-regularity approximation. -/ theorem regularizedWordPath_first_eq {q m : ℕ} (hm : m ≤ q+1) (n : ℕ) (w : Fin m → Fin 4) (T : ℝ) (u : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) : (truncateOperator period 1).compLeftContinuous ℝ (Icc (0 : ℝ) T) (regularizedWordPath period hm n w T u) = (boundedWordBlock period 1 m (by omega : 1+m ≤ 2+q) w).compLeftContinuous ℝ (Icc (0 : ℝ) T) (maximalApproximation period q T n u) := by apply ContinuousMap.ext intro t apply value_injective period change value period (truncateOperator period 1 (regularizedWordBlock period hm n w (truncateOperator period q (u t)))) = value period (boundedWordBlock period 1 m (by omega) w (restrictOperator period (by omega : 2+q ≤ q+3) (heatRegularizer period q n (truncateOperator period q (u t))))) rw [value_truncateOperator, boundedWordBlock_value] change value period (boundedWordBlock period 2 m (by omega) w (heatRegularizer period q n (truncateOperator period q (u t)))) = _ rw [boundedWordBlock_value] rfl /-- Genuine maximal regularity gives strong H¹ time convergence for every full energy-order derivative word. -/ theorem regularizedWordPath_first_tendsto {q m : ℕ} (hm : m ≤ q+1) (w : Fin m → Fin 4) (T : ℝ) (hT : 0 ≤ T) (u : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (U : TimeLp T (SobolevSpace period (2+q))) (hU : Filter.Tendsto (fun n => pathLp T hT (maximalApproximation period q T n u)) Filter.atTop (𝓝 U)) : Filter.Tendsto (fun n => pathLp T hT ((truncateOperator period 1).compLeftContinuous ℝ (Icc (0 : ℝ) T) (regularizedWordPath period hm n w T u))) Filter.atTop (𝓝 ((boundedWordBlock period 1 m (by omega : 1+m ≤ 2+q) w).compLpL 2 (timeMeasure T) U)) := by let A := boundedWordBlock period 1 m (by omega : 1+m ≤ 2+q) w have h := (A.compLpL 2 (timeMeasure T)).continuous.continuousAt.tendsto.comp hU simpa only [regularizedWordPath_first_eq, pathLp_map, Function.comp_def] using h end EulerRegularizedWordTime