Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 15 (corrected: J threshold and two-sided noise) — Gram growth and exclusion of suboptimal arms

Open
MostlyExplorationFree.GreedyBandit.Supplement.lemma_15

by mikedeng1 · Nov 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

contextual-banditgreedy-algorithmleast-squaresp2o-batch-supp500p2o-correctedp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1regret

Assume the independent model and Assumptions 1 and 4, with K≥2K\ge2K≥2, d,m≥1d,m\ge1d,m≥1, σ>0\sigma>0σ>0, 0<γ<10<\gamma<10<γ<1 and p≥Km+1p\ge Km+1p≥Km+1. Write θ1=h/(2xmax⁡)\theta_1=h/(2x_{\max})θ1​=h/(2xmax​), and let JJJ and GGG be the covariance and estimation-accuracy events. For every t≥pt\ge pt≥p and i∈Kopti\in K_{\rm opt}i∈Kopt​,

P[J‾i,tλ1(1−γ)∩⋂l=1K⋂j=Kmt−1Gl,jθ1]≤dexp⁡[−D1(γ)(t−m∣Ksub∣)].\mathbb P\left[\overline J_{i,t}^{\lambda_1(1-\gamma)}\cap\bigcap_{l=1}^K\bigcap_{j=Km}^{t-1}G_{l,j}^{\theta_1}\right]\le d\exp[-D_1(\gamma)(t-m|K_{\rm sub}|)].P​Ji,tλ1​(1−γ)​∩l=1⋂K​j=Km⋂t−1​Gl,jθ1​​​≤dexp[−D1​(γ)(t−m∣Ksub​∣)].

In addition, for every t≥Km+1t\ge Km+1t≥Km+1 and i∈Ksubi\in K_{\rm sub}i∈Ksub​,

P[πt=i and ⋂l=1KGl,t−1θ1]=0.\mathbb P\left[\pi_t=i\ \text{and}\ \bigcap_{l=1}^KG_{l,t-1}^{\theta_1}\right]=0.P[πt​=i and l=1⋂K​Gl,t−1θ1​​]=0.

Here D1(γ)=λ1[γ+(1−γ)log⁡(1−γ)]/xmax⁡2D_1(\gamma)=\lambda_1[\gamma+(1-\gamma)\log(1-\gamma)]/x_{\max}^2D1​(γ)=λ1​[γ+(1−γ)log(1−γ)]/xmax2​.

The two conclusions give covariance growth for optimal arms and exclusion of uniformly suboptimal arms, jointly supporting Theorems 2 and 4.

Differences from the source:

  • generalization: The context distribution is described by a Lebesgue density. → The context law is an arbitrary probability measure.; reason: The results use only the law, and the paper itself includes discrete Rademacher examples on pp. 9–11.
  • correction: Definition 1 gives the MGF bound only at positive arguments and allows zero noise scale. → The noise has a two-sided subgaussian MGF bound and the variance proxy scale is positive.; reason: The estimation arguments require mean-zero two-sided tails; the displayed bounds divide by the squared scale. The noiseless case is excluded rather than assigned Lean division-by-zero values.
  • encoding: The paper uses arms 1 through K, Euclidean vectors and time from 1. → Arms are Fin K, vectors use the published l2norm, and every permitted model has d at least 1 and K at least 2; time differences in formulas are real.; reason: This preserves the source domain and avoids an empty Rayleigh sphere, empty arm maxima and truncated subtraction.
  • generalization: The greedy algorithm starts at zero, and Greedy-First starts at random. → The supporting lemmas allow any jointly distributed initial estimates independent of all primitive observations and tie variables.; reason: On a positive-Gram event the estimate is OLS; the other arguments need only accuracy of the resulting estimates. Both algorithms are covered.
  • correction: The display defining J on p. 53 prints λt − m|K_sub|. → The threshold is λ(t − m|K_sub|).; reason: The explicit step 3 on p. 20 and the Chernoff application on p. 55 both put the entire effective sample size inside the product.
  • reading: The second clause is phrased as conditioning on an accuracy event. → The joint event of a suboptimal pull and that accuracy event has probability zero.; reason: This is the undivided conditional claim and also covers accuracy events of probability zero.
  • generalization: Assumption 4 requires each suboptimal arm to lose by more than h at every x in the context support 𝒳. → The suboptimal-arm condition is required only for μ-almost every x.; reason: Every use of the condition is through a context X_t with law μ, so a μ-null exception set changes no probability; the almost-sure condition is implied by the pointwise one on the support.
Preamble
import Mathlib
import Definitions.Def_MostlyExplorationFree_GreedyBandit_Supplement_Events
Formal statement
namespace MostlyExplorationFree.GreedyBandit.Supplement

open Matrix MeasureTheory ProbabilityTheory

theorem lemma_15
    {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) {d K : ℕ} [NeZero K]
    (μ : Measure (Fin d → ℝ)) (E : Environment Ω d K)
    (σ xmax h : ℝ) (m : ℕ) (hd : 1 ≤ d) (hK : 2 ≤ K) (hm : 1 ≤ m)
    (hσ : 0 < σ)
    (hmodel : IsModel P μ E σ)
    (bmax lam1 : ℝ) (Ksub : Finset (Fin K))
    (hparams : ParameterSet μ E.β xmax bmax)
    (hpd : PositiveDefiniteness μ E.β Ksub h lam1)
    (γ : ℝ) (hγ : 0 < γ ∧ γ < 1) (p : ℕ) (hp : K * m + 1 ≤ p) :
    (∀ t : ℕ, p ≤ t → ∀ i : Fin K, i ∉ Ksub →
      P.real ((J E m Ksub (lam1 * (1 - γ)) i t)ᶜ ∩
        AccurateThrough E m (theta1 h xmax) t) ≤
        d * Real.exp (-D1 lam1 xmax γ * ((t : ℝ) - (m : ℝ) * Ksub.card))) ∧
    (∀ t : ℕ, K * m + 1 ≤ t → ∀ i ∈ Ksub,
      P {ω | arm E m t ω = i ∧ ∀ l, ω ∈ G E m (theta1 h xmax) l (t - 1)} = 0) := by sorry

end MostlyExplorationFree.GreedyBandit.Supplement
Source
Bastani, Bayati & Khosravi, arXiv:1704.09011v8, p. 54, Lemma 15 (governing context pp. 7–8, 19–25 and Appendix F pp. 53–59)

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