Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4, p. 20 — E[Reg_Post] ≤ Kπ²/3 for UCB1.CL

Proved
CrossLearnCB.UCB1CL.lemma_4

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 Fi(c)\mathcal F_i(c)Fi​(c) 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 and let Δmin⁡>0\Delta_{\min}>0Δmin​>0. The expected post-regret satisfies

E[RegPost]=E[∑t=1TΔIt(ct) I(ΔIt(ct)≥Δmin⁡, τIt,t(ct)>mIt(ct))]≤Kπ23,\mathbb E\big[\mathrm{Reg}_{\mathrm{Post}}\big]=\mathbb E\Big[\sum_{t=1}^T\Delta_{I_t}(c_t)\,\mathbb I\big(\Delta_{I_t}(c_t)\ge\Delta_{\min},\ \tau_{I_t,t}(c_t)>m_{I_t}(c_t)\big)\Big]\le\frac{K\pi^2}{3},E[RegPost​]=E[t=1∑T​ΔIt​​(ct​)I(ΔIt​​(ct​)≥Δmin​, τIt​,t​(ct​)>mIt​​(ct​))]≤3Kπ2​,

with mi(c)=8log⁡T/Δi(c)2m_i(c)=8\log T/\Delta_i(c)^2mi​(c)=8logT/Δi​(c)2 and τi,t(c)\tau_{i,t}(c)τi,t​(c) the number of observations of arm iii in context ccc before round ttt.

Together with Lemma 3 this splits the regret of UCB1.CL into a pre-regret controlled by the clique covering numbers and a post-regret bounded by a constant independent of TTT and of the number of contexts.

Formalization Note. The condition Δi(c)≥Δmin⁡\Delta_i(c)\ge\Delta_{\min}Δi​(c)≥Δmin​, suppressed on p. 17, is explicit; with Δmin⁡>0\Delta_{\min}>0Δmin​>0 it excludes the optimal arms, for which Lean's mi(c)=8log⁡T/0m_i(c)=8\log T/0mi​(c)=8logT/0 is 000 instead of +∞+\infty+∞. The hypothesis T≥2T\ge2T≥2 is the standing one of the mission.

Preamble
import Mathlib
import Definitions.Def_CrossLearnCB_UCB1CL_Model

open MeasureTheory ProbabilityTheory
Formal statement
namespace CrossLearnCB.UCB1CL

/-- Lemma 4, p. 20: the expected post-regret of UCB1.CL is at most `K π² / 3`. -/
theorem lemma_4 {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) (Δmin : ℝ) (hΔ : 0 < Δmin) :
    ∫ ω, regPost (gap P R) G ctx (fun s => I s ω) T Δmin ∂P ≤ K * Real.pi ^ 2 / 3 := by sorry

end CrossLearnCB.UCB1CL
Source
Balseiro et al., Contextual Bandits with Cross-Learning, arXiv:1809.09582v3, p. 20, Lemma 4; proof App. C.1, pp. 45–46
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