Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (31) — ∥u(r)∥2≤32∥Z+∥2∥b(r)∥2\|u^{(r)}\|_2\le \tfrac32\|Z^+\|_2\|b^{(r)}\|_2∥u(r)∥2​≤23​∥Z+∥2​∥b(r)∥2​

Proved
SparseApprox.Greedy.norm_le_pinv_Z

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

greedy-algorithmp2o-batch-p200ap2o-gran-per-chapterp2o-plan-paperp2o-v1sparse-approximation

Throughout, A∈Rm×nA\in\mathbb R^{m\times n}A∈Rm×n, b∈Rmb\in\mathbb R^mb∈Rm and ε>0\varepsilon>0ε>0 are the input of Algorithm Greedy, and k0,k1,…k_0,k_1,\dotsk0​,k1​,… are the indices it selects. For r<tr<tr<t, A(r)A^{(r)}A(r) (columns aj(r)a^{(r)}_jaj(r)​), b(r)b^{(r)}b(r) and τ(r)\tau^{(r)}τ(r) are the columns, the vector bbb and the set of chosen indices at the start of iteration rrr of a run of ttt selection iterations, as computed by the algorithm.

Let r<tr<tr<t, let u(r)u^{(r)}u(r) be a vector with the minimum number of nonzero entries such that ∥A(r)u(r)−b(r)∥2≤ε/2\|A^{(r)}u^{(r)}-b^{(r)}\|_2\le\varepsilon/2∥A(r)u(r)−b(r)∥2​≤ε/2, let σ={i:ui(r)≠0}\sigma=\{i : u^{(r)}_i\neq0\}σ={i:ui(r)​=0} and τ={k0,…,kr−1}\tau=\{k_0,\dots,k_{r-1}\}τ={k0​,…,kr−1​}. Let ZZZ be the m×∣σ∪τ∣m\times|\sigma\cup\tau|m×∣σ∪τ∣ matrix with columns ai(0)a^{(0)}_iai(0)​, i∈σ∪τi\in\sigma\cup\taui∈σ∪τ (columns of A\mathbf AA), and Z+Z^+Z+ its pseudo-inverse. Then

∥u(r)∥2≤32 ∥Z+∥2 ∥b(r)∥2.\|u^{(r)}\|_2\le\frac32\,\|Z^+\|_2\,\|b^{(r)}\|_2 .∥u(r)∥2​≤23​∥Z+∥2​∥b(r)∥2​.

This is the content of Lemma 2 that holds for every matrix AAA; Lemma 2 itself then compares ∥Z+∥2\|Z^+\|_2∥Z+∥2​ with ∥A+∥2\|\mathbf A^+\|_2∥A+∥2​.

Formalization Note Z+Z^+Z+ is given as any matrix satisfying the four Penrose equations for ZZZ (it is unique), and ∥⋅∥2\|\cdot\|_2∥⋅∥2​ is the ℓ2→ℓ2\ell_2\to\ell_2ℓ2​→ℓ2​ operator norm.

Preamble
import Mathlib
import Definitions.Def_SparseApprox_Greedy_Basic
import Definitions.Def_SparseApprox_Greedy_Algorithm

open scoped InnerProductSpace
Formal statement
namespace SparseApprox.Greedy

theorem norm_le_pinv_Z {m n : ℕ} (A : Matrix (Fin m) (Fin n) ℝ)
    (b : EuclideanSpace ℝ (Fin m)) (ε : ℝ) (hε : 0 < ε) (k : ℕ → Fin n) (t : ℕ)
    (hrun : IsGreedyRun A b ε k t) (r : ℕ) (hr : r < t) (u : EuclideanSpace ℝ (Fin n))
    (hu : IsMinSparseSol (greedyState A b k r).col (greedyState A b k r).res (ε / 2) u)
    (PZ : Matrix ↥(nzSet u ∪ (greedyState A b k r).chosen) (Fin m) ℝ)
    (hPZ : IsMoorePenrose
      (colsMatrix (fun i : ↥(nzSet u ∪ (greedyState A b k r).chosen) => (initState A b).col i))
      PZ) :
    ‖u‖ ≤ 3 / 2 * opNorm2 PZ * ‖(greedyState A b k r).res‖ := by sorry

end SparseApprox.Greedy
Source
Natarajan, Sparse Approximate Solutions to Linear Systems, SIAM J. Comput. 24 (1995), p. 233, Eq. (31) (with (29)–(30), proof of Lemma 2)
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