Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

p. 46, proof of Lemma 4 — Pr[I_t = i, τ_{i,t}(c_t) > m_i(c_t)] ≤ 2t^{−2} for a suboptimal arm

Proved
CrossLearnCB.UCB1CL.per_round_bound

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

contextual-banditsp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1regret-bounducb

In the stochastic contextual bandit with cross-learning (rewards in [0,1][0,1][0,1], independent across rounds, with fixed laws of means μi(c)\mu_i(c)μi​(c); an oblivious context sequence; cross-learning graphs with self-loops; horizon T≥2T\ge2T≥2), let (It)(I_t)(It​) be an arm process run by UCB1.CL. For every round t≤Tt\le Tt≤T and every arm iii with positive gap Δi(ct)>0\Delta_i(c_t)>0Δi​(ct​)>0 in the context of that round,

Pr⁡[It=i, τi,t(ct)>mi(ct)]≤2t2,mi(c)=8log⁡TΔi(c)2,\Pr\big[I_t=i,\ \tau_{i,t}(c_t)>m_i(c_t)\big]\le\frac{2}{t^{2}},\qquad m_i(c)=\frac{8\log T}{\Delta_i(c)^2},Pr[It​=i, τi,t​(ct​)>mi​(ct​)]≤t22​,mi​(c)=Δi​(c)28logT​,

where τi,t(ct)\tau_{i,t}(c_t)τi,t​(ct​) is the number of observations of arm iii in context ctc_tct​ before round ttt.

Summing this bound over arms and rounds gives Lemma 4: once an arm has been observed mi(c)m_i(c)mi​(c) times in a context, UCB1.CL pulls it there only with small probability.

Formalization Note. Lean's rounds are 0-based: Lean's round t<Tt<Tt<T is the paper's round t+1t+1t+1, so the bound reads 2/(t+1)22/(t+1)^22/(t+1)2. The positivity of the gap is required: for an optimal arm the page's mi(c)=+∞m_i(c)=+\inftymi​(c)=+∞ but Lean's 8log⁡T/0=08\log T/0=08logT/0=0, and the bound would be false.

Preamble
import Mathlib
import Definitions.Def_CrossLearnCB_UCB1CL_Model

open MeasureTheory ProbabilityTheory
Formal statement
namespace CrossLearnCB.UCB1CL

/-- Per-round bound, p. 46 (proof of Lemma 4): for a suboptimal arm `i` in the context of
0-based round `t < T` (the paper's round `t + 1`),
`Pr[I_t = i, τ_{i,t}(c_t) > m_i(c_t)] ≤ 2 (t + 1)^{-2}`. -/
theorem per_round_bound {K C : ℕ} [NeZero K] [NeZero C] {Ω : Type*} [MeasurableSpace Ω]
    (P : Measure Ω) [IsProbabilityMeasure P] (R : ℕ → Ω → Fin K → Fin C → ℝ)
    (hR : IsStochRewards P R) (G : Fin K → Fin C → Fin C → Prop) (hG : HasSelfLoops G)
    (ctx : ℕ → Fin C) (T : ℕ) (hT : 2 ≤ T) (I : ℕ → Ω → Fin K)
    (hI : IsUCB1CLProcess R T G ctx I) (t : ℕ) (ht : t < T) (i : Fin K)
    (hi : 0 < gap P R i (ctx t)) :
    P {ω | I t ω = i ∧
        mThr T (gap P R i (ctx t)) < (obsCount G ctx (fun s => I s ω) t i (ctx t) : ℝ)}
      ≤ ENNReal.ofReal (2 / ((t : ℝ) + 1) ^ 2) := by sorry

end CrossLearnCB.UCB1CL
Source
Balseiro et al., Contextual Bandits with Cross-Learning, arXiv:1809.09582v3, p. 46, proof of Lemma 4 (App. C.1)
Human review
  • Endorsed by Shuze Chen · Oct 23, 2026

    Confirmed by the moderator at approval.

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