Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4.4 — regret of the Exponentially Weighted Online Optimizer

Disproved
OnlineConvexOpt.SecondOrder.ewoo_regret

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

exp-concavityonline-convex-optimizationregret-bound

Let K⊆RnK \subseteq \mathbb{R}^nK⊆Rn be a bounded, measurable, convex set of positive volume, and let f0,f1,…f_0, f_1, \dotsf0​,f1​,… be α\alphaα-exp-concave cost functions on KKK (for a fixed α>0\alpha > 0α>0). If x0,x1,…x_0, x_1, \dotsx0​,x1​,… is the play sequence of the Exponentially Weighted Online Optimizer (Algorithm 11) run with parameter α\alphaα, then for every horizon T≥1T \ge 1T≥1,

RegretT(EWOO)  ≤  nαlog⁡T+2α,\mathrm{Regret}_T(\mathrm{EWOO}) \;\le\; \frac{n}{\alpha}\log T + \frac{2}{\alpha} ,RegretT​(EWOO)≤αn​logT+α2​,

where RegretT=∑t=1Tft(xt)−min⁡x⋆∈K∑t=1Tft(x⋆)\mathrm{Regret}_T = \sum_{t=1}^T f_t(x_t) - \min_{x^\star \in K}\sum_{t=1}^T f_t(x^\star)RegretT​=∑t=1T​ft​(xt​)−minx⋆∈K​∑t=1T​ft​(x⋆) is the usual online-convex-optimization regret. This bound is logarithmic in TTT — a qualitative improvement over the O(T)O(\sqrt T)O(T​) regret of first-order methods on general convex losses — and, unlike the online Newton step bound of Theorem 4.5, involves no Lipschitz constant or diameter bound on KKK at all; its cost is instead computational, since a literal implementation of EWOO's defining integral takes exponential time in nnn.


