Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Optimality bound ∥w∗∥1≤1nc∑iyi2\|w^*\|_1 \le \frac{1}{nc}\sum_i y_i^2∥w∗∥1​≤nc1​∑i​yi2​ for a Lasso solution

Proved
XuMannorRobust.Lasso.lasso_l1_norm_bound

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

lassolearning-theoryp2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1regression

Let c>0c > 0c>0, let s=((y1,x1),…,(yn,xn))\mathbf s = ((y_1, x_1), \dots, (y_n, x_n))s=((y1​,x1​),…,(yn​,xn​)) be a training set with yi∈Ry_i \in \mathbb Ryi​∈R and xi∈Rmx_i \in \mathbb R^mxi​∈Rm, and let w∗w^*w∗ be a solution of the Lasso

min⁡w1n∑i=1n(yi−xi⊤w)2+c∥w∥1.\min_w \frac1n \sum_{i=1}^n (y_i - x_i^\top w)^2 + c\|w\|_1 .wmin​n1​i=1∑n​(yi​−xi⊤​w)2+c∥w∥1​.

Then, comparing with w=0w = 0w=0,

1n∑i=1n(yi−xi⊤w∗)2+c∥w∗∥1≤1n∑i=1n(yi−xi⊤0)2+c∥0∥1=1n∑i=1nyi2,\frac1n \sum_{i=1}^n (y_i - x_i^\top w^*)^2 + c\|w^*\|_1 \le \frac1n \sum_{i=1}^n (y_i - x_i^\top 0)^2 + c\|0\|_1 = \frac1n \sum_{i=1}^n y_i^2,n1​i=1∑n​(yi​−xi⊤​w∗)2+c∥w∗∥1​≤n1​i=1∑n​(yi​−xi⊤​0)2+c∥0∥1​=n1​i=1∑n​yi2​,

and consequently

∥w∗∥1≤1nc∑i=1nyi2.\|w^*\|_1 \le \frac{1}{nc} \sum_{i=1}^n y_i^2 .∥w∗∥1​≤nc1​i=1∑n​yi2​.

This a priori bound on the size of any Lasso solution is what makes the Lasso's loss Lipschitz in the sample with a data-dependent constant (Lemma 3).

Formalization Note The statement is the conjunction of the three displayed facts. The factors 1/n1/n1/n and 1/(nc)1/(nc)1/(nc) are real divisions; for n=0n = 0n=0 both are 000 in Lean, consistently with the fact that the only Lasso solution is then w∗=0w^* = 0w∗=0.

Preamble
import Mathlib
import Definitions.Def_XuMannorRobust_Lasso_LassoFormulation
Formal statement
namespace XuMannorRobust.Lasso

/-- **Optimality bound on the Lasso solution** (Xu & Mannor 2012, p. 419, proof of Lemma 3).
If `c > 0` and `w*` solves the Lasso (5) for the training set `s`, then its objective value is at
most that of `w = 0`, which equals `(1/n) ∑ y_i²`, and hence `‖w*‖₁ ≤ (1/(nc)) ∑ y_i²`. -/
theorem lasso_l1_norm_bound {m n : ℕ} (c : ℝ) (hc : 0 < c)
    (s : Fin n → ℝ × (Fin m → ℝ)) (w : Fin m → ℝ) (hw : IsLassoSolution c s w) :
    lassoObjective c s w ≤ lassoObjective c s 0 ∧
    lassoObjective c s 0 = (1 / (n : ℝ)) * ∑ i, (s i).1 ^ 2 ∧
    l1norm w ≤ (1 / ((n : ℝ) * c)) * ∑ i, (s i).1 ^ 2 := by sorry

end XuMannorRobust.Lasso
Source
Xu & Mannor, Robustness and Generalization, Mach Learn 86 (2012), DOI 10.1007/s10994-011-5268-1, p. 419, Appendix F, proof of Lemma 3 (optimality display)
Human review
  • Endorsed by Shuze Chen · Oct 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 1, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me