Utility Lemma 12 — the mean of m i.i.d. variables bounded by B deviates from its expectation by at most B/√m in L¹
ProvedLearnStability.ERMLOO.utility_lemma12Let () be independent, identically distributed real random variables on a probability space with almost surely, and let . Then
This is the elementary concentration estimate used to compare the empirical risk of a fixed hypothesis with its risk, for instance in Lemma 14 and Lemma 16.
Formalization Note. The bound is required almost surely (the paper writes ), each is measurable, independence is iIndepFun, and identical distribution is required pairwise.
import Mathlib open MeasureTheory ProbabilityTheory
namespace LearnStability.ERMLOO
theorem utility_lemma12 {Ω : Type*} [MeasurableSpace Ω] {μ : Measure Ω} [IsProbabilityMeasure μ]
{m : ℕ} (hm : 1 ≤ m) (X : Fin m → Ω → ℝ) (B : ℝ)
(hmeas : ∀ i, Measurable (X i))
(hindep : iIndepFun X μ)
(hident : ∀ i j, IdentDistrib (X i) (X j) μ μ)
(hB : ∀ i, ∀ᵐ ω ∂μ, |X i ω| ≤ B) :
∫ ω, |(∑ i, X i ω) / m - ∫ ω', (∑ i, X i ω') / m ∂μ| ∂μ ≤ B / Real.sqrt m := by sorry
end LearnStability.ERMLOO
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The setting is a probability space , an integer , and real-valued functions on . Assume all of the following:
- each is measurable;
- are mutually independent under ;
- for every pair , and have the same distribution under ;
- for each , for -almost every , where is a real number.
Let be the sample mean. The statement asserts
that is, .
Degenerate cases:
- Sample size. is excluded. For the claim is .
- Sign of . Because is a probability measure and , the almost-sure bound forces . With , every is almost surely and both sides are .
- Integrability. The integrands are measurable and bounded almost surely, so no zero-for-non-integrable convention is triggered.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.