Dudley's entropy integral for Rademacher complexity #
CslibFrontier/Probability/BitString/Chaining.lean proves the discrete dyadic chaining sum
Cslib.BitString.expect_ciSup_sum_mul_signVal_le_chaining, and
CslibFrontier/MachineLearning/Rademacher/Chaining.lean applies it to binary VC classes. Here we
turn the dyadic chaining sum into the continuous Dudley entropy integral
[Dudley1967; Vershynin2018, Theorem 8.1.3; ShalevShwartzBenDavid2014, Lemma 27.4] in the
empirical L²(P_m) metric (EuclideanSpace ℝ (Fin m) scaled by 1 / √m), avoiding the discrete
index-tuple assumption and opening chaining to continuous, real-valued function classes.
For a sample S : Fin m → Z (m > 0) and f : Z → ℝ, the normalized empirical embedding
empiricalL2Vec S f satisfies
dist (empiricalL2Vec S f) (empiricalL2Vec S g) = √((∑ i, (f (S i) - g (S i)) ^ 2) / m).
Every class F : Set (Z → ℝ) bounded in empirical L²(P_m) radius R around some center f₀
has finite covering numbers empiricalCoveringNumber F S ε at every ε > 0 (since bounded subsets
of EuclideanSpace ℝ (Fin m) are totally bounded). Because ε ↦ √(log N(F, S, ε)) is antitone
and nonnegative on (0, R], it is automatically IntervalIntegrable on [α, R] for every
0 < α ≤ R with no extra measurability or integrability hypothesis. Comparing the dyadic sum at
scales R / 2 ^ n with Riemann lower rectangles on [R / 2 ^ (n + 2), R / 2 ^ (n + 1)] yields:
- Truncated Dudley entropy integral (
empiricalRademacherComplexity_le_dudley_integral): for every0 < α ≤ R,R̂_S(F) ≤ 4 α + (16 / √m) ∫ ε in α..R, √(log N_2(F, S, ε)). - Improper
[0, R]Dudley integral (empiricalRademacherComplexity_le_dudley_integral_zero): whenε ↦ √(log N_2(F, S, ε))isIntervalIntegrableon0..R, lettingα → 0⁺givesR̂_S(F) ≤ (16 / √m) ∫ ε in 0..R, √(log N_2(F, S, ε)). - Polynomial metric entropy bound (
empiricalRademacherComplexity_le_of_polynomial_covering): via the exact antiderivative oflog (C / ε)and Cauchy–Schwarz (√(log (C / ε)) ≤ (t + log (C / ε) / t) / 2), ifN_2(F, S, ε) ≤ (C / ε) ^ don(0, R](0 < R ≤ C), thenR̂_S(F) ≤ 16 R √(d (1 + log (C / R)) / m)(removing thelog mfactor of Massart's lemma). - Real-valued Lipschitz parametric classes (
empiricalRademacherComplexity_lipschitz_ball_le,rademacherComplexity_lipschitz_ball_le,lipschitz_ball_generalization_bound): combining Dudley's integral with the volumetric closed-ball covering bound(1 + 2 r / ε) ^ dofCslibFrontier/Foundations/Analysis/Normed/CoveringNumber.leanbounds anyL-Lipschitz parameterizationΦ : E → Z → ℝon a ball of radiusrin any finite-dimensional real normed spaceEof dimensiondby16 L r √(d (1 + log 3) / m). - VC empirical
L²(P_m)covering bound (empiricalCoveringNumber_bitClass_le_of_vcDim): links the Hamming-distance packing bound ofCslibFrontier/MachineLearning/PACLearning/Packing.leanto(√8 / ε) ^ (4 d).
Main definitions #
Cslib.MachineLearning.empiricalL2Vec: empiricalL²(P_m)embeddingf ↦ (f (S i) / √m)_i.Cslib.MachineLearning.empiricalCoveringNumber: external covering number ofFinL²(P_m).
Main results #
Cslib.MachineLearning.rademacherAverage_le_dudley_integral: centered truncated Dudley entropy integral for an arbitrary vector familya : ι → Fin m → ℝ.Cslib.MachineLearning.empiricalRademacherComplexity_le_dudley_integral: truncated Dudley entropy integral forempiricalRademacherComplexity F S.Cslib.MachineLearning.empiricalRademacherComplexity_le_dudley_integral_zero: full[0, R]Dudley entropy integral underIntervalIntegrable.Cslib.MachineLearning.empiricalRademacherComplexity_le_dudley_of_bound: Dudley integral with an antitone upper boundMdominatingempiricalCoveringNumber F S.Cslib.MachineLearning.empiricalRademacherComplexity_le_of_polynomial_covering: closed-form16 R √(d (1 + log (C / R)) / m)bound under polynomial covering(C / ε) ^ d.Cslib.MachineLearning.empiricalCoveringNumber_lipschitz_ball_le: empirical covering bound for anL-Lipschitz parametric family on a ball of radiusrin a finite-dimensional normed space.Cslib.MachineLearning.empiricalRademacherComplexity_lipschitz_ball_le:O(L r √(d / m))empirical Rademacher bound forL-Lipschitz parametric classes.Cslib.MachineLearning.rademacherComplexity_lipschitz_ball_le: population form on finiteZ.Cslib.MachineLearning.lipschitz_ball_generalization_bound: high-probability uniform generalization bound for boundedL-Lipschitz parametric classes.Cslib.MachineLearning.empiricalCoveringNumber_bitClass_le_of_vcDim: empiricalL²(P_m)covering bound(√8 / ε) ^ (4 d)for VC classes viacard_le_div_pow_of_le_hammingDist.
References #
- R. M. Dudley, The sizes of compact subsets of Hilbert space and continuity of Gaussian processes (locator unverified)
- R. Vershynin, High-Dimensional Probability, Section 8.1 and Theorem 8.1.3 (locators unverified)
- S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Lemma 27.4 (locator unverified)
Empirical L²(P_m) embedding and covering numbers #
The normalized empirical L²(P_m) vector (f (S 0) / √m, …, f (S (m - 1)) / √m) inside
EuclideanSpace ℝ (Fin m). Its norm squared is (∑ i, f (S i) ^ 2) / m for m > 0.
Dyadic sum to continuous intervalIntegral helpers #
Dudley's continuous entropy integral #
Truncated Dudley entropy integral for a family of vectors [Dudley1967; Vershynin2018,
Theorem 8.1.3; ShalevShwartzBenDavid2014, Lemma 27.4] (locators unverified). For any family
a : ι → Fin m → ℝ (m > 0) lying in an empirical L²(P_m) ball of radius R around a center
c₀ : Fin m → ℝ, and every truncation level α ∈ (0, R],
rademacherAverage a ≤ 4 α + (16 / √m) ∫ ε in α..R, √(log N_2(range a, ε)).
The antitone integrand is automatically IntervalIntegrable on [α, R]; no finiteness of ι
or integrability hypothesis is needed.
Truncated Dudley entropy integral for empiricalRademacherComplexity [Dudley1967;
Vershynin2018, Theorem 8.1.3] (locators unverified). For any class F : Set (Z → ℝ) lying within
empirical L²(P_m) distance R of a center f₀ : Z → ℝ on S : Fin m → Z (m > 0), and every
α ∈ (0, R]:
empiricalRademacherComplexity F S ≤ 4 α + (16 / √m) ∫ ε in α..R, √(log N_2(F, S, ε)).
Full [0, R] Dudley entropy integral [Dudley1967; Vershynin2018, Theorem 8.1.3]
(locators unverified): when the metric entropy integrand ε ↦ √(log N_2(F, S, ε)) is
IntervalIntegrable on 0..R, sending α → 0⁺ removes the residual term 4 α.
Truncated Dudley entropy integral with an antitone upper bound M on the covering numbers
(handles arbitrary non-negative real-valued majorants M : ℝ → ℝ).
Polynomial covering numbers: removing the log m factor #
Dudley bound for polynomial covering numbers: if F lies in an empirical L²(P_m) ball
of radius R around f₀ and satisfies N_2(F, S, ε) ≤ (C / ε) ^ d for all ε ∈ (0, R] with
0 < R ≤ C, then
empiricalRademacherComplexity F S ≤ 16 * R * √(d * (1 + log (C / R)) / m).
Valid for every d : ℕ (including d = 0, giving 0). No log m factor appears.
Application 1: Lipschitz parametric classes on finite-dimensional normed spaces #
Empirical L²(P_m) covering bound for an L-Lipschitz parametric class: if
Θ ⊆ closedBall θ₀ r and Φ : E → Z → ℝ is L-Lipschitz in empirical L²(P_m) distance, then
empiricalCoveringNumber (Φ '' Θ) S ε ≤ (1 + 2 L r / ε) ^ dim E for every ε > 0.
Empirical Rademacher complexity of an L-Lipschitz parametric class [Vershynin2018,
Section 8.1] (locator unverified). For any finite-dimensional real normed space E of dimension
d, any parameter set Θ ⊆ Metric.closedBall θ₀ r (0 ≤ r), and any L-Lipschitz
parameterization Φ : E → Z → ℝ on closedBall θ₀ r (0 ≤ L) in the empirical L²(P_m) metric,
empiricalRademacherComplexity (Φ '' Θ) S ≤ 16 L r √(d (1 + log 3) / m).
No log m factor appears; edge cases (m = 0, L = 0, r = 0, Θ = ∅, d = 0) are all
included.
Pointwise-Lipschitz corollary: if |Φ θ₁ z - Φ θ₂ z| ≤ L * dist θ₁ θ₂ for all z, then the
empirical L²(P_m) hypothesis holds on every sample S.
Population Rademacher complexity of an L-Lipschitz parametric class on a finite domain
Z.
Uniform generalization bound for a bounded L-Lipschitz parametric class: on a finite
domain Z, with probability at least 1 - δ over m > 0 independent draws from D, every
θ ∈ Θ ⊆ closedBall θ₀ r satisfies
E_D (Φ θ) ≤ Ê_S (Φ θ) + 32 L r √(d (1 + log 3) / m) + (b - a) √(log (1 / δ) / (2 m)).
Application 2: Empirical L²(P_m) covering numbers of binary VC classes #
Empirical L²(P_m) covering bound for a binary VC class [Vershynin2018, Theorem 8.3.18]
(locator unverified): if every set shattered by C has at most d points, then for every sample
S : Fin m → α and every 0 < ε ≤ 1,
empiricalCoveringNumber (bitClass C) S ε ≤ (√8 / ε) ^ (4 * d).
Directly lifts the Hamming-distance packing bound card_le_div_pow_of_le_hammingDist.