Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Corollary 3 — ∥b−Ax∥2+nc∥x∥1+nc=sup⁡μ∈P^(n)n∫(b′−r′⊤x)2 dμ\|b-Ax\|_2+\sqrt n c\|x\|_1+\sqrt n c=\sup_{\mu\in\hat{\mathcal P}(n)}\sqrt{n\int(b'-r'^\top x)^2\,d\mu}∥b−Ax∥2​+n​c∥x∥1​+n​c=supμ∈P^(n)​n∫(b′−r′⊤x)2dμ​

Proved
RobustRegLasso.WorstCaseExp.corollary_3_worst_case_expectation

by mikedeng1 · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

distributionally-robust-optimizationlassop2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1regressionrobust-optimization

Let n≥1n\ge1n≥1 and mmm be integers, b∈Rnb\in\mathbb R^nb∈Rn, A=(aij)∈Rn×mA=(a_{ij})\in\mathbb R^{n\times m}A=(aij​)∈Rn×m with rows ri⊤r_i^\topri⊤​, and c≥0c\ge0c≥0. For σ∈Rn\sigma\in\mathbb R^nσ∈Rn and Δ=(δij)∈Rn×m\Delta=(\delta_{ij})\in\mathbb R^{n\times m}Δ=(δij​)∈Rn×m with columns δ1,…,δm\delta_1,\dots,\delta_mδ1​,…,δm​, let Zi=[bi−σi,bi+σi]×∏j=1m[aij−δij,aij+δij]\mathcal Z_i=[b_i-\sigma_i,b_i+\sigma_i]\times\prod_{j=1}^m[a_{ij}-\delta_{ij},a_{ij}+\delta_{ij}]Zi​=[bi​−σi​,bi​+σi​]×∏j=1m​[aij​−δij​,aij​+δij​] and let

Pn(A,Δ,b,σ)={μ Borel probability measure on Rm+1 ∣ ∀S⊆{1,…,n}: μ(⋃i∈SZi)≥∣S∣n},P^(n)=⋃∥σ∥2≤nc; ∀j: ∥δj∥2≤ncPn(A,Δ,b,σ).\mathcal P_n(A,\Delta,b,\sigma)=\Big\{\mu \text{ Borel probability measure on }\mathbb R^{m+1}\ \Big|\ \forall S\subseteq\{1,\dots,n\}:\ \mu\Big(\bigcup_{i\in S}\mathcal Z_i\Big)\ge\frac{|S|}{n}\Big\},\qquad \hat{\mathcal P}(n)=\bigcup_{\|\sigma\|_2\le\sqrt n c;\ \forall j:\ \|\delta_j\|_2\le\sqrt n c}\mathcal P_n(A,\Delta,b,\sigma).Pn​(A,Δ,b,σ)={μ Borel probability measure on Rm+1 ​ ∀S⊆{1,…,n}: μ(i∈S⋃​Zi​)≥n∣S∣​},P^(n)=∥σ∥2​≤n​c; ∀j: ∥δj​∥2​≤n​c⋃​Pn​(A,Δ,b,σ).

Then for every x∈Rmx\in\mathbb R^mx∈Rm,

∥b−Ax∥2+n c ∥x∥1+n c=sup⁡μ∈P^(n) n∫Rm+1(b′−r′⊤x)2 dμ(r′,b′) .\|b-Ax\|_2+\sqrt n\,c\,\|x\|_1+\sqrt n\,c=\sup_{\mu\in\hat{\mathcal P}(n)}\sqrt{\,n\int_{\mathbb R^{m+1}}(b'-r'^\top x)^2\,d\mu(r',b')\,}.∥b−Ax∥2​+n​c∥x∥1​+n​c=μ∈P^(n)sup​n∫Rm+1​(b′−r′⊤x)2dμ(r′,b′)​.

The equation is deterministic: it holds for an arbitrary data set (b,A)(b,A)(b,A), with no probabilistic assumption on how the samples were generated. It says that the robust (equivalently, ℓ1\ell_1ℓ1​-regularized) regression loss on the training data equals the worst-case expected squared prediction error, over a class of distributions placing mass at least ∣S∣/n|S|/n∣S∣/n on the union of the boxes around any ∣S∣|S|∣S∣ samples. This is the bridge the paper uses to derive the consistency of Lasso from robustness.

Formalization Note The supremum is taken in [0,∞][0,\infty][0,∞] and stated as a least upper bound (IsLUB); the paper does not claim it is attained and the statement does not either. The integral is the Lebesgue integral of the nonnegative integrand in [0,∞][0,\infty][0,∞] (no Bochner integral, no integrability hypothesis), and the left-hand side, a nonnegative real, is embedded in [0,∞][0,\infty][0,∞]. Points of Rm+1\mathbb R^{m+1}Rm+1 are Fin (m+1) → ℝ with the response first. The hypotheses n≥1n\ge1n≥1 and c≥0c\ge0c≥0 are the paper's setting, implicit on the page; ccc is a fixed constant (the paper's cnc_ncn​). No sign condition is imposed on σ\sigmaσ or Δ\DeltaΔ, exactly as printed: a pair with some negative entry gives an empty box Zi\mathcal Z_iZi​, and then Pn(A,Δ,b,σ)=∅\mathcal P_n(A,\Delta,b,\sigma)=\emptysetPn​(A,Δ,b,σ)=∅ (take S={i}S=\{i\}S={i}), so such pairs add nothing to P^(n)\hat{\mathcal P}(n)P^(n).

Preamble
import Mathlib
import Definitions.Def_RobustRegLasso_WorstCaseExp_Basic
Formal statement
namespace RobustRegLasso.WorstCaseExp

/-- Corollary 3, Eq. (8) (arXiv:0811.1790v1, p. 11; restated as Eq. (20), p. 22): for every
`b ∈ ℝⁿ` (`n ≥ 1`), `A ∈ ℝ^{n×m}`, `c ≥ 0` and `x ∈ ℝᵐ`,
`‖b − Ax‖₂ + √n c‖x‖₁ + √n c = sup_{μ ∈ P̂(n)} √(n ∫_{ℝ^{m+1}} (b' − r'ᵀx)² dμ(r', b'))`,
the supremum taken in `[0, ∞]` as a least upper bound. -/
theorem corollary_3_worst_case_expectation {n m : ℕ} (hn : 0 < n)
    (A : Matrix (Fin n) (Fin m) ℝ) (b : Fin n → ℝ) (c : ℝ) (hc : 0 ≤ c) (x : Fin m → ℝ) :
    IsLUB {v : ENNReal | ∃ μ ∈ hatP A b c, v = rootScaledRisk n x μ}
      (ENNReal.ofReal (regularizedLoss A b c x)) := by sorry

end RobustRegLasso.WorstCaseExp
Source
Xu, Caramanis, Mannor, Robust Regression and Lasso, arXiv:0811.1790v1, p. 11, Corollary 3, Eq. (8) (restated with proof on p. 22, Appendix D, Eq. (20))
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 7, 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