Lemma 5.4 — RFTL's FTL/BTL comparison inequality
ProvedOnlineConvexOpt.Regularization.rftl_ftl_btl_comparisonStatement (Lemma 5.4). Let be a decision set, a regularizer, a step size, a sequence of cost functions on , and a run of the RFTL algorithm (Algorithm 13). Define, as in the proof of Lemma 5.3, and for (OnlineConvexOpt.Regularization.gFun). Then for every horizon and every ,
This is the "follow-the-leader beats be-the-leader"-type comparison the book proves by induction on : playing the minimizer of the cumulative 's so far is, in total, at least as good as any fixed comparator measured against the next round's cumulative sum. It is the key inequality Lemma 5.3's proof reduces the regret bound to.
Formalization Note. Indices follow this chapter's 0-indexed shift (round is the book's round ): here is the book's , so the conclusion is exactly the book's .
import Mathlib import Definitions.Def_OnlineConvexOpt_Regularization_Protocol open scoped InnerProductSpace open OnlineConvexOpt.Regularization
namespace OnlineConvexOpt.Regularization
variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E]
/-- Lemma 5.4 (Hazan, *Introduction to Online Convex Optimization*, 2nd ed.,
arXiv:1909.05207v3, p. 75, PDF p. 97). With `g_0(x) = (1/η) R(x)` and `g_n(x) = ∇_n^⊤ x` for
`n ≥ 1` (`OnlineConvexOpt.Regularization.gFun`), a run of the RFTL algorithm (Algorithm 13)
satisfies, for every `u ∈ K`, `Σ_{n=0}^{T} g_n(u) ≥ Σ_{n=0}^{T} g_n(x_n)` — `x n` here is the
book's `x_{n+1}` under the chapter's 0-indexed shift, i.e. exactly the book's `Σ_{t=0}^T g_t(u)
≥ Σ_{t=0}^T g_t(x_{t+1})`. -/
theorem rftl_ftl_btl_comparison
(K : Set E) (R : E → ℝ) (η : ℝ) (hη : 0 < η) (f : ℕ → E → ℝ) (x grad : ℕ → E)
(hRun : IsRFTLRun K R η f x grad) (T : ℕ) (u : E) (hu : u ∈ K) :
∑ n ∈ Finset.range (T + 1), gFun η R grad n u ≥
∑ n ∈ Finset.range (T + 1), gFun η R grad n (x n) := by sorry
end OnlineConvexOpt.Regularization
Read-back
What the Lean code literally says, in plain math · claude-opus-5
This is a statement about a real Hilbert space (a complete real normed additive commutative group with a real inner product). Fix a set , a function , a real number assumed to satisfy , a sequence of cost functions , and two sequences . Assume the tuple is an RFTL run for in the sense of , i.e. all three of: lies in and minimizes over ; for every the function has gradient at ; and for every the point lies in and minimizes over . Fix finally a natural number and a point .
The conclusion asserts the single inequality
where is the auxiliary family of the accompanying definitions: and . Note that the two sides evaluate the same family at different arguments: on the left every term is evaluated at the fixed point ; on the right the term of index is evaluated at , the run's iterate whose index matches the function index. Unfolding the family, the claim is equivalent to
i.e. the gradient of round is paired with on the left but with the next iterate on the right, and the regularizer contributes against . The inequality is non-strict and oriented with the -side as the larger. The cost functions appear only through the run hypothesis linking to at ; no convexity, boundedness, or continuity of , of , or of is assumed, and is not assumed convex.
In degenerate cases: when the index set is the single index , so the claim reduces to with no gradient terms at all; since is a hypothesis, the reciprocal is never the division-by-zero value . If is empty the hypotheses are unsatisfiable (the run hypothesis requires ), so the statement is vacuous; the same vacuity arises whenever no minimizing sequence of the required form exists — for instance when the regularized objective attains no minimum on at some round — and nothing in the statement asserts that such a run exists. If is a singleton, then for all and both sides coincide. If is the zero space, all inner products vanish and the claim reduces to . The hypotheses quantify the run conditions over all , beyond the horizon used in the conclusion.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.