Utility Lemma 12 — the sample mean of a bounded variable deviates by at most B/√m in expectation
ProvedLearnStability.Characterization.utility_lemma12concentrationlearning-theoryp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1
Let be a probability distribution on and a measurable function with for all . For let and , so that . Then
This is the only concentration fact used in the converse direction of Theorem 7 (Lemmas 16 and 20), where for a fixed hypothesis .
Formalization Note. The paper states the lemma for i.i.d. real variables with . It is stated here for , which is how the paper uses it; the two forms are equivalent (take , the common law, and the identity clipped to ).
Preamble
import Mathlib import Definitions.Def_LearnStability_Characterization_Setting open MeasureTheory
Formal statement
namespace LearnStability.Characterization
/-- Utility Lemma 12 (p. 2650), for the sample average of a bounded measurable function:
if `|g(z)| ≤ B` for all `z` and `S = (z_1, …, z_m) ∼ D^m` with `m ≥ 1`, then
`E[|(1/m) ∑_i g(z_i) − E_D[g]|] ≤ B / √m`. -/
theorem utility_lemma12 {Z : Type*} [MeasurableSpace Z]
(D : Measure Z) [IsProbabilityMeasure D]
(g : Z → ℝ) (B : ℝ) (hg : Measurable g) (hB : ∀ z, |g z| ≤ B)
(m : ℕ) (hm : 1 ≤ m) :
∫ S, |(∑ i, g (S i)) / m - ∫ z, g z ∂D| ∂(sampleLaw D m) ≤ B / Real.sqrt m := by sorry
end LearnStability.Characterization
Source
Shalev-Shwartz, Shamir, Srebro and Sridharan, Learnability, Stability and Uniform Convergence, JMLR 11 (2010), p. 2650, Utility Lemma 12
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
This statement is about the sample average of a bounded function.
Hypotheses.
- is a measurable space and is a probability measure on .
- is measurable.
- satisfies for every .
- with .
Conclusion. Let be drawn from the product law . Then
Degenerate cases.
- A probability measure exists only if is nonempty, so the bound hypothesis forces .
- is excluded, so and no division-by-zero value arises.
- is allowed, and then the bound is .
- The integrals are Bochner integrals, which would be if the integrand were not integrable.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.