Theorem 6 — Follow the Approximate Leader has regret at most
ProvedLogRegretOCO.FTAL.ftal_regret_boundLet be nonempty, convex, closed and bounded, with for all , where . Let be cost functions, each differentiable at every point of , such that for some and and every round :
- for all ;
- is concave on ( is -exp-concave).
Let be a run of Follow the Approximate Leader (version 1) with parameter
Then for every horizon and every comparator ,
This is the paper's logarithmic regret guarantee for Follow the Approximate Leader: against any sequence of -exp-concave costs chosen by an adversary, the algorithm's total cost exceeds that of the best fixed decision in hindsight by .
Formalization Note The paper writes "", a typo for , and assumes the costs twice differentiable; only first-order differentiability at the points of is assumed here (the result is correspondingly stronger). The costs are functions on all of and the gradient is Mathlib's gradient. is any upper bound on the diameter of . , are required because divides by (in Lean ). The minimum in the paper's regret is replaced by "for every ", which is equivalent since is compact. The statement is true as printed, although its proof in the paper passes through the printed Theorem 5, which is invalid for in this application; the corrected Theorem 5 of this mission yields the printed constant for all .
import Mathlib import Definitions.Def_LogRegretOCO_FTAL_IsFTALRun
namespace LogRegretOCO.FTAL
theorem ftal_regret_bound {n : ℕ} (P : Set (EuclideanSpace ℝ (Fin n))) (D G α : ℝ)
(f : ℕ → EuclideanSpace ℝ (Fin n) → ℝ) (x : ℕ → EuclideanSpace ℝ (Fin n))
(hPne : P.Nonempty) (hPconv : Convex ℝ P) (hPclosed : IsClosed P)
(hPbdd : Bornology.IsBounded P)
(hD : 0 < D) (hdiam : ∀ y ∈ P, ∀ z ∈ P, ‖y - z‖ ≤ D)
(hG : 0 < G) (hα : 0 < α)
(hdiff : ∀ t, 1 ≤ t → ∀ y ∈ P, DifferentiableAt ℝ (f t) y)
(hgrad : ∀ t, 1 ≤ t → ∀ y ∈ P, ‖gradient (f t) y‖ ≤ G)
(hexp : ∀ t, 1 ≤ t → ConcaveOn ℝ P (fun y => Real.exp (-α * f t y)))
(hx : IsFTALRun P (1 / 2 * min (1 / (4 * G * D)) α) f x) :
∀ T : ℕ, 1 ≤ T → ∀ u ∈ P,
∑ t ∈ Finset.Icc 1 T, (f t (x t) - f t u)
≤ 64 * (1 / α + G * D) * n * (Real.log T + 1) := by sorry
end LogRegretOCO.FTAL
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Here is a natural number, and is the -dimensional real Euclidean space with its usual Euclidean norm . The statement takes the following data, all universally quantified:
- a set ;
- three real numbers , , ;
- a sequence of functions , one for each natural number ;
- a sequence of points , one for each natural number
The hypotheses are:
- is nonempty, convex, closed and bounded.
- , and for all . So is an upper bound on the diameter of . It is not required to equal the diameter.
- and .
- For every , the function is (Fréchet) differentiable at every point , as a function on all of . This includes boundary points of .
- For every and every , the gradient satisfies .
- For every , the function is concave on .
- The predicate holds, with
This predicate is defined in the imported module Definitions.Def_LogRegretOCO_FTAL_IsFTALRun, and its definition is not shown here. From this code alone, the only thing known is that it is some condition relating , the number , the loss sequence and the point sequence . Whatever it requires of the is required only through this predicate. For example, the theorem does not itself require , and it places no condition on or beyond what the predicate may impose.
The conclusion is that for every natural number and every :
Here is the natural logarithm and is the dimension, read as a real number. The single infinite sequence is fixed before is chosen, so one sequence must satisfy the bound for all horizons at once. The bound compares against each fixed separately. The right-hand side uses the given numbers , , , not the true diameter, the smallest gradient bound or the largest valid .
Degenerate cases:
- No junk values. The time index is excluded from the sum and from hypotheses 4–6. Since and , the divisions and are genuine divisions and never divide by zero. Since , , so is never applied to .
- . Here , and the claim is for every .
- . The space has exactly one point, so is that point, and every and equal it. Each summand is then , and the right-hand side is because of the factor . The claim reduces to .
- a single point. Every satisfies hypothesis 2, and is forced to be that point.
- Hypotheses can hold together. For instance, constant loss functions satisfy hypotheses 4–6: the gradient is and is constant, hence concave. So hypotheses 1–6 are not jointly impossible. Whether hypothesis 7 can be satisfied cannot be determined from this code, because is not unfolded here.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.