Lemma 10 — Follow the Leader is no worse than Be the Leader (index corrected)
ProvedLogRegretOCO.FTAL.ftl_be_the_leaderLet be cost functions on and let be a run of Follow the Leader over , i.e. for every . Then for every and every ,
Equivalently, the "Be the Leader" sequence, which plays in round the minimiser of the costs up to and including round , has cost at most that of the best fixed point in hindsight. The lemma reduces bounding the regret of FTL to bounding how much consecutive leaders differ.
Formalization Note The paper prints . With that index the lemma is false already for (take , , : then and ). The paper's proof ("for the two are equal by definition") and every use of the lemma (Theorem 5) need , the Follow the Leader rule, which is what is stated here. The paper's "" is encoded as "for every comparator ".
import Mathlib import Definitions.Def_LogRegretOCO_FTAL_IsFTLRun
namespace LogRegretOCO.FTAL
theorem ftl_be_the_leader {n : ℕ} (P : Set (EuclideanSpace ℝ (Fin n)))
(f : ℕ → EuclideanSpace ℝ (Fin n) → ℝ) (x : ℕ → EuclideanSpace ℝ (Fin n))
(hx : IsFTLRun P f x) (T : ℕ) :
∀ u ∈ P,
∑ t ∈ Finset.Icc 1 T, f t (x t) - ∑ t ∈ Finset.Icc 1 T, f t u
≤ ∑ t ∈ Finset.Icc 1 T, f t (x t) - ∑ t ∈ Finset.Icc 1 T, f t (x (t + 1)) := by sorry
end LogRegretOCO.FTAL
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let , , functions for , and points .
Hypothesis. is a Follow-the-Leader run for on . That is, for every :
- ;
- for every , .
Conclusion. For every horizon and every ,
This is equivalent to . The right-hand side involves , which the hypothesis also constrains. No convexity, continuity or other regularity is assumed of or of any .
Degenerate cases.
- . All sums are empty, and the conclusion is .
- . The hypothesis cannot be satisfied, so the statement is vacuous. It is also vacuous if some cumulative cost has no minimiser on , since no run then exists.
- Unused indices. and play no role.
- . Every point is the same, and both sides of the inequality are equal.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.