Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix A, p. 38 — Markov tail bound: limsup log P(N_i(T) > c·T^γ)/log T^γ ≤ −1 for M_P-optimized algorithms

Proved
FragileBandit.CauchyTail.markov_tail_bound

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

markov-inequalitymulti-armed-banditp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1regret-distribution

The tail of an optimized algorithm is no heavier than truncated Cauchy. Let PPP be a base distribution with 000 in the interior of ΘP\Theta_PΘP​, let π\piπ be MP\mathcal M_PMP​-optimized (Definition 2), let ν∈MPK\nu \in \mathcal M_P^Kν∈MPK​ have pairwise distinct means and let iii be a sub-optimal arm. For every γ∈(0,1]\gamma \in (0,1]γ∈(0,1] and c>0c > 0c>0,

lim sup⁡T→∞log⁡Pνπ(Ni(T)>cTγ)log⁡(Tγ)≤−1.\limsup_{T\to\infty}\frac{\log \mathbb P_{\nu\pi}\big(N_i(T) > cT^\gamma\big)}{\log(T^\gamma)} \le -1.T→∞limsup​log(Tγ)logPνπ​(Ni​(T)>cTγ)​≤−1.

On p. 38 this is the bound for the second-best arm with c=1c = 1c=1, obtained from Definition 2 and Markov's inequality; it is part (ii)'s hypothesis (50) of Lemma 5 for g(t)=tγg(t) = t^\gammag(t)=tγ. With c=1/Kc = 1/Kc=1/K and γ=1\gamma = 1γ=1 it is (31) of Theorem 4 for f=log⁡f = \logf=log, the condition Remark 3 calls "automatically satisfied" for optimized algorithms.

Formalization Note The limsup is posed in power form: for every a<1a < 1a<1, eventually Pνπ(Ni(T)>cTγ)≤(Tγ)−a\mathbb P_{\nu\pi}(N_i(T) > cT^\gamma) \le (T^\gamma)^{-a}Pνπ​(Ni​(T)>cTγ)≤(Tγ)−a.

Differences from the source:

  • generalization: the second-best arm (arm 2), threshold T^γ, γ ∈ (0, 1) → every sub-optimal arm i, threshold c·T^γ for any c > 0, γ ∈ (0, 1]; reason: c = 1, i = 2, γ ∈ (0, 1) is the printed display; c = 1/K, γ = 1 gives (31) with f = log, which the chain to Theorem 1 needs
  • reading: Definition 2 quantifies over 'any environment ν ∈ M_P^K'; §2.1, p. 7: 'throughout the paper we will only consider environments where for each i … the i-th-best arm is unique' → IsOptimized and the environment ν range over environments of M_P^K with pairwise distinct means; reason: the paper's standing convention; on π it is the weaker hypothesis, so the stronger theorem, and r(i) is undefined with ties
  • encoding: liminf / limsup / lim of log P_νπ(·)/log x (or /f(T)) as T → ∞, uniformly over the stated window → for every a beyond the exponent, eventually (for all x in the window) P_νπ(·) ≥ x^{−a} (resp. ≤ x^{−a}), probabilities compared in ℝ≥0∞; reason: equivalent for x > 1, the only regime that matters as the windows tend to infinity; it also gives P = 0 its intended meaning log 0 = −∞, where Lean's Real.log 0 = 0 would make a log-ratio statement true by junk
  • encoding: Θ_P = {θ : Λ_P(θ) < ∞}; P^z = exp(θ_P(z)x − Λ_P(θ_P(z))) P(dx); I_P the means of these laws; d_P the KL divergence (3) → natParamSet P = {θ : x ↦ e^{θx} is P-integrable}; tilt = Measure.tilted; meanSet P requires a finite mean; θ_P(z) a choice of θ with mean z; dP = klDiv in ℝ≥0∞; reason: same sets and laws (Λ_P(θ) < ∞ iff e^{θx} is integrable; θ_P(z) is unique unless P is a point mass, where every tilt is P); avoids the junk value 0 of Mathlib's cgf at non-integrable θ
  • encoding: P_νπ on ([K] × ℝ)^∞ (p. 7), events about N_i(T) → banditMeasure ν π T on the histories of the first T rounds (published BanditPolicy), N_i(T) = armPullCount i h; reason: the infinite-horizon law restricted to the first T rounds is exactly banditMeasure ν π T, and N_i(T) depends only on those rounds
Preamble
import Mathlib
import Definitions.Def_FragileBandit_CauchyTail_Setting
Formal statement
namespace FragileBandit.CauchyTail

open MeasureTheory ProbabilityTheory Filter BanditAlgorithm
open scoped ENNReal Topology

/-- Markov tail bound (Appendix A, p. 38): for an `M_P`-optimized algorithm, every environment
`ν ∈ M_P^K` with distinct means and every sub-optimal arm `i`,
`limsup_{T→∞} log P_νπ(N_i(T) > c T^γ) / log(T^γ) ≤ −1`, here for any threshold `c T^γ` with `c > 0`,
`γ ∈ (0, 1]` (the page has `c = 1`, `γ ∈ (0, 1)`), in power form: for every `a < 1`, eventually
`P_νπ(N_i(T) > c T^γ) ≤ (T^γ)^{−a}`. -/
theorem markov_tail_bound {K : ℕ} (P : Measure ℝ) [IsProbabilityMeasure P]
    (hP : (0 : ℝ) ∈ interior (natParamSet P)) (π : BanditPolicy K) (hπ : IsOptimized P π)
    (ν : StochasticBandit K) (hν : IsModelEnv P ν) (hd : DistinctMeans ν)
    (i : Fin K) (hi : 0 < banditGap ν i) (γ : ℝ) (hγ : γ ∈ Set.Ioc (0 : ℝ) 1)
    (c : ℝ) (hc : 0 < c) :
    ∀ a : ℝ, a < 1 → ∀ᶠ T : ℕ in atTop,
      banditMeasure ν π T {h | c * (T : ℝ) ^ γ < (armPullCount i h : ℝ)} ≤
        ENNReal.ofReal (((T : ℝ) ^ γ) ^ (-a)) := by sorry

end FragileBandit.CauchyTail
Source
Fan, Glynn, The Fragility of Optimized Bandit Algorithms, arXiv:2109.13595v8, p. 38, Appendix A, display after (47) ('using Markov's inequality')
Human review
  • Endorsed by Shuze Chen · Oct 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 24, 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