Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Tail inequality for the forced-sample estimator of an optimal arm

Proved
BastaniBayati.LassoBandit.forced_sample_estimator_tail

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

banditshigh-dimensional-statisticslassop2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Work in Bastani and Bayati's model: covariates XtX_tXt​ i.i.d. from PX\mathcal P_XPX​ on X⊆Rd\mathcal X\subseteq\mathbb R^dX⊆Rd, independent σ\sigmaσ-subgaussian noises εi,t\varepsilon_{i,t}εi,t​ (σ>0\sigma>0σ>0) independent of the covariates, and Assumptions 1–4 with constants xmax⁡,b,C0,h,p∗,ϕ0x_{\max}, b, C_0, h, p_*, \phi_0xmax​,b,C0​,h,p∗​,ϕ0​ and arm partition Kopt∪Ksub\mathcal K_{opt}\cup\mathcal K_{sub}Kopt​∪Ksub​; let K≥2K\ge2K≥2, d>2d>2d>2, and let s0s_0s0​ be the sparsity parameter.

Let q∈Z+q\in\mathbb Z^+q∈Z+ with q≥4⌈q0⌉q\ge4\lceil q_0\rceilq≥4⌈q0​⌉, λ1=ϕ02p∗h/(64s0xmax⁡)\lambda_1=\phi_0^2p_*h/(64s_0x_{\max})λ1​=ϕ02​p∗​h/(64s0​xmax​), and let Ti,t\mathcal T_{i,t}Ti,t​ be the forced-sample times of arm iii up to time ttt (Eq. (2)). The forced-sample estimator β^(Ti,t,λ1)\hat\beta(\mathcal T_{i,t},\lambda_1)β^​(Ti,t​,λ1​) is the LASSO estimator trained on the covariates XsX_sXs​ and the rewards Xs⊤βi+εi,sX_s^\top\beta_i+\varepsilon_{i,s}Xs⊤​βi​+εi,s​ of arm iii at the times s∈Ti,ts\in\mathcal T_{i,t}s∈Ti,t​. For every optimal arm i∈Kopti\in\mathcal K_{opt}i∈Kopt​ and every t≥(Kq)2t\ge(Kq)^2t≥(Kq)2,

Pr⁡[∥β^(Ti,t,λ1)−βi∥1>h4xmax⁡]≤5t4.\Pr\Big[\|\hat\beta(\mathcal T_{i,t},\lambda_1)-\beta_i\|_1>\frac{h}{4x_{\max}}\Big]\le\frac{5}{t^4}.Pr[∥β^​(Ti,t​,λ1​)−βi​∥1​>4xmax​h​]≤t45​.

This is Proposition 2 of Bastani and Bayati: after O(log⁡t)O(\log t)O(logt) forced samples, the forced-sample estimator of each arm is within h/(4xmax⁡)h/(4x_{\max})h/(4xmax​) of the truth with high probability, enough to separate arms whose rewards differ by the margin hhh.

Formalization Note The page states this for all i∈[K]i\in[K]i∈[K]; the statement is restricted to i∈Kopti\in\mathcal K_{opt}i∈Kopt​ because the compatibility assumption (Assumption 4) and the region UiU_iUi​ on which the proof rests exist only for optimal arms, and without them the claim fails for a suboptimal arm whose parameter is not identifiable from the covariates. At the forced times of arm iii the algorithm plays arm iii, so the statement needs no trajectory. The estimator is an arbitrary LASSO minimizer.

Preamble
import Mathlib
import Definitions.Def_BastaniBayati_LassoBandit_Basic
import Definitions.Def_BastaniBayati_LassoBandit_Model
import Definitions.Def_BastaniBayati_LassoBandit_Constants
import Definitions.Def_BastaniBayati_LassoBandit_Algorithm

open MeasureTheory ProbabilityTheory Finset
open scoped NNReal ENNReal
Formal statement
namespace BastaniBayati.LassoBandit