Retired. Retired because its Lean statement was unfaithful to Hazan (see the replacement's Formalization Note); replaced by OnlineConvexOpt.SecondOrder.ewoo_regret_v2.

Preamble
import Mathlib
import Definitions.Def_OnlineConvexOpt_SecondOrder_ExpConcave
import Definitions.Def_OnlineConvexOpt_SecondOrder_EWOO
import Definitions.Def_OnlineConvexOpt_FirstOrder_Protocol

open MeasureTheory OnlineConvexOpt.SecondOrder OnlineConvexOpt.FirstOrder
Formal statement
namespace OnlineConvexOpt.SecondOrder

/-- Theorem 4.4 (Hazan, *Introduction to Online Convex Optimization*, 2nd ed.,
arXiv:1909.05207v3, p. 61, PDF p. 83). The Exponentially Weighted Online Optimizer (Algorithm
11) run with parameter `α > 0` on `α`-exp-concave cost functions `f` over a bounded, measurable,
convex, `d`-dimensional (`d = n`) decision set `K` of positive volume guarantees, for every
`T ≥ 1`, `Regret_T(EWOO) ≤ (d/α) log T + 2/α`, using
`OnlineConvexOpt.FirstOrder.RegretT` (Eq. (1.2)) for the regret against the same cost functions.
-/
theorem ewoo_regret (n : ℕ) (hn : 0 < n) (K : Set (EuclideanSpace ℝ (Fin n)))
    (hKconv : Convex ℝ K) (hKne : K.Nonempty) (hKbdd : Bornology.IsBounded K)
    (hKmeas : MeasurableSet K) (hKvol : 0 < volume K)
    (α : ℝ) (hα : 0 < α) (f : ℕ → EuclideanSpace ℝ (Fin n) → ℝ)
    (hf : ∀ t, IsExpConcaveOn α K (f t))
    (x : ℕ → EuclideanSpace ℝ (Fin n)) (hEWOO : IsEWOO K α f x)
    (T : ℕ) (hT : 1 ≤ T) :
    RegretT K f x T ≤ (n / α) * Real.log T + 2 / α := by sorry

end OnlineConvexOpt.SecondOrder
Source
Hazan, Introduction to Online Convex Optimization, 2nd ed., arXiv:1909.05207v3, p. 61, PDF p. 83, Theorem 4.4
Read-back

What the Lean code literally says, in plain math · claude-opus-5

Fix a natural number nnn with n>0n > 0n>0, and work in Rn\mathbb{R}^nRn (Lean's EuclideanSpace ℝ (Fin n)) with its Lebesgue measure. The statement takes:

  • a set K⊆RnK \subseteq \mathbb{R}^nK⊆Rn that is convex (over R\mathbb{R}R), nonempty, bounded in the metric/bornological sense, Lebesgue measurable, and of strictly positive Lebesgue measure, vol(K)>0\mathrm{vol}(K) > 0vol(K)>0;
  • a real number α\alphaα with α>0\alpha > 0α>0;
  • a family of cost functions f:N→Rn→Rf : \mathbb{N} \to \mathbb{R}^n \to \mathbb{R}f:N→Rn→R such that every ftf_tft​, for every natural number ttt (including ttt beyond the horizon), satisfies the predicate IsExpConcaveOn(α,K,ft)\mathrm{IsExpConcaveOn}(\alpha, K, f_t)IsExpConcaveOn(α,K,ft​) — a notion defined elsewhere in this bundle and not unfolded here, so the read-back can say only that each ftf_tft​ bears this α\alphaα- and KKK-dependent property, whatever its definition;
  • a sequence of points x:N→Rnx : \mathbb{N} \to \mathbb{R}^nx:N→Rn satisfying IsEWOO(K,α,f,x)\mathrm{IsEWOO}(K,\alpha,f,x)IsEWOO(K,α,f,x), again a predicate defined elsewhere in this bundle and not unfolded here;
  • a natural number TTT with T≥1T \geq 1T≥1.

Under exactly these hypotheses the conclusion is the single inequality

RegretT(K,f,x,T)  ≤  nα log⁡T  +  2α,\mathrm{RegretT}(K, f, x, T) \;\le\; \frac{n}{\alpha}\,\log T \;+\; \frac{2}{\alpha},RegretT(K,f,x,T)≤αn​logT+α2​,

where RegretT\mathrm{RegretT}RegretT is a quantity defined elsewhere in this bundle from the decision set KKK, the cost family fff, the played sequence xxx and the horizon TTT — its definition is not visible here, so nothing in this read-back can describe what it computes. The dimension enters the bound as the natural number nnn coerced to a real number, log⁡\loglog is Lean's real natural logarithm applied to TTT coerced to a real number, and the two fractions are ordinary real division. The inequality is non-strict.

What is not asserted: nothing about KKK beyond the six listed properties (no closedness, no compactness, no interior, no requirement that KKK have full nnn-dimensional affine span beyond what positive volume entails), nothing about the ftf_tft​ beyond IsExpConcaveOn\mathrm{IsExpConcaveOn}IsExpConcaveOn (no continuity, no measurability, no boundedness, no gradient bound, no uniform bound on ∣ft∣|f_t|∣ft​∣), no existence claim for xxx — the sequence is given and merely assumed to satisfy IsEWOO\mathrm{IsEWOO}IsEWOO — and no claim that the bound is tight or that any comparator is attained.

On degenerate cases, as the hypotheses permit them: n=0n = 0n=0 is excluded by hnhnhn, so the coefficient n/αn/\alphan/α is at least 1/α>01/\alpha > 01/α>0; T=0T = 0T=0 is excluded by hThThT, so log⁡T\log TlogT is never log⁡0=0\log 0 = 0log0=0 by Lean's convention, but T=1T = 1T=1 is permitted, and there log⁡1=0\log 1 = 0log1=0 and the bound reads RegretT(K,f,x,1)≤2/α\mathrm{RegretT}(K,f,x,1) \le 2/\alphaRegretT(K,f,x,1)≤2/α. Since α>0\alpha > 0α>0, no division by zero occurs in either n/αn/\alphan/α or 2/α2/\alpha2/α. The hypothesis set could in principle be unsatisfiable for some parameter choices — if no sequence xxx meets IsEWOO(K,α,f,x)\mathrm{IsEWOO}(K,\alpha,f,x)IsEWOO(K,α,f,x) for the given data, or if no family fff is α\alphaα-exp-concave on KKK in the sense of IsExpConcaveOn\mathrm{IsExpConcaveOn}IsExpConcaveOn — in which case the theorem holds vacuously for those parameters; because the definitions of those two predicates are not visible here, nothing can be said about whether that happens. Note in particular that IsEWOO\mathrm{IsEWOO}IsEWOO is assumed at all rounds t∈Nt \in \mathbb{N}t∈N, not merely t<Tt < Tt<T, and IsExpConcaveOn\mathrm{IsExpConcaveOn}IsExpConcaveOn is assumed of all ftf_tft​, so both hypotheses constrain infinitely many rounds while the conclusion concerns only the finite horizon TTT. Whether the right-hand side can be negative, or whether RegretT\mathrm{RegretT}RegretT can be, depends on the unseen definition of RegretT\mathrm{RegretT}RegretT; the bound as written is simply an inequality between two real numbers, the right-hand side being nαlog⁡T+2α>0\frac{n}{\alpha}\log T + \frac{2}{\alpha} > 0αn​logT+α2​>0 whenever T≥1T \ge 1T≥1.

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