Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 7.1, (B.25) — on B\mathcal BB: 1n∣Xδ∣22≤4rs ∣δJ0∣2\frac1n|X\delta|_2^2\le 4r\sqrt s\,|\delta_{J_0}|_2n1​∣Xδ∣22​≤4rs​∣δJ0​​∣2​

Proved
LassoDantzig.Dantzig.eq_B25

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

dantzig-selectorhigh-dimensional-statisticsp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1prediction-error

Consider the linear model y=Xβ∗+wy=X\beta^*+wy=Xβ∗+w with X∈Rn×MX\in\mathbb R^{n\times M}X∈Rn×M, n≥1n\ge1n≥1, all diagonal elements of XTX/nX^TX/nXTX/n equal to 1, and M(β∗)≤s\mathcal M(\beta^*)\le sM(β∗)≤s. Suppose the noise vector www lies in the event B\mathcal BB, i.e. ∣1n∑iXijwi∣≤r|\frac1n\sum_iX_{ij}w_i|\le r∣n1​∑i​Xij​wi​∣≤r for every jjj, and let β^D\hat\beta_Dβ^​D​ be a Dantzig selector (7.3), i.e. β^D∈arg⁡min⁡β∈Λ∣β∣1\hat\beta_D\in\arg\min_{\beta\in\Lambda}|\beta|_1β^​D​∈argminβ∈Λ​∣β∣1​ with Λ={β:∣1nXT(y−Xβ)∣∞≤r}\Lambda=\{\beta:|\frac1nX^T(y-X\beta)|_\infty\le r\}Λ={β:∣n1​XT(y−Xβ)∣∞​≤r}. Set δ=β^D−β∗\delta=\hat\beta_D-\beta^*δ=β^​D​−β∗ and J0=J(β∗)J_0=J(\beta^*)J0​=J(β∗). Then

  1. β∗∈Λ\beta^*\in\Lambdaβ∗∈Λ;
  2. 1n∣XTXδ∣∞≤2r\frac1n|X^TX\delta|_\infty\le2rn1​∣XTXδ∣∞​≤2r;
  3. δ\deltaδ satisfies the cone condition (4.1) with c0=1c_0=1c0​=1: ∣δJ0c∣1≤∣δJ0∣1|\delta_{J_0^c}|_1\le|\delta_{J_0}|_1∣δJ0c​​∣1​≤∣δJ0​​∣1​;
  4. the prediction error is controlled by the error on the support:
1n∣Xδ∣22≤4rs ∣δJ0∣2.(B.25)\frac1n|X\delta|_2^2\le4r\sqrt s\,|\delta_{J_0}|_2 . \tag{B.25}n1​∣Xδ∣22​≤4rs​∣δJ0​​∣2​.(B.25)

Combined with the restricted eigenvalue assumption this gives all the rates of Theorem 7.1.

Formalization Note The event B\mathcal BB is written with the weights ∥fj∥n\|f_j\|_n∥fj​∥n​ of the general definition; under the unit-diagonal hypothesis they equal 1. The statement is deterministic: it holds for every realised noise vector in B\mathcal BB and every Dantzig selector.

Preamble
import Mathlib
import Definitions.Def_LassoDantzig_Dantzig_Model
Formal statement
namespace LassoDantzig.Dantzig

/-- Proof of Theorem 7.1, (B.25) (p. 27). Linear model `y = Xβ* + w` with unit diagonal
`XᵀX/n`, `𝓜(β*) ≤ s`, a realised noise vector `w` in the event `ℬ`, and a Dantzig selector
`β̂_D` (7.3). With `δ = β̂_D − β*` and `J₀ = J(β*)`: `β* ∈ Λ`;
(i) `(1/n)|XᵀXδ|_∞ ≤ 2r`; (ii) the cone condition (4.1) holds with `c₀ = 1`; and
`(1/n)|Xδ|_2² ≤ 4r√s |δ_{J₀}|_2`. -/
theorem eq_B25 {n M : ℕ} (hn : 1 ≤ n) (X : Matrix (Fin n) (Fin M) ℝ)
    (hdiag : ∀ j, (1 / (n : ℝ)) * ∑ i, X i j ^ 2 = 1)
    (βstar : Fin M → ℝ) (s : ℕ) (hsparse : sparsity βstar ≤ s)
    (w : Fin n → ℝ) (r : ℝ) (hB : NoiseEvent X r w)
    (βD : Fin M → ℝ) (hD : IsDantzig X (fun i => X.mulVec βstar i + w i) r βD) :
    InLambda X (fun i => X.mulVec βstar i + w i) r βstar ∧
    (∀ j : Fin M, |(1 / (n : ℝ)) * ∑ i, X i j * X.mulVec (βD - βstar) i| ≤ 2 * r) ∧
    ConeCond 1 (supp βstar) (βD - βstar) ∧
    (1 / (n : ℝ)) * ∑ i, X.mulVec (βD - βstar) i ^ 2 ≤
      4 * r * Real.sqrt s * l2On (βD - βstar) (supp βstar) := by sorry

