Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

LASSO tail inequality when a fraction of the samples is i.i.d.

Proved
BastaniBayati.LassoBandit.lasso_tail_inequality_iid_fraction

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

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

Consider the linear model W=Zβ+εW=\mathbf Z\beta+\varepsilonW=Zβ+ε with rows Zt∈RdZ_t\in\mathbb R^dZt​∈Rd indexed by times ttt on a filtered probability space: row ZtZ_tZt​ is Ft\mathcal F_tFt​-measurable, noise εt\varepsilon_tεt​ is Ft+1\mathcal F_{t+1}Ft+1​-measurable and σ\sigmaσ-subgaussian conditionally on Ft\mathcal F_tFt​ (σ>0\sigma>0σ>0), every realization has ∥Zt∥∞≤xmax⁡\|Z_t\|_\infty\le x_{\max}∥Zt​∥∞​≤xmax​ (xmax⁡>0x_{\max}>0xmax​>0), and ∥β∥0=s0≥1\|\beta\|_0=s_0\ge1∥β∥0​=s0​≥1. Let A′⊆A\mathcal A'\subseteq\mathcal AA′⊆A be finite sets of times such that the rows {Zt:t∈A′}\{Z_t : t\in\mathcal A'\}{Zt​:t∈A′} are i.i.d. with law PZ\mathcal P_ZPZ​, and let Σ=EZ∼PZ[ZZ⊤]∈C(supp(β),ϕ1)\Sigma=\mathbb E_{Z\sim\mathcal P_Z}[ZZ^\top]\in\mathcal C(\mathrm{supp}(\beta),\phi_1)Σ=EZ∼PZ​​[ZZ⊤]∈C(supp(β),ϕ1​) for a constant ϕ1>0\phi_1>0ϕ1​>0. Let p>0p>0p>0 and χ>0\chi>0χ>0.

If d>1d>1d>1, ∣A′∣/∣A∣≥p/2|\mathcal A'|/|\mathcal A|\ge p/2∣A′∣/∣A∣≥p/2, ∣A∣≥6log⁡d/(pC2(ϕ1)2)|\mathcal A|\ge 6\log d/(pC_2(\phi_1)^2)∣A∣≥6logd/(pC2​(ϕ1​)2) and λ=λ(χ,ϕ1p/2)=χϕ12p/(16s0)\lambda=\lambda(\chi,\phi_1\sqrt p/2)=\chi\phi_1^2p/(16s_0)λ=λ(χ,ϕ1​p​/2)=χϕ12​p/(16s0​), then every LASSO estimator β^(A,λ)\hat\beta(\mathcal A,\lambda)β^​(A,λ) trained on the samples in A\mathcal AA satisfies

Pr⁡[∥β^(A,λ)−β∥1>χ]≤2exp⁡[−C1(ϕ1p2)∣A∣χ2+log⁡d]+exp⁡[−pC2(ϕ1)2∣A∣/2].\Pr\big[\|\hat\beta(\mathcal A,\lambda)-\beta\|_1>\chi\big]\le 2\exp\Big[-C_1\Big(\frac{\phi_1\sqrt p}{2}\Big)|\mathcal A|\chi^2+\log d\Big]+\exp\big[-pC_2(\phi_1)^2|\mathcal A|/2\big].Pr[∥β^​(A,λ)−β∥1​>χ]≤2exp[−C1​(2ϕ1​p​​)∣A∣χ2+logd]+exp[−pC2​(ϕ1​)2∣A∣/2].

This is Lemma 1 of Bastani and Bayati: the LASSO converges on a sample that is only partly i.i.d., provided a constant fraction is. It is the step from Proposition 1 to the forced-sample and all-sample estimators.

Formalization Note A\mathcal AA and A′\mathcal A'A′ are fixed (deterministic) sets of times, the literal reading of the lemma; the paper later applies it with random sets. C1C_1C1​, C2C_2C2​ are those of the Constants definition with s0=∥β∥0s_0=\|\beta\|_0s0​=∥β∥0​. Noise and boundedness are assumed on the times in A\mathcal AA only.

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

