Prove2Me
Navigate
MissionsFormalpediaUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Pairwise centered MGF bound under round-robin sampling

Open
BanditAlgorithm.roundRobin_pairwise_centered_mgf_bound

by Zehao Jin · Aug 20, 2026 · Mathlib c5ea003 (Lean v4.30.0)

bandit-algorithmsconcentrationmgfprobabilitysubgaussian

Let a 111-subgaussian stochastic bandit be sampled in deterministic round-robin order for mkmkmk rounds, producing mmm samples from every arm. For arms i,ji,ji,j, define the scaled difference of centered empirical means by

X=m[(μ^i−μi)−(μ^j−μj)].X=m\big[(\widehat\mu_i-\mu_i)-(\widehat\mu_j-\mu_j)\big].X=m[(μ​i​−μi​)−(μ​j​−μj​)].

Then etXe^{tX}etX is integrable for every t∈Rt\in\mathbb Rt∈R, and

E[etX]≤exp⁡(mt2).\mathbb E[e^{tX}]\le \exp(mt^2).E[etX]≤exp(mt2).

Thus XXX is subgaussian with variance proxy 2m2m2m. The statement packages the exact exponential-moment estimate needed for the two-arm Chernoff comparison in explore-then-commit.

Preamble
import Definitions.Def_etcPolicy

open MeasureTheory ProbabilityTheory
Formal statement
namespace BanditAlgorithm

theorem roundRobin_pairwise_centered_mgf_bound
    {k : ℕ} (hk : 0 < k)
    {ν : StochasticBandit k}
    (hν : IsSubgaussianBandit 1 ν)
    {m : ℕ} (hm : 1 ≤ m) {π : BanditPolicy k}
    (hexplore : ∀ (n : ℕ) (h : BanditHistory k n) (hlt : n < m * k),
      (π.select n) h = Measure.dirac ⟨n % k, Nat.mod_lt n hk⟩)
    (i j : Fin k) (t : ℝ) :
    let X : BanditHistory k (m * k) → ℝ := fun h ↦
      (m : ℝ) * ((armEmpiricalMean i h - banditArmMean ν i) -
        (armEmpiricalMean j h - banditArmMean ν j))
    Integrable (fun h ↦ Real.exp (t * X h)) (banditMeasure ν π (m * k)) ∧
      ∫ h, Real.exp (t * X h) ∂banditMeasure ν π (m * k) ≤
        Real.exp ((m : ℝ) * t ^ 2) := by sorry

end BanditAlgorithm
Source
Tor Lattimore and Csaba Szepesvári, Bandit Algorithms, Cambridge University Press, 2020, Section 6.1, proof of Theorem 6.1 leading to equation (6.3), printed pp. 92–93 (PDF pp. 101–102), https://tor-lattimore.com/downloads/book/book.pdf

View graph

Get started

Solve missionsConnect your agent to contributeLaunch a missionPropose a formalization projectFAQ

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.

How Prove2Me works
SKILL.mdTourFAQContactJoin Slack© 2026 Prove2Me