Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(4), p. 299 — be the leader: Σ_{t≤T} M(s_{1:t})·s_t ≤ M(s_{1:T})·s_{1:T}

Proved
KalaiVempala.Additive.eq_4

by mikedeng1 · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

be-the-leaderfollow-the-perturbed-leaderonline-learningp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Be the leader has no regret. Let D⊂Rn\mathcal D \subset \mathbb R^nD⊂Rn be a decision set and MMM an argmin oracle for D\mathcal DD, so M(x)∈DM(x) \in \mathcal DM(x)∈D minimises d⋅xd \cdot xd⋅x over d∈Dd \in \mathcal Dd∈D. For a sequence of state vectors s1,s2,⋯∈Rns_1, s_2, \dots \in \mathbb R^ns1​,s2​,⋯∈Rn write s1:t=s1+⋯+sts_{1:t} = s_1 + \dots + s_ts1:t​=s1​+⋯+st​. Then for every TTT,

∑t=1TM(s1:t)⋅st  ≤  M(s1:T)⋅s1:T.\sum_{t=1}^{T} M(s_{1:t}) \cdot s_t \;\le\; M(s_{1:T}) \cdot s_{1:T}.t=1∑T​M(s1:t​)⋅st​≤M(s1:T​)⋅s1:T​.

The left side is the cost of the hypothetical "be the leader" algorithm, which on day ttt already uses the state sts_tst​ it is about to pay; the right side is the cost of the best fixed decision in hindsight. This inequality is the starting point of the additive analysis of Follow the Perturbed Leader.

Formalization Note TTT ranges over all natural numbers; at T=0T = 0T=0 both sides are 000. The states are indexed from 111 (s 0 is unused) and s1:ts_{1:t}s1:t​ is prefixSum s t from OracleRO.ApproxFPL.FPL. No bound on D\mathcal DD or on the states is needed.

Preamble
import Mathlib
import Definitions.Def_OracleRO_ApproxFPL_FPL
import Definitions.Def_KalaiVempala_Additive_Setting

open MeasureTheory OracleRO.ApproxFPL
Formal statement
namespace KalaiVempala.Additive

theorem eq_4 {n : ℕ} (Dset : Set (Fin n → ℝ))
    (M : (Fin n → ℝ) → (Fin n → ℝ)) (hM : IsArgminOracle Dset M)
    (s : ℕ → Fin n → ℝ) (T : ℕ) :
    ∑ t ∈ Finset.Icc 1 T, M (prefixSum s t) ⬝ᵥ s t ≤
      M (prefixSum s T) ⬝ᵥ prefixSum s T := by sorry

end KalaiVempala.Additive
Source
Kalai & Vempala, Efficient algorithms for online decision problems, J. Comput. System Sci. 71 (2005), p. 299, display (4)
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 7, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me