Exponential tilts and smooth tilt integrals
DefinitionKLS408915f_FunctionalInequalities_Analysis_BakryEmery_Tilt_BasicFor a measure on a finite-dimensional real inner-product space, expTilt μ z is the tilted measure with exponent , tiltAverage μ f z is , and taylorTensor μ f d is times the th iterated Fréchet derivative of this tilt average at , as a continuous multilinear map. The auxiliary private declarations control measurability, exponential growth, integrability, and differentiation under the integral sign; in particular contDiff_integral_exp_inner_smul gives smoothness of under finiteness, all exponential moments, and the stated polynomial growth bound. The definitions are total, so without integrability the tilted measure and associated integrals may be the zero-measure or totalized values supplied by Mathlib.
Superseded upload. This snapshot was replaced by the readable modular upload KLSModular_FunctionalInequalities_Analysis_BakryEmery_Tilt_Basic: open the replacement. The replacement preserves the source snapshot and mathematical statement, with source-module imports and identifiers without a commit suffix. This historical node remains available for existing imports.
import Definitions.Def_KLS408915f_FunctionalInequalities_Analysis_BakryEmery_Calculus
import Definitions.Def_KLS408915f_FunctionalInequalities_Analysis_BakryEmery_IntegrationByParts_Basic
import Definitions.Def_KLS408915f_FunctionalInequalities_Analysis_BakryEmery_Laplacian
import Definitions.Def_KLS408915f_FunctionalInequalities_Analysis_Tensor_Coefficients
import Definitions.Def_KLS408915f_FunctionalInequalities_Analysis_Tensor_Coordinate
import Definitions.Def_KLS408915f_FunctionalInequalities_Analysis_Tensor_Multilinear
import Definitions.Def_KLS408915f_FunctionalInequalities_Analysis_Tensor_Symmetrization
import Mathlib.Analysis.Calculus.BumpFunction.InnerProduct
import Mathlib.Analysis.Calculus.BumpFunction.Normed
import Mathlib.Analysis.Calculus.ContDiff.FTaylorSeries
import Mathlib.Analysis.Calculus.Deriv.Slope
import Mathlib.Analysis.Calculus.FDeriv.Symmetric
import Mathlib.Analysis.Calculus.Gradient.Basic
import Mathlib.Analysis.Calculus.LineDeriv.IntegrationByParts
import Mathlib.Analysis.Calculus.ParametricIntegral
import Mathlib.Analysis.Convex.Deriv
import Mathlib.Analysis.InnerProductSpace.Adjoint
import Mathlib.Analysis.InnerProductSpace.Basic
import Mathlib.Analysis.InnerProductSpace.Calculus
import Mathlib.Analysis.InnerProductSpace.Laplacian
import Mathlib.Analysis.InnerProductSpace.LinearMap
import Mathlib.Analysis.InnerProductSpace.PiL2
import Mathlib.Analysis.Normed.Module.Multilinear.Curry
import Mathlib.Analysis.Normed.Operator.LinearIsometry
import Mathlib.Analysis.SpecialFunctions.ExpDeriv
import Mathlib.Data.Fintype.Perm
import Mathlib.Data.Nat.Choose.Central
import Mathlib.Data.Nat.Choose.Vandermonde
import Mathlib.GroupTheory.Perm.Basic
import Mathlib.MeasureTheory.Function.L2Space
import Mathlib.MeasureTheory.Function.LpSpace.Indicator
import Mathlib.MeasureTheory.Measure.Tilted
noncomputable section
open MeasureTheory FunctionalInequalities.Analysis.Tensor
open scoped RealInnerProductSpace ContDiff
namespace FunctionalInequalities
namespace Analysis
namespace BakryEmery
universe u
variable {E : Type u} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E]
[FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E]
/-- The exponential tilt `μ_z` of `μ` in direction `z`: density `e^{⟪z, x⟫} / ∫ e^{⟪z, y⟫} dμ(y)`
(BKL (26)). -/
def expTilt (μ : Measure E) (z : E) : Measure E :=
μ.tilted fun x => ⟪z, x⟫
/-- The tilt average `F_f(z) = ∫ f dμ_z` (BKL (27)), for functions with values in a real Banach
space. -/
def tiltAverage {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] [CompleteSpace F]
(μ : Measure E) (f : E → F) (z : E) : F :=
∫ x, f x ∂(expTilt μ z)
/-- The Taylor tensor `T_d f = (1/d!) ∇^d F_f(0)` (BKL (28)), as a continuous `d`-linear map (its
norm is the operator norm, not the source's Hilbert–Schmidt norm). -/
def taylorTensor {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] [CompleteSpace F]
(μ : Measure E) (f : E → F) (d : ℕ) : ContinuousMultilinearMap ℝ (fun _ : Fin d => E) F :=
((d.factorial : ℝ)⁻¹) • iteratedFDeriv ℝ d (tiltAverage μ f) 0
variable (m : Measure E) [m.IsAddHaarMeasure]
open Filter Topology
universe v
def expD {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F]
(g : E → F) (x : E) : E →L[ℝ] F :=
(innerSL ℝ x).smulRight (g x)
section NormedSpace
variable {F : Type*}
variable [NormedAddCommGroup F] [NormedSpace ℝ F]
omit [CompleteSpace E] in
theorem expD_meas
{μ : Measure E} {g : E → F} (hg : AEStronglyMeasurable g μ) :
AEStronglyMeasurable (FunctionalInequalities.Analysis.BakryEmery.expD g) μ := by
exact
(ContinuousLinearMap.smulRightL ℝ E F).continuous₂.comp_aestronglyMeasurable
((innerSL ℝ : E →L[ℝ] E →L[ℝ] ℝ).continuous.aestronglyMeasurable.prodMk hg)
omit [CompleteSpace E] [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] in
theorem expD_bound
{g : E → F} {M a : ℝ} (_hM : 0 ≤ M)
(hb : ∀ x, ‖g x‖ ≤ M * Real.exp (a * ‖x‖)) :
∀ x, ‖FunctionalInequalities.Analysis.BakryEmery.expD g x‖ ≤ M * Real.exp ((a + 1) * ‖x‖) := by
intro x
have hx : ‖x‖ ≤ Real.exp ‖x‖ :=
le_trans (by linarith) (Real.add_one_le_exp ‖x‖)
calc
‖FunctionalInequalities.Analysis.BakryEmery.expD g x‖ = ‖x‖ * ‖g x‖ := by
simp [FunctionalInequalities.Analysis.BakryEmery.expD, ContinuousLinearMap.norm_smulRight_apply,
innerSL_apply_norm]
_ ≤ Real.exp ‖x‖ * (M * Real.exp (a * ‖x‖)) := by
gcongr
exact hb x
_ = M * Real.exp ((a + 1) * ‖x‖) := by
rw [add_mul, Real.exp_add, one_mul]
ring
omit [CompleteSpace E] [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] in
theorem exp_smul_bound
{g : E → F} {M a : ℝ} (_hM : 0 ≤ M)
(hb : ∀ x, ‖g x‖ ≤ M * Real.exp (a * ‖x‖))
(z x : E) {R : ℝ} (hz : ‖z‖ ≤ R) :
‖Real.exp ⟪z, x⟫ • g x‖ ≤ M * Real.exp ((R + a) * ‖x‖) := by
calc
‖Real.exp ⟪z, x⟫ • g x‖ =
Real.exp ⟪z, x⟫ * ‖g x‖ := by
rw [norm_smul, Real.norm_eq_abs,
abs_of_pos (Real.exp_pos _)]
_ ≤ Real.exp (R * ‖x‖) * (M * Real.exp (a * ‖x‖)) := by
gcongr
· exact
(real_inner_le_norm _ _).trans
(mul_le_mul_of_nonneg_right hz (norm_nonneg _))
· exact hb x
_ = M * Real.exp ((R + a) * ‖x‖) := by
rw [add_mul, Real.exp_add]
ring
omit [CompleteSpace E] [FiniteDimensional ℝ E] in
theorem exp_smul_int
(μ : Measure E)
(hexp : ∀ r : ℝ,
Integrable (fun x => Real.exp (r * ‖x‖)) μ)
{g : E → F} (hg : AEStronglyMeasurable g μ)
{M a : ℝ} (hM : 0 ≤ M)
(hb : ∀ x, ‖g x‖ ≤ M * Real.exp (a * ‖x‖)) (z : E) :
Integrable (fun x => Real.exp ⟪z, x⟫ • g x) μ := by
refine ((hexp (‖z‖ + a)).const_mul M).mono' ?_ ?_
· exact
(by fun_prop : Continuous (fun x => Real.exp ⟪z, x⟫)).aestronglyMeasurable.smul hg
· exact ae_of_all μ (fun x => FunctionalInequalities.Analysis.BakryEmery.exp_smul_bound hM hb z x le_rfl)
omit [CompleteSpace E] [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] in
theorem exp_smul_hasFDeriv
(g : E → F) (x z : E) :
HasFDerivAt (fun w => Real.exp ⟪w, x⟫ • g x)
(Real.exp ⟪z, x⟫ • FunctionalInequalities.Analysis.BakryEmery.expD g x) z := by
have hl : HasFDerivAt (fun w : E => ⟪w, x⟫) (innerSL ℝ x) z := by
convert (innerSL ℝ x).hasFDerivAt (x := z) using 1
ext w
simpa only [innerSL_apply_apply] using (real_inner_comm w x).symm
convert hl.exp.smul_const (g x) using 1
ext y
simp [FunctionalInequalities.Analysis.BakryEmery.expD, ContinuousLinearMap.smulRight_apply, mul_smul]
omit [CompleteSpace E] in
theorem exp_integral_hasFDeriv [CompleteSpace F]
(μ : Measure E)
(hexp : ∀ r : ℝ,
Integrable (fun x => Real.exp (r * ‖x‖)) μ)
{g : E → F} (hg : AEStronglyMeasurable g μ)
{M a : ℝ} (hM : 0 ≤ M)
(hb : ∀ x, ‖g x‖ ≤ M * Real.exp (a * ‖x‖)) (z : E) :
HasFDerivAt (fun w => ∫ x, Real.exp ⟪w, x⟫ • g x ∂μ)
(∫ x, Real.exp ⟪z, x⟫ • FunctionalInequalities.Analysis.BakryEmery.expD g x ∂μ) z := by
have hbd := FunctionalInequalities.Analysis.BakryEmery.expD_bound hM hb
refine hasFDerivAt_integral_of_dominated_of_fderiv_le
(F := fun w x => Real.exp ⟪w, x⟫ • g x)
(F' := fun w x => Real.exp ⟪w, x⟫ • FunctionalInequalities.Analysis.BakryEmery.expD g x)
(bound := fun x =>
M * Real.exp (((‖z‖ + 1) + (a + 1)) * ‖x‖))
(Metric.ball_mem_nhds z zero_lt_one)
?_ (FunctionalInequalities.Analysis.BakryEmery.exp_smul_int μ hexp hg hM hb z) ?_ ?_ ?_ ?_
· exact Eventually.of_forall fun w =>
(FunctionalInequalities.Analysis.BakryEmery.exp_smul_int μ hexp hg hM hb w).1
· exact (FunctionalInequalities.Analysis.BakryEmery.exp_smul_int μ hexp (FunctionalInequalities.Analysis.BakryEmery.expD_meas hg) hM hbd z).1
· filter_upwards with x w hw
apply FunctionalInequalities.Analysis.BakryEmery.exp_smul_bound hM hbd w x
have hd : ‖w - z‖ < 1 := by
simpa [Metric.mem_ball, dist_eq_norm] using hw
calc
‖w‖ ≤ ‖w - z‖ + ‖z‖ := by
simpa [add_comm] using norm_le_insert' w z
_ ≤ ‖z‖ + 1 := by linarith
· exact (hexp _).const_mul M
· exact ae_of_all μ (fun x w _ => FunctionalInequalities.Analysis.BakryEmery.exp_smul_hasFDeriv g x w)
omit [CompleteSpace E] in
theorem exp_integral_contDiff_nat
{F : Type (max u v)}
[NormedAddCommGroup F] [NormedSpace ℝ F] [CompleteSpace F]
(μ : Measure E)
(hexp : ∀ r : ℝ,
Integrable (fun x => Real.exp (r * ‖x‖)) μ)
(n : ℕ) {g : E → F} (hg : AEStronglyMeasurable g μ)
{M a : ℝ} (hM : 0 ≤ M)
(hb : ∀ x, ‖g x‖ ≤ M * Real.exp (a * ‖x‖)) :
ContDiff ℝ n (fun z => ∫ x, Real.exp ⟪z, x⟫ • g x ∂μ) := by
induction n generalizing F M a with
| zero =>
exact contDiff_zero.2
(continuous_iff_continuousAt.2
(fun z => (FunctionalInequalities.Analysis.BakryEmery.exp_integral_hasFDeriv μ hexp hg hM hb z).continuousAt))
| succ n IH =>
apply contDiff_succ_iff_hasFDerivAt.2
refine ⟨(fun z => ∫ x, Real.exp ⟪z, x⟫ • FunctionalInequalities.Analysis.BakryEmery.expD g x ∂μ), ?_, ?_⟩
· exact IH (FunctionalInequalities.Analysis.BakryEmery.expD_meas hg) hM (FunctionalInequalities.Analysis.BakryEmery.expD_bound hM hb)
· exact FunctionalInequalities.Analysis.BakryEmery.exp_integral_hasFDeriv μ hexp hg hM hb
section CompleteSpace
variable [CompleteSpace F]
omit [CompleteSpace E] in
/-- Differentiation under the integral sign for exponential weights: if `μ` is finite with all
exponential moments and `g` grows at most polynomially, `z ↦ ∫ e^{⟪z, x⟫} g(x) dμ(x)` is smooth. -/
theorem contDiff_integral_exp_inner_smul (μ : Measure E) [IsFiniteMeasure μ]
(hexp : ∀ r : ℝ, Integrable (fun x => Real.exp (r * ‖x‖)) μ) {g : E → F}
(hg : AEStronglyMeasurable g μ) {M : ℝ} {k : ℕ} (hgb : ∀ x, ‖g x‖ ≤ M * (1 + ‖x‖) ^ k) :
ContDiff ℝ ∞ (fun z => ∫ x, Real.exp ⟪z, x⟫ • g x ∂μ) := by
let L : ULift.{u} F ≃ₗᵢ[ℝ] F := LinearIsometryEquiv.ulift ℝ F
have hb : ∀ x, ‖g x‖ ≤ |M| * Real.exp ((k : ℝ) * ‖x‖) := by
intro x
calc
‖g x‖ ≤ M * (1 + ‖x‖) ^ k := hgb x
_ ≤ |M| * (Real.exp ‖x‖) ^ k := by
apply mul_le_mul
· exact le_abs_self M
· exact pow_le_pow_left₀ (by positivity)
(by simpa [add_comm] using Real.add_one_le_exp ‖x‖) k
· positivity
· positivity
_ = |M| * Real.exp ((k : ℝ) * ‖x‖) := by
rw [Real.exp_nat_mul]
have hgl : AEStronglyMeasurable (fun x => L.symm (g x)) μ :=
L.symm.toContinuousLinearEquiv.toContinuousLinearMap.continuous.comp_aestronglyMeasurable hg
have hbl : ∀ x,
‖L.symm (g x)‖ ≤ |M| * Real.exp ((k : ℝ) * ‖x‖) := by
simpa only [L.symm.norm_map] using hb
have hnat : ∀ n : ℕ, ContDiff ℝ n
(fun z => ∫ x, Real.exp ⟪z, x⟫ • L.symm (g x) ∂μ) :=
fun n => FunctionalInequalities.Analysis.BakryEmery.exp_integral_contDiff_nat μ hexp n hgl (abs_nonneg M) hbl
have hs :=
(contDiff_infty.2 hnat).continuousLinearMap_comp
L.toContinuousLinearEquiv.toContinuousLinearMap
have heq :
(fun z => L (∫ x, Real.exp ⟪z, x⟫ • L.symm (g x) ∂μ)) =
(fun z => ∫ x, Real.exp ⟪z, x⟫ • g x ∂μ) := by
funext z
change L.toContinuousLinearEquiv.toContinuousLinearMap
(∫ x, Real.exp ⟪z, x⟫ • L.symm (g x) ∂μ) = _
rw [← L.toContinuousLinearEquiv.toContinuousLinearMap.integral_comp_comm
(FunctionalInequalities.Analysis.BakryEmery.exp_smul_int μ hexp hgl (abs_nonneg M) hbl z)]
simp
change ContDiff ℝ ∞
(fun z => L (∫ x, Real.exp ⟪z, x⟫ • L.symm (g x) ∂μ)) at hs
rwa [heq] at hs
end CompleteSpace
end NormedSpace
end BakryEmery
end Analysis
end FunctionalInequalities