Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (2.3) — every Lasso solution satisfies the Dantzig constraint

Proved
LassoDantzig.Equivalence.eq_2_3_lasso_dantzig_feasible

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

dantzig-selectorlassooptimality-conditionsp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let X∈Rn×MX\in\mathbb R^{n\times M}X∈Rn×M with n≥1n\ge1n≥1, let y∈Rny\in\mathbb R^ny∈Rn and r>0r>0r>0, and write ∥fj∥n\|f_j\|_n∥fj​∥n​ for the empirical norm of the jjj-th column of XXX. If β^L\hat\beta_Lβ^​L​ is any minimiser of the Lasso criterion (2.1),

1n∑i=1n(yi−(Xβ)i)2+2r∑j=1M∥fj∥n∣βj∣,\frac1n\sum_{i=1}^n\big(y_i-(X\beta)_i\big)^2+2r\sum_{j=1}^M\|f_j\|_n|\beta_j| ,n1​i=1∑n​(yi​−(Xβ)i​)2+2rj=1∑M​∥fj​∥n​∣βj​∣,

then β^L\hat\beta_Lβ^​L​ satisfies the Dantzig constraint (2.3):

∣1n∑i=1nXij(yi−(Xβ^L)i)∣≤r ∥fj∥n(j=1,…,M),\Big|\frac1n\sum_{i=1}^nX_{ij}\big(y_i-(X\hat\beta_L)_i\big)\Big|\le r\,\|f_j\|_n\qquad(j=1,\dots,M),​n1​i=1∑n​Xij​(yi​−(Xβ^​L​)i​)​≤r∥fj​∥n​(j=1,…,M),

that is, ∣1nD−1/2X⊤(y−Xβ^L)∣∞≤r\big|\tfrac1nD^{-1/2}X^\top(y-X\hat\beta_L)\big|_\infty\le r​n1​D−1/2X⊤(y−Xβ^​L​)​∞​≤r with D=diag(∥fj∥n2)D=\mathrm{diag}(\|f_j\|_n^2)D=diag(∥fj​∥n2​).

This is what makes the Lasso a feasible point of the Dantzig program, so that the Dantzig selector has ℓ1\ell_1ℓ1​ norm at most that of any Lasso solution; the comparison of the two estimators starts from it.

Formalization Note The Lasso and the Dantzig constraint are those of the mission's definition file; the constraint is stated coordinatewise, which avoids D−1/2D^{-1/2}D−1/2 when a column norm vanishes (the paper's standing assumption ∥fj∥n≠0\|f_j\|_n\neq0∥fj​∥n​=0 is not needed here).

Preamble
import Mathlib
import Definitions.Def_LassoDantzig_Equivalence_Model
Formal statement
namespace LassoDantzig.Equivalence

/-- (2.3): every Lasso solution satisfies the Dantzig constraint. -/
theorem eq_2_3_lasso_dantzig_feasible {n M : ℕ} (hn : 1 ≤ n)
    (X : Matrix (Fin n) (Fin M) ℝ) (y : Fin n → ℝ) (r : ℝ) (hr : 0 < r)
    (βL : Fin M → ℝ) (hL : IsLasso X y r βL) :
    DantzigFeasible X y r βL := by sorry

end LassoDantzig.Equivalence
Source
Bickel, Ritov and Tsybakov, Simultaneous Analysis of Lasso and Dantzig Selector, arXiv:0801.1095v3, p. 4, Eq. (2.3)
Read-back

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

Setting.

  • n≥1n\ge1n≥1 and MMM are natural numbers; MMM may be 000.
  • X∈Rn×MX\in\mathbb{R}^{n\times M}X∈Rn×M, y∈Rny\in\mathbb{R}^ny∈Rn, and r>0r>0r>0.
  • β^L∈RM\hat\beta_L\in\mathbb{R}^Mβ^​L​∈RM is a global minimiser over RM\mathbb{R}^MRM of the Lasso objective
Φ(β)=1n∑i(yi−(Xβ)i)2+2r∑j∥fj∥n∣βj∣,\Phi(\beta)=\tfrac1n\textstyle\sum_i (y_i-(X\beta)_i)^2+2r\sum_j\|f_j\|_n|\beta_j|,Φ(β)=n1​∑i​(yi​−(Xβ)i​)2+2r∑j​∥fj​∥n​∣βj​∣,

where ∥fj∥n=1n∑iXij2\|f_j\|_n=\sqrt{\tfrac1n\sum_i X_{ij}^2}∥fj​∥n​=n1​∑i​Xij2​​.

Claim. β^L\hat\beta_Lβ^​L​ satisfies, for every j∈{1,…,M}j\in\{1,\dots,M\}j∈{1,…,M},

∣1n∑i=1nXij(yi−(Xβ^L)i)∣≤r ∥fj∥n.\Big|\tfrac1n\sum_{i=1}^n X_{ij}\big(y_i-(X\hat\beta_L)_i\big)\Big|\le r\,\|f_j\|_n .​n1​i=1∑n​Xij​(yi​−(Xβ^​L​)i​)​≤r∥fj​∥n​.

No assumption is made on the column norms: some may be zero.

Degenerate cases. If M=0M=0M=0, the conclusion is vacuously true. Since n≥1n\ge1n≥1, no division by zero occurs.

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