Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 23.8 (Candès): for ε < 1/(1+√2) and W (ε,2s)-RIP, the ℓ₁-minimizer x⋆ with Wx⋆ = Wx has ‖x⋆ − x‖₂ ≤ 2(1+ρ)/(1−ρ) s^{−1/2}‖x − x_s‖₁, ρ = √2ε/(1−ε)

Proved
UnderstandingML.rip_l1_recovery

by naimengye · Sep 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

basis-pursuitcompressed-sensingrestricted-isometrysparse-recovery

Theorem 23.8. Let ϵ<11+2\epsilon < \frac1{1+\sqrt2}ϵ<1+2​1​ and let WWW be an (ϵ,2s)(\epsilon, 2s)(ϵ,2s)-RIP matrix. Let xxx be an arbitrary vector and denote xs∈argmin⁡v:∥v∥0≤s∥x−v∥1x_s \in \operatorname{argmin}_{v : \|v\|_0 \le s}\|x - v\|_1xs​∈argminv:∥v∥0​≤s​∥x−v∥1​, the vector which equals xxx on the sss largest elements of xxx and equals 000 elsewhere. Let y=Wxy = Wxy=Wx be the compression of xxx and let x⋆∈argmin⁡v:Wv=y∥v∥1x^\star \in \operatorname{argmin}_{v : Wv = y}\|v\|_1x⋆∈argminv:Wv=y​∥v∥1​ be the reconstructed vector. Then

∥x⋆−x∥2≤21+ρ1−ρ s−1/2∥x−xs∥1,ρ=2ϵ/(1−ϵ).\|x^\star - x\|_2 \le 2\frac{1+\rho}{1-\rho}\, s^{-1/2}\|x - x_s\|_1, \qquad \rho = \sqrt2\epsilon/(1-\epsilon).∥x⋆−x∥2​≤21−ρ1+ρ​s−1/2∥x−xs​∥1​,ρ=2​ϵ/(1−ϵ).

Formally: s≥1s \ge 1s≥1, 0≤ϵ0 \le \epsilon0≤ϵ, xsx_sxs​ any minimizer of ∥x−v∥1\|x - v\|_1∥x−v∥1​ over ∥v∥0≤s\|v\|_0 \le s∥v∥0​≤s, x⋆x^\starx⋆ any ℓ1\ell_1ℓ1​-minimizer subject to Wv=WxWv = WxWv=Wx; the proof's simplifying assumption that d/sd/sd/s is an integer is not needed.

Preamble
import Definitions.Def_UnderstandingML_DimReduction

open MeasureTheory ProbabilityTheory
Formal statement
namespace UnderstandingML

/-- **Theorem 23.8 (Candès 2008)** (p. 332). Let `ε < 1/(1 + √2)` and let `W` be an
`(ε, 2s)`-RIP matrix. Let `x` be an arbitrary vector and denote `x_s ∈ argmin_{v : ‖v‖₀ ≤ s} ‖x − v‖₁`
(the vector which equals `x` on the `s` largest elements of `x` and `0` elsewhere). Let `y = Wx`
and let `x⋆ ∈ argmin_{v : Wv = y} ‖v‖₁` be the reconstructed vector. Then
`‖x⋆ − x‖₂ ≤ 2 (1 + ρ)/(1 − ρ) s^{−1/2} ‖x − x_s‖₁`, where `ρ = √2 ε/(1 − ε)`. `s ≥ 1`. -/
theorem rip_l1_recovery {n d s : ℕ} (hs : 0 < s) (ε : ℝ) (hε0 : 0 ≤ ε)
    (hε : ε < 1 / (1 + Real.sqrt 2)) (W : Matrix (Fin n) (Fin d) ℝ) (hW : IsRIP ε (2 * s) W)
    (x xs xstar : Fin d → ℝ) (hxs : l0Norm xs ≤ s)
    (hxs_min : ∀ v, l0Norm v ≤ s → l1Norm (x - xs) ≤ l1Norm (x - v))
    (hy : W.mulVec xstar = W.mulVec x)
    (hmin : ∀ v, W.mulVec v = W.mulVec x → l1Norm xstar ≤ l1Norm v) :
    Real.sqrt (sqNorm (xstar - x)) ≤
      2 * (1 + Real.sqrt 2 * ε / (1 - ε)) / (1 - Real.sqrt 2 * ε / (1 - ε)) *
        (s : ℝ) ^ (-(1 : ℝ) / 2) * l1Norm (x - xs) := by sorry

end UnderstandingML
Source
Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press 2014, doi:10.1017/CBO9781107298019, §23.3 p. 332, Theorem 23.8, proved in §23.3.1 pp. 333-335 (Candès 2008)
Human review
  • Endorsed by Shuze Chen · Sep 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by naimengye · Sep 25, 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