Theorem 2 — Online Newton Step has regret at most 5(1/α + GD) n log T when n log T ≥ 4
ProvedLogRegretOCO.ONS.ons_regret_boundLet be a nonempty, closed, bounded and convex decision set with for all . Let the cost functions be differentiable at every point of , with gradients bounded by on , and -exp-concave on : is concave on for every . Assume .
Let be any run of the Online Newton Step with and : is arbitrary and with and . Then for every horizon with and every comparator ,
This is the logarithmic regret guarantee for exp-concave losses, which include the log-loss of universal portfolio management; it needs only gradient information and one generalized projection per round.
Formalization Note The paper prints the bound for every without the condition , and as printed it is false at : with , , , , and the regret is while the right side is . The paper's proof establishes for ; the final step "this gives the stated regret bound" drops the additive . The printed constant follows exactly when , which is the added hypothesis (it forces and ). Regret is stated against every , equivalent to the paper's minimum over (attained, since is compact) and avoiding a real infimum. is the non-degeneracy that the printed formulas for and presuppose. The printed "" is a typo for . The cost functions are ambient functions on , differentiable at the points of ; the paper's standing assumptions of convexity and twice differentiability are not needed and are omitted. is used only as an upper bound on distances in .
import Mathlib import Definitions.Def_LogRegretOCO_ONS_Basic import Definitions.Def_LogRegretOCO_ONS_Run
namespace LogRegretOCO.ONS
/-- Theorem 2 (Hazan–Agarwal–Kale 2007, p. 176), with the added hypothesis `n log T ≥ 4`.
Let `P ⊆ ℝⁿ` be nonempty, closed, bounded and convex with `‖x − y‖ ≤ D` on `P`; let every cost
`f_t` be differentiable on `P` with `‖∇f_t‖ ≤ G` there and `α`-exp-concave on `P`. Then every run
of the Online Newton Step with `β = ½ min{1/(4GD), α}` and `ε = 1/(β²D²)` satisfies, for every
horizon `T` with `n log T ≥ 4` and every comparator `u ∈ P`,
`Σ_{t=1}^T (f_t(x_t) − f_t(u)) ≤ 5 (1/α + GD) n log T`. -/
theorem ons_regret_bound {n : ℕ} (P : Set (EuclideanSpace ℝ (Fin n)))
(hP_ne : P.Nonempty) (hP_closed : IsClosed P) (hP_bdd : Bornology.IsBounded P)
(hP_conv : Convex ℝ P)
(G D α : ℝ) (hG : 0 < G) (hD : 0 < D) (hα : 0 < α)
(hdiam : ∀ x ∈ P, ∀ y ∈ P, ‖x - y‖ ≤ D)
(f : ℕ → EuclideanSpace ℝ (Fin n) → ℝ)
(hdiff : ∀ t, ∀ x ∈ P, DifferentiableAt ℝ (f t) x)
(hgrad : ∀ t, ∀ x ∈ P, ‖gradient (f t) x‖ ≤ G)
(hexp : ∀ t, ConcaveOn ℝ P (fun x => Real.exp (-α * f t x)))
(x : ℕ → EuclideanSpace ℝ (Fin n)) (hrun : IsONSRun P G D α f x)
(T : ℕ) (hT : 4 ≤ (n : ℝ) * Real.log T) :
∀ u ∈ P, ∑ t ∈ Finset.Icc 1 T, (f t (x t) - f t u) ≤
5 * (1 / α + G * D) * n * Real.log T := by sorry
end LogRegretOCO.ONS
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix a dimension (an implicit argument) and work in with the Euclidean norm . The statement takes the following data and hypotheses:
- Feasible set. is nonempty, closed, bounded and convex.
- Constants. are real numbers with , and .
- Diameter bound. For all , .
- Cost functions. There is a sequence of functions , indexed by every natural number . For every :
- is (Fréchet) differentiable as a function on all of at every point , including points on the boundary of .
- Its gradient satisfies for every .
- The function is concave on .
- Iterates. There is a sequence of points of satisfying the predicate . This predicate comes from the imported bundle, and its definition is not shown here, so this read-back cannot say what it requires. In particular, the statement itself contains no step-size or regularisation parameters. Nor does it say, outside that predicate, that , so may a priori be evaluated at points outside .
- Horizon. There is a horizon with
where is the natural logarithm.
The conclusion is that for every comparator ,
where the sum runs over the integers with . The hypotheses on are nonetheless required for all , including and , even though those terms do not enter the sum.
Degenerate cases:
- . The space is the single point , and the horizon condition reads , which is false. The statement is then vacuously true.
- or . Here (with taken as ), so fails again and the statement is vacuous. In general, the horizon condition requires and , so . For it forces , and for it forces .
- Empty . This is excluded by the nonemptiness hypothesis.
- One-point . This is permitted: the diameter bound holds with any .
- . No division by zero can occur, because .
- Unknown predicate. If cannot be satisfied for some admissible data, the statement is vacuous for that data. Whether this happens cannot be determined from the code shown.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.