Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 10.2: if every round of AdaBoost has εₜ ≤ 1/2 − γ, the training error of its output is at most exp(−2γ²T)

Proved
UnderstandingML.adaboost_training_error

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

adaboostboostingtraining-error

Theorem 10.2. Let SSS be a training set and assume that at each iteration of AdaBoost, the weak learner returns a hypothesis for which ϵt≤1/2−γ\epsilon_t \le 1/2 - \gammaϵt​≤1/2−γ. Then the training error of the output hypothesis of AdaBoost is at most

LS(hs)=1m∑i=1m1[hs(xi)≠yi]≤exp⁡(−2γ2T).L_S(h_s) = \frac1m \sum_{i=1}^m \mathbb{1}[h_s(x_i) \ne y_i] \le \exp(-2\gamma^2 T).LS​(hs​)=m1​i=1∑m​1[hs​(xi​)=yi​]≤exp(−2γ2T).

Formally: for γ>0\gamma > 0γ>0 and weak hypotheses with 0<ϵt≤1/2−γ0 < \epsilon_t \le 1/2 - \gamma0<ϵt​≤1/2−γ in every round (the weight wt=12log⁡(1/ϵt−1)w_t = \frac12 \log(1/\epsilon_t - 1)wt​=21​log(1/ϵt​−1) is undefined at ϵt=0\epsilon_t = 0ϵt​=0), the empirical 0–1 risk of adaBoost S h T is at most exp⁡(−2γ2T)\exp(-2\gamma^2 T)exp(−2γ2T).

Preamble
import Definitions.Def_UnderstandingML_Boosting

open MeasureTheory
Formal statement
namespace UnderstandingML

/-- **Theorem 10.2** (p. 135). Let `S` be a training set and assume that at each iteration of
AdaBoost the weak learner returns a hypothesis for which `εₜ ≤ 1/2 − γ`. Then the training error
of the output hypothesis of AdaBoost is at most
`L_S(h_s) = (1/m) ∑ᵢ 𝟙[h_s(xᵢ) ≠ yᵢ] ≤ exp(−2γ²T)`.
Stated with `γ > 0` and `εₜ > 0` (the weight `wₜ = ½ log(1/εₜ − 1)` is undefined at `εₜ = 0`). -/
theorem adaboost_training_error {X : Type*} {m : ℕ} (S : Fin m → X × Bool) (h : ℕ → X → Bool)
    (T : ℕ) {γ : ℝ} (hγ : 0 < γ)
    (hε : ∀ t < T, 0 < adaError S h t ∧ adaError S h t ≤ 1 / 2 - γ) :
    empRisk loss01 S (adaBoost S h T) ≤ Real.exp (-(2 * γ ^ 2 * T)) := 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.2 pp. 135-137, Theorem 10.2 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