LeanMachineLearning

ProbabilityTheory.hasSubexponentialMGF_sub_integral_of_abs_le🔗

Lemma

From the authors

If |X| ≤ M almost surely, then X - μ[X] has a sub-exponential mgf with parameters (3 * Var[X] / 2, 2 * M).

Types
  • Ω : Type u_1mΩ : MeasurableSpace ΩA measurable space is a space equipped with a σ-algebra.
Given
  • μ : MeasureTheory.Measure ΩA measure is defined to be an outer measure that is countably additive on measurable sets, with the additional assumption that the outer measure is the canonical extension of the restricted measure.MeasureTheory.IsProbabilityMeasure μA measure μ is called a probability measure if μ univ = 1.
  • X : Ω →
  • M :
Assuming
  • hm : AEMeasurable X μA function is almost everywhere measurable if it coincides almost everywhere with a measurable function.
  • hM : ∀ᵐ (ω : Ω)μ, |X ω|Mf.Eventually p or ∀ᶠ x in f, p x mean that {x | p x} ∈ f.
Code
lemma hasSubexponentialMGF_sub_integral_of_abs_le [IsProbabilityMeasure μ] {M : ℝ}
    (hm : AEMeasurable X μ) (hM : ∀ᵐ ω ∂μ, |X ω| ≤ M) :
    HasSubexponentialMGF (fun ω ↦ X ω - μ[X]) (3 * Var[X; μ] / 2) (2 * M) μ
Proof
by
  have hX : Integrable X μ :=
    Integrable.of_mem_Icc (-M) M hm (hM.mono fun ω h ↦ abs_le.1 h)
  have hEX : |μ[X]| ≤ M := by
    refine (abs_integral_le_integral_abs).trans ?_
    calc ∫ ω, |X ω| ∂μ ≤ ∫ _, M ∂μ := integral_mono_ae hX.abs (integrable_const _) hM
      _ = M := by simp
  refine hasSubexponentialMGF_of_abs_le_of_integral_eq_zero (hm.sub_const _) ?_ ?_ ?_
  · filter_upwards [hM] with ω hω
    calc |X ω - μ[X]| ≤ |X ω| + |μ[X]| := abs_sub _ _
      _ ≤ M + M := add_le_add hω hEX
      _ = 2 * M := by ring
  · simp [integral_sub hX (integrable_const _)]
  · simp [variance_eq_integral hm]

Meaning last changed in v4.34.0-rc2-76-g565f652 (2026-09-10).

Self-contained, with its dependencies inlined and proofs replaced by sorry: download the raw file · open it in the Lean web editor.

Dependency graph

Audit surface: 1 project declarations, 69 external constants

✓ Proved: no sorry anywhere in its closure

This is the tool's own reading of one build's recorded axioms, and it is not robust against an author who wants it to pass. Checking meant to be relied on should go through Comparator, which replays the proof through the kernel from an export against an explicit list of permitted axioms.