Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Corollary 16.7 (Massart's Lemma) — G∞√(2 ln d)/√T

Proved
ModernOnlineLearning.ToX.corollary_16_7

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

massarts-lemmaonline-learningp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1rademacher-complexity

Let d,T≥1d,T\ge1d,T≥1, let z1,…,zT∈Rdz_1,\ldots,z_T\in\mathbb R^dz1​,…,zT​∈Rd, and assume every coordinate obeys ∣zt,i∣≤G∞|z_{t,i}|\le G_\infty∣zt,i​∣≤G∞​. For the linear class indexed by the probability simplex, the empirical Rademacher complexity equals the average of the largest signed coordinate sum and satisfies

1TEε[max⁡1≤i≤d∑t=1Tεtzt,i]≤G∞2ln⁡dT.\frac1T\mathbb E_\varepsilon\left[\max_{1\le i\le d}\sum_{t=1}^T\varepsilon_tz_{t,i}\right] \le\frac{G_\infty\sqrt{2\ln d}}{\sqrt T}.T1​Eε​[1≤i≤dmax​t=1∑T​εt​zt,i​]≤T​G∞​2lnd​​.

This is the explicit finite-class complexity bound obtained from the online-learning reduction and Exponentiated Gradient.

Formalization Note The expectation is the exact finite average over all 2T2^T2T sign assignments. The dimension may be one: then both sides are zero. The coordinate bound is the definition of ∥zt∥∞≤G∞\|z_t\|_\infty\le G_\infty∥zt​∥∞​≤G∞​; no online algorithm appears in the goal statement.

Preamble
import Mathlib
import Definitions.Def_ModernOnlineLearning_ToX_Rademacher
Formal statement
namespace ModernOnlineLearning.ToX

/-- Corollary 16.7 (Massart's Lemma), p. 273. The empirical Rademacher
average is the exact finite sign average and the maximum is over all `d`
simplex vertices. -/
theorem corollary_16_7 {d T : ℕ} [NeZero d] (hT : 1 ≤ T)
    (z : ℕ → Fin d → ℝ) (Ginf : ℝ)
    (hz : ∀ t ∈ Finset.Icc 1 T, ∀ i : Fin d, |z t i| ≤ Ginf) :
    empiricalRadMax (T := T) hT z ≤
      Ginf * Real.sqrt (2 * Real.log (d : ℝ)) / Real.sqrt (T : ℝ) := by sorry

end ModernOnlineLearning.ToX
Source
Orabona, arXiv:1912.13213v10, Corollary 16.7, p. 273
Human review
  • Endorsed by Shuze Chen · Oct 9, 2026

    Confirmed by the moderator at approval.

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