/-- **Proposition 2**, Bastani–Bayati, p. 286, stated for the optimal arms `i ∈ 𝒦_opt` (see the
moderation notes: the page says "for all `i ∈ [K]`", but Assumption 4 and the region `Uᵢ` on
which the proof sketch of §4.2 rests exist only for `i ∈ 𝒦_opt`). Under the model of §2.1 and
Assumptions 1–4, with `K ≥ 2`, `d > 2`, the forced-sample estimator `β̂(𝒯_{i,t}, λ₁)` — any LASSO
estimator on the forced samples `𝒯_{i,t} = 𝒯ᵢ ∩ [t]` of arm `i`, whose responses are
`X_sᵀβᵢ + ε_{i,s}` — satisfies `Pr[‖β̂(𝒯_{i,t}, λ₁) − βᵢ‖₁ > h/(4x_max)] ≤ 5/t⁴` when
`λ₁ = φ₀² p_* h/(64 s₀ x_max)`, `t ≥ (Kq)²` and `q ≥ 4⌈q₀⌉`. -/
theorem forced_sample_estimator_tail
    {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P] {d K : ℕ}
    (𝒳 : Set (Fin d → ℝ)) (PX : Measure (Fin d → ℝ)) (X : ℕ → Ω → Fin d → ℝ)
    (ε : Fin K → ℕ → Ω → ℝ) (σ : ℝ≥0) (β : Fin K → Fin d → ℝ)
    (xmax b C0 h pstar φ0 : ℝ) (Kopt Ksub : Finset (Fin K)) (s0 : ℕ)
    (hmodel : IsCovariateNoiseModel P 𝒳 PX X ε σ) (hσ : 0 < σ)
    (hA1 : ParameterSet 𝒳 β xmax b) (hA2 : MarginCondition PX β C0)
    (hA3 : ArmOptimality 𝒳 PX β Kopt Ksub h pstar)
    (hA4 : CompatibilityAssumption 𝒳 PX β Kopt h φ0)
    (hs0 : s0 = sparsity β) (hK : 2 ≤ K) (hd : 2 < d)
    (sel : LassoSelector d) (hsel : IsLassoSelector sel)
    (q t : ℕ)
    (hq : 4 * ⌈q0 d xmax h pstar (C1 s0 σ xmax φ0) (C2 s0 xmax φ0)⌉₊ ≤ q)
    (ht : (K * q) ^ 2 ≤ t) (i : Fin K) (hi : i ∈ Kopt) :
    P {ω | h / (4 * xmax) < l1Norm (lassoEst sel (forcedUpTo K q i t) (fun s => X s ω)
        (fun s => X s ω ⬝ᵥ β i + ε i s ω) (lam1 s0 xmax h pstar φ0) - β i)} ≤
      ENNReal.ofReal (5 / (t : ℝ) ^ 4) := by sorry

end BastaniBayati.LassoBandit
Source
Bastani & Bayati, Online Decision Making with High-Dimensional Covariates, Operations Research 68(1):276–294 (2020), doi:10.1287/opre.2019.1902, p. 286, Proposition 2 (q0 as displayed with Theorem 1, p. 285)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. Let PPP be a probability measure on Ω\OmegaΩ, with naturals d>2d>2d>2 and K≥2K\ge2K≥2 (arms 0,…,K−10,\dots,K-10,…,K−1). The other data are:

  • a set X⊆Rd\mathcal X\subseteq\mathbb{R}^dX⊆Rd and a measure PXP_XPX​;
  • covariates XtX_tXt​ and noises εi,t\varepsilon_{i,t}εi,t​;
  • σ>0\sigma>0σ>0;
  • arm parameters βi∈Rd\beta_i\in\mathbb{R}^dβi​∈Rd;
  • reals xmax⁡,b,C0,h,p∗,φ0x_{\max}, b, C_0, h, p_*, \varphi_0xmax​,b,C0​,h,p∗​,φ0​;
  • finite sets of arms Kopt\mathcal K_{\rm opt}Kopt​ and Ksub\mathcal K_{\rm sub}Ksub​;
  • s0=max⁡(1,max⁡i∣supp⁡βi∣)s_0=\max(1,\max_i|\operatorname{supp}\beta_i|)s0​=max(1,maxi​∣suppβi​∣).

