Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 7.2 — AdaBoost empirical error bound (milestone)

Disproved
FoundationsML.Boosting.adaboost_empirical_error_bound

by mikedeng1 · Sep 19, 2026 · Mathlib 0df444a (Lean v4.33.1)

boostinggeneralization-boundmachine-learning

Statement (Theorem 7.2, p. 149, PDF p. 166). The empirical error of the classifier returned by AdaBoost verifies R^S(f)≤exp⁡(−2∑t=1T(1/2−εt)2)\hat R_S(f) \le \exp(-2\sum_{t=1}^T(1/2-\varepsilon_t)^2)R^S​(f)≤exp(−2∑t=1T​(1/2−εt​)2). Furthermore, if γ≤(1/2−εt)\gamma\le(1/2-\varepsilon_t)γ≤(1/2−εt​) for all t∈[T]t\in[T]t∈[T], then R^S(f)≤exp⁡(−2γ2T)\hat R_S(f)\le\exp(-2\gamma^2T)R^S​(f)≤exp(−2γ2T).

This is the chapter's first main result: it shows AdaBoost's training error decreases exponentially fast in the number of rounds, whenever each round's base classifier beats random guessing by a margin (the "edge" γ\gammaγ).

Formalization Note. AdaBoostEpsilon/AdaBoostEnsemble already tie εt\varepsilon_tεt​ and fff to AdaBoost's own recursion (per BRIEF.md's trivialization warning), so no separate hypothesis links them. Revision (2026-09-19). Added hne, excluding εt∈{0,1}\varepsilon_t\in \{0,1\}εt​∈{0,1} for every round: AdaBoostAlpha is a total Lean function whose Real.log-of-a-zero-division convention would otherwise let a perfect or perfectly-wrong round silently zero out αt\alpha_tαt​ instead of the book's intended ±∞\pm\infty±∞, which is what should make such a round dominate the ensemble — without hne the theorem is false as stated (concrete counterexample: m=1m=1m=1, T=1T=1T=1, h0(x)=1h_0(x)=1h0​(x)=1, y0=1y_0=1y0​=1, forcing ε0=0\varepsilon_0=0ε0​=0, AdaBoostAlpha's junk value α0=0\alpha_0=0α0​=0, and empirical error 111 against a claimed bound of exp⁡(−1/2)≈0.61\exp(-1/2)\approx0.61exp(−1/2)≈0.61).


Retired. Retired because its second clause admitted negative γ, for which exp(−2γ²T) < 1 can fail to bound the empirical error; replaced by FoundationsML.Boosting.adaboost_empirical_error_bound_v2.

Preamble
import Mathlib
import Definitions.Def_FoundationsML_Boosting_EmpiricalError
import Definitions.Def_FoundationsML_Boosting_AdaBoostEnsemble
import Definitions.Def_FoundationsML_Boosting_AdaBoostEpsilon
Formal statement
namespace FoundationsML.Boosting

/-- Theorem 7.2 (AdaBoost empirical error bound; Mohri, Rostamizadeh & Talwalkar, *Foundations
of Machine Learning*, 2nd ed., MIT Press 2018, p. 149, PDF p. 166). Let `f` be the function
returned by AdaBoost after `T` rounds of boosting on a sample `(S, y)` with base classifiers
`h : ℕ → X → ℝ` valued in `{−1,+1}`. Then `R̂_S(f) ≤ exp(−2 ∑_{t=1}^T (1/2 − ε_t)²)`, and if in
addition `γ ≤ 1/2 − ε_t` for all `t ∈ [T]`, then `R̂_S(f) ≤ exp(−2γ²T)`.

**Formalization Note.** `EmpiricalError` and `AdaBoostEpsilon` already tie `ε_t` to AdaBoost's
own `D_t`-weighted sample distribution (per `BRIEF.md`'s trivialization warning), so no
separate hypothesis is needed to connect them. The `{−1,+1}`-valued range of each `h t` on
`[T)` is the standing hypothesis of Figure 7.1 (§7.2, before the range is generalized to
`[−1,1]` later in the section). `hne` excludes `ε_t ∈ {0,1}` for every round: `AdaBoostAlpha` is
a total Lean function whose `Real.log`-of-a-zero-division convention would otherwise let a
perfect or perfectly-wrong round silently zero out `α_t` instead of the book's intended `±∞`,
which is what should make such a round dominate the ensemble. -/
theorem adaboost_empirical_error_bound {X : Type*} {m : ℕ} (hm : 0 < m)
    (S : Fin m → X) (y : Fin m → ℝ) (hy : ∀ i, y i = 1 ∨ y i = -1)
    (T : ℕ) (h : ℕ → X → ℝ) (hh : ∀ t < T, ∀ x, h t x = 1 ∨ h t x = -1)
    (hne : ∀ t < T, AdaBoostEpsilon S y h t ≠ 0 ∧ AdaBoostEpsilon S y h t ≠ 1) :
    EmpiricalError S y (AdaBoostEnsemble S y h T) ≤
        Real.exp (-2 * ∑ t ∈ Finset.range T, (1 / 2 - AdaBoostEpsilon S y h t) ^ 2) ∧
      (∀ γ : ℝ, (∀ t < T, γ ≤ 1 / 2 - AdaBoostEpsilon S y h t) →
        EmpiricalError S y (AdaBoostEnsemble S y h T) ≤
          Real.exp (-2 * γ ^ 2 * T)) := by sorry

end FoundationsML.Boosting
Source
Mohri, Rostamizadeh & Talwalkar, Foundations of Machine Learning, 2nd ed., MIT Press 2018, p. 149, Theorem 7.2 (PDF p. 166)
Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 28, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me