Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 5, Appendix A, p. 39 (corrected: log g(n+1)/log g(n) → 1 in (ii), (iii)) — uniformizing the tail bounds over B_γ(T) = [g(T), (1−γ)T]

Proved
FragileBandit.CauchyTail.lemma_5

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

heavy-tailsmulti-armed-banditp2o-batch-pfp2ap2o-correctedp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1regret-distribution

Uniformization of tail bounds. Let ν\nuν be any environment, π\piπ any algorithm and iii an arm. Let c>0c > 0c>0, γ∈(0,1)\gamma \in (0,1)γ∈(0,1), and let g:(1,∞)→(0,∞)g:(1,\infty)\to(0,\infty)g:(1,∞)→(0,∞) be strictly increasing with g(t)/log⁡t→∞g(t)/\log t \to \inftyg(t)/logt→∞ and g(t)=o(t)g(t) = o(t)g(t)=o(t). Write Bγ(T)=[g(T),(1−γ)T]B_\gamma(T) = [g(T),(1-\gamma)T]Bγ​(T)=[g(T),(1−γ)T].

  1. (i) If
lim inf⁡T→∞log⁡Pνπ(Ni(T)>(1−γ)T)log⁡T≥−c(48)\liminf_{T\to\infty}\frac{\log\mathbb P_{\nu\pi}(N_i(T) > (1-\gamma)T)}{\log T} \ge -c \quad (48)T→∞liminf​logTlogPνπ​(Ni​(T)>(1−γ)T)​≥−c(48)

then

lim inf⁡T→∞ inf⁡x∈Bγ(T)log⁡Pνπ(Ni(T)>x)log⁡x≥−c.(49)\liminf_{T\to\infty}\ \inf_{x\in B_\gamma(T)}\frac{\log\mathbb P_{\nu\pi}(N_i(T) > x)}{\log x} \ge -c. \quad (49)T→∞liminf​ x∈Bγ​(T)inf​logxlogPνπ​(Ni​(T)>x)​≥−c.(49)
  1. (ii) Suppose in addition that log⁡g(n+1)/log⁡g(n)→1\log g(n+1)/\log g(n) \to 1logg(n+1)/logg(n)→1 as n→∞n \to\inftyn→∞ through the integers. If
lim sup⁡T→∞log⁡Pνπ(Ni(T)>g(T))log⁡g(T)≤−c(50)\limsup_{T\to\infty}\frac{\log\mathbb P_{\nu\pi}(N_i(T) > g(T))}{\log g(T)} \le -c \quad (50)T→∞limsup​logg(T)logPνπ​(Ni​(T)>g(T))​≤−c(50)

then

lim sup⁡T→∞ sup⁡x∈Bγ(T)log⁡Pνπ(Ni(T)>x)log⁡x≤−c.(51)\limsup_{T\to\infty}\ \sup_{x\in B_\gamma(T)}\frac{\log\mathbb P_{\nu\pi}(N_i(T) > x)}{\log x} \le -c. \quad (51)T→∞limsup​ x∈Bγ​(T)sup​logxlogPνπ​(Ni​(T)>x)​≤−c.(51)
  1. (iii) Under the same additional condition, (48) and (50) together give log⁡Pνπ(Ni(T)>x)/log⁡x→−c\log\mathbb P_{\nu\pi}(N_i(T) > x)/\log x \to -clogPνπ​(Ni​(T)>x)/logx→−c uniformly for x∈Bγ(T)x \in B_\gamma(T)x∈Bγ​(T).

Lemma 5 turns the bound (47) at the single point x=(1−γ)Tx = (1-\gamma)Tx=(1−γ)T into the uniform bound (7) of Theorem 1 (with g(t)=log⁡1+γtg(t) = \log^{1+\gamma}tg(t)=log1+γt), and with the Markov bound gives the two-sided limit (8) (with g(t)=tγg(t) = t^\gammag(t)=tγ); both choices of ggg satisfy the additional condition.

Formalization Note Every log-ratio limit is in power form: (48) as ∀a>c\forall a > c∀a>c, eventually P≥T−a\mathbb P \ge T^{-a}P≥T−a; (49) as ∀a>c\forall a > c∀a>c, eventually P(Ni(T)>x)≥x−a\mathbb P(N_i(T) > x) \ge x^{-a}P(Ni​(T)>x)≥x−a for all x∈Bγ(T)x\in B_\gamma(T)x∈Bγ​(T); (50) and (51) likewise with ≤\le≤ and a<ca < ca<c; (iii) as: for all a<c<ba < c < ba<c<b, eventually x−b≤P(Ni(T)>x)≤x−ax^{-b} \le \mathbb P(N_i(T) > x) \le x^{-a}x−b≤P(Ni​(T)>x)≤x−a on Bγ(T)B_\gamma(T)Bγ​(T). ggg is a real function whose hypotheses are imposed on (1,∞)(1,\infty)(1,∞).

