Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma B.1, (B.2) — on A\mathcal AA, ∣1nX⊤(f−Xβ^L)∣∞≤3rfmax⁡/2|\frac1nX^\top(f-X\hat\beta_L)|_\infty\le 3rf_{\max}/2∣n1​X⊤(f−Xβ^​L​)∣∞​≤3rfmax​/2

Proved
LassoDantzig.Equivalence.lemma_B1_eq_B2

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

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

Let n≥1n\ge1n≥1, M≥2M\ge2M≥2, X∈Rn×MX\in\mathbb R^{n\times M}X∈Rn×M, f,w∈Rnf,w\in\mathbb R^nf,w∈Rn and r>0r>0r>0, and let the observations be y=f+wy=f+wy=f+w. Suppose that the noise lies in the event A\mathcal AA, that is,

2∣1n∑i=1nXijwi∣≤r ∥fj∥n(j=1,…,M),2\Big|\frac1n\sum_{i=1}^nX_{ij}w_i\Big|\le r\,\|f_j\|_n\qquad(j=1,\dots,M),2​n1​i=1∑n​Xij​wi​​≤r∥fj​∥n​(j=1,…,M),

equivalently (B.5): ∣1nD−1/2X⊤w∣∞≤r/2\big|\tfrac1nD^{-1/2}X^\top w\big|_\infty\le r/2​n1​D−1/2X⊤w​∞​≤r/2. Then every Lasso solution β^L\hat\beta_Lβ^​L​ (a minimiser of (2.1) for the data yyy) satisfies (B.2):

∣1nX⊤(f−Xβ^L)∣∞≤3rfmax⁡2,\Big|\frac1nX^\top\big(f-X\hat\beta_L\big)\Big|_\infty\le\frac{3rf_{\max}}{2},​n1​X⊤(f−Xβ^​L​)​∞​≤23rfmax​​,

where fmax⁡=max⁡j∥fj∥nf_{\max}=\max_j\|f_j\|_nfmax​=maxj​∥fj​∥n​.

Together with (B.4), which gives P(A)≥1−M1−A2/8\mathbb P(\mathcal A)\ge1-M^{1-A^2/8}P(A)≥1−M1−A2/8 for r=Aσlog⁡M/nr=A\sigma\sqrt{\log M/n}r=AσlogM/n​, this is the (B.2) part of Lemma B.1 of the paper. It controls the correlation of the Lasso's residual with the dictionary and is used in the half (B.16)–(B.17) of the proof of Theorem 5.1.

Formalization Note The statement is the deterministic core of Lemma B.1 (B.2): it holds for every noise vector in A\mathcal AA, which is how the paper's proof uses it ("To prove (B.2) it suffices to note that on A\mathcal AA we have (B.5)"). The ℓ∞\ell_\inftyℓ∞​ norm is written coordinatewise.

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

/-- Lemma B.1, (B.2), on the event `𝒜`: if the noise `w` lies in `𝒜` (i.e. (B.5),
`|(1/n) D^{−1/2} Xᵀ w|_∞ ≤ r/2`) and `y = f + w`, every Lasso solution `β̂_L` satisfies
`|(1/n) Xᵀ(f − Xβ̂_L)|_∞ ≤ 3 r f_max / 2`. -/
theorem lemma_B1_eq_B2 {n M : ℕ} (hn : 1 ≤ n) (hM : 2 ≤ M)
    (X : Matrix (Fin n) (Fin M) ℝ) (f w : Fin n → ℝ) (r : ℝ) (hr : 0 < r)
    (hw : NoiseEventHalf X r w) (βL : Fin M → ℝ) (hL : IsLasso X (fun i => f i + w i) r βL) :
    ∀ j : Fin M, |(1 / (n : ℝ)) * ∑ i, X i j * (f i - X.mulVec βL i)| ≤ 3 * r * fmax X / 2 := by sorry

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

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

Setting.

  • n≥1n\ge1n≥1 and M≥2M\ge2M≥2.
  • X∈Rn×MX\in\mathbb{R}^{n\times M}X∈Rn×M is arbitrary: columns with zero norm are allowed.
  • f,w∈Rnf,w\in\mathbb{R}^nf,w∈Rn and r>0r>0r>0.
  • www lies in event A\mathcal AA: for every jjj,
2 ∣1n∑iXijwi∣≤r ∥fj∥n,∥fj∥n=1n∑iXij2.2\,\Big|\tfrac1n\sum_i X_{ij}w_i\Big|\le r\,\|f_j\|_n,\qquad \|f_j\|_n=\sqrt{\tfrac1n\textstyle\sum_iX_{ij}^2}.2​n1​i∑​Xij​wi​​≤r∥fj​∥n​,∥fj​∥n​=n1​∑i​Xij2​​.
  • β^L\hat\beta_Lβ^​L​ is a global minimiser over RM\mathbb{R}^MRM of the Lasso objective with responses y=f+wy=f+wy=f+w:
1n∑i(fi+wi−(Xβ)i)2+2r∑j∥fj∥n∣βj∣.\tfrac1n\sum_i (f_i+w_i-(X\beta)_i)^2+2r\sum_j\|f_j\|_n|\beta_j|.n1​i∑​(fi​+wi​−(Xβ)i​)2+2rj∑​∥fj​∥n​∣βj​∣.

Claim. For every jjj,

∣1n∑i=1nXij(fi−(Xβ^L)i)∣≤3 r fmax⁡2,fmax⁡=max⁡1≤j≤M∥fj∥n.\Big|\tfrac1n\sum_{i=1}^n X_{ij}\big(f_i-(X\hat\beta_L)_i\big)\Big|\le \frac{3\,r\,f_{\max}}{2},\qquad f_{\max}=\max_{1\le j\le M}\|f_j\|_n .​n1​i=1∑n​Xij​(fi​−(Xβ^​L​)i​)​≤23rfmax​​,fmax​=1≤j≤Mmax​∥fj​∥n​.

The bound uses the common constant fmax⁡f_{\max}fmax​, not the individual ∥fj∥n\|f_j\|_n∥fj​∥n​.

Degenerate cases. Since n≥1n\ge1n≥1 and M≥2M\ge2M≥2, no division by zero or empty supremum 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