LeanMachineLearning

ProbabilityTheory.HasSubexponentialMGF.measureReal_le_le_exp🔗

Lemma

From the authors

For X, Y two independent random variables with sub-exponential fluctuations such that μ[X] ≥ μ[Y], the probability that X ≤ Y is bounded by a Bernstein-type term.

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.
  • X : Ω →
  • b :
  • Y : Ω →
  • VX :
  • VY :
Assuming
Then
μ.real {ω | X ωY ω}Real.exp
    (-min (( (x : Ω), X xμ -  (x : Ω), Y xμ) ^ 2 / (2 * (VX + VY)))
        (( (x : Ω), X xμ -  (x : Ω), Y xμ) / (2 * b)))
Code
lemma measureReal_le_le_exp {Y : Ω → ℝ} {VX VY : ℝ}
    (hX : HasSubexponentialMGF (fun ω ↦ X ω - μ[X]) VX b μ)
    (hY : HasSubexponentialMGF (fun ω ↦ Y ω - μ[Y]) VY b μ)
    (hindep : IndepFun X Y μ) (h_le : μ[Y] ≤ μ[X]) :
    μ.real {ω | X ω ≤ Y ω}
      ≤ exp (-min ((μ[X] - μ[Y]) ^ 2 / (2 * (VX + VY))) ((μ[X] - μ[Y]) / (2 * b)))
Proof
by
  have hXY : HasSubexponentialMGF (fun ω ↦ (Y ω - μ[Y]) - (X ω - μ[X])) (VX + VY) b μ := by
    rw [add_comm VX]
    refine sub_of_indepFun hY hX ?_
    exact hindep.symm.comp (φ := fun x ↦ x - μ[Y]) (ψ := fun x ↦ x - μ[X])
      (by fun_prop) (by fun_prop)
  calc μ.real {ω | X ω ≤ Y ω}
  _ = μ.real {ω | (μ[X] - μ[Y]) ≤ (Y ω - μ[Y]) - (X ω - μ[X])} := by
    congr with ω
    constructor <;> intro h <;> linarith
  _ ≤ exp (-min ((μ[X] - μ[Y]) ^ 2 / (2 * (VX + VY))) ((μ[X] - μ[Y]) / (2 * b))) :=
    hXY.measure_ge_le (by linarith)

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