Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 13 (corrected: two-sided noise) — OLS error immediately after initialization

Open
MostlyExplorationFree.GreedyBandit.Supplement.lemma_13

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

Let K≥2K\ge2K≥2, d,m≥1d,m\ge1d,m≥1, and let the independent context/noise model hold with σ,xmax⁡,h,δ>0\sigma,x_{\max},h,\delta>0σ,xmax​,h,δ>0. For any arm iii, at the end of the KmKmKm forced initialization periods,

P[Hiδ∩G‾i,Kmθ1]≤2d qδexp⁡ ⁣(−θ12δ2dσ2),θ1=h2xmax⁡.\mathbb P[H_i^\delta\cap\overline G_{i,Km}^{\theta_1}]\le2d\,q_\delta\exp\!\left(-\frac{\theta_1^2\delta}{2d\sigma^2}\right),\qquad\theta_1=\frac{h}{2x_{\max}}.P[Hiδ​∩Gi,Kmθ1​​]≤2dqδ​exp(−2dσ2θ12​δ​),θ1​=2xmax​h​.

Here qδq_\deltaqδ​ is the probability that mmm independent contexts give a Gram minimum eigenvalue at least δ\deltaδ, HiδH_i^\deltaHiδ​ is the corresponding event for arm iii's forced samples, and GGG is the strict Euclidean estimation-accuracy event.

This is the initial random-design error bound supporting Theorems 2 and 4; it retains the multiplicative probability of a good Gram matrix. Bounded contexts, a margin condition and positive-definiteness are not needed for this estimate.

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.
Preamble
import Mathlib
import Definitions.Def_MostlyExplorationFree_GreedyBandit_Supplement_Events
Formal statement
namespace MostlyExplorationFree.GreedyBandit.Supplement

open Matrix MeasureTheory ProbabilityTheory

theorem lemma_13
    {Ω : 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 < σ) (hxmax : 0 < xmax) (hh : 0 < h)
    (hmodel : IsModel P μ E σ)
    (δ : ℝ) (hδ : 0 < δ) (i : Fin K) :
    P.real (H E m δ i ∩ (G E m (theta1 h xmax) i (K * m))ᶜ) ≤
      2 * d * sampleGood P E m δ *
        Real.exp (-(theta1 h xmax) ^ 2 * δ / (2 * d * σ ^ 2)) := by sorry

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