Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 5, p. 15 — ℙ[‖β̂(S_{i,t}) − β_i‖₂ ≥ χ and λ_min(Σ̂(S_{i,t})) ≥ λt] ≤ 2d exp(−C₂t²χ²/n) for n ≥ |S_{i,t}|

Proved
MostlyExplorationFree.GreedyBandit.lemma_5

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

concentration-inequalitycontextual-banditleast-squaresp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Consider the Greedy Bandit run on the two-armed linear contextual bandit with d≥1d \ge 1d≥1, σ\sigmaσ-sub-Gaussian noise (σ>0\sigma > 0σ>0) and contexts bounded by xmax⁡x_{\max}xmax​ in ℓ2\ell_2ℓ2​. Fix an arm iii, a time t≥1t \ge 1t≥1, and a deterministic integer nnn with n≥∣Si,t∣n \ge |\mathcal S_{i,t}|n≥∣Si,t​∣ on every outcome. For λ,χ>0\lambda, \chi > 0λ,χ>0 let C2=λ2/(2dσ2xmax⁡2)C_2 = \lambda^2/(2d\sigma^2x_{\max}^2)C2​=λ2/(2dσ2xmax2​). Then

P[∥β^(Si,t)−βi∥2≥χ  and  λmin⁡(Σ^(Si,t))≥λt]≤2dexp⁡(−C2t2χ2/n).\mathbb P\Big[\big\|\hat\beta(\mathcal S_{i,t}) - \beta_i\big\|_2 \ge \chi \ \text{ and } \ \lambda_{\min}\big(\hat\Sigma(\mathcal S_{i,t})\big) \ge \lambda t\Big] \le 2d\exp\big(-C_2 t^2 \chi^2/n\big).P[​β^​(Si,t​)−βi​​2​≥χ  and  λmin​(Σ^(Si,t​))≥λt]≤2dexp(−C2​t2χ2/n).

Although the samples of arm iii are chosen adaptively (and so are not i.i.d.), the least-squares estimate is accurate whenever the sample covariance is well conditioned.

Formalization Note Neither the margin condition nor covariate diversity is assumed. Here β^(Si,t)\hat\beta(\mathcal S_{i,t})β^​(Si,t​) and Σ^(Si,t)\hat\Sigma(\mathcal S_{i,t})Σ^(Si,t​) are the quantities after time ttt. For n=0n = 0n=0 the bound reads 2d2d2d because of Lean's division by zero; that case is trivial anyway, since ∣Si,t∣=0|\mathcal S_{i,t}| = 0∣Si,t​∣=0 makes the event empty.

Preamble
import Mathlib
import Definitions.Def_MostlyExplorationFree_GreedyBandit_Model

open Matrix MeasureTheory ProbabilityTheory
Formal statement
namespace MostlyExplorationFree.GreedyBandit

theorem lemma_5 {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) {d : ℕ} (hd : 1 ≤ d)
    (μ : Measure (Fin d → ℝ)) (X : ℕ → Ω → Fin d → ℝ) (ε : Fin 2 → ℕ → Ω → ℝ)
    (W : ℕ → Ω → Bool) (σ : ℝ) (hσ : 0 < σ) (β : Fin 2 → Fin d → ℝ) (xmax bmax : ℝ)
    (hmodel : IsGreedyModel P μ X ε W σ) (hA1 : ParameterSet μ β xmax bmax)
    (i : Fin 2) (t : ℕ) (ht : 1 ≤ t) (lam χ : ℝ) (hlam : 0 < lam) (hχ : 0 < χ)
    (n : ℕ) (hn : ∀ ω, (played β X ε W i t ω).card ≤ n) :
    (P {ω | χ ≤ l2norm (est β X ε W i t ω - β i) ∧
        lam * t ≤ lambdaMin (gram β X ε W i t ω)}).toReal
      ≤ 2 * d * Real.exp (-(C2 lam d σ xmax * t ^ 2 * χ ^ 2 / n)) := by sorry

end MostlyExplorationFree.GreedyBandit
Source
Bastani, Bayati & Khosravi, arXiv:1704.09011v8, p. 15, Lemma 5
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