Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 6, p. 16 (K = 2) — r_t ≤ 4C₀C̄x²_max(log d)^{3/2}/(C₃(t−1)) + 4b_max x_max max_i ℙ[λ_min(Σ̂(S_{i,t−1})) < λ₀(t−1)/4]

Proved
MostlyExplorationFree.GreedyBandit.lemma_6

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

contextual-banditgreedy-algorithmmargin-conditionp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1regret

Consider the Greedy Bandit run on the two-armed linear contextual bandit with d≥2d \ge 2d≥2, σ\sigmaσ-sub-Gaussian noise (σ>0\sigma > 0σ>0), the parameter-set assumption and the margin condition with constant C0C_0C0​. Let λ0>0\lambda_0 > 0λ0​>0, C3=λ02/(32dσ2xmax⁡2)C_3 = \lambda_0^2/(32d\sigma^2x_{\max}^2)C3​=λ02​/(32dσ2xmax2​), let Cˉ\bar CCˉ be the constant of display (4), and let F‾i,tλ\overline{\mathcal F}{}^{\lambda}_{i,t}Fi,tλ​ be the event λmin⁡(Σ^(Si,t))<λt\lambda_{\min}(\hat\Sigma(\mathcal S_{i,t})) < \lambda tλmin​(Σ^(Si,t​))<λt (the complement of Fi,tλ\mathcal F^{\lambda}_{i,t}Fi,tλ​ of display (14)). Then the instantaneous expected regret at every time t≥2t \ge 2t≥2 satisfies

rt≤4C0Cˉxmax⁡2(log⁡d)3/2C3⋅1t−1+4bmax⁡xmax⁡max⁡iP[F‾i,t−1λ0/4].r_t \le \frac{4 C_0 \bar C x_{\max}^2 (\log d)^{3/2}}{C_3} \cdot \frac{1}{t-1} + 4 b_{\max} x_{\max} \max_{i} \mathbb P\big[\overline{\mathcal F}{}^{\lambda_0/4}_{i,t-1}\big].rt​≤C3​4C0​Cˉxmax2​(logd)3/2​⋅t−11​+4bmax​xmax​imax​P[Fi,t−1λ0​/4​].

Combined with Lemma 4, which bounds the probabilities in the second term, summing this over ttt gives Theorem 1.

Formalization Note

  1. The paper states the lemma for KKK arms with factors 4(K−1)4(K-1)4(K−1); here K=2K = 2K=2, the only case Theorem 1 uses, so the factor is 444.
  2. Covariate diversity is not assumed: λ0\lambda_0λ0​ is any positive number, and the lemma holds for it (the paper notes on p. 23 that Theorem 1's proof uses Assumption 3 only through Lemma 4).
Preamble
import Mathlib
import Definitions.Def_MostlyExplorationFree_GreedyBandit_Model

open Matrix MeasureTheory ProbabilityTheory
Formal statement
namespace MostlyExplorationFree.GreedyBandit

theorem lemma_6 {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) {d : ℕ} (hd : 2 ≤ d)
    (μ : Measure (Fin d → ℝ)) (X : ℕ → Ω → Fin d → ℝ) (ε : Fin 2 → ℕ → Ω → ℝ)
    (W : ℕ → Ω → Bool) (σ : ℝ) (hσ : 0 < σ) (β : Fin 2 → Fin d → ℝ)
    (xmax bmax C0 lam0 : ℝ) (hlam0 : 0 < lam0)
    (hmodel : IsGreedyModel P μ X ε W σ) (hA1 : ParameterSet μ β xmax bmax)
    (hA2 : MarginCondition μ β C0) (t : ℕ) (ht : 2 ≤ t) :
    instRegret β X ε W P t
      ≤ 4 * C0 * Cbar d * xmax ^ 2 * Real.log d ^ (3 / 2 : ℝ) / C3 lam0 d σ xmax
          * (1 / ((t : ℝ) - 1))
        + 4 * bmax * xmax *
          max (P {ω | lambdaMin (gram β X ε W 0 (t - 1) ω) < lam0 * ((t : ℝ) - 1) / 4}).toReal
              (P {ω | lambdaMin (gram β X ε W 1 (t - 1) ω) < lam0 * ((t : ℝ) - 1) / 4}).toReal := by sorry

end MostlyExplorationFree.GreedyBandit
Source
Bastani, Bayati & Khosravi, arXiv:1704.09011v8, p. 16, Lemma 6 (restated p. 39 and proved pp. 39–42, Appendix C; events (14) p. 39), specialised to K = 2
Human review
  • Endorsed by Shuze Chen · Oct 22, 2026

    Confirmed by the moderator at approval.

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