Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1, p. 17 — UCB1.CL has E[Reg] ≤ 16 log T Σκ(G_i)/Δ* + Kπ²/3 and ≤ 17√(T log T Σκ(G_i)) + Kπ²/3

Proved
CrossLearnCB.UCB1CL.theorem_1

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

clique-covercontextual-banditscross-learningp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1regret-bound

Consider the contextual bandit problem with cross-learning, with stochastic rewards and adversarial contexts. There are K≥1K\ge1K≥1 arms and C≥1C\ge1C≥1 contexts. The rewards ri,t(c)∈[0,1]r_{i,t}(c)\in[0,1]ri,t​(c)∈[0,1] are independent across rounds (arbitrarily correlated within a round), and ri,t(c)r_{i,t}(c)ri,t​(c) has a fixed law Fi(c)\mathcal F_i(c)Fi​(c) with mean μi(c)\mu_i(c)μi​(c); write μ⋆(c)=max⁡iμi(c)\mu^\star(c)=\max_i\mu_i(c)μ⋆(c)=maxi​μi​(c) and Δi(c)=μ⋆(c)−μi(c)\Delta_i(c)=\mu^\star(c)-\mu_i(c)Δi​(c)=μ⋆(c)−μi​(c). The contexts c1,c2,…c_1,c_2,\dotsc1​,c2​,… are an arbitrary sequence fixed in advance. Each arm iii has a cross-learning graph GiG_iGi​ on the contexts with all self-loops, and κ(Gi)\kappa(G_i)κ(Gi​) is its clique covering number. Let T≥2T\ge2T≥2 and let (It)(I_t)(It​) be an arm process run by UCB1.CL (Algorithm 1), with ties broken by any non-anticipating rule. Write κˉ=1K∑i=1Kκ(Gi)\bar\kappa=\frac1K\sum_{i=1}^K\kappa(G_i)κˉ=K1​∑i=1K​κ(Gi​) and Reg=∑t=1TΔIt(ct)\mathrm{Reg}=\sum_{t=1}^T\Delta_{I_t}(c_t)Reg=∑t=1T​ΔIt​​(ct​). Then:

  1. (gap-dependent) for every Δ∗>0\Delta^*>0Δ∗>0 with Δ∗≤Δi(c)\Delta^*\le\Delta_i(c)Δ∗≤Δi​(c) whenever Δi(c)>0\Delta_i(c)>0Δi​(c)>0,
E[Reg]≤16log⁡TΔ∗∑i=1Kκ(Gi)+Kπ23=O(Kκˉlog⁡TΔ∗);\mathbb E[\mathrm{Reg}]\le\frac{16\log T}{\Delta^*}\sum_{i=1}^K\kappa(G_i)+\frac{K\pi^2}{3}=O\Big(\frac{K\bar\kappa\log T}{\Delta^*}\Big);E[Reg]≤Δ∗16logT​i=1∑K​κ(Gi​)+3Kπ2​=O(Δ∗KκˉlogT​);
  1. (gap-independent)
E[Reg]≤17Tlog⁡T∑i=1Kκ(Gi)+Kπ23=O(κˉKTlog⁡T).\mathbb E[\mathrm{Reg}]\le17\sqrt{T\log T\sum_{i=1}^K\kappa(G_i)}+\frac{K\pi^2}{3}=O\big(\sqrt{\bar\kappa KT\log T}\big).E[Reg]≤17TlogTi=1∑K​κ(Gi​)​+3Kπ2​=O(κˉKTlogT​).

With complete cross-learning (κ(Gi)=1\kappa(G_i)=1κ(Gi​)=1) the regret is O(KTlog⁡T)O(\sqrt{KT\log T})O(KTlogT​), independent of the number of contexts; with no cross-learning (κ(Gi)=C\kappa(G_i)=Cκ(Gi​)=C) it is O(KCTlog⁡T)O(\sqrt{KCT\log T})O(KCTlogT​), the bound of running a separate UCB1 per context.

Formalization Note. The constants are those of the paper's proof: 16 from Lemma 3, Kπ2/3K\pi^2/3Kπ2/3 from Lemma 4, and 17=1+1617=1+1617=1+16 from the choice Δmin⁡=κˉKlog⁡T/T\Delta_{\min}=\sqrt{\bar\kappa K\log T/T}Δmin​=κˉKlogT/T​ on p. 20. Three printed slips are repaired. (i) As printed, Δ∗=min⁡i,c(μ⋆(c)−μi(c))\Delta^*=\min_{i,c}(\mu^\star(c)-\mu_i(c))Δ∗=mini,c​(μ⋆(c)−μi​(c)) includes the optimal arms and is 000, so "Δ∗>0\Delta^*>0Δ∗>0" can never hold; Δ∗\Delta^*Δ∗ is posed as a positive lower bound on the positive gaps, which is what the proof uses. (ii) Display (5) carries an extra factor KKK; Lemma 3's constant, which matches the O(Kκˉlog⁡T/Δ∗)O(K\bar\kappa\log T/\Delta^*)O(KκˉlogT/Δ∗) of the theorem, is used. (iii) T≥2T\ge2T≥2 is added (at T=1T=1T=1, log⁡T=0\log T=0logT=0). The regret is the expected pseudo-regret of p. 17; it equals the expected realised regret because ItI_tIt​ does not depend on round ttt's rewards. Contexts are an oblivious deterministic sequence, so the bound holds for each sequence. The arm of round ttt is required to be a measurable function of the rewards of earlier rounds, which makes the expectation meaningful and keeps tie-breaking non-anticipating.

Preamble
import Mathlib
import Definitions.Def_CrossLearnCB_UCB1CL_Model

open MeasureTheory ProbabilityTheory
Formal statement
namespace CrossLearnCB.UCB1CL

/-- Theorem 1, p. 17 (with the constants of its proof, (5) and p. 20): UCB1.CL with stochastic
rewards and an oblivious adversarial context sequence has expected pseudo-regret at most
`16 log T Σ_i κ(G_i) / Δ* + K π² / 3` for every `Δ* > 0` below all positive gaps, and at most
`17 √(T log T Σ_i κ(G_i)) + K π² / 3`, for `T ≥ 2`. -/
theorem theorem_1 {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) :
    (∀ Δs : ℝ, 0 < Δs → (∀ i c, 0 < gap P R i c → Δs ≤ gap P R i c) →
      ∫ ω, pseudoRegret (gap P R) ctx (fun s => I s ω) T ∂P
        ≤ 16 * Real.log T * (∑ i, (cliqueCoverNumber (G i) : ℝ)) / Δs + K * Real.pi ^ 2 / 3) ∧
    ∫ ω, pseudoRegret (gap P R) ctx (fun s => I s ω) T ∂P
      ≤ 17 * Real.sqrt (T * Real.log T * ∑ i, (cliqueCoverNumber (G i) : ℝ))
        + K * Real.pi ^ 2 / 3 := by sorry

end CrossLearnCB.UCB1CL
Source
Balseiro et al., Contextual Bandits with Cross-Learning, arXiv:1809.09582v3, p. 17, Theorem 1; p. 20, (5) and the gap-independent bound
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