Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma B.1, (B.1) — basic inequality for the Lasso with high probability

Proved
LassoDantzig.Oracle.lemma_B1

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

high-dimensional-statisticslassooracle-inequalityp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Fix M≥2M\ge2M≥2 and n≥1n\ge1n≥1, a design X∈Rn×MX\in\mathbb R^{n\times M}X∈Rn×M with nonzero column norms ∥fj∥n\|f_j\|_n∥fj​∥n​ and an arbitrary target f∈Rnf\in\mathbb R^nf∈Rn. Let W1,…,WnW_1,\dots,W_nW1​,…,Wn​ be independent N(0,σ2)\mathcal N(0,\sigma^2)N(0,σ2) random variables with σ2>0\sigma^2>0σ2>0, y=f+Wy=f+Wy=f+W, and let r=Aσlog⁡M/nr=A\sigma\sqrt{\log M/n}r=AσlogM/n​ for some A>22A>2\sqrt2A>22​. Then there is an event of probability at least 1−M1−A2/81-M^{1-A^2/8}1−M1−A2/8 on which every Lasso solution β^L\hat\beta_Lβ^​L​ of (2.1), with f^L=Xβ^L\hat f_L=X\hat\beta_Lf^​L​=Xβ^​L​, satisfies simultaneously for all β∈RM\beta\in\mathbb R^Mβ∈RM

∥f^L−f∥n2+r∑j=1M∥fj∥n∣β^j,L−βj∣≤∥fβ−f∥n2+4r∑j∈J(β)∥fj∥n∣β^j,L−βj∣≤∥fβ−f∥n2+4rM(β)(∑j∈J(β)∥fj∥n2∣β^j,L−βj∣2)1/2.\begin{aligned}\|\hat f_L-f\|_n^2+r\sum_{j=1}^M\|f_j\|_n|\hat\beta_{j,L}-\beta_j| &\le \|f_\beta-f\|_n^2+4r\sum_{j\in J(\beta)}\|f_j\|_n|\hat\beta_{j,L}-\beta_j|\\ &\le \|f_\beta-f\|_n^2+4r\sqrt{\mathcal M(\beta)}\Big(\sum_{j\in J(\beta)}\|f_j\|_n^2|\hat\beta_{j,L}-\beta_j|^2\Big)^{1/2}.\end{aligned}∥f^​L​−f∥n2​+rj=1∑M​∥fj​∥n​∣β^​j,L​−βj​∣​≤∥fβ​−f∥n2​+4rj∈J(β)∑​∥fj​∥n​∣β^​j,L​−βj​∣≤∥fβ​−f∥n2​+4rM(β)​(j∈J(β)∑​∥fj​∥n2​∣β^​j,L​−βj​∣2)1/2.​

Lemma B.1 is the common starting point of the paper's Lasso bounds (Theorems 5.1, 6.1, 7.2).

Formalization Note "With probability at least 1−M1−A2/81-M^{1-A^2/8}1−M1−A2/8" is a measurable event EEE with P(E)≥1−M1−A2/8P(E)\ge1-M^{1-A^2/8}P(E)≥1−M1−A2/8, chosen before β\betaβ and the minimiser. Only the (B.1) clause of Lemma B.1 is stated; (B.2) and (B.3) are not used by Theorem 6.1.

Preamble
import Mathlib
import Definitions.Def_LassoDantzig_Oracle_Model

open MeasureTheory ProbabilityTheory
Formal statement
namespace LassoDantzig.Oracle

/-- **Lemma B.1, (B.1)** (p. 20). Fix `M ≥ 2`, `n ≥ 1`, independent `W_i ∼ N(0, σ²)` with
`σ² > 0`, and `r = Aσ√(log M / n)` with `A > 2√2`. With probability at least `1 − M^{1−A²/8}`,
simultaneously for all `β ∈ ℝ^M` and every Lasso solution `β̂_L` of (2.1) with data `y = f + W`:
`‖f̂_L − f‖_n² + r ∑_j ‖f_j‖_n |β̂_{j,L} − β_j| ≤ ‖f_β − f‖_n² + 4r ∑_{j ∈ J(β)} ‖f_j‖_n |β̂_{j,L} − β_j|
  ≤ ‖f_β − f‖_n² + 4r √𝓜(β) √(∑_{j ∈ J(β)} ‖f_j‖_n² |β̂_{j,L} − β_j|²)`. -/
