Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 6.1 — sparsity oracle inequality for the Lasso prediction loss

Proved
LassoDantzig.Oracle.theorem_6_1

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

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

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, and observe y=f+Wy=f+Wy=f+W, where f∈Rnf\in\mathbb R^nf∈Rn is an arbitrary target and X∈Rn×MX\in\mathbb R^{n\times M}X∈Rn×M a design with nonzero column norms ∥fj∥n\|f_j\|_n∥fj​∥n​. Fix ε>0\varepsilon>0ε>0 and integers n≥1n\ge1n≥1, M≥2M\ge2M≥2, 1≤s≤M1\le s\le M1≤s≤M, and let Assumption RE(s,(3+4/ε)fmax⁡/fmin⁡)(s,(3+4/\varepsilon)f_{\max}/f_{\min})(s,(3+4/ε)fmax​/fmin​) hold with constant κ>0\kappa>0κ>0. 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, for every β∈RM\beta\in\mathbb R^Mβ∈RM with M(β)≤s\mathcal M(\beta)\le sM(β)≤s,

∥f^L−f∥n2≤(1+ε){∥fβ−f∥n2+C(ε) fmax⁡2A2σ2κ2 M(β)log⁡Mn},C(ε)=4(2+ε)2ε(1+ε).\|\hat f_L-f\|_n^2\le(1+\varepsilon)\Big\{\|f_\beta-f\|_n^2+C(\varepsilon)\,\frac{f_{\max}^2A^2\sigma^2}{\kappa^2}\,\frac{\mathcal M(\beta)\log M}{n}\Big\},\qquad C(\varepsilon)=\frac{4(2+\varepsilon)^2}{\varepsilon(1+\varepsilon)} .∥f^​L​−f∥n2​≤(1+ε){∥fβ​−f∥n2​+C(ε)κ2fmax2​A2σ2​nM(β)logM​},C(ε)=ε(1+ε)4(2+ε)2​.

Equivalently, ∥f^L−f∥n2\|\hat f_L-f\|_n^2∥f^​L​−f∥n2​ is at most (1+ε)(1+\varepsilon)(1+ε) times the infimum of the braces over all β\betaβ with M(β)≤s\mathcal M(\beta)\le sM(β)≤s: the Lasso predicts almost as well as the best sss-sparse linear combination of the dictionary, up to a remainder of order M(β)log⁡M/n\mathcal M(\beta)\log M/nM(β)logM/n.

