Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3, p. 18 — Reg_Pre ≤ 16 log T Σ_i κ(G_i)/Δ_min for every arm sequence (T ≥ 2)

Proved
CrossLearnCB.UCB1CL.lemma_3

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

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

Let T≥2T\ge2T≥2, let G1,…,GKG_1,\dots,G_KG1​,…,GK​ be cross-learning graphs on [C][C][C] containing all self-loops, let the gaps Δi(c)\Delta_i(c)Δi​(c) be any numbers in [0,1][0,1][0,1], and let Δmin⁡>0\Delta_{\min}>0Δmin​>0. For every context sequence c1,…,cTc_1,\dots,c_Tc1​,…,cT​ and every arm sequence I1,…,ITI_1,\dots,I_TI1​,…,IT​, the pre-regret

RegPre=∑t=1TΔIt(ct) I(ΔIt(ct)≥Δmin⁡, τIt,t(ct)≤mIt(ct)),mi(c)=8log⁡TΔi(c)2,\mathrm{Reg}_{\mathrm{Pre}}=\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)\le m_{I_t}(c_t)\big),\qquad m_i(c)=\frac{8\log T}{\Delta_i(c)^2},RegPre​=t=1∑T​ΔIt​​(ct​)I(ΔIt​​(ct​)≥Δmin​, τIt​,t​(ct​)≤mIt​​(ct​)),mi​(c)=Δi​(c)28logT​,

satisfies

RegPre≤16log⁡TΔmin⁡∑i=1Kκ(Gi),\mathrm{Reg}_{\mathrm{Pre}}\le\frac{16\log T}{\Delta_{\min}}\sum_{i=1}^K\kappa(G_i),RegPre​≤Δmin​16logT​i=1∑K​κ(Gi​),

where τi,t(c)\tau_{i,t}(c)τi,t​(c) is the number of observations of arm iii in context ccc before round ttt and κ(Gi)\kappa(G_i)κ(Gi​) is the clique covering number of GiG_iGi​.

This is the main technical contribution of the analysis of UCB1.CL: the regret incurred while an arm is still under-observed in a context scales with the number of cliques needed to cover each cross-learning graph, not with the number of contexts.

Formalization Note. The paper states the bound for E[RegPre]\mathbb E[\mathrm{Reg}_{\mathrm{Pre}}]E[RegPre​], but its proof ends with the pathwise inequality (p. 20) and never uses the algorithm or the randomness; the expectation bound follows by integrating. The hypothesis T≥2T\ge2T≥2 is added: at T=1T=1T=1 the right side is 000 while one round can carry regret. The condition Δi(c)≥Δmin⁡\Delta_i(c)\ge\Delta_{\min}Δi​(c)≥Δmin​, suppressed on p. 17, is explicit in the indicator. The gaps are an arbitrary function with values in [0,1][0,1][0,1]; for the bandit model they are μ⋆(c)−μi(c)\mu^\star(c)-\mu_i(c)μ⋆(c)−μi​(c), which lies in [0,1][0,1][0,1] because rewards do.

Preamble
import Mathlib
import Definitions.Def_CrossLearnCB_UCB1CL_Model

open MeasureTheory ProbabilityTheory
Formal statement
namespace CrossLearnCB.UCB1CL

/-- Lemma 3, p. 18, in the pathwise form of its proof's last display (p. 20): for every arm
sequence and context sequence, `Reg_Pre ≤ 16 log T (Σ_i κ(G_i)) / Δ_min`, for `T ≥ 2`. -/
theorem lemma_3 {K C : ℕ} (gap : Fin K → Fin C → ℝ) (hgap : ∀ i c, gap i c ∈ Set.Icc (0 : ℝ) 1)
    (G : Fin K → Fin C → Fin C → Prop) (hG : HasSelfLoops G) (ctx : ℕ → Fin C) (I : ℕ → Fin K)
    (T : ℕ) (hT : 2 ≤ T) (Δmin : ℝ) (hΔ : 0 < Δmin) :
    regPre gap G ctx I T Δmin
      ≤ 16 * Real.log T * (∑ i, (cliqueCoverNumber (G i) : ℝ)) / Δmin := by sorry

end CrossLearnCB.UCB1CL
Source
Balseiro et al., Contextual Bandits with Cross-Learning, arXiv:1809.09582v3, p. 18, Lemma 3; pathwise form p. 20 (end of the proof of Lemma 3)
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