Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 27.4 (Dudley's chaining): R(A) ≤ c2^{−M}/√m + (6c/m) ∑_{k=1}^M 2^{−k} √(log N(c2^{−k}, A)) for any enclosing radius c

Proved
UnderstandingML.dudley_chaining

by naimengye · Sep 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

chainingcovering-numbersmassart-lemmarademacher-complexity

Lemma 27.4. Let c=min⁡aˉmax⁡a∈A∥a−aˉ∥c = \min_{\bar a}\max_{a \in A}\|a - \bar a\|c=minaˉ​maxa∈A​∥a−aˉ∥. Then, for any integer M>0M > 0M>0,

R(A)≤c 2−Mm+6cm∑k=1M2−klog⁡(N(c 2−k,A)).R(A) \le \frac{c\,2^{-M}}{\sqrt m} + \frac{6c}{m}\sum_{k=1}^M 2^{-k}\sqrt{\log(N(c\,2^{-k}, A))}.R(A)≤m​c2−M​+m6c​k=1∑M​2−klog(N(c2−k,A))​.

Formally: for any center aˉ\bar aaˉ and any ccc with ∥a−aˉ∥≤c\|a - \bar a\| \le c∥a−aˉ∥≤c on AAA (the book's minimal ccc is the special case), AAA nonempty, m≥1m \ge 1m≥1; covering numbers of the bounded set AAA are finite.

Preamble
import Definitions.Def_UnderstandingML_Covering

open MeasureTheory
Formal statement
namespace UnderstandingML

/-- **Lemma 27.4 (Dudley's chaining)** (p. 389). Let `c = min_ā max_{a ∈ A} ‖a − ā‖`. Then, for
any integer `M > 0`,
`R(A) ≤ c 2^{−M}/√m + (6c/m) ∑_{k=1}^M 2^{−k} √(log N(c 2^{−k}, A))`.
Stated for any center `ā` and any `c` with `‖a − ā‖ ≤ c` on `A` (the minimal such `c` is the
book's); `A` nonempty, `m ≥ 1`. -/
theorem dudley_chaining {m : ℕ} (hm : 0 < m) (A : Set (Fin m → ℝ)) (hA : A.Nonempty) (c : ℝ)
    (abar : Fin m → ℝ) (hc : ∀ a ∈ A, eucNorm (a - abar) ≤ c) (M : ℕ) (hM : 0 < M) :
    rademacher A ≤ c * (2 : ℝ)⁻¹ ^ M / Real.sqrt m +
      6 * c / m * ∑ k ∈ Finset.Icc 1 M,
        (2 : ℝ)⁻¹ ^ k * Real.sqrt (Real.log ((coveringNumber (c * (2 : ℝ)⁻¹ ^ k) A).toNat)) := 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, §27.2 pp. 389-390, Lemma 27.4 with its proof
Human review
  • Endorsed by Shuze Chen · Sep 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by naimengye · Sep 25, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me