Model hypotheses.

  • X\mathcal XX is measurable.
  • For t≥1t\ge1t≥1, XtX_tXt​ and εi,t\varepsilon_{i,t}εi,t​ are measurable, and Xt(ω)∈XX_t(\omega)\in\mathcal XXt​(ω)∈X for every ω\omegaω.
  • For t≥1t \ge 1t≥1, XtX_tXt​ has law PXP_XPX​.
  • X1,X2,…X_1,X_2,\dotsX1​,X2​,… are mutually independent.
  • All εi,t\varepsilon_{i,t}εi,t​ (t≥1t\ge1t≥1) are mutually independent.
  • The covariate sequence is independent of the noise family.
  • Each εi,t\varepsilon_{i,t}εi,t​ (t≥1t \ge 1t≥1) has Eesε≤eσ2s2/2\mathbb{E}e^{s\varepsilon}\le e^{\sigma^2s^2/2}Eesε≤eσ2s2/2 for all sss, with esεe^{s\varepsilon}esε integrable.

Assumptions 1–4.

  1. xmax⁡,b>0x_{\max},b>0xmax​,b>0; max⁡j∣xj∣≤xmax⁡\max_j|x_j|\le x_{\max}maxj​∣xj​∣≤xmax​ on X\mathcal XX; and ∥βi∥1≤b\|\beta_i\|_1\le b∥βi​∥1​≤b.
  2. C0>0C_0>0C0​>0 and PX{0<∣x⊤(βi−βj)∣≤κ}≤C0κP_X\{0<|x^\top(\beta_i-\beta_j)|\le\kappa\}\le C_0\kappaPX​{0<∣x⊤(βi​−βj​)∣≤κ}≤C0​κ for all i≠ji\ne ji=j and all κ>0\kappa>0κ>0.
  3. Arm optimality:
    • h,p∗>0h,p_*>0h,p∗​>0;
    • Kopt,Ksub\mathcal K_{\rm opt},\mathcal K_{\rm sub}Kopt​,Ksub​ partition the arms;
    • every i∈Ksubi\in\mathcal K_{\rm sub}i∈Ksub​ has x⊤βi<max⁡j≠ix⊤βj−hx^\top\beta_i<\max_{j\ne i}x^\top\beta_j-hx⊤βi​<maxj=i​x⊤βj​−h on X\mathcal XX;
    • every i∈Kopti\in\mathcal K_{\rm opt}i∈Kopt​ has PX(Ui)≥p∗P_X(U_i)\ge p_*PX​(Ui​)≥p∗​, where Ui={x∈X:max⁡j≠ix⊤βj+h<x⊤βi}U_i=\{x\in\mathcal X:\max_{j\ne i}x^\top\beta_j+h<x^\top\beta_i\}Ui​={x∈X:maxj=i​x⊤βj​+h<x⊤βi​}.
  4. φ0>0\varphi_0>0φ0​>0, and every i∈Kopti\in\mathcal K_{\rm opt}i∈Kopt​ has (∫Uixaxb dPX/PX(Ui))ab∈C(supp⁡βi,φ0)\big(\int_{U_i}x_ax_b\,dP_X/P_X(U_i)\big)_{ab}\in\mathcal C(\operatorname{supp}\beta_i,\varphi_0)(∫Ui​​xa​xb​dPX​/PX​(Ui​))ab​∈C(suppβi​,φ0​). Here C(I,φ)\mathcal C(I,\varphi)C(I,φ) is the set of positive semidefinite MMM with ∥vI∥12≤∣I∣v⊤Mv/φ2\|v_I\|_1^2\le|I|v^\top Mv/\varphi^2∥vI​∥12​≤∣I∣v⊤Mv/φ2 whenever ∥vIc∥1≤3∥vI∥1\|v_{I^c}\|_1\le3\|v_I\|_1∥vIc​∥1​≤3∥vI​∥1​.

