Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

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

Proved
LassoDantzig.Equivalence.eq_B15_dantzig_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: κn∣δJ0∣2≤∣Xδ∣2\kappa\sqrt n|\delta_{J_0}|_2\le|X\delta|_2κn​∣δJ0​​∣2​≤∣Xδ∣2​ whenever ∣J0∣≤s|J_0|\le s∣J0​∣≤s, δ≠0\delta\ne0δ=0 and ∣δJ0c∣1≤∣δJ0∣1|\delta_{J_0^c}|_1\le|\delta_{J_0}|_1∣δJ0c​​∣1​≤∣δJ0​​∣1​. Suppose the noise lies in the event B=⋂j{∣1n∑iXijwi∣≤r∥fj∥n}\mathcal B=\bigcap_j\{|\tfrac1n\sum_iX_{ij}w_i|\le r\|f_j\|_n\}B=⋂j​{∣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^D−f∥n2≤∥f^L−f∥n2+16fmax⁡2r2M(β^L)κ2,\|\hat f_D-f\|_n^2\le\|\hat f_L-f\|_n^2+\frac{16f_{\max}^2r^2\mathcal M(\hat\beta_L)}{\kappa^2},∥f^​D​−f∥n2​≤∥f^​L​−f∥n2​+κ216fmax2​r2M(β^​L​)​,

where f^L=Xβ^L\hat f_L=X\hat\beta_Lf^​L​=Xβ^​L​, f^D=Xβ^D\hat f_D=X\hat\beta_Df^​D​=Xβ^​D​ and ∥g−f∥n2=1n∑i(gi−fi)2\|g-f\|_n^2=\tfrac1n\sum_i(g_i-f_i)^2∥g−f∥n2​=n1​∑i​(gi​−fi​)2.

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

Formalization Note The paper states (B.15) "with probability at least 1−M1−A2/21-M^{1-A^2/2}1−M1−A2/2"; the statement here is the deterministic inequality on the event B\mathcal BB from which that follows. κ\kappaκ is any witness of RE(s,1)(s,1)(s,1) (see the definition file); the paper's κ(s,1)\kappa(s,1)κ(s,1) is the largest one.

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

/-- (B.15), 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̂_D − f‖_n² ≤ ‖f̂_L − f‖_n² + 16 f_max² r² 𝓜(β̂_L) / κ²`. -/
theorem eq_B15_dantzig_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 : NoiseEvent 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 βD ≤
      predLoss X f βL + 16 * 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, Eq. (B.15)
Read-back

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

Setting.

  • Dimensions: n≥1n\ge1n≥1 and M≥2M\ge2M≥2.
  • Design: X∈Rn×MX\in\mathbb{R}^{n\times M}X∈Rn×M, with every column norm ∥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 index set J0J_0J0​ with ∣J0∣≤s|J_0|\le s∣J0​∣≤s and every non-zero δ∈RM\delta\in\mathbb{R}^Mδ∈RM 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(\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 B\mathcal BB: for all jjj, ∣1n∑iXijwi∣≤r∥fj∥n\big|\tfrac1n\sum_iX_{ij}w_i\big|\le r\|f_j\|_n​n1​∑i​Xij​wi​​≤r∥fj​∥n​.
  • Lasso solution: β^L\hat\beta_Lβ^​L​ is a global minimiser of the Lasso objective 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, as defined in the Model declaration.
  • Sparsity: the number of non-zero entries of β^L\hat\beta_Lβ^​L​ satisfies M(β^L)≤s\mathcal M(\hat\beta_L)\le sM(β^​L​)≤s.

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(β^D)≤L(β^L)+16 fmax⁡2 r2 M(β^L)κ2.L(\hat\beta_D)\le L(\hat\beta_L)+\frac{16\,f_{\max}^2\,r^2\,\mathcal M(\hat\beta_L)}{\kappa^2}.L(β^​D​)≤L(β^​L​)+κ216fmax2​r2M(β^​L​)​.

Degenerate cases.

  • The RE hypothesis requires Xδ≠0X\delta\ne0Xδ=0 for every non-zero δ\deltaδ in the relevant cones. This can be impossible for some designs, and then the theorem is vacuous. For example, when n=1n=1n=1 and M≥2M\ge2M≥2 it can never hold: take J0={k}J_0=\{k\}J0​={k} with ∣X1k∣≤∣X1j∣|X_{1k}|\le|X_{1j}|∣X1k​∣≤∣X1j​∣, δk=1\delta_k=1δk​=1, δj=−X1k/X1j\delta_j=-X_{1k}/X_{1j}δj​=−X1k​/X1j​. Then δ\deltaδ is in the cone but Xδ=0X\delta=0Xδ=0.
  • If β^L=0\hat\beta_L=0β^​L​=0, the extra term vanishes.
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