Theorem 4.5 — regret of online Newton step
DisprovedOnlineConvexOpt.SecondOrder.online_newton_step_regretLet () be a decision set of diameter , and let be -exp-concave, -gradient-bounded cost functions on . Run online Newton step (Algorithm 12) with parameters
producing the play sequence . Then for every horizon ,
This is the chapter's central result: exp-concave losses admit regret that is logarithmic in the horizon , at the cost of a factor of the ambient dimension that is absent from the bound for general convex losses (Chapter III) — a genuine trade-off, not an artifact of a loose proof, since it comes directly from bounding the determinant of the running matrix . The bound applies, in particular, to the log-loss of online portfolio selection that motivates the chapter, giving a fully polynomial-time algorithm with logarithmic regret against the best fixed rebalanced portfolio in hindsight.
Formalization Note The hypothesis follows the source's own derivation, which states the bound explicitly "for , " immediately after combining Lemma 4.6 with the log-determinant bound.
Retired. Retired because its Lean statement was unfaithful to Hazan (see the replacement's Formalization Note); replaced by OnlineConvexOpt.SecondOrder.online_newton_step_regret_v2.
import Mathlib import Definitions.Def_OnlineConvexOpt_SecondOrder_ExpConcave import Definitions.Def_OnlineConvexOpt_SecondOrder_OnlineNewtonStep import Definitions.Def_OnlineConvexOpt_FirstOrder_Protocol open OnlineConvexOpt.SecondOrder OnlineConvexOpt.FirstOrder
namespace OnlineConvexOpt.SecondOrder
/-- Theorem 4.5 (Hazan, *Introduction to Online Convex Optimization*, 2nd ed.,
arXiv:1909.05207v3, p. 63, PDF p. 85). Online Newton step (Algorithm 12) on `α`-exp-concave
cost functions `f`, `G`-gradient-bounded, over a decision set `K` of diameter `D` in
`n`-dimensional space, run with `γ = (1/2) min{1/(GD), α}`, `ε = 1/(γ²D²)`, guarantees for
every `T ≥ 4`, `Regret_T ≤ 2(1/α + GD) n log T`. (The book's own derivation, immediately
following the proof, states the bound "for `n > 1`, `T ≥ 4`"; `hn : 2 ≤ n` records that
literally, rather than the possibly-stronger `n ≥ 1` the displayed statement alone would
suggest — see `MODERATION_NOTES.md`.) -/
theorem online_newton_step_regret (n : ℕ) (hn : 2 ≤ n) (K : Set (EuclideanSpace ℝ (Fin n)))
(α D G : ℝ) (f : ℕ → EuclideanSpace ℝ (Fin n) → ℝ)
(hf : ∀ t, IsExpConcaveOn α K (f t))
(hD : ∀ p ∈ K, ∀ q ∈ K, dist p q ≤ D)
(hG : ∀ t, ∀ p ∈ K, ∀ v, HasGradientAt (f t) v p → ‖v‖ ≤ G)
(hα : 0 < α) (hGpos : 0 < G) (hDpos : 0 < D)
(γ ε : ℝ) (hγ : γ = (1 / 2) * min (1 / (G * D)) α) (hε : ε = 1 / (γ ^ 2 * D ^ 2))
(x g : ℕ → EuclideanSpace ℝ (Fin n))
(A : ℕ → EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n))
(hONS : IsOnlineNewtonStep K γ ε f x g A)
(T : ℕ) (hT : 4 ≤ T) :
RegretT K f x T ≤ 2 * (1 / α + G * D) * n * Real.log T := by sorry
end OnlineConvexOpt.SecondOrder
Read-back
What the Lean code literally says, in plain math · claude-opus-5
Fix a natural number with , and work in the -dimensional real Euclidean space (with its standard inner product and norm). The statement takes:
- an arbitrary subset — no convexity, closedness, boundedness, or nonemptiness of is assumed anywhere;
- three real numbers , assumed strictly positive: , , ;
- a sequence of cost functions indexed by every natural number (not merely ), each defined on all of , not just on ;
- two further sequences of points , again indexed by all of , and a sequence of continuous linear operators (only linearity and continuity are required of : no symmetry, positive-definiteness, or invertibility is stated);
- two real numbers and a natural number .
The hypotheses are the following. First, for every , the predicate holds; this is a named notion imported from the accompanying definition bundle, and the code shown here does not reveal its content — the read-back can only report that whatever property that predicate encodes of the triple is assumed for every index . Second, a diameter bound
Third, a gradient bound of conditional form: for every , every , and every vector ,
Note that this asserts nothing unless such a exists: no differentiability of any is assumed, and at points where is not differentiable the clause is satisfied automatically. Fourth, two exact equations pinning the parameters,
both genuine equalities rather than inequalities or approximations. Fifth, the predicate , again an opaque imported notion: it is the only hypothesis linking , and to one another, to , to the cost sequence , and to the parameters , and its content is not visible in the code given. In particular, nothing in the visible text asserts that , that is a gradient of , or that is built from the 's. Finally, .
Under all of these, the conclusion is the single inequality
where is a further imported notion whose definition is not shown — a real number determined by the decision set , the whole cost sequence , the whole point sequence , and the horizon — where on the right is the natural number cast into , and is the real natural logarithm applied to the cast . The inequality is non-strict (), and the bound is stated for the one given under the standing hypothesis , not uniformly quantified over horizons inside the statement.
Concerning the cases the hypotheses still permit: since , the ambient space is never trivial, and since the horizon is never and , so the right-hand side is strictly positive; likewise forces and hence and , so neither , nor , nor is one of Lean's division-by-zero junk values, and follows. However, is allowed to be empty or a single point: if the diameter and gradient hypotheses hold vacuously, and if is a singleton the diameter hypothesis reduces to , which the positivity assumption already grants — in both cases the surviving content of the statement is whatever , and assert for such a , which the given code does not display; in particular, if is defined by a supremum over , the empty case falls back to Lean's default value for an empty (or unbounded) supremum. Similarly, if no is differentiable at any point of , the constant is unconstrained from below by beyond , and if the conjunction of for all with were unsatisfiable for some choice of the data, the theorem would hold vacuously for that choice. The cost functions and iterates are indexed by all of , so hypotheses are imposed, and data supplied, for indices beyond the horizon as well.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.