Theorem 1 — Online Gradient Descent with step sizes 1/(Ht) has regret ≤ (G²/2H)(1 + log T)
ProvedLogRegretOCO.OGD.ogd_regret_boundLet be nonempty, closed, bounded and convex. Let and , fix a horizon , and let be cost functions such that, for every round ,
- is -strongly convex on : twice differentiable at the points of with for every ;
- for every .
Let be a run of ONLINE GRADIENT DESCENT (Fig. 1) on with step sizes for : is arbitrary and . Then for every ,
Since this holds for every , it bounds the regret of the algorithm; and since the cost functions are arbitrary (each depends only on ), it is the worst-case bound of the paper. It is the first of the paper's logarithmic regret bounds, improving Zinkevich's for general convex costs.
Formalization Note The theorem states "step sizes "; its proof takes the step after round to be , and that indexing is used here. Fig. 1 read literally with steps by after round , which leaves an extra in the bound. Regret is stated against every comparator (the minimum over the compact is attained), never as a real infimum. The hypotheses on are required for only; the run is a predicate on the whole trajectory. The paper's standing assumption that the are convex follows from -strong convexity on the convex set and is not added. Boundedness and closedness of are the standing assumptions of §2.1 (closedness also makes the projection exist); no diameter bound is used. is the natural logarithm, and at the bound is .
import Mathlib import Definitions.Def_LogRegretOCO_OGD_Model
namespace LogRegretOCO.OGD
/-- **Theorem 1** (p. 175): ONLINE GRADIENT DESCENT with step sizes `1/(Ht)` (the step taken
after round `t`, i.e. `η_{t+1} = 1/(Ht)` as in the proof) on `H`-strongly convex costs whose
gradients are bounded by `G` on `P` has, for every `T ≥ 1` and every comparator `u ∈ P`,
`∑_{t=1}^T (f_t(x_t) − f_t(u)) ≤ G²/(2H) · (1 + log T)`. -/
theorem ogd_regret_bound {n : ℕ} (P : Set (E n)) (hPc : Convex ℝ P) (hPcl : IsClosed P)
(hPb : Bornology.IsBounded P) (hPne : P.Nonempty) (H G : ℝ) (hH : 0 < H) (T : ℕ)
(hT : 1 ≤ T) (f : ℕ → E n → ℝ)
(hsc : ∀ t ∈ Finset.Icc 1 T, IsHStrongConvex P H (f t))
(hG : ∀ t ∈ Finset.Icc 1 T, ∀ x ∈ P, ‖gradient (f t) x‖ ≤ G)
(η : ℕ → ℝ) (hη : ∀ t : ℕ, 1 ≤ t → η (t + 1) = 1 / (H * (t : ℝ)))
(x : ℕ → E n) (hx : IsOGDRun P η f x) (u : E n) (hu : u ∈ P) :
∑ t ∈ Finset.Icc 1 T, (f t (x t) - f t u) ≤ G ^ 2 / (2 * H) * (1 + Real.log T) := by sorry
end LogRegretOCO.OGD
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Here is a natural number and is a type fixed by the imported definitions module. The statement treats as a real vector space with a norm . Because it uses the gradient, must also carry a complete real inner-product structure. The code shown does not say what concretely is (for example, whether it is ).
The two predicates and are also defined in that module. Their definitions are not part of the code shown here, so this read-back can only name them and cannot unfold them. The text comment attached to the theorem is commentary, not part of what is asserted, and is not used below.
Data and hypotheses. The statement is universally quantified over the following:
- a subset that is convex, closed in the norm topology, bounded, and nonempty;
- real numbers and with (nothing is assumed about the sign of );
- a natural number with ;
- a sequence of functions , indexed by all , including and ;
- a real step-size sequence satisfying
so , , and so on. The values and are left completely unconstrained;
- a sequence of points in ;
- a point .
The hypotheses on these are:
- For every , the predicate holds. Its meaning is fixed by the imported definition, which is not shown.
- For every and every , .
- Here is the gradient in the total-function sense: where is (Fréchet) differentiable at it is the true gradient, and where is not differentiable it is defined to be the zero vector.
- So at points of non-differentiability this hypothesis only says .
- The predicate holds. Its meaning is fixed by the imported definition, which is not shown.
- Nothing else in the statement ties the points to , to , or to . In particular, the code shown does not require .
Conclusion. Under these hypotheses,
where is the natural logarithm of the real number . The sum runs over the integers inclusive. The inequality is non-strict.
Degenerate cases.
- No division by zero. , so the fraction on the right is well defined.
- The logarithm is ordinary. , so is the usual logarithm and never Lean's junk value at .
- Smallest horizon. For the claim is .
- Sign of . is nonempty and the index range is nonempty, so hypothesis 2 forces . The sign of does not affect the bound anyway, because only appears.
- Non-differentiable functions. Because the gradient is zero wherever is not differentiable, the gradient bound says nothing about at such points of . A function that is nowhere differentiable on satisfies hypothesis 2 for every .
- Unused data. The following are not mentioned by any hypothesis other than possibly :
- the functions and for ;
- the step sizes and ;
- the points and for .
- One-point sets. may be a single point. When , the structure of depends on the imported definition of , which is not shown.
- Possible vacuity. Whether the statement is vacuous cannot be decided from the code shown. It would be vacuous if or could not be satisfied together with the other hypotheses. Whether that happens depends entirely on the definitions in the imported module.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.