Differences from the source:

  • correction: (ii) and (iii) for any strictly increasing g with g/log → ∞ and g = o(t) → (ii) and (iii) additionally assume log g(n+1)/log g(n) → 1 along the integers; reason: false as printed: with a_k = 2^{2^k}, n_k = a_k², g(t) = a_k + (t − n_k)/(n_{k+1} − n_k) on [n_k, n_{k+1}), Gaussian arms and an algorithm playing arm i for the first Z rounds with P(Z > y) = a_k^{−c} on [a_k, a_{k+1}), (50) holds but at x = a_k^{1.5} the ratio is −2c/3 > −c, so (51) fails; the proof's step (54) needs log g(⌊g^{−1}(x)⌋) ≈ log x; g(t) = t^γ and g(t) = log^{1+γ}t, the two choices of Theorem 1, satisfy the condition
  • generalization: 'let i be a sub-optimal arm in ν' → any arm i; reason: the proof (p. 40) uses only that t ↦ N_i(t) is non-decreasing; sub-optimal arms are a special case
  • encoding: (iii) 'lim log P_νπ(N_i(T) > x)/log x = −c uniformly for x ∈ B_γ(T)' → for all a < c < b, eventually x^{−b} ≤ P_νπ(N_i(T) > x) ≤ x^{−a} for every x ∈ B_γ(T); reason: the power form of uniform convergence of the log-ratio, i.e. (49) and (51) together
  • 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: g : (1, ∞) → (0, ∞) strictly increasing, lim g(t)/log t = ∞, g(t) = o(t) → g : ℝ → ℝ, StrictMonoOn on (1, ∞), positive on (1, ∞), g(t)/log t → ∞ and g(t)/t → 0 as t → ∞; reason: same functions; values off (1, ∞) are never used
  • 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

/-- Lemma 5 (Appendix A, p. 39), uniformization over `x ∈ B_γ(T) = [g(T), (1−γ)T]`, for any environment,
algorithm and arm, `c > 0`, `γ ∈ (0, 1)` and strictly increasing `g : (1, ∞) → (0, ∞)` with
`g(t)/log t → ∞` and `g(t) = o(t)`; every log-ratio limit in power form.
(i) (48) `⇒` (49).
(ii) (corrected: `log g(n+1) / log g(n) → 1`) (50) `⇒` (51).
(iii) (same correction) (48) and (50) `⇒` (49) and (51), i.e. `log P_νπ(N_i(T) > x)/log x → −c`
uniformly on `B_γ(T)`. -/
theorem lemma_5 {K : ℕ} (ν : StochasticBandit K) (π : BanditPolicy K) (i : Fin K)
    (c : ℝ) (hc : 0 < c) (γ : ℝ) (hγ : γ ∈ Set.Ioo (0 : ℝ) 1)
    (g : ℝ → ℝ) (hg_mono : StrictMonoOn g (Set.Ioi 1)) (hg_pos : ∀ t : ℝ, 1 < t → 0 < g t)
    (hg_log : Tendsto (fun t : ℝ => g t / Real.log t) atTop atTop)
    (hg_o : Tendsto (fun t : ℝ => g t / t) atTop (𝓝 0)) :
    -- (i): (48) ⇒ (49)
    ((∀ a : ℝ, c < a → ∀ᶠ T : ℕ in atTop, ENNReal.ofReal ((T : ℝ) ^ (-a)) ≤
        banditMeasure ν π T {h | (1 - γ) * (T : ℝ) < (armPullCount i h : ℝ)}) →
      ∀ a : ℝ, c < a → ∀ᶠ T : ℕ in atTop, ∀ x ∈ Set.Icc (g T) ((1 - γ) * (T : ℝ)),
        ENNReal.ofReal (x ^ (-a)) ≤ banditMeasure ν π T {h | x < (armPullCount i h : ℝ)}) ∧
    -- (ii): (50) ⇒ (51), corrected
    (Tendsto (fun n : ℕ => Real.log (g ((n : ℝ) + 1)) / Real.log (g n)) atTop (𝓝 1) →
      (∀ a : ℝ, a < c → ∀ᶠ T : ℕ in atTop,
        banditMeasure ν π T {h | g T < (armPullCount i h : ℝ)} ≤ ENNReal.ofReal (g T ^ (-a))) →
      ∀ a : ℝ, a < c → ∀ᶠ T : ℕ in atTop, ∀ x ∈ Set.Icc (g T) ((1 - γ) * (T : ℝ)),
        banditMeasure ν π T {h | x < (armPullCount i h : ℝ)} ≤ ENNReal.ofReal (x ^ (-a))) ∧
    -- (iii): (48) and (50) ⇒ (49) and (51), corrected
    (Tendsto (fun n : ℕ => Real.log (g ((n : ℝ) + 1)) / Real.log (g n)) atTop (𝓝 1) →
      (∀ a : ℝ, c < a → ∀ᶠ T : ℕ in atTop, ENNReal.ofReal ((T : ℝ) ^ (-a)) ≤
        banditMeasure ν π T {h | (1 - γ) * (T : ℝ) < (armPullCount i h : ℝ)}) →
      (∀ a : ℝ, a < c → ∀ᶠ T : ℕ in atTop,
        banditMeasure ν π T {h | g T < (armPullCount i h : ℝ)} ≤ ENNReal.ofReal (g T ^ (-a))) →
      ∀ a b : ℝ, a < c → c < b → ∀ᶠ T : ℕ in atTop, ∀ x ∈ Set.Icc (g T) ((1 - γ) * (T : ℝ)),
        ENNReal.ofReal (x ^ (-b)) ≤ banditMeasure ν π T {h | x < (armPullCount i h : ℝ)} ∧
        banditMeasure ν π T {h | x < (armPullCount i h : ℝ)} ≤ ENNReal.ofReal (x ^ (-a))) := by sorry

end FragileBandit.CauchyTail
Source
Fan, Glynn, The Fragility of Optimized Bandit Algorithms, arXiv:2109.13595v8, p. 39, Appendix A, Lemma 5, (48)–(51); proof p. 40
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