Lemma D.1 — uniform Bernstein inequality with Rademacher complexity, both directions
DisprovedVarianceRegularization.Localized.uniform_bernstein_rademacherLet be a probability measure on and an i.i.d. sample from , . Let , , with , and let be a collection of measurable functions with for every . Write
Then, with probability at least , for every ,
The same statement holds, with probability at least , with the roles of and reversed.
The lemma is a Bernstein-type bound uniform over the class: the deviation of each function scales with its own standard deviation, at the price of a doubly logarithmic term from peeling.
Formalization Note The conditions and make , so its ceiling is at least and the outer logarithm is defined, as the page presupposes. The expected Rademacher complexity is assumed integrable over the sample; each direction is its own probability bound; probabilities of non-measurable events are outer measures.
import Mathlib import Definitions.Def_UnderstandingML_Rademacher import Definitions.Def_VarianceRegularization_Localized_RobustRisk import Definitions.Def_VarianceRegularization_Localized_LocalizedComplexity open MeasureTheory ProbabilityTheory
namespace VarianceRegularization.Localized
/-- **Lemma D.1** (p. 39). Let `r > 0` and `F` a collection of measurable functions
`f : X → [0, M]` with `Var(f(X)) ≤ r`. Write `L = t + log ⌈log (n r / (M² t))⌉`. Then with
probability at least `1 − e^{−t}`, for every `f ∈ F`,
`E[f] ≤ E_{P̂_n}[f] + √((2e Var(f)/n) L) + 6 E[ℜ_n(F)] + (7M/n) L`,
and the same holds with the roles of `E[f]` and `E_{P̂_n}[f]` reversed (a separate probability
bound). Domain conditions: `M > 0` and `n r > M² t` make `log(n r/(M² t)) > 0`, so its ceiling is
at least `1` and the outer logarithm is defined, as the page presupposes; `t > 0`. The expected
Rademacher complexity is assumed integrable. -/
theorem uniform_bernstein_rademacher {X : Type*} [MeasurableSpace X] (P : Measure X)
[IsProbabilityMeasure P] (n : ℕ) (hn : 0 < n) (F : Set (X → ℝ)) (M r t : ℝ)
(hM : 0 < M) (hr : 0 < r) (ht : 0 < t) (hnr : M ^ 2 * t < n * r)
(hmeas : ∀ f ∈ F, Measurable f) (hrange : ∀ f ∈ F, ∀ x, f x ∈ Set.Icc 0 M)
(hvar : ∀ f ∈ F, variance f P ≤ r)
(hint : Integrable (fun s : Fin n → X => empRademacher F s)
(Measure.pi fun _ : Fin n => P)) :
(Measure.pi (fun _ : Fin n => P))
{s | ∃ f ∈ F, empMean s f
+ Real.sqrt (2 * Real.exp 1 * variance f P / n
* (t + Real.log (⌈Real.log (n * r / (M ^ 2 * t))⌉ : ℝ)))
+ 6 * expRademacher P n F
+ 7 * M / n * (t + Real.log (⌈Real.log (n * r / (M ^ 2 * t))⌉ : ℝ))
< ∫ x, f x ∂P}
≤ ENNReal.ofReal (Real.exp (-t)) ∧
(Measure.pi (fun _ : Fin n => P))
{s | ∃ f ∈ F, (∫ x, f x ∂P)
+ Real.sqrt (2 * Real.exp 1 * variance f P / n
* (t + Real.log (⌈Real.log (n * r / (M ^ 2 * t))⌉ : ℝ)))
+ 6 * expRademacher P n F
+ 7 * M / n * (t + Real.log (⌈Real.log (n * r / (M ^ 2 * t))⌉ : ℝ))
< empMean s f}
≤ ENNReal.ofReal (Real.exp (-t)) := by sorry
end VarianceRegularization.Localized
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.