import Euler.WholeSpaceGaussianEvolution import Euler.WholeSpaceGaussianLow import Euler.MeanSobolevBoundedField import Euler.OrdinaryH3Norms import Euler.MeanHarmonicDerivatives /-! The heat estimates specialized to genuine ordinary smooth L² fields. -/ noncomputable section namespace EulerWholeSpaceGaussian open MeasureTheory InnerProductSpace EulerSmoothLimit Filter Set ContinuousLinearMap EulerLpTranslation EulerLpTranslation.SmoothL2Field EulerMeanSobolevBoundedField EulerOrdinarySobolev EulerVectorCalculus EulerMeanHarmonic Laplacian open scoped ContDiff ENNReal RealInnerProductSpace Topology variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] theorem average_integrable_of_memLp {t : ℝ} (ht : 0 < t) (f : Space → V) (hf : MemLp f 2 volume) (x : Space) : Integrable (fun y : Space => kernel t y • f (x+y)) := by have hs : MemLp (fun y : Space => f (x+y)) 2 volume := hf.comp_measurePreserving (measurePreserving_add_left (volume : Measure Space) x) exact memLp_one_iff_integrable.mp (hs.smul (kernel_memLp ht)) theorem average_sub {t : ℝ} (ht : 0 < t) (f g : Space → V) (hf : MemLp f 2 volume) (hg : MemLp g 2 volume) (x : Space) : average t (fun y => f y-g y) x = average t f x-average t g x := by simp only [average, smul_sub] exact integral_sub (average_integrable_of_memLp ht f hf x) (average_integrable_of_memLp ht g hg x) theorem average_sum {t : ℝ} (ht : 0 < t) (f : Fin 3 → Space → V) (hf : ∀ i, MemLp (f i) 2 volume) (x : Space) : average t (fun y => ∑ i : Fin 3, f i y) x = ∑ i : Fin 3, average t (f i) x := by simp only [average, Finset.smul_sum] exact integral_finsetSum Finset.univ (fun i _ => average_integrable_of_memLp ht (f i) (hf i) x) theorem secondAverage_directional_bound {t : ℝ} (ht : 0 < t) (A : SmoothL2Field V) (j : Fin 3) (x : Space) : ‖secondAverage t (A.directionalField (axis j)).field x‖ ≤ 3*t^(-(3:ℝ)/4)*‖A.jetLp 3‖ := by let w (i : Fin 3) : Fin 3 → Fin 3 := ![i,i,j] have he (i : Fin 3) : (wordField A (w i)).field = fun z => fderiv ℝ (fun y => fderiv ℝ (A.directionalField (axis j)).field y (EuclideanSpace.single i 1)) z (EuclideanSpace.single i 1) := by rfl have h (i : Fin 3) : ‖average t (wordField A (w i)).field x‖ ≤ t^(-(3:ℝ)/4)*‖A.jetLp 3‖ := (average_smoothField_norm ht (wordField A (w i)) x).trans (mul_le_mul_of_nonneg_left (wordField_toLp_norm_le A (w i)) (Real.rpow_nonneg ht.le _)) unfold secondAverage calc _ ≤ ∑ i : Fin 3, ‖average t (wordField A (w i)).field x‖ := by simpa only [he] using norm_sum_le Finset.univ (fun i : Fin 3 => average t (wordField A (w i)).field x) _ ≤ ∑ _i : Fin 3, t^(-(3:ℝ)/4)*‖A.jetLp 3‖ := Finset.sum_le_sum (fun i _ => h i) _ = _ := by simp; ring section Bounded variable [FiniteDimensional ℝ V] theorem field_sup_bound (A : SmoothL2Field V) (x : Space) : ‖A.field x‖ ≤ ‖finiteField A‖ := by simpa only [finiteField_apply] using (finiteField A).norm_coe_le_norm x theorem average_field_hasDerivAt {t : ℝ} (ht : 0 < t) (A : SmoothL2Field V) (x : Space) : HasDerivAt (fun s : ℝ => average s A.field x) ((1/4:ℝ) • secondAverage t A.field x) t := average_hasDerivAt ht A.field A.smooth ‖finiteField A‖ ‖finiteField A.derivative‖ ‖finiteField A.derivative.derivative‖ (field_sup_bound A) (field_sup_bound A.derivative) (field_sup_bound A.derivative.derivative) x theorem scaledAverage_field_hasDerivAt {t : ℝ} (ht : 0 < t) (A : SmoothL2Field V) (x : Space) : HasDerivAt (fun s : ℝ => scaledAverage s A.field x) ((1/4:ℝ) • secondAverage t A.field x) t := by apply (average_field_hasDerivAt ht A x).congr_of_eventuallyEq filter_upwards [Ioi_mem_nhds ht] with s hs exact scaledAverage_eq hs A.field x theorem average_field_first_bound (A : SmoothL2Field V) (a x : Space) : ‖average 1 (fun y => fderiv ℝ A.field y a) x‖ ≤ lowCost*‖a‖*‖A.toLp‖ := by simpa only [field_norm] using average_first_L2_bound A.field A.smooth A.memLp ‖finiteField A‖ ‖finiteField A.derivative‖ (field_sup_bound A) (field_sup_bound A.derivative) a x theorem average_field_second_bound {t : ℝ} (ht : 0 < t) (A : SmoothL2Field V) (W : ℝ) (hW : ∀ x, ‖A.field x‖ ≤ W) (a b x : Space) : ‖average t (fun z => fderiv ℝ (fun y => fderiv ℝ A.field y b) z a) x‖ ≤ (10*(2:ℝ)^((3:ℝ)/2))*t⁻¹*‖a‖*‖b‖*W := average_second_bound ht A.field A.smooth W ‖finiteField A.derivative‖ ‖finiteField A.derivative.derivative‖ hW (field_sup_bound A.derivative) (field_sup_bound A.derivative.derivative) a b x end Bounded theorem secondAverage_eq_laplacian {t : ℝ} (ht : 0 < t) (A : SmoothL2Field ℝ) (x : Space) : secondAverage t A.field x = average t (Δ A.field) x := by have he : (Δ A.field) = fun y => ∑ i : Fin 3, ((A.directionalField (axis i)).directionalField (axis i)).field y := by funext y exact laplacian_eq_coordinate_sum A.field A.smooth y rw [he, average_sum ht _ (fun i => ((A.directionalField (axis i)).directionalField (axis i)).memLp)] rfl end EulerWholeSpaceGaussian