LeanMachineLearning

ProbabilityTheory.HasSubexponentialMGF.integral_eq_zero🔗

Lemma

From the authors

A sub-exponential random variable is centered.

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 : Ω →
  • V :
  • b :
Then
 (x : Ω), X xμ = 0
Code
lemma integral_eq_zero (h : HasSubexponentialMGF X V b μ) [IsProbabilityMeasure μ] : μ[X] = 0
Proof
by
  have hd : HasDerivAt (fun t ↦ mgf X μ t - exp (V * t ^ 2 / 2)) (μ[X] - 0) 0 := by
    have h1 : HasDerivAt (mgf X μ) μ[X] 0 := by
      simpa using hasDerivAt_mgf h.zero_mem_interior_integrableExpSet
    have h2 : HasDerivAt (fun t : ℝ ↦ exp (V * t ^ 2 / 2)) 0 0 := by
      have := (((hasDerivAt_pow 2 (0 : ℝ)).const_mul V).div_const 2).exp
      simpa using this
    exact h1.sub h2
  have hmax : IsLocalMax (fun t ↦ mgf X μ t - exp (V * t ^ 2 / 2)) 0 := by
    filter_upwards [((by fun_prop : Continuous fun t : ℝ ↦ b * |t|).tendsto 0).eventually_le_const
      (by simp : b * |(0 : ℝ)| < 1)] with t ht
    simp only [mgf_zero', probReal_univ, zero_pow two_ne_zero, mul_zero, zero_div, exp_zero,
      sub_self]
    linarith [h.mgf_le t ht]
  simpa using hmax.hasDerivAt_eq_zero hd

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, 62 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.