Theorem 5.2 — RFTL regret bound
DisprovedOnlineConvexOpt.Regularization.rftl_regret_boundStatement (Theorem 5.2). Let be a nonempty convex decision set in a real Hilbert space, a convex regularizer with gradient map , a step size, a sequence of convex cost functions, and a run of the RFTL algorithm (Algorithm 13) on over . Then for every horizon and every ,
where is the squared dual norm of local to the segment (Definition 5.1).
This is the chapter's main result: the RFTL meta-algorithm, run with any admissible regularizer , attains a regret bound governed by the cumulative squared local dual norm of the gradients and the regularizer's range over . Its proof (Lemma 5.3 plus a generalized Cauchy-Schwarz argument bounding the prediction-drift term by ) is the content this mission's milestones supply.
Formalization Note. is under this chapter's 0-indexed shift. is any value nsq t witnessing IsLocalDualNormSq R gradR (x t) (x (t+1)) (grad t) (nsq t); the theorem is stated for an arbitrary such witness, matching the book's use of the local norm as a well-defined quantity rather than a specific formula. The further corollary the book states immediately after Theorem 5.2 (an upper bound under a uniform bound ) is a separate, unnumbered statement and is not formalized here, per this series' convention of formalizing only numbered results.
Retired. Retired because its Lean statement was unfaithful to Hazan (see the replacement's Formalization Note); replaced by OnlineConvexOpt.Regularization.rftl_regret_bound_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]
/-- Theorem 5.2 (Hazan, *Introduction to Online Convex Optimization*, 2nd ed.,
arXiv:1909.05207v3, p. 74, PDF p. 96). The RFTL algorithm (Algorithm 13, regularizer `R` with
gradient map `gradR`, convex decision set `K`, step size `η`) attains, for every `u ∈ K`,
`Regret_T ≤ 2η Σ_{t=1}^T ‖∇_t‖*²_t + (R(u) - R(x_1))/η`. In the chapter's 0-indexed convention
(round `t ∈ ℕ` is the book's round `t + 1`), `‖∇_t‖*²_t` — the squared dual norm of `∇_t` local
to the segment `[x_t, x_{t+1}]` — is `nsq t`, any value satisfying `IsLocalDualNormSq R gradR
(x t) (x (t + 1)) (grad t) (nsq t)`, and `x_1` is `x 0`. -/
theorem rftl_regret_bound
(K : Set E) (hKconv : Convex ℝ K) (hKne : K.Nonempty)
(R : E → ℝ) (hRconv : ConvexOn ℝ K R) (gradR : E → E)
(hgradR : ∀ x ∈ K, HasGradientAt R (gradR x) x)
(η : ℝ) (hη : 0 < η) (f : ℕ → E → ℝ) (x grad : ℕ → E)
(hRun : IsRFTLRun K R η f x grad)
(nsq : ℕ → ℝ) (hnsq : ∀ t, IsLocalDualNormSq R gradR (x t) (x (t + 1)) (grad t) (nsq t))
(T : ℕ) (u : E) (hu : u ∈ K) :
RegretT K f x T ≤
2 * η * (∑ t ∈ Finset.range T, nsq t) + (R u - R (x 0)) / η := by sorry
end OnlineConvexOpt.Regularization
Read-back
What the Lean code literally says, in plain math · claude-opus-5
This statement concerns a real inner product space that is a complete normed additive commutative group with a real inner product structure (a real Hilbert space). Fix the following data:
- a set , assumed convex over and nonempty;
- a function , assumed convex on , together with a separately supplied map assumed to be a gradient for at every point of : for all , has gradient at (a Fréchet-derivative condition stated pointwise on ; no assumption is made about off );
- a real number with ;
- a sequence of functions , indexed by round , with no convexity, continuity, boundedness, or measurability hypothesis imposed on any ;
- two sequences of points , where is the iterate at round and is the vector playing the role of ;
- a hypothesis asserting the predicate , which is a definition from the accompanying bundle and is not unfolded here — its content is whatever that definition states about the relationship among the decision set, the regularizer, the step size, the loss sequence, the iterates, and the gradient vectors; the read-back cannot report what it requires;
- a real-valued sequence together with the hypothesis that for every , holds. This predicate is likewise a definition from the bundle and is not unfolded here; the statement does not require or any other numeric property of beyond what that predicate imposes. Note that is quantified over all natural numbers , including indices beyond the horizon;
- a natural number (the horizon) and a point with the hypothesis .
Under all of the above, the conclusion is the single real inequality
where is another definition from the bundle, left unexpanded here — its dependence on , if any, is internal to that definition and is not visible in this statement; syntactically, appears in the conclusion only through the term , and its membership hypothesis is the only constraint tying it to . The sum ranges over , i.e. exactly terms, and is when . The subtraction is real subtraction (signed, so it may be negative), and the division by is ordinary real division, well-defined because is hypothesized. The inequality is non-strict (). Note the indexing convention recorded in the accompanying comment: round corresponds to the source's round , so plays the role of the source's ; this is documentation, not a formal hypothesis, and the statement as written simply refers to evaluated at .
On degenerate cases: if , the sum over the empty index range is and the claim reduces to , whose truth depends entirely on how is defined at horizon and could require a nonpositive quantity on the left or be false if and at is not sufficiently small. The space is required to be a normed additive commutative group with a real inner product and to be complete, but nothing forbids from being the zero space ; in that case nonempty forces , every , and the claim becomes . Division by cannot hit Lean's junk value here because is assumed. No hypothesis constrains the sign or finiteness of beyond , so if that predicate admits negative witnesses the right-hand side may be driven arbitrarily negative; conversely, if or is unsatisfiable for some choice of the data, the theorem is vacuously true for that data — the hypothesis in particular demands a witness at every , an infinite family of conditions, which is a strictly stronger requirement than supplying witnesses only for . The functions for are unconstrained and enter the statement only through whatever and do with them, as are the iterates for ; since is only assumed to be a gradient on , its values outside are arbitrary and feed into unconstrained if any or lies outside — nothing in the stated hypotheses asserts that the iterates belong to except insofar as may require it.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.