Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix B, Eq. (B.17) — ∥f^L−f∥n2≤∥f^D−f∥n2+9fmax⁡2r2M(β^L)/κ2\|\hat f_L-f\|_n^2\le\|\hat f_D-f\|_n^2+9f_{\max}^2r^2\mathcal M(\hat\beta_L)/\kappa^2∥f^​L​−f∥n2​≤∥f^​D​−f∥n2​+9fmax2​r2M(β^​L​)/κ2 on A\mathcal AA

Proved
LassoDantzig.Equivalence.eq_B17_lasso_side

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

dantzig-selectorlassop2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1prediction-loss

Let n≥1n\ge1n≥1, M≥2M\ge2M≥2, 1≤s≤M1\le s\le M1≤s≤M, X∈Rn×MX\in\mathbb R^{n\times M}X∈Rn×M with ∥fj∥n≠0\|f_j\|_n\ne0∥fj​∥n​=0 for all jjj, f,w∈Rnf,w\in\mathbb R^nf,w∈Rn, r>0r>0r>0, and y=f+wy=f+wy=f+w. Assume RE(s,1)(s,1)(s,1) holds with witness κ>0\kappa>0κ>0. Suppose the noise lies in the event A=⋂j{2∣1n∑iXijwi∣≤r∥fj∥n}\mathcal A=\bigcap_j\{2|\tfrac1n\sum_iX_{ij}w_i|\le r\|f_j\|_n\}A=⋂j​{2∣n1​∑i​Xij​wi​∣≤r∥fj​∥n​}. Then for every Lasso solution β^L\hat\beta_Lβ^​L​ with M(β^L)≤s\mathcal M(\hat\beta_L)\le sM(β^​L​)≤s and every Dantzig selector β^D\hat\beta_Dβ^​D​ (both for the data yyy and the same rrr),

∥f^L−f∥n2≤∥f^D−f∥n2+9fmax⁡2r2M(β^L)κ2.\|\hat f_L-f\|_n^2\le\|\hat f_D-f\|_n^2+\frac{9f_{\max}^2r^2\mathcal M(\hat\beta_L)}{\kappa^2}.∥f^​L​−f∥n2​≤∥f^​D​−f∥n2​+κ29fmax2​r2M(β^​L​)​.

This is the other side of the two-sided bound (5.1) of Theorem 5.1.

Formalization Note The paper states (B.17) "with probability at least 1−M1−A2/81-M^{1-A^2/8}1−M1−A2/8"; the statement here is the deterministic inequality on the event A\mathcal AA from which that follows. κ\kappaκ is any witness of RE(s,1)(s,1)(s,1).

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

/-- (B.17), deterministic form: on the event `𝒜`, under RE(s, 1) with witness `κ`, for every
Lasso solution `β̂_L` with `𝓜(β̂_L) ≤ s` and every Dantzig selector `β̂_D`,
`‖f̂_L − f‖_n² ≤ ‖f̂_D − f‖_n² + 9 f_max² r² 𝓜(β̂_L) / κ²`. -/
theorem eq_B17_lasso_side {n M : ℕ} (hn : 1 ≤ n) (hM : 2 ≤ M)
    (X : Matrix (Fin n) (Fin M) ℝ) (f w : Fin n → ℝ) (hX : ∀ j, colNorm X j ≠ 0)
    (s : ℕ) (hs1 : 1 ≤ s) (hsM : s ≤ M) (κ : ℝ) (hκ : 0 < κ) (hRE : RE X s 1 κ)
    (r : ℝ) (hr : 0 < r) (hw : NoiseEventHalf X r w)
    (βL βD : Fin M → ℝ) (hL : IsLasso X (fun i => f i + w i) r βL)
    (hD : IsDantzig X (fun i => f i + w i) r βD) (hsp : sparsity βL ≤ s) :
    predLoss X f βL ≤
      predLoss X f βD + 9 * fmax X ^ 2 * r ^ 2 * (sparsity βL : ℝ) / κ ^ 2 := by sorry

