Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (18) — ∥b(r+1)∥22≤(1−1/ρ)∥b(r)∥22\|b^{(r+1)}\|_2^2 \le (1-1/\rho)\|b^{(r)}\|_2^2∥b(r+1)∥22​≤(1−1/ρ)∥b(r)∥22​

Proved
SparseApprox.Greedy.residual_contraction

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 minimum-support vector with ∥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 and N(r)N^{(r)}N(r) nonzero entries, and let ρ\rhoρ be a real number with

4 N(r) ∥u(r)∥22≤ρ ∥b(r)∥224\,N^{(r)}\,\|u^{(r)}\|_2^2\le\rho\,\|b^{(r)}\|_2^24N(r)∥u(r)∥22​≤ρ∥b(r)∥22​

(the paper's ρ=4max⁡0≤r<tN(r)∥u(r)∥22/∥b(r)∥22\rho=4\max_{0\le r<t}N^{(r)}\|u^{(r)}\|_2^2/\|b^{(r)}\|_2^2ρ=4max0≤r<t​N(r)∥u(r)∥22​/∥b(r)∥22​ of (2) is such a number). Then one greedy iteration contracts the squared norm of bbb:

∥b(r+1)∥22≤(1−1ρ)∥b(r)∥22.\|b^{(r+1)}\|_2^2\le\Big(1-\frac1\rho\Big)\|b^{(r)}\|_2^2 .∥b(r+1)∥22​≤(1−ρ1​)∥b(r)∥22​.

Iterating this contraction gives the logarithmic iteration bound of Lemma 1.

Formalization Note The conclusion is stated multiplied by ρ\rhoρ, as ρ ∥b(r+1)∥22≤(ρ−1)∥b(r)∥22\rho\,\|b^{(r+1)}\|_2^2\le(\rho-1)\|b^{(r)}\|_2^2ρ∥b(r+1)∥22​≤(ρ−1)∥b(r)∥22​, so that no division by ρ\rhoρ occurs (the two forms agree for ρ>0\rho>0ρ>0, which the hypothesis forces). The hypothesis on ρ\rhoρ is required only at iteration rrr.

Preamble
import Mathlib
import Definitions.Def_SparseApprox_Greedy_Basic
import Definitions.Def_SparseApprox_Greedy_Algorithm

open scoped InnerProductSpace
Formal statement
namespace SparseApprox.Greedy

theorem residual_contraction {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)
    (ρ : ℝ) (hρ : 4 * (nnz u : ℝ) * ‖u‖ ^ 2 ≤ ρ * ‖(greedyState A b k r).res‖ ^ 2) :
    ρ * ‖(greedyState A b k (r + 1)).res‖ ^ 2 ≤ (ρ - 1) * ‖(greedyState A b k r).res‖ ^ 2 := by sorry

end SparseApprox.Greedy
Source
Natarajan, Sparse Approximate Solutions to Linear Systems, SIAM J. Comput. 24 (1995), p. 231, Eq. (18) (from (13)–(17), proof of Lemma 1)
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