Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3.10 — Winnow makes at most (∑tft(u)+klog⁡(d)/η)/(1−2η)(\sum_t f_t(u)+k\log(d)/\eta)/(1-2\eta)(∑t​ft​(u)+klog(d)/η)/(1−2η) mistakes, and 8klog⁡d8k\log d8klogd on separable kkk-disjunctions

Proved
OnlineLearningOCO.Winnow.theorem_3_10

by mikedeng1 · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

mistake-boundonline-classificationonline-learningp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1winnow

Let d,kd,kd,k be positive integers with k≥1k\ge1k≥1 and 0<η<1/20<\eta<1/20<η<1/2. Run Winnow with parameter η\etaη on (x1,y1),…,(xT,yT)(x_1,y_1),\dots,(x_T,y_T)(x1​,y1​),…,(xT​,yT​) with xt∈{0,1}dx_t\in\{0,1\}^dxt​∈{0,1}d and yt∈{−1,1}y_t\in\{-1,1\}yt​∈{−1,1}; let M⊆{1,…,T}\mathcal M\subseteq\{1,\dots,T\}M⊆{1,…,T} be the rounds on which it errs and ft(w)=1[t∈M][1−yt(2⟨w,xt⟩−1)]+f_t(w)=\mathbf 1_{[t\in\mathcal M]}[1-y_t(2\langle w,x_t\rangle-1)]_+ft​(w)=1[t∈M]​[1−yt​(2⟨w,xt​⟩−1)]+​. Then for every u∈{0,1}du\in\{0,1\}^du∈{0,1}d with ∥u∥1=k\|u\|_1=k∥u∥1​=k,

∣M∣≤∑t=1Tft(wt)≤11−2η(∑t=1Tft(u)+klog⁡dη).|\mathcal M|\le\sum_{t=1}^T f_t(w_t)\le\frac{1}{1-2\eta}\Bigl(\sum_{t=1}^T f_t(u)+\frac{k\log d}{\eta}\Bigr).∣M∣≤t=1∑T​ft​(wt​)≤1−2η1​(t=1∑T​ft​(u)+ηklogd​).

In particular, if yt(2⟨u,xt⟩−1)≥1y_t(2\langle u,x_t\rangle-1)\ge1yt​(2⟨u,xt​⟩−1)≥1 for all ttt (the sequence is labelled by the kkk-literal monotone disjunction with relevant variables {i:u[i]=1}\{i:u[i]=1\}{i:u[i]=1}), then Winnow run with η=1/4\eta=1/4η=1/4 makes

∣M∣≤8klog⁡d|\mathcal M|\le 8k\log d∣M∣≤8klogd

mistakes.

Compared with the Perceptron's 4(d+1)k4(d+1)k4(d+1)k on the same problem, the dependence on the dimension is logarithmic rather than linear.

Formalization Note Winnow is the corrected algorithm (update wt+1[i]=wt[i]e2ηytxt[i]w_{t+1}[i]=w_t[i]e^{2\eta y_tx_t[i]}wt+1​[i]=wt​[i]e2ηyt​xt​[i]; the paper prints the opposite sign, under which the theorem is false — see the Winnow definition). Three hypotheses the page leaves implicit are explicit: η>0\eta>0η>0 (Winnow's parameter), η<1/2\eta<1/2η<1/2 (at η=1/2\eta=1/2η=1/2 the factor 1/(1−2η)1/(1-2\eta)1/(1−2η) is undefined), and k≥1k\ge1k≥1 (the theorem fails for k=0k=0k=0: u=0u=0u=0, d=2d=2d=2, xt=(1,1)x_t=(1,1)xt​=(1,1), yt=−1y_t=-1yt​=−1 satisfies the margin condition, yet the first round is an error). ∥u∥1\|u\|_1∥u∥1​ is ∑iu[i]\sum_i u[i]∑i​u[i]. The particular case is about the run with η=1/4\eta=1/4η=1/4 (winnowMistakes d (1/4) …), a different run from the general one, and its margin condition is required on the TTT rounds considered. log⁡\loglog is natural. The sequence hypotheses are stated for all rounds; rounds are numbered 0,…,T−10,\dots,T-10,…,T−1.

Preamble
import Mathlib
import Definitions.Def_OnlineLearningOCO_Winnow_Winnow
open Finset
Formal statement
namespace OnlineLearningOCO.Winnow

/-- Theorem 3.10 (p. 174). Winnow with parameter `0 < η < 1/2` on instances `x_t ∈ {0,1}^d` and
labels `y_t ∈ {-1, 1}`; `M` is the set of rounds on which it errs and
`f_t(w) = 1[t ∈ M] [1 - y_t (2⟨w, x_t⟩ - 1)]_+`. For every `u ∈ {0,1}^d` with `‖u‖₁ = k ≥ 1`,
`|M| ≤ ∑_t f_t(w_t) ≤ (1/(1 - 2η)) (∑_t f_t(u) + k log(d)/η)`;
and if `y_t (2⟨u, x_t⟩ - 1) ≥ 1` for all `t`, the run with `η = 1/4` has `|M| ≤ 8 k log d`.
Rounds `0, …, T-1` stand for the paper's `1, …, T`. -/
theorem theorem_3_10 (d k : ℕ) (hk : 1 ≤ k) (η : ℝ) (hη : 0 < η) (hη2 : η < 1 / 2)
    (x : ℕ → Fin d → ℝ) (hx : ∀ t i, x t i = 0 ∨ x t i = 1)
    (y : ℕ → ℝ) (hy : ∀ t, y t = 1 ∨ y t = -1)
    (u : Fin d → ℝ) (hu : ∀ i, u i = 0 ∨ u i = 1) (hu1 : ∑ i, u i = (k : ℝ)) (T : ℕ) :
    ((winnowMistakes d η x y T).card : ℝ) ≤
        ∑ t ∈ range T, winnowSurrogate d η x y t (winnowWeights d η x y t) ∧
    ∑ t ∈ range T, winnowSurrogate d η x y t (winnowWeights d η x y t) ≤
        (1 / (1 - 2 * η)) *
          (∑ t ∈ range T, winnowSurrogate d η x y t u + (k : ℝ) * Real.log d / η) ∧
    ((∀ t < T, 1 ≤ y t * (2 * ∑ i, u i * x t i - 1)) →
      ((winnowMistakes d (1 / 4) x y T).card : ℝ) ≤ 8 * (k : ℝ) * Real.log d) := by sorry

end OnlineLearningOCO.Winnow
Source
Shalev-Shwartz, Online Learning and Online Convex Optimization, Found. Trends Mach. Learn. 4(2) (2011) 107–194, p. 174, Theorem 3.10 (proof pp. 174–175)
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 7, 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