end LassoDantzig.Dantzig
Source
Bickel, Ritov and Tsybakov, Simultaneous Analysis of Lasso and Dantzig Selector, arXiv:0801.1095v3, p. 27, proof of Theorem 7.1, Eq. (B.25) and the sentence before it
Read-back

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

Setting.

  • n≥1n\ge1n≥1, M∈NM\in\mathbb NM∈N, and XXX is a real n×Mn\times Mn×M matrix with 1n∑iXij2=1\tfrac1n\sum_i X_{ij}^2=1n1​∑i​Xij2​=1 for every jjj. Hence every column norm ∥fj∥n=1n∑iXij2\|f_j\|_n=\sqrt{\tfrac1n\sum_i X_{ij}^2}∥fj​∥n​=n1​∑i​Xij2​​ equals 111.
  • β∗∈RM\beta^*\in\mathbb R^Mβ∗∈RM has at most sss nonzero coordinates, where s∈Ns\in\mathbb Ns∈N.
  • w∈Rnw\in\mathbb R^nw∈Rn, and r∈Rr\in\mathbb Rr∈R has no sign condition.
  • www lies in the noise event: ∣1n∑iXijwi∣≤r ∥fj∥n\big|\tfrac1n\sum_i X_{ij}w_i\big|\le r\,\|f_j\|_n​n1​∑i​Xij​wi​​≤r∥fj​∥n​ for every jjj.
  • y=Xβ∗+wy=X\beta^*+wy=Xβ∗+w.
  • β^D\hat\beta_Dβ^​D​ is a Dantzig selector for the linear model. That is, β^D∈Λ={β:∣1n∑iXij(yi−(Xβ)i)∣≤r ∀j}\hat\beta_D\in\Lambda=\{\beta:|\tfrac1n\sum_i X_{ij}(y_i-(X\beta)_i)|\le r\ \forall j\}β^​D​∈Λ={β:∣n1​∑i​Xij​(yi​−(Xβ)i​)∣≤r ∀j}, and ∑j∣β^D,j∣≤∑j∣βj∣\sum_j|\hat\beta_{D,j}|\le\sum_j|\beta_j|∑j​∣β^​D,j​∣≤∑j​∣βj​∣ for every β∈Λ\beta\in\Lambdaβ∈Λ.
  • δ=β^D−β∗\delta=\hat\beta_D-\beta^*δ=β^​D​−β∗, and J0={j:βj∗≠0}J_0=\{j:\beta^*_j\ne0\}J0​={j:βj∗​=0}.

Conclusion. All four of the following hold:

  1. β∗∈Λ\beta^*\in\Lambdaβ∗∈Λ.
  2. For every jjj: ∣1n∑iXij(Xδ)i∣≤2r\big|\tfrac1n\sum_i X_{ij}(X\delta)_i\big|\le 2r​n1​∑i​Xij​(Xδ)i​​≤2r.
  3. ∑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​∣.
  4. The prediction error satisfies
1n∑i(Xδ)i2≤4rs ∑j∈J0δj2.\frac1n\sum_i (X\delta)_i^2\le 4r\sqrt s\,\sqrt{\textstyle\sum_{j\in J_0}\delta_j^2}.n1​i∑​(Xδ)i2​≤4rs​∑j∈J0​​δj2​​.

Degenerate cases:

  • r<0r<0r<0. If M≥1M\ge1M≥1, the noise-event hypothesis cannot hold, so the statement is vacuous.
  • M=0M=0M=0. Every quantity is 000.
  • s=0s=0s=0. Then β∗=0\beta^*=0β∗=0 and J0=∅J_0=\emptysetJ0​=∅, so items 3–4 force δ=0\delta=0δ=0 and Xδ=0X\delta=0Xδ=0.
  • No selector. Existence of a Dantzig selector is assumed, not asserted.
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