Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

LASSO tail inequality for adapted observations

Proved
BastaniBayati.LassoBandit.lasso_tail_inequality_adapted

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

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

Consider a linear model Y=Xβ+εY=\mathbf X\beta+\varepsilonY=Xβ+ε with n≥1n\ge1n≥1 rows X1,…,Xn∈RdX_1,\dots,X_n\in\mathbb R^dX1​,…,Xn​∈Rd observed sequentially on a filtered probability space (Ft)(\mathcal F_t)(Ft​): each row XtX_tXt​ is Ft−1\mathcal F_{t-1}Ft−1​-measurable, so it may depend on the past rows and responses {Xt′,Y(t′)}t′<t\{X_{t'},Y(t')\}_{t'<t}{Xt′​,Y(t′)}t′<t​; each noise εt\varepsilon_tεt​ is Ft\mathcal F_tFt​-measurable and σ\sigmaσ-subgaussian conditionally on Ft−1\mathcal F_{t-1}Ft−1​, i.e. E[esεt∣Ft−1]≤eσ2s2/2\mathbb E[e^{s\varepsilon_t}\mid\mathcal F_{t-1}]\le e^{\sigma^2s^2/2}E[esεt​∣Ft−1​]≤eσ2s2/2 for all s∈Rs\in\mathbb Rs∈R (σ>0\sigma>0σ>0). Assume every realization satisfies ∥Xt∥∞≤xmax⁡\|X_t\|_\infty\le x_{\max}∥Xt​∥∞​≤xmax​ (xmax⁡>0x_{\max}>0xmax​>0), and ∥β∥0=s0≥1\|\beta\|_0=s_0\ge1∥β∥0​=s0​≥1.

Then for any ϕ>0\phi>0ϕ>0 and χ>0\chi>0χ>0, every LASSO estimator β^X,Y(λ)\hat\beta_{\mathbf X,Y}(\lambda)β^​X,Y​(λ) with λ=χϕ2/(4s0)\lambda=\chi\phi^2/(4s_0)λ=χϕ2/(4s0​) satisfies

Pr⁡[∥β^X,Y(λ)−β∥1>χ]≤2exp⁡[−C1(ϕ)nχ2+log⁡d]+Pr⁡[Σ^(X)∉C(supp(β),ϕ)],\Pr\big[\|\hat\beta_{\mathbf X,Y}(\lambda)-\beta\|_1>\chi\big]\le 2\exp\big[-C_1(\phi)n\chi^2+\log d\big]+\Pr\big[\hat\Sigma(\mathbf X)\notin\mathcal C(\mathrm{supp}(\beta),\phi)\big],Pr[∥β^​X,Y​(λ)−β∥1​>χ]≤2exp[−C1​(ϕ)nχ2+logd]+Pr[Σ^(X)∈/C(supp(β),ϕ)],

where C1(ϕ)=ϕ4/(512s02σ2xmax⁡2)C_1(\phi)=\phi^4/(512s_0^2\sigma^2x_{\max}^2)C1​(ϕ)=ϕ4/(512s02​σ2xmax2​) and Σ^(X)=X⊤X/n\hat\Sigma(\mathbf X)=\mathbf X^\top\mathbf X/nΣ^(X)=X⊤X/n.

This is Proposition 1 of Bastani and Bayati: a LASSO oracle inequality that does not need i.i.d. rows, which is what allows the all-sample estimators of the LASSO Bandit, trained on adaptively collected data, to be analysed.

Formalization Note Rows are indexed 0,…,n−10,\dots,n-10,…,n−1, with row ttt measurable for Ft\mathcal F_tFt​ and noise ttt measurable for Ft+1\mathcal F_{t+1}Ft+1​ and conditionally subgaussian given Ft\mathcal F_tFt​. The conditionally subgaussian noise is the version the paper says it proves (paragraph after Remark 6); n≥1n\ge1n≥1, s0≥1s_0\ge1s0​≥1, σ>0\sigma>0σ>0, xmax⁡>0x_{\max}>0xmax​>0 are made explicit. The estimator is an arbitrary minimizer for each outcome; probabilities of possibly non-measurable events are outer measures.

Preamble
import Mathlib
import Definitions.Def_BastaniBayati_LassoBandit_Basic
import Definitions.Def_BastaniBayati_LassoBandit_Constants

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

/-- **Proposition 1** (LASSO Tail Inequality for Adapted Observations), Bastani–Bayati, p. 283.
Rows `X₀, …, X_{n−1}` (the paper's `X₁, …, Xₙ`) and noises `ε₀, …, ε_{n−1}` on a filtered
probability space: `X_t` is `ℱ_t`-measurable (it may depend on the past rows and responses),
`ε_t` is `ℱ_{t+1}`-measurable and `σ`-subgaussian conditionally on `ℱ_t`, the responses are
`Y(t) = X_tᵀβ + ε_t`, `‖β‖₀ = s₀ ≥ 1`, every realization has `‖X_t‖_∞ ≤ x_max`. Then for every
`φ, χ > 0`, every LASSO estimator `β̂` with `λ = χφ²/(4s₀)` satisfies
`Pr[‖β̂ − β‖₁ > χ] ≤ 2 exp[−C₁(φ) n χ² + log d] + Pr[Σ̂(X) ∉ 𝒞(supp(β), φ)]`. -/
theorem lasso_tail_inequality_adapted {Ω : Type*} [mΩ : MeasurableSpace Ω] (P : Measure Ω)
    [IsProbabilityMeasure P] {d n : ℕ} (ℱ : Filtration ℕ mΩ) (X : ℕ → Ω → Fin d → ℝ)
    (ε : ℕ → Ω → ℝ) (β : Fin d → ℝ) (σ : ℝ≥0) (xmax : ℝ) (s0 : ℕ) (φ χ : ℝ)
    (βhat : Ω → Fin d → ℝ)
    (hn : 1 ≤ n) (hσ : 0 < σ) (hxmax : 0 < xmax)
    (hs0 : (supp β).card = s0) (hs0pos : 1 ≤ s0) (hφ : 0 < φ) (hχ : 0 < χ)
    (hX_adapted : ∀ t < n, Measurable[ℱ t] (X t))
    (hε_meas : ∀ t < n, Measurable[ℱ (t + 1)] (ε t))
    (hε_int : ∀ t < n, ∀ s : ℝ, Integrable (fun ω => Real.exp (s * ε t ω)) P)
    (hε_subg : ∀ t < n, ∀ s : ℝ,
      P[fun ω => Real.exp (s * ε t ω) | ℱ t] ≤ᵐ[P] fun _ => Real.exp ((σ : ℝ) ^ 2 * s ^ 2 / 2))
    (hbound : ∀ t < n, ∀ ω, ‖X t ω‖ ≤ xmax)
    (hβhat : ∀ ω, IsLassoMinimizer (fun k : Fin n => X k ω) (fun k : Fin n => X k ω ⬝ᵥ β + ε k ω)
      (χ * φ ^ 2 / (4 * s0)) (βhat ω)) :
    P {ω | χ < l1Norm (βhat ω - β)} ≤
      ENNReal.ofReal (2 * Real.exp (-(C1 s0 σ xmax φ) * n * χ ^ 2 + Real.log d)) +
        P {ω | sampleCov (fun k : Fin n => X k ω) ∉ compatSet (supp β) φ} := 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. 283, Proposition 1 (setting of §3.2 and the paragraph after Remark 6, pp. 283–284)
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 a filtration (Ft)t∈N(\mathcal F_t)_{t\in\mathbb N}(Ft​)t∈N​. The other data are:

  • naturals ddd and n≥1n\ge1n≥1;
  • random rows Xt:Ω→RdX_t:\Omega\to\mathbb{R}^dXt​:Ω→Rd and noises εt:Ω→R\varepsilon_t:\Omega\to\mathbb{R}εt​:Ω→R;
  • a fixed β∈Rd\beta\in\mathbb{R}^dβ∈Rd whose support supp⁡β={j:βj≠0}\operatorname{supp}\beta=\{j:\beta_j\ne0\}suppβ={j:βj​=0} has exactly s0≥1s_0\ge1s0​≥1 elements;
  • reals σ>0\sigma>0σ>0, xmax⁡>0x_{\max}>0xmax​>0, φ>0\varphi>0φ>0 and χ>0\chi>0χ>0;
  • a map β^:Ω→Rd\hat\beta:\Omega\to\mathbb{R}^dβ^​:Ω→Rd.

Hypotheses (for every t<nt<nt<n):

  • XtX_tXt​ is Ft\mathcal F_tFt​-measurable, and εt\varepsilon_tεt​ is Ft+1\mathcal F_{t+1}Ft+1​-measurable.
  • For all s∈Rs\in\mathbb{R}s∈R, esεte^{s\varepsilon_t}esεt​ is integrable and, PPP-almost surely,
E[esεt∣Ft]≤eσ2s2/2.\mathbb{E}\big[e^{s\varepsilon_t}\mid\mathcal F_t\big]\le e^{\sigma^2s^2/2}.E[esεt​∣Ft​]≤eσ2s2/2.
  • For every ω\omegaω, max⁡j∣Xt,j(ω)∣≤xmax⁡\max_j|X_{t,j}(\omega)|\le x_{\max}maxj​∣Xt,j​(ω)∣≤xmax​.
  • For every ω\omegaω, β^(ω)\hat\beta(\omega)β^​(ω) globally minimizes
β′↦1n∑k=0n−1(Xk⊤β+εk−Xk⊤β′)2+λ∥β′∥1,λ=χφ24s0.\beta'\mapsto\frac1n\sum_{k=0}^{n-1}\big(X_k^\top\beta+\varepsilon_k-X_k^\top\beta'\big)^2+\lambda\|\beta'\|_1,\qquad \lambda=\frac{\chi\varphi^2}{4s_0}.β′↦n1​k=0∑n−1​(Xk⊤​β+εk​−Xk⊤​β′)2+λ∥β′∥1​,λ=4s0​χφ2​.
  • No measurability of β^\hat\betaβ^​ is assumed. Nothing is assumed about Xt,εtX_t, \varepsilon_tXt​,εt​ for t≥nt \ge nt≥n.

Conclusion.

P{∥β^−β∥1>χ} ≤ 2exp⁡ ⁣(−C1nχ2+log⁡d)+P{Σ^∉C(supp⁡β,φ)}.P\{\|\hat\beta-\beta\|_1>\chi\}\ \le\ 2\exp\!\big(-C_1 n\chi^2+\log d\big)+P\{\hat\Sigma\notin\mathcal C(\operatorname{supp}\beta,\varphi)\}.P{∥β^​−β∥1​>χ} ≤ 2exp(−C1​nχ2+logd)+P{Σ^∈/C(suppβ,φ)}.
  • C1=φ4512s02σ2xmax⁡2C_1=\dfrac{\varphi^4}{512s_0^2\sigma^2x_{\max}^2}C1​=512s02​σ2xmax2​φ4​.
  • Σ^=1n∑k<nXkXk⊤\hat\Sigma=\frac1n\sum_{k<n}X_kX_k^\topΣ^=n1​∑k<n​Xk​Xk⊤​.
  • C(I,φ)\mathcal C(I,\varphi)C(I,φ) is the set of positive semidefinite d×dd\times dd×d matrices MMM such that ∥vI∥12≤∣I∣ v⊤Mv/φ2\|v_I\|_1^2\le |I|\,v^\top Mv/\varphi^2∥vI​∥12​≤∣I∣v⊤Mv/φ2 for every vvv with ∥vIc∥1≤3∥vI∥1\|v_{I^c}\|_1\le3\|v_I\|_1∥vIc​∥1​≤3∥vI​∥1​. Here vIv_IvI​ is vvv with the coordinates outside III set to 000.
  • The events need not be measurable. PPP of such a set is its outer measure.

Degenerate cases. s0≥1s_0\ge1s0​≥1 forces β≠0\beta\ne0β=0 and d≥1d\ge1d≥1. For d=1d=1d=1 the term log⁡d\log dlogd is 000. Since n≥1n\ge1n≥1 and all constants are positive, no division by zero arises. Minimizers exist because λ>0\lambda>0λ>0, so the hypothesis on β^\hat\betaβ^​ is satisfiable. The right-hand side may exceed 111, in which case the bound is trivial.

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