Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 10.3: for T ≥ 3 and VCdim(B) ≥ 3, VCdim(L(B, T)) ≤ T(VCdim(B) + 1)(3 log(T(VCdim(B) + 1)) + 2)

Proved
UnderstandingML.vcDim_linearCombClass_le

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

boostingsauer-lemmavc-dimension

Lemma 10.3. Let BBB be a base class and let L(B,T)L(B,T)L(B,T) be as defined in Equation (10.4). Assume that both TTT and VCdim(B)\mathrm{VCdim}(B)VCdim(B) are at least 333. Then

VCdim(L(B,T))≤T(VCdim(B)+1)(3log⁡(T(VCdim(B)+1))+2).\mathrm{VCdim}(L(B,T)) \le T(\mathrm{VCdim}(B) + 1)\big(3\log(T(\mathrm{VCdim}(B) + 1)) + 2\big).VCdim(L(B,T))≤T(VCdim(B)+1)(3log(T(VCdim(B)+1))+2).

Formally: with VCdim(B)=d≥3\mathrm{VCdim}(B) = d \ge 3VCdim(B)=d≥3 and T≥3T \ge 3T≥3, vcDim (linearCombClass B T) is at most the integer part of the right-hand side (natural logarithm).

Preamble
import Definitions.Def_UnderstandingML_Boosting

open MeasureTheory
Formal statement
namespace UnderstandingML

/-- **Lemma 10.3** (p. 139). Let `B` be a base class and let `L(B, T)` be as defined in Equation
(10.4). Assume that both `T` and `VCdim(B)` are at least `3`. Then
`VCdim(L(B, T)) ≤ T (VCdim(B) + 1)(3 log(T (VCdim(B) + 1)) + 2)` (natural logarithm; the
right-hand side is real, and the VC-dimension is at most its integer part). -/
theorem vcDim_linearCombClass_le {X : Type*} (B : Set (X → Bool)) (T d : ℕ) (hT : 3 ≤ T)
    (hd : 3 ≤ d) (hB : vcDim B = d) :
    vcDim (linearCombClass B T) ≤
      (⌊(T * (d + 1) : ℝ) * (3 * Real.log (T * (d + 1)) + 2)⌋₊ : ℕ∞) := 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, §10.3.1 p. 139, Lemma 10.3 with its proof (via Sauer's lemma, Theorem 9.2 and Lemma A.1)
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