Lemma 5.3 — RFTL's regret bound via prediction stability
DisprovedOnlineConvexOpt.Regularization.rftl_regret_via_stabilityStatement (Lemma 5.3). Let be a decision set, a regularizer with gradient map , a step size, a sequence of cost functions on , and a run of the RFTL algorithm (Algorithm 13). Then for every horizon ,
where is the -diameter of (OnlineConvexOpt.Regularization.RDiameterSq).
This bounds the regret of RFTL by the total "prediction drift" — how much the algorithm's next prediction differs, along the current gradient direction, from its current one — plus a term controlled by the regularizer's diameter. It is the first of the two steps (with the local-norm bound on the drift term) that together prove Theorem 5.2.
Formalization Note. In the chapter's 0-indexed convention (round is the book's round ), the drift sum is , and is OnlineConvexOpt.FirstOrder.RegretT K f x T, reused as published (Chapter III's mission). The hypothesis hRbdd : BddAbove (Set.image2 (fun p q => R p - R q) K K) guards RDiameterSq's defining supremum against Mathlib's junk value ( of an unbounded set is ): the book's implicitly presupposes bounded on , true of every strongly-convex, smooth regularizer over the bounded decision sets §5.1 works with, so this hypothesis narrows nothing the book's proof needs.
Retired. Retired because its Lean statement was unfaithful to Hazan (see the replacement's Formalization Note); replaced by OnlineConvexOpt.Regularization.rftl_regret_via_stability_v2.
import Mathlib import Definitions.Def_OnlineConvexOpt_Regularization_Protocol import Definitions.Def_OnlineConvexOpt_FirstOrder_Protocol open scoped InnerProductSpace open OnlineConvexOpt.Regularization OnlineConvexOpt.FirstOrder
namespace OnlineConvexOpt.Regularization
variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E]
/-- Lemma 5.3 (Hazan, *Introduction to Online Convex Optimization*, 2nd ed.,
arXiv:1909.05207v3, p. 75, PDF p. 97). A run of the RFTL algorithm (Algorithm 13, with
regularizer `R`, gradient map `gradR`, step size `η`) on cost functions `f` over `K` satisfies,
for every horizon `T`, `RegretT ≤ Σ_{t=1}^T ∇_t^⊤(x_t - x_{t+1}) + (1/η) D_R²` — in the
chapter's 0-indexed convention (round `t ∈ ℕ` is the book's round `t + 1`), `Σ_{t ∈ range T}
⟪grad t, x t - x (t + 1)⟫ + (1/η) * D_R²`. `hRbdd` guards `RDiameterSq`'s defining supremum: the
book's `D_R` presupposes `R` bounded on `K` (true for its strongly-convex, smooth regularizers
over the bounded sets §5.1 works with), so without this hypothesis an unbounded `R x - R y`
would make `RDiameterSq` collapse to Mathlib's junk value `0` (`sSup` of an unbounded set),
trivializing the bound (FAITHFULNESS_TRAPS.md trap 5). -/
theorem rftl_regret_via_stability
(K : Set E) (R : E → ℝ) (gradR : E → E) (η : ℝ) (hη : 0 < η) (f : ℕ → E → ℝ)
(x grad : ℕ → E) (hRun : IsRFTLRun K R η f x grad)
(hRbdd : BddAbove (Set.image2 (fun p q => R p - R q) K K)) (T : ℕ) :
RegretT K f x T ≤
(∑ t ∈ Finset.range T, ⟪grad t, x t - x (t + 1)⟫_ℝ) + (1 / η) * RDiameterSq R K := by sorry
end OnlineConvexOpt.Regularization
Read-back
What the Lean code literally says, in plain math · claude-opus-5
This statement lives over a real Hilbert space (complete real normed additive commutative group with real inner product). It fixes a set , functions and , a real with , cost functions , sequences , and a horizon . Two hypotheses are imposed. First, is an RFTL run for : minimizes over ; for every , has gradient at ; and for every , minimizes over . Second, the set of pairwise differences
is bounded above in .
The conclusion is the inequality
where is the relative squared diameter of the accompanying definitions, and is a quantity imported from a separate bundle whose code is not part of this declaration; its definition is therefore not visible here and cannot be unfolded — the statement asserts only that this opaque real-valued quantity, applied to , , and , is bounded above by the displayed right-hand side. The sum on the right pairs each round's gradient with the displacement of the run between consecutive rounds, which is a signed quantity with no assumed sign, so the first summand may be negative. The inequality is non-strict.
Two features of the quantification deserve explicit note. The argument is bound by the statement but occurs nowhere in the hypotheses or the conclusion — it is an unused parameter, so the claim holds for a fixed exactly when it holds for every one. And no convexity of , convexity or differentiability of , convexity of the , or bound on the gradients is assumed.
In degenerate cases: when the sum over rounds is empty and evaluates to , so the claim reduces to . The hypothesis rules out the division-by-zero value for . If were empty the boundedness hypothesis would hold trivially (the difference set is empty), would evaluate to the empty-supremum value , but the run hypothesis would be unsatisfiable and the statement vacuous; the run hypothesis is also unsatisfiable whenever any of the regularized objectives fails to attain a minimum on , and nothing here asserts a run exists. If is a singleton, and every displacement is , so the bound reads . The boundedness hypothesis prevents the supremum from falling back on its unbounded-set default value of , but it does not prevent from being for other reasons; note also that is a supremum of differences that includes , so whenever is nonempty it is at least . The run hypothesis constrains all rounds , including rounds past the horizon .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.