end LassoDantzig.Equivalence
Source
Bickel, Ritov and Tsybakov, Simultaneous Analysis of Lasso and Dantzig Selector, arXiv:0801.1095v3, p. 24, Appendix B, proof of Theorem 5.1, Eqs. (B.16)–(B.17)
Read-back

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

Setting. The hypotheses are:

  • Dimensions: n≥1n\ge1n≥1 and M≥2M\ge2M≥2.
  • Design: X∈Rn×MX\in\mathbb{R}^{n\times M}X∈Rn×M, with all column norms ∥fj∥n=1n∑iXij2\|f_j\|_n=\sqrt{\tfrac1n\sum_iX_{ij}^2}∥fj​∥n​=n1​∑i​Xij2​​ non-zero.
  • Data: f,w∈Rnf,w\in\mathbb{R}^nf,w∈Rn.
  • Sparsity level: s∈Ns\in\mathbb{N}s∈N with 1≤s≤M1\le s\le M1≤s≤M.
  • RE(s,1)(s,1)(s,1) with constant κ>0\kappa>0κ>0: for every J0J_0J0​ with ∣J0∣≤s|J_0|\le s∣J0​∣≤s and every non-zero δ\deltaδ with ∑j∉J0∣δj∣≤∑j∈J0∣δj∣\sum_{j\notin J_0}|\delta_j|\le\sum_{j\in J_0}|\delta_j|∑j∈/J0​​∣δj​∣≤∑j∈J0​​∣δj​∣,
κn (∑j∈J0δj2)1/2≤∣Xδ∣2.\kappa\sqrt n\,\big(\textstyle\sum_{j\in J_0}\delta_j^2\big)^{1/2}\le|X\delta|_2.κn​(∑j∈J0​​δj2​)1/2≤∣Xδ∣2​.
  • Noise: r>0r>0r>0, and www lies in event A\mathcal AA: for all jjj, 2∣1n∑iXijwi∣≤r∥fj∥n2\big|\tfrac1n\sum_iX_{ij}w_i\big|\le r\|f_j\|_n2​n1​∑i​Xij​wi​​≤r∥fj​∥n​.
  • Lasso solution: β^L\hat\beta_Lβ^​L​ is a global minimiser of 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+2r∑j​∥fj​∥n​∣βj​∣.
  • Dantzig selector: β^D\hat\beta_Dβ^​D​ is a Dantzig selector for responses f+wf+wf+w. It satisfies ∣1n∑iXij(fi+wi−(Xβ^D)i)∣≤r∥fj∥n\big|\tfrac1n\sum_iX_{ij}(f_i+w_i-(X\hat\beta_D)_i)\big|\le r\|f_j\|_n​n1​∑i​Xij​(fi​+wi​−(Xβ^​D​)i​)​≤r∥fj​∥n​ for all jjj, with minimal unweighted ℓ1\ell_1ℓ1​ norm among such vectors.
  • Sparsity: M(β^L)≤s\mathcal M(\hat\beta_L)\le sM(β^​L​)≤s. The sparsity condition is on the Lasso solution.

Claim. With L(β)=1n∑i((Xβ)i−fi)2L(\beta)=\tfrac1n\sum_i((X\beta)_i-f_i)^2L(β)=n1​∑i​((Xβ)i​−fi​)2 and fmax⁡=max⁡j∥fj∥nf_{\max}=\max_j\|f_j\|_nfmax​=maxj​∥fj​∥n​,

L(β^L)≤L(β^D)+9 fmax⁡2 r2 M(β^L)κ2.L(\hat\beta_L)\le L(\hat\beta_D)+\frac{9\,f_{\max}^2\,r^2\,\mathcal M(\hat\beta_L)}{\kappa^2}.L(β^​L​)≤L(β^​D​)+κ29fmax2​r2M(β^​L​)​.

Degenerate cases.

  • If the RE hypothesis cannot be met, the statement is vacuous. For example, it fails for every design when n=1n=1n=1 and M≥2M\ge2M≥2: a non-zero δ\deltaδ supported on two coordinates can lie in the cone with Xδ=0X\delta=0Xδ=0.
  • If β^L=0\hat\beta_L=0β^​L​=0, the extra term is 000.
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