Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

§28.2.1: for ε < 1/√2, δ ∈ (0,1) and m ≤ 0.5 log(1/(4δ))/ε², every algorithm has excess risk ≥ ε with probability ≥ δ under one of D₊, D₋

Proved
UnderstandingML.agnostic_lower_bound_log

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

agnostic-learningbinomiallower-boundsample-complexity

§28.2.1. For any ϵ<1/2\epsilon < 1/\sqrt2ϵ<1/2​ and any δ∈(0,1)\delta \in (0,1)δ∈(0,1), m(ϵ,δ)≥0.5log⁡(1/(4δ))/ϵ2m(\epsilon, \delta) \ge 0.5\log(1/(4\delta))/\epsilon^2m(ϵ,δ)≥0.5log(1/(4δ))/ϵ2: for m≤0.5log⁡(1/(4δ))/ϵ2m \le 0.5\log(1/(4\delta))/\epsilon^2m≤0.5log(1/(4δ))/ϵ2, HHH is not learnable. With ccc a point shattered by HHH and D±D_\pmD±​ the distributions with Db({(c,y)})=(1+ybϵ)/2D_b(\{(c, y)\}) = (1 + yb\epsilon)/2Db​({(c,y)})=(1+ybϵ)/2, for every algorithm AAA there exists bbb such that

P[LDb(A(y))−LDb(hb)=ϵ]≥12(1−1−4δ)≥δ.P\big[L_{D_b}(A(y)) - L_{D_b}(h_b) = \epsilon\big] \ge \tfrac12\Big(1 - \sqrt{1 - \sqrt{4\delta}}\Big) \ge \delta.P[LDb​​(A(y))−LDb​​(hb​)=ϵ]≥21​(1−1−4δ​​)≥δ.

Formally: the event that the excess risk over the best hypothesis in HHH is at least ϵ\epsilonϵ has probability at least δ\deltaδ under DbmD_b^mDbm​ for some bbb.

Preamble
import Definitions.Def_UnderstandingML_FundamentalProof

open MeasureTheory
Formal statement
namespace UnderstandingML

/-- **§28.2.1** (pp. 393–395). For any `ε < 1/√2` and any `δ ∈ (0, 1)`, `m(ε, δ) ≥ 0.5 log(1/(4δ))/ε²`:
if `m ≤ 0.5 log(1/(4δ))/ε²`, then for every algorithm `A` one of the two distributions `D₊, D₋`
concentrated on `(c, ±1)` (for a point `c` shattered by `H`) satisfies
`P_{S ∼ D^m}[L_D(A(S)) − min_{h ∈ H} L_D(h) ≥ ε] ≥ δ`. -/
theorem agnostic_lower_bound_log {X : Type*} [MeasurableSpace X] [MeasurableSingletonClass X]
    (H : Set (X → Bool)) (c : X) (hcT : ∃ h ∈ H, h c = true) (hcF : ∃ h ∈ H, h c = false)
    (ε δ : ℝ) (hε : 0 < ε) (hε2 : ε < 1 / Real.sqrt 2) (hδ : 0 < δ) (hδ1 : δ < 1)
    (A : Learner (X × Bool) (X → Bool)) (m : ℕ)
    (hm : (m : ℝ) ≤ 0.5 * Real.log (1 / (4 * δ)) / ε ^ 2) :
    ∃ b : Fin 1 → Bool, ENNReal.ofReal δ ≤
      iidLaw (lowerBoundLaw (fun _ ↦ c) ε b) m {S | ∃ h ∈ H,
        risk loss01 (lowerBoundLaw (fun _ ↦ c) ε b) h + ε ≤
          risk loss01 (lowerBoundLaw (fun _ ↦ c) ε b) (A m S)} := 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, §28.2.1 pp. 393-395
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