theorem lemma_B1 {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
    {n M : ℕ} (hn : 1 ≤ n) (hM : 2 ≤ M)
    (X : Matrix (Fin n) (Fin M) ℝ) (hcol : ∀ j, colNorm X j ≠ 0) (f : Fin n → ℝ)
    (W : Fin n → Ω → ℝ) (σ : ℝ) (hσ : 0 < σ) (hW : GaussianNoise P W σ)
    (A : ℝ) (hA : 2 * Real.sqrt 2 < A) :
    ∃ E : Set Ω, MeasurableSet E ∧ 1 - (M : ℝ) ^ (1 - A ^ 2 / 8) ≤ (P E).toReal ∧
      ∀ ω ∈ E, ∀ βhat : Fin M → ℝ, IsLasso X (fun i => f i + W i ω) (tuning n M A σ) βhat →
        ∀ β : Fin M → ℝ,
          empSq (fun i => X.mulVec βhat i - f i) +
                tuning n M A σ * ∑ j, colNorm X j * |βhat j - β j| ≤
              empSq (fun i => X.mulVec β i - f i) +
                4 * tuning n M A σ * ∑ j ∈ supp β, colNorm X j * |βhat j - β j| ∧
            empSq (fun i => X.mulVec β i - f i) +
                4 * tuning n M A σ * ∑ j ∈ supp β, colNorm X j * |βhat j - β j| ≤
              empSq (fun i => X.mulVec β i - f i) +
                4 * tuning n M A σ * Real.sqrt (sparsity β) *
                  Real.sqrt (∑ j ∈ supp β, colNorm X j ^ 2 * |βhat j - β j| ^ 2) := by sorry

end LassoDantzig.Oracle
Source
Bickel, Ritov and Tsybakov, Simultaneous Analysis of Lasso and Dantzig Selector, arXiv:0801.1095v3, p. 20, Lemma B.1, Eq. (B.1)
Read-back

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

The statement is about a probability space (Ω,F,P)(\Omega,\mathcal F,P)(Ω,F,P), where PPP is a probability measure. It also involves:

  • natural numbers nnn and MMM with n≥1n \ge 1n≥1 and M≥2M \ge 2M≥2;
  • a real n×Mn \times Mn×M matrix XXX with columns X⋅1,…,X⋅MX_{\cdot 1},\dots,X_{\cdot M}X⋅1​,…,X⋅M​;
  • a vector f∈Rnf \in \mathbb R^nf∈Rn;
  • a real number σ>0\sigma > 0σ>0;
  • a real number AAA with A>22A > 2\sqrt 2A>22​;
  • random variables W1,…,Wn:Ω→RW_1,\dots,W_n : \Omega \to \mathbb RW1​,…,Wn​:Ω→R.

Several notions come from the imported definitions file, which was not provided. Each is described below only by its name and how it is used; its actual content cannot be checked from the code shown.

  • colNorm⁡(X,j)\operatorname{colNorm}(X,j)colNorm(X,j): a real number attached to column jjj of XXX, written here ∥X⋅j∥\|X_{\cdot j}\|∥X⋅j​∥.
  • GaussianNoise⁡(P,W,σ)\operatorname{GaussianNoise}(P,W,\sigma)GaussianNoise(P,W,σ): a hypothesis about the family WWW under PPP with parameter σ\sigmaσ.
  • tuning⁡(n,M,A,σ)\operatorname{tuning}(n,M,A,\sigma)tuning(n,M,A,σ): a real number, written here rrr.
  • IsLasso⁡(X,y,r,β^)\operatorname{IsLasso}(X,y,r,\hat\beta)IsLasso(X,y,r,β^​): a predicate on a design matrix, a response vector, a tuning value and a coefficient vector.
  • empSq⁡(v)\operatorname{empSq}(v)empSq(v): a real number attached to a vector v∈Rnv \in \mathbb R^nv∈Rn, written here ∥v∥n2\|v\|_n^2∥v∥n2​.
  • supp⁡(β)\operatorname{supp}(\beta)supp(β): a finite set of column indices attached to β∈RM\beta \in \mathbb R^Mβ∈RM, written here J(β)J(\beta)J(β).
  • sparsity⁡(β)\operatorname{sparsity}(\beta)sparsity(β): a real number attached to β\betaβ (possibly a count converted to a real), written here M(β)\mathcal M(\beta)M(β).

The statement has two further hypotheses:

  • ∥X⋅j∥≠0\|X_{\cdot j}\| \neq 0∥X⋅j​∥=0 for every column j=1,…,Mj = 1,\dots,Mj=1,…,M;
  • GaussianNoise⁡(P,W,σ)\operatorname{GaussianNoise}(P,W,\sigma)GaussianNoise(P,W,σ) holds.

Under these hypotheses, the statement claims that some measurable event E⊆ΩE \subseteq \OmegaE⊆Ω exists that satisfies both of the following.

  1. Its probability is bounded below:
P(E)  ≥  1−M 1−A2/8.P(E) \;\ge\; 1 - M^{\,1 - A^2/8}.P(E)≥1−M1−A2/8.

Here the power is the real power with base MMM.

  1. For every outcome ω∈E\omega \in Eω∈E, every β^∈RM\hat\beta \in \mathbb R^Mβ^​∈RM with IsLasso⁡(X,  f+W(ω),  r,  β^)\operatorname{IsLasso}\big(X,\; f + W(\omega),\; r,\; \hat\beta\big)IsLasso(X,f+W(ω),r,β^​), and every β∈RM\beta \in \mathbb R^Mβ∈RM, two inequalities hold together. The response vector f+W(ω)f + W(\omega)f+W(ω) has entries yi=fi+Wi(ω)y_i = f_i + W_i(\omega)yi​=fi​+Wi​(ω).

    The first inequality sums over all MMM columns on the left and only over J(β)J(\beta)J(β) on the right:

∥Xβ^−f∥n2+r∑j=1M∥X⋅j∥ ∣β^j−βj∣  ≤  ∥Xβ−f∥n2+4r∑j∈J(β)∥X⋅j∥ ∣β^j−βj∣\|X\hat\beta - f\|_n^2 + r\sum_{j=1}^{M}\|X_{\cdot j}\|\,|\hat\beta_j - \beta_j| \;\le\; \|X\beta - f\|_n^2 + 4r\sum_{j\in J(\beta)}\|X_{\cdot j}\|\,|\hat\beta_j - \beta_j|∥Xβ^​−f∥n2​+rj=1∑M​∥X⋅j​∥∣β^​j​−βj​∣≤∥Xβ−f∥n2​+4rj∈J(β)∑​∥X⋅j​∥∣β^​j​−βj​∣

The second inequality starts from the right-hand side of the first:

∥Xβ−f∥n2+4r∑j∈J(β)∥X⋅j∥ ∣β^j−βj∣  ≤  ∥Xβ−f∥n2+4r M(β)  ∑j∈J(β)∥X⋅j∥2 ∣β^j−βj∣2.\|X\beta - f\|_n^2 + 4r\sum_{j\in J(\beta)}\|X_{\cdot j}\|\,|\hat\beta_j - \beta_j| \;\le\; \|X\beta - f\|_n^2 + 4r\,\sqrt{\mathcal M(\beta)}\;\sqrt{\sum_{j\in J(\beta)}\|X_{\cdot j}\|^2\,|\hat\beta_j - \beta_j|^2}.∥Xβ−f∥n2​+4rj∈J(β)∑​∥X⋅j​∥∣β^​j​−βj​∣≤∥Xβ−f∥n2​+4rM(β)​j∈J(β)∑​∥X⋅j​∥2∣β^​j​−βj​∣2​.

In both inequalities, Xβ^X\hat\betaXβ^​ and XβX\betaXβ are ordinary matrix–vector products.

The same event EEE must work for all β^\hat\betaβ^​ and all β\betaβ at once. It does not depend on β\betaβ, and it does not depend on which Lasso solution is taken.

On degenerate cases:

  • Empty or one-element index sets: these cannot occur. The hypotheses require n≥1n \ge 1n≥1 and M≥2M \ge 2M≥2, so both index sets have at least one and two elements respectively.
  • The probability bound: A>22A > 2\sqrt2A>22​ gives A2/8>1A^2/8 > 1A2/8>1, so the exponent 1−A2/81 - A^2/81−A2/8 is negative. With M≥2M \ge 2M≥2, the bound 1−M1−A2/81 - M^{1-A^2/8}1−M1−A2/8 therefore lies strictly between 0 and 1. P(E)P(E)P(E) is finite because PPP is a probability measure, so turning it into a real number loses nothing.
  • No Lasso solution: for an outcome ω\omegaω where no β^\hat\betaβ^​ satisfies IsLasso⁡\operatorname{IsLasso}IsLasso, the second claim holds vacuously at that ω\omegaω.
  • Impossible hypotheses: if GaussianNoise⁡(P,W,σ)\operatorname{GaussianNoise}(P,W,\sigma)GaussianNoise(P,W,σ) or the column condition cannot be satisfied, the whole statement holds vacuously. Whether that happens cannot be checked from the code shown.
  • Empty J(β)J(\beta)J(β): the sums over J(β)J(\beta)J(β) are then 0. The first inequality then says that ∥Xβ^−f∥n2\|X\hat\beta - f\|_n^2∥Xβ^​−f∥n2​ plus rrr times the full weighted sum is at most ∥Xβ−f∥n2\|X\beta - f\|_n^2∥Xβ−f∥n2​. The second inequality then reads ∥Xβ−f∥n2≤∥Xβ−f∥n2\|X\beta - f\|_n^2 \le \|X\beta - f\|_n^2∥Xβ−f∥n2​≤∥Xβ−f∥n2​ plus 4rM(β)⋅04r\sqrt{\mathcal M(\beta)}\cdot\sqrt{0}4rM(β)​⋅0​.
  • Square roots: Lean's real square root returns 0 for any negative argument. The sum under the second square root has nonnegative terms, provided the squared quantities are real numbers as they appear, so the rule cannot apply there. It would apply to M(β)\sqrt{\mathcal M(\beta)}M(β)​ only if M(β)\mathcal M(\beta)M(β) can be negative, which the code shown does not settle.
  • Sign of rrr: the code shown does not settle whether rrr is positive. If rrr could be zero or negative, the weighted-sum terms would vanish or change sign accordingly.
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