/-- **Lemma 1**, Bastani–Bayati, p. 286 (setting of §4.1, pp. 285–286), with `𝒜' ⊆ 𝒜` fixed
index sets. Linear model `W = Zβ + ε` on a filtered probability space: row `Z_t` is
`ℱ_t`-measurable, `ε_t` is `ℱ_{t+1}`-measurable and `σ`-subgaussian conditionally on `ℱ_t`,
`‖Z_t‖_∞ ≤ x_max` for every realization (`t ∈ 𝒜`), `‖β‖₀ = s₀ ≥ 1`. The rows `{Z_t | t ∈ 𝒜'}` are
i.i.d. with law `𝒫_Z`, and `Σ ≡ E_{Z∼𝒫_Z}[ZZᵀ] ∈ 𝒞(supp(β), φ₁)` with `φ₁ > 0`. For `p > 0`,
`χ > 0`, if `d > 1`, `|𝒜'|/|𝒜| ≥ p/2`, `|𝒜| ≥ 6 log d/(p C₂(φ₁)²)` and
`λ = λ(χ, φ₁√p/2) = χφ₁²p/(16s₀)`, then every LASSO estimator `β̂(𝒜, λ)` on the samples in `𝒜`
satisfies `Pr[‖β̂(𝒜, λ) − β‖₁ > χ] ≤ 2 exp[−C₁(φ₁√p/2)|𝒜|χ² + log d] + exp[−p C₂(φ₁)²|𝒜|/2]`. -/
theorem lasso_tail_inequality_iid_fraction {Ω : Type*} [mΩ : MeasurableSpace Ω] (P : Measure Ω)
    [IsProbabilityMeasure P] {d : ℕ} (ℱ : Filtration ℕ mΩ) (Z : ℕ → Ω → Fin d → ℝ)
    (ε : ℕ → Ω → ℝ) (β : Fin d → ℝ) (σ : ℝ≥0) (xmax : ℝ) (s0 : ℕ) (PZ : Measure (Fin d → ℝ))
    (A A' : Finset ℕ) (φ1 p χ : ℝ) (βhat : Ω → Fin d → ℝ)
    (hσ : 0 < σ) (hxmax : 0 < xmax) (hs0 : (supp β).card = s0) (hs0pos : 1 ≤ s0)
    (hφ1 : 0 < φ1) (hp : 0 < p) (hχ : 0 < χ) (hd : 1 < d)
    (hZ_adapted : ∀ t ∈ A, Measurable[ℱ t] (Z t))
    (hε_meas : ∀ t ∈ A, Measurable[ℱ (t + 1)] (ε t))
    (hε_int : ∀ t ∈ A, ∀ s : ℝ, Integrable (fun ω => Real.exp (s * ε t ω)) P)
    (hε_subg : ∀ t ∈ A, ∀ s : ℝ,
      P[fun ω => Real.exp (s * ε t ω) | ℱ t] ≤ᵐ[P] fun _ => Real.exp ((σ : ℝ) ^ 2 * s ^ 2 / 2))
    (hbound : ∀ t ∈ A, ∀ ω, ‖Z t ω‖ ≤ xmax)
    (hA'A : A' ⊆ A)
    (hiid : iIndepFun (fun t : A' => Z t) P) (hlaw : ∀ t ∈ A', P.map (Z t) = PZ)
    (hSigma : (fun a b => ∫ z, z a * z b ∂PZ : Matrix (Fin d) (Fin d) ℝ) ∈ compatSet (supp β) φ1)
    (hfrac : p / 2 ≤ (A'.card : ℝ) / A.card)
    (hsize : 6 * Real.log d / (p * C2 s0 xmax φ1 ^ 2) ≤ A.card)
    (hβhat : ∀ ω, IsLassoMinimizer (fun t : A => Z t ω) (fun t : A => Z t ω ⬝ᵥ β + ε t ω)
      (χ * φ1 ^ 2 * p / (16 * s0)) (βhat ω)) :
    P {ω | χ < l1Norm (βhat ω - β)} ≤
      ENNReal.ofReal (2 * Real.exp (-(C1 s0 σ xmax (φ1 * Real.sqrt p / 2)) * A.card * χ ^ 2
          + Real.log d) +
        Real.exp (-(p * C2 s0 xmax φ1 ^ 2 * A.card / 2))) := 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, Lemma 1 (setting of §4.1, pp. 285–286)
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:

  • a natural d>1d>1d>1;
  • random rows Zt:Ω→RdZ_t:\Omega\to\mathbb{R}^dZt​:Ω→Rd and noises εt:Ω→R\varepsilon_t:\Omega\to\mathbb{R}εt​:Ω→R;
  • a fixed β∈Rd\beta\in\mathbb{R}^dβ∈Rd with ∣supp⁡β∣=s0≥1|\operatorname{supp}\beta|=s_0\ge1∣suppβ∣=s0​≥1;
  • reals σ>0\sigma>0σ>0, xmax⁡>0x_{\max}>0xmax​>0, φ1>0\varphi_1>0φ1​>0, p>0p>0p>0 and χ>0\chi>0χ>0;
  • a measure PZP_ZPZ​ on Rd\mathbb{R}^dRd;
  • finite sets of times A′⊆A⊆NA'\subseteq A\subseteq\mathbb NA′⊆A⊆N;
  • a map β^:Ω→Rd\hat\beta:\Omega\to\mathbb{R}^dβ^​:Ω→Rd.

Hypotheses.

  • For every t∈At\in At∈A:
    • ZtZ_tZt​ is Ft\mathcal F_tFt​-measurable, and εt\varepsilon_tεt​ is Ft+1\mathcal F_{t+1}Ft+1​-measurable.
    • For all sss, esεte^{s\varepsilon_t}esεt​ is integrable and, almost surely, E[esεt∣Ft]≤eσ2s2/2\mathbb{E}[e^{s\varepsilon_t}\mid\mathcal F_t]\le e^{\sigma^2s^2/2}E[esεt​∣Ft​]≤eσ2s2/2.
    • For every ω\omegaω, max⁡j∣Zt,j(ω)∣≤xmax⁡\max_j|Z_{t,j}(\omega)|\le x_{\max}maxj​∣Zt,j​(ω)∣≤xmax​.
  • The rows (Zt)t∈A′(Z_t)_{t\in A'}(Zt​)t∈A′​ are mutually independent, and each has law PZP_ZPZ​.
  • The matrix Σab=∫zazb dPZ(z)\Sigma_{ab}=\int z_az_b\,dP_Z(z)Σab​=∫za​zb​dPZ​(z) lies in C(supp⁡β,φ1)\mathcal C(\operatorname{supp}\beta,\varphi_1)C(suppβ,φ1​). This set consists of the positive semidefinite MMM with ∥vI∥12≤∣I∣ v⊤Mv/φ12\|v_I\|_1^2\le|I|\,v^\top Mv/\varphi_1^2∥vI​∥12​≤∣I∣v⊤Mv/φ12​ whenever ∥vIc∥1≤3∥vI∥1\|v_{I^c}\|_1\le3\|v_I\|_1∥vIc​∥1​≤3∥vI​∥1​, where vIv_IvI​ zeroes the coordinates outside III.
  • ∣A′∣/∣A∣≥p/2|A'|/|A|\ge p/2∣A′∣/∣A∣≥p/2 and ∣A∣≥6log⁡dp C22|A|\ge \dfrac{6\log d}{p\,C_2^2}∣A∣≥pC22​6logd​, where C2=min⁡ ⁣(12, φ12256s0xmax⁡2)C_2=\min\!\big(\tfrac12,\ \tfrac{\varphi_1^2}{256s_0x_{\max}^2}\big)C2​=min(21​, 256s0​xmax2​φ12​​).
  • For every ω\omegaω, β^(ω)\hat\beta(\omega)β^​(ω) globally minimizes
1∣A∣∑t∈A(Zt⊤β+εt−Zt⊤β′)2+λ∥β′∥1,λ=χφ12p16s0.\frac1{|A|}\sum_{t\in A}(Z_t^\top\beta+\varepsilon_t-Z_t^\top\beta')^2+\lambda\|\beta'\|_1,\qquad \lambda=\frac{\chi\varphi_1^2p}{16s_0}.∣A∣1​t∈A∑​(Zt⊤​β+εt​−Zt⊤​β′)2+λ∥β′∥1​,λ=16s0​χφ12​p​.

Conclusion.

P{∥β^−β∥1>χ}≤2exp⁡ ⁣(−C~1∣A∣χ2+log⁡d)+exp⁡ ⁣(−pC22∣A∣/2),P\{\|\hat\beta-\beta\|_1>\chi\}\le 2\exp\!\big(-\tilde C_1|A|\chi^2+\log d\big)+\exp\!\big(-pC_2^2|A|/2\big),P{∥β^​−β∥1​>χ}≤2exp(−C~1​∣A∣χ2+logd)+exp(−pC22​∣A∣/2),

where

C~1=(φ1p/2)4512s02σ2xmax⁡2.\tilde C_1=\frac{(\varphi_1\sqrt p/2)^4}{512s_0^2\sigma^2x_{\max}^2}.C~1​=512s02​σ2xmax2​(φ1​p​/2)4​.
  • No independence between the rows in A′A'A′ and the noises is assumed.
  • The event need not be measurable. Its probability is the outer measure.

Degenerate cases.

  • If A=∅A=\emptysetA=∅, the ratio ∣A′∣/∣A∣|A'|/|A|∣A′∣/∣A∣ evaluates to 000 (division by zero), and the fraction hypothesis fails. So the hypotheses force AAA, and then A′A'A′, to be nonempty.
  • Since ∣A′∣/∣A∣≤1|A'|/|A|\le1∣A′∣/∣A∣≤1, the hypotheses are unsatisfiable when p>2p>2p>2.
  • Because A′A'A′ is nonempty, PZP_ZPZ​ is the law of a random vector under PPP, hence a probability measure.
  • d>1d>1d>1 makes log⁡d>0\log d>0logd>0.
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