Formalization Note The paper writes "C(ε)>0C(\varepsilon)>0C(ε)>0 is a constant depending only on ε\varepsilonε"; the proof (p. 26, b=1+2/εb=1+2/\varepsilonb=1+2/ε) yields C(ε)=4(2+ε)2/(ε(1+ε))C(\varepsilon)=4(2+\varepsilon)^2/(\varepsilon(1+\varepsilon))C(ε)=4(2+ε)2/(ε(1+ε)), which is stated explicitly (a strengthening that implies the printed statement). The infimum is replaced by "for every β\betaβ with M(β)≤s\mathcal M(\beta)\le sM(β)≤s" on one event chosen before β\betaβ and the minimiser; this is equivalent since the index set is nonempty (β=0\beta=0β=0) and the braces are nonnegative. κ\kappaκ is any witness of RE (the paper's κ(s,c0)\kappa(s,c_0)κ(s,c0​) is the largest one). "With probability at least" 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. Dictionary functions enter only through XXX and fff.

Preamble
import Mathlib
import Definitions.Def_LassoDantzig_Oracle_Model

open MeasureTheory ProbabilityTheory
Formal statement
namespace LassoDantzig.Oracle

/-- **Theorem 6.1** (p. 13), with the constant the proof (p. 26) yields,
`C(ε) = 4(2 + ε)²/(ε(1 + ε))`. Let `W_i` be independent `N(0, σ²)`, `σ² > 0`; fix `ε > 0`,
`n ≥ 1`, `M ≥ 2`, `1 ≤ s ≤ M`, and let RE(s, (3 + 4/ε) f_max/f_min) hold with witness `κ > 0`.
Let `r = Aσ√(log M / n)` with `A > 2√2`. With probability at least `1 − M^{1−A²/8}`, every Lasso
solution `β̂_L` of (2.1) with data `y = f + W` satisfies, for every `β` with `𝓜(β) ≤ s`,
`‖f̂_L − f‖_n² ≤ (1 + ε) (‖f_β − f‖_n² + C(ε) f_max² A² σ² / κ² · 𝓜(β) log M / n)`.
The target `f` is arbitrary. -/
theorem theorem_6_1 {Ω : 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 σ)
    (ε : ℝ) (hε : 0 < ε) (s : ℕ) (hs1 : 1 ≤ s) (hsM : s ≤ M)
    (κ : ℝ) (hκ : 0 < κ) (hRE : RE X s ((3 + 4 / ε) * fmax X / fmin X) κ)
    (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 → ℝ, sparsity β ≤ s →
          empSq (fun i => X.mulVec βhat i - f i) ≤
            (1 + ε) * (empSq (fun i => X.mulVec β i - f i) +
              4 * (2 + ε) ^ 2 / (ε * (1 + ε)) * fmax X ^ 2 * A ^ 2 * σ ^ 2 / κ ^ 2 *
                ((sparsity β : ℝ) * Real.log M / n)) := by sorry

end LassoDantzig.Oracle
Source
Bickel, Ritov and Tsybakov, Simultaneous Analysis of Lasso and Dantzig Selector, arXiv:0801.1095v3, p. 13, Theorem 6.1, Eq. (6.1); constant C(ε) from the proof, p. 26
Read-back

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

The statement is set in a probability space: a set Ω\OmegaΩ with a σ-algebra and a probability measure PPP on it. Because PPP is a probability measure, Ω\OmegaΩ is nonempty and P(Ω)=1P(\Omega)=1P(Ω)=1. Several symbols in the statement are defined in the imported module Definitions.Def_LassoDantzig_Oracle_Model, whose code is not shown here. For each one, this read-back records only how it is used. Nothing more about its content can be stated from this code. These symbols are the column quantity colNorm⁡\operatorname{colNorm}colNorm, the noise predicate GaussianNoise⁡\operatorname{GaussianNoise}GaussianNoise, the scalars fmax⁡(X)f_{\max}(X)fmax​(X) and fmin⁡(X)f_{\min}(X)fmin​(X), the condition RE⁡\operatorname{RE}RE, the solution predicate IsLasso⁡\operatorname{IsLasso}IsLasso, the tuning value tuning⁡\operatorname{tuning}tuning, the count sparsity⁡\operatorname{sparsity}sparsity and the functional empSq⁡\operatorname{empSq}empSq. The documentation comment attached to the declaration has no logical force, and the account below describes only the formal statement.

Data and hypotheses. The statement fixes the following:

  • 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 colNorm⁡(X,j)≠0\operatorname{colNorm}(X, j) \neq 0colNorm(X,j)=0 for every column index j∈{1,…,M}j \in \{1,\dots,M\}j∈{1,…,M};
  • an arbitrary vector f∈Rnf \in \mathbb{R}^nf∈Rn, with no condition on it;
  • nnn real-valued functions W1,…,WnW_1,\dots,W_nW1​,…,Wn​ on Ω\OmegaΩ, with no measurability or independence assumed beyond what the next item provides;
  • a real σ>0\sigma > 0σ>0 such that GaussianNoise⁡(P,W,σ)\operatorname{GaussianNoise}(P, W, \sigma)GaussianNoise(P,W,σ) holds;
  • a real ε>0\varepsilon > 0ε>0;
  • a natural number sss with 1≤s≤M1 \le s \le M1≤s≤M;
  • a real κ>0\kappa > 0κ>0 such that the following condition holds:
RE⁡ ⁣(X, s, (3+4ε)fmax⁡(X)fmin⁡(X), κ)\operatorname{RE}\!\left(X,\ s,\ \Big(3 + \tfrac{4}{\varepsilon}\Big)\frac{f_{\max}(X)}{f_{\min}(X)},\ \kappa\right)RE(X, s, (3+ε4​)fmin​(X)fmax​(X)​, κ)
  • a real AAA with A>22A > 2\sqrt{2}A>22​.

Conclusion. There exists a measurable set E⊆ΩE \subseteq \OmegaE⊆Ω with the following two properties.

First, its probability satisfies

P(E)  ≥  1−M 1−A2/8,P(E) \;\ge\; 1 - M^{\,1 - A^2/8},P(E)≥1−M1−A2/8,

where the power is the real power of the positive real MMM and P(E)P(E)P(E) is read as a real number.

Second, for every outcome ω∈E\omega \in Eω∈E, the following holds:

  • take every vector β^∈RM\hat\beta \in \mathbb{R}^Mβ^​∈RM satisfying IsLasso⁡(X, y(ω), λ, β^)\operatorname{IsLasso}\big(X,\ y(\omega),\ \lambda,\ \hat\beta\big)IsLasso(X, y(ω), λ, β^​), where
    • y(ω)y(\omega)y(ω) is the observation vector with coordinates yi(ω)=fi+Wi(ω)y_i(\omega) = f_i + W_i(\omega)yi​(ω)=fi​+Wi​(ω), and
    • λ=tuning⁡(n,M,A,σ)\lambda = \operatorname{tuning}(n, M, A, \sigma)λ=tuning(n,M,A,σ);
  • take every vector β∈RM\beta \in \mathbb{R}^Mβ∈RM with sparsity⁡(β)≤s\operatorname{sparsity}(\beta) \le ssparsity(β)≤s.

Then

empSq⁡(Xβ^−f)  ≤  (1+ε)(empSq⁡(Xβ−f)+4(2+ε)2ε(1+ε)⋅fmax⁡(X)2 A2 σ2κ2⋅sparsity⁡(β) log⁡Mn).\operatorname{empSq}\big(X\hat\beta - f\big) \;\le\; (1+\varepsilon)\left(\operatorname{empSq}\big(X\beta - f\big) + \frac{4(2+\varepsilon)^2}{\varepsilon(1+\varepsilon)}\cdot\frac{f_{\max}(X)^2\,A^2\,\sigma^2}{\kappa^2}\cdot\frac{\operatorname{sparsity}(\beta)\,\log M}{n}\right).empSq(Xβ^​−f)≤(1+ε)(empSq(Xβ−f)+ε(1+ε)4(2+ε)2​⋅κ2fmax​(X)2A2σ2​⋅nsparsity(β)logM​).

Here Xβ^X\hat\betaXβ^​ and XβX\betaXβ are ordinary matrix–vector products in Rn\mathbb{R}^nRn, and log⁡\loglog is the natural logarithm.

The set EEE depends on all the fixed data, including fff, XXX, ε\varepsilonε, sss, κ\kappaκ and AAA. It is chosen once, and the inequality must then hold for all admissible β^\hat\betaβ^​ and β\betaβ at once.

Degenerate cases. Since n≥1n \ge 1n≥1, ε>0\varepsilon > 0ε>0 and κ>0\kappa > 0κ>0, the divisions by nnn, ε\varepsilonε, ε(1+ε)\varepsilon(1+\varepsilon)ε(1+ε) and κ2\kappa^2κ2 are never divisions by zero.

  • Probability bound. Since M≥2M \ge 2M≥2 and A>22A > 2\sqrt2A>22​, the exponent 1−A2/81 - A^2/81−A2/8 is strictly negative. So M1−A2/8M^{1-A^2/8}M1−A2/8 lies strictly between 000 and 111, and the lower bound on P(E)P(E)P(E) lies strictly between 000 and 111. Also log⁡M≥log⁡2>0\log M \ge \log 2 > 0logM≥log2>0.
  • Division by fmin⁡(X)f_{\min}(X)fmin​(X). This division is not protected by any explicit hypothesis. If fmin⁡(X)=0f_{\min}(X) = 0fmin​(X)=0, the division is evaluated as 000 and the third argument of RE⁡\operatorname{RE}RE becomes 000. Whether the hypothesis on colNorm⁡\operatorname{colNorm}colNorm rules this out depends on the unseen definitions.
  • β\betaβ with sparsity 0. The vectors β\betaβ may have sparsity⁡(β)=0\operatorname{sparsity}(\beta) = 0sparsity(β)=0 (for example β=0\beta = 0β=0, if that is how sparsity⁡\operatorname{sparsity}sparsity behaves). Then the second term in the bracket is 000, and the bound reduces to empSq⁡(Xβ^−f)≤(1+ε)empSq⁡(Xβ−f)\operatorname{empSq}(X\hat\beta - f) \le (1+\varepsilon)\operatorname{empSq}(X\beta - f)empSq(Xβ^​−f)≤(1+ε)empSq(Xβ−f).
  • No β^\hat\betaβ^​ satisfies the predicate. If, for some ω∈E\omega \in Eω∈E, no β^\hat\betaβ^​ satisfies IsLasso⁡\operatorname{IsLasso}IsLasso with data y(ω)y(\omega)y(ω), the conclusion for that ω\omegaω holds vacuously. Whether this can happen depends on the unseen definition.
  • Unsatisfiable hypotheses. The theorem is vacuous if the hypotheses GaussianNoise⁡(P,W,σ)\operatorname{GaussianNoise}(P, W, \sigma)GaussianNoise(P,W,σ) or RE⁡(…,κ)\operatorname{RE}(\dots, \kappa)RE(…,κ) can never hold. Nothing in the displayed code settles whether they are satisfiable.
  • Small sizes. The smallest permitted sizes are n=1n = 1n=1, M=2M = 2M=2 and s=1s = 1s=1 (or sss up to MMM). In those cases the statement asserts exactly the displayed inequality for those sizes.
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