Lemma 4.6 — the online Newton step regret-to-matrix-sum reduction
DisprovedOnlineConvexOpt.SecondOrder.online_newton_step_regret_boundLet be a decision set of diameter in a real inner-product space, let be -exp-concave, -gradient-bounded cost functions on , and run online Newton step (Algorithm 12) with and , producing decisions , gradients , and running matrices . Then for every horizon ,
This is the key reduction of the chapter: it converts the regret bound into a sum of quadratic forms that the running matrix's own definition makes telescope (Theorem 4.5 bounds this sum by via a log-determinant argument). The proof follows the same generalized-Pythagorean template as online gradient descent's regret bound, but in the norm induced by rather than the Euclidean norm, which is exactly why online Newton step needs the generalized projection of Algorithm 12 in place of the ordinary metric projection.
Retired. Retired because its Lean statement was unfaithful to Hazan (see the replacement's Formalization Note); replaced by OnlineConvexOpt.SecondOrder.online_newton_step_regret_bound_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
variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E]
/-- Lemma 4.6 (Hazan, *Introduction to Online Convex Optimization*, 2nd ed.,
arXiv:1909.05207v3, p. 63, PDF p. 85). The regret of online Newton step (Algorithm 12, run with
parameters `γ = (1/2) min{1/(GD), α}`, `ε = 1/(γ²D²)` against `α`-exp-concave cost functions `f`
with gradient bound `G` over a decision set `K` of diameter `D`) is bounded by
`Regret_T(ONS) ≤ (1/α + GD)(Σ_{t=1}^T ∇_t^⊤A_t^{-1}∇_t + 1)`, where `∇_t^⊤A_t^{-1}∇_t` is the
quadratic form `quadForm (A (t+1)).inverse (g t)` — the sum runs over the 0-indexed rounds
`t = 0, ..., T - 1`, i.e. the book's `t = 1, ..., T`, matching `A (t + 1)`'s shift in
`IsOnlineNewtonStep`. -/
theorem online_newton_step_regret_bound
(K : Set E) (α D G γ ε : ℝ) (f : ℕ → E → ℝ)
(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 : ℕ → E) (A : ℕ → E →L[ℝ] E) (hONS : IsOnlineNewtonStep K γ ε f x g A)
(T : ℕ) :
RegretT K f x T ≤
(1 / α + G * D) *
((∑ t ∈ Finset.range T, quadForm (A (t + 1)).inverse (g t)) + 1) := by sorry
end OnlineConvexOpt.SecondOrder
Read-back
What the Lean code literally says, in plain math · claude-opus-5
The setting is an arbitrary type carrying the structure of a real inner-product space that is complete (a real Hilbert space); is not assumed finite-dimensional, nonzero, or separable. The statement takes:
- a set ;
- real numbers ;
- a family of cost functions , with the hypothesis that every , for every natural number , satisfies — a predicate defined elsewhere in this bundle and not unfolded here;
- a diameter hypothesis: for all , ;
- a gradient-bound hypothesis: for every , every and every vector , if has gradient at (Lean's
HasGradientAt), then ; - positivity: , , ;
- two defining equations for the algorithm's parameters,
- sequences and a sequence of continuous linear maps , satisfying — again a predicate defined elsewhere in this bundle and not unfolded here;
- a natural number , with no lower bound imposed on it.
The conclusion is the single non-strict inequality
where is defined elsewhere in this bundle (its content is not visible here), the sum ranges over the natural numbers , denotes Lean's ContinuousLinearMap.inverse applied to the continuous linear map , and is the bundle's quadForm applied to that map and to the vector — a definition also not visible here, so this read-back cannot say what value it produces beyond that it is a real number determined by a continuous linear map and a vector. Note that the index shift is explicit: the summand at pairs with .
Several points about what is and is not constrained. The gradient hypothesis is conditional: it says only that any which happens to be a gradient of at has norm at most ; it does not assert that is differentiable anywhere, so it is satisfied vacuously by a nowhere-differentiable family. Likewise the diameter hypothesis is conditional on membership in and says nothing if is empty. is not assumed nonempty, convex, measurable, bounded (beyond what gives), or closed. The sequences , , are given, with their relationship to the algorithm carried entirely by ; no existence or uniqueness is claimed, and no invertibility of any is hypothesised. The parameters and are pinned by equations rather than inequalities, so they are determined by ; in particular follows from , , , hence and is an ordinary real number. Note that appears only in the hypothesis and nowhere in the conclusion, and likewise ; and appear in the conclusion only through the sum.
On degenerate cases permitted by the hypotheses: is allowed, and then the sum over is empty and equals , so the claim reduces to . If , the hypotheses and hold vacuously and may or may not, depending on its unseen definition. If is the zero space (a one-element type, which the typeclass assumptions permit), then all , may be any positive real since all distances are , and the conclusion is whatever the unseen and evaluate to there. Where is not invertible, ContinuousLinearMap.inverse returns the zero map by Lean's total-function convention, and the summand is then , whose value depends on the unseen definition of quadForm; nothing in the statement excludes this. Divisions are safe: with , with , and with as noted. Because , , and are all opaque here, it cannot be determined from this text whether the hypothesis bundle is satisfiable for any given parameters, and the theorem holds vacuously wherever it is not.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.