Lemma 26.10: R(H₂∘S) ≤ B·maxᵢ‖xᵢ‖/√m for the ℓ₂ ball of radius B
ProvedUnderstandingML.rademacher_linearEvalSet_lemachine-learningrademacher-complexity
Lemma 26.10. Let be vectors in a real inner product space (a Hilbert space in the book), let , and let
Then
Here is the Rademacher complexity (26.5), with uniform on . Combined with the contraction lemma, this lemma gives the dimension-free bound in Theorem 26.12 for linear predictors with Lipschitz losses.
Formalization Note The book states the case . The statement here is for the class with (the set linearEvalSet B x of the mission's definitions), which is the form used in §26.3. For both sides are by Lean's conventions.
Preamble
import Definitions.Def_UnderstandingML_Rademacher open MeasureTheory open scoped InnerProductSpace
Formal statement
namespace UnderstandingML
/-- **Lemma 26.10** (p. 382), for the class `{w : ‖w‖ ≤ B}`. Let `x₁, …, x_m` be vectors in a real
inner product space and `H₂ ∘ S = {(⟨w, x₁⟩, …, ⟨w, x_m⟩) : ‖w‖ ≤ B}`. Then
`R(H₂ ∘ S) ≤ B · maxᵢ ‖xᵢ‖ / √m`. The book states the case `B = 1`; `B ≥ 0` is assumed. -/
theorem rademacher_linearEvalSet_le {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
{m : ℕ} (B : ℝ) (hB : 0 ≤ B) (x : Fin m → E) :
rademacher (linearEvalSet B x) ≤ B * (⨆ i, ‖x i‖) / Real.sqrt m := by sorry
end UnderstandingML
Source
Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press 2014, doi:10.1017/CBO9781107298019, Chapter 26, Lemma 26.10 (p. 382)