§3.2, p. 178 — the regret of ONS is bounded by the potential (1/2β) Σ ∇ₜᵀAₜ⁻¹∇ₜ plus 1/(2β)
ProvedLogRegretOCO.ONS.regret_le_potentialLet be nonempty, closed, bounded and convex with for all . Let be differentiable at every point of , with on , and -exp-concave on (that is, is concave on ), where . Let be a run of the Online Newton Step with , , and . Then for every horizon and every comparator ,
This reduces the regret of ONS to the potential , which the linear-algebra lemmas of Appendix 2 bound by .
Formalization Note The paper's regret is measured against ; the statement is given against every , which is equivalent and avoids a real infimum. The result holds for every (for both sums are empty). is the non-degeneracy that the formulas for and presuppose.
import Mathlib import Definitions.Def_LogRegretOCO_ONS_Basic import Definitions.Def_LogRegretOCO_ONS_Run
namespace LogRegretOCO.ONS
/-- §3.2, display on p. 178 (Hazan–Agarwal–Kale 2007): the regret of an Online Newton Step run is
at most `(1/(2β)) Σ_{t=1}^T ∇_tᵀ A_t⁻¹ ∇_t + 1/(2β)`, against every comparator `u ∈ P`. -/
theorem regret_le_potential {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 : ℕ) :
∀ u ∈ P, ∑ t ∈ Finset.Icc 1 T, (f t (x t) - f t u) ≤
1 / (2 * onsBeta G D α) *
∑ t ∈ Finset.Icc 1 T, quadForm (onsMatrix G D α f x t)⁻¹ (gradient (f t) (x t)) +
1 / (2 * onsBeta G D α) := by sorry
end LogRegretOCO.ONS
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let and let be:
- nonempty;
- closed;
- bounded;
- convex.
Let be real numbers with , and . Assume for all .
Let be a sequence of functions . For every , including :
- is differentiable at every point of ;
- for every ;
- is concave on .
The ONS run. Let be an ONS run on over with parameters . This means both:
- ;
- for every , minimizes over , where
The quantities in the run are:
Under the positivity hypotheses, and , so each is positive definite and is its true inverse.
Conclusion. Let . For every comparator ,
Scope of the conclusion:
- It does not assert that an ONS run exists; the run is supplied as a hypothesis.
- The point is unused, and appears only through the hypotheses imposed on it.
Degenerate cases:
- : the claim is , which is a positive number.
- a single point: every with equals , so the left side is .
- :
- all gradients are zero vectors and every quadratic form is ;
- the claim again reduces to .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.