Estimator. Fix any selection rule that returns a global minimizer of 1n∑k(Wk−Zk⊤β′)2+λ∥β′∥1\frac1n\sum_k(W_k-Z_k^\top\beta')^2+\lambda\|\beta'\|_1n1​∑k​(Wk​−Zk⊤​β′)2+λ∥β′∥1​ for every nnn, every data set and every λ≥0\lambda\ge0λ≥0. Take naturals q,tq,tq,t and an arm i∈Kopti\in\mathcal K_{\rm opt}i∈Kopt​, and assume:

  • q≥4⌈q0⌉q\ge4\lceil q_0\rceilq≥4⌈q0​⌉, where q0=max⁡{20/p∗, 4/(p∗C22), 12log⁡d/(p∗C22), 1024xmax⁡2log⁡d/(h2p∗2C1)}q_0=\max\{20/p_*,\,4/(p_*C_2^2),\,12\log d/(p_*C_2^2),\,1024x_{\max}^2\log d/(h^2p_*^2C_1)\}q0​=max{20/p∗​,4/(p∗​C22​),12logd/(p∗​C22​),1024xmax2​logd/(h2p∗2​C1​)};
  • C1=φ04/(512s02σ2xmax⁡2)C_1=\varphi_0^4/(512s_0^2\sigma^2x_{\max}^2)C1​=φ04​/(512s02​σ2xmax2​) and C2=min⁡(1/2,φ02/(256s0xmax⁡2))C_2=\min(1/2,\varphi_0^2/(256s_0x_{\max}^2))C2​=min(1/2,φ02​/(256s0​xmax2​));
  • t≥(Kq)2t\ge(Kq)^2t≥(Kq)2.

Let β^\hat\betaβ^​ be the rule's output on the rows XsX_sXs​ and responses Xs⊤βi+εi,sX_s^\top\beta_i+\varepsilon_{i,s}Xs⊤​βi​+εi,s​ for s∈Ti,ts\in\mathcal T_{i,t}s∈Ti,t​, taken in increasing sss. Here Ti,t={s≤t:s=(2m−1)Kq+j, m∈N, qi+1≤j≤q(i+1)}\mathcal T_{i,t}=\{s\le t: s=(2^m-1)Kq+j,\ m\in\mathbb N,\ qi+1\le j\le q(i+1)\}Ti,t​={s≤t:s=(2m−1)Kq+j, m∈N, qi+1≤j≤q(i+1)}. The zero vector would be used if this set were empty. The regularization is λ1=φ02p∗h/(64s0xmax⁡)\lambda_1=\varphi_0^2p_*h/(64s_0x_{\max})λ1​=φ02​p∗​h/(64s0​xmax​).

Conclusion.

P{∥β^−βi∥1>h4xmax⁡}≤5t4.P\Big\{\|\hat\beta-\beta_i\|_1>\frac{h}{4x_{\max}}\Big\}\le\frac5{t^4}.P{∥β^​−βi​∥1​>4xmax​h​}≤t45​.
  • The claim is only for i∈Kopti\in\mathcal K_{\rm opt}i∈Kopt​.
  • The estimator uses the forced times directly and does not involve any arms actually played.
  • The event need not be measurable. Its probability is the outer measure.

Degenerate cases.

  • q0≥20/p∗>0q_0\ge20/p_*>0q0​≥20/p∗​>0 forces q≥4q\ge4q≥4, hence t≥64t\ge64t≥64. So 5/t45/t^45/t4 involves no division by zero.
  • Ti,t≠∅\mathcal T_{i,t}\ne\emptysetTi,t​=∅.
  • X≠∅\mathcal X\ne\emptysetX=∅, because Ω\OmegaΩ is nonempty and X1(ω)∈XX_1(\omega)\in\mathcal XX1​(ω)∈X.
  • Kopt≠∅\mathcal K_{\rm opt}\ne\emptysetKopt​=∅, because it contains iii.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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