import OAI.Analysis.FreeEntropy.GaussianDecay namespace OAI universe u1 noncomputable section open MeasureTheory ProbabilityTheory Set open scoped Topology namespace FiniteEntropySeparation variable {ι : Type u1} [Fintype ι] theorem normal_prefactor_bounded {a b : ℝ} (ha : 0 -(Fintype.card ι:ℝ)/2*Real.log (2*Real.pi*s)) (Icc a b) := by apply continuousOn_const.mul apply ContinuousOn.log (by fun_prop) intro s hs; exact ne_of_gt (by have : 0 (normalKernel_shift_bounds ha hs hD hK x y hy).1)) simpa only [smoothedDensity,integral_const,probReal_univ,one_smul] using h · have h := integral_mono_ae hi (integrable_const (Real.exp (D+K^2/(2*b))*Real.exp (-‖x‖^2/(4*b)))) (hμ.mono (fun y hy => (normalKernel_shift_bounds ha hs hD hK x y hy).2)) simpa only [smoothedDensity,integral_const,probReal_univ,one_smul] using h theorem smoothedDensity_log_bound (μ : Measure (EuclideanSpace ℝ ι)) [IsProbabilityMeasure μ] {a b s D K : ℝ} (ha : 0 (normalKernel_le s hs0 (x-y)).trans (Real.exp_le_exp.mpr (le_trans (le_abs_self _) hD)))) simpa only [smoothedDensity,integral_const,probReal_univ,one_smul] using h have h := Real.log_le_log hp hu' rw [Real.log_exp] at h exact h.trans (le_add_of_nonneg_right (by positivity)) theorem integrable_of_normBound (μ : Measure (EuclideanSpace ℝ ι)) [IsFiniteMeasure μ] {K : ℝ} (hμ : ∀ᵐ y ∂μ,‖y‖ ≤ K) {f : EuclideanSpace ℝ ι → ℝ} (hf : Continuous f) : Integrable f μ := by apply integrable_of_compact_ae μ (isCompact_closedBall (0 : EuclideanSpace ℝ ι) K) _ hf.aestronglyMeasurable hf.continuousOn simpa only [Metric.mem_closedBall,dist_zero_right] using hμ theorem smoothedGradient_bound (μ : Measure (EuclideanSpace ℝ ι)) [IsFiniteMeasure μ] {a s K : ℝ} (ha : 0 normalGradient s (x-y) i) μ := integrable_of_normBound μ hμ ((normalGradient_continuous s i).comp (continuous_const.sub continuous_id)) calc _ ≤ ∫y,|normalGradient s (x-y) i| ∂μ := by simpa only [smoothedGradient,Real.norm_eq_abs] using norm_integral_le_integral_norm (fun y => normalGradient s (x-y) i) _ ≤ ∫y,((‖x‖+K)/a)*normalKernel s (x-y) ∂μ := by apply integral_mono_ae hi.norm ((normalKernel_integrable_finite μ hs0 x).const_mul _) filter_upwards [hμ] with y hy unfold normalGradient rw [Real.norm_eq_abs,abs_mul,abs_div,abs_neg,abs_of_pos hs0,abs_of_pos (normalKernel_pos _ _)] apply mul_le_mul_of_nonneg_right _ (normalKernel_pos _ _).le have hn0 : |(x-y) i| ≤ ‖x-y‖ := by simpa only [Real.norm_eq_abs] using PiLp.norm_apply_le (x-y) i have hn : |(x-y) i| ≤ ‖x‖+K := hn0.trans ((norm_sub_le x y).trans (add_le_add le_rfl hy)) exact (div_le_div_of_nonneg_right hn hs0.le).trans (div_le_div_of_nonneg_left (by positivity) ha hs) _ = _ := integral_const_mul _ _ end FiniteEntropySeparation end end OAI