Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3 — N(r+1)≤N(r)≤N(0)N^{(r+1)}\le N^{(r)}\le N^{(0)}N(r+1)≤N(r)≤N(0)

Proved
SparseApprox.Greedy.sparsity_nonincreasing

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.

For s≤ts\le ts≤t let N(s)N^{(s)}N(s) be the minimum number of nonzero entries of a vector uuu with ∥A(s)u−b(s)∥2≤ε/2\|A^{(s)}u-b^{(s)}\|_2\le\varepsilon/2∥A(s)u−b(s)∥2​≤ε/2. The number of entries in the sparse solution is nonincreasing as the algorithm iterates: for r<tr<tr<t, if u(0)u^{(0)}u(0), u(r)u^{(r)}u(r) and u(r+1)u^{(r+1)}u(r+1) are minimum-support vectors at iterations 000, rrr and r+1r+1r+1, then

N(r+1)≤N(r)≤N(0).N^{(r+1)}\le N^{(r)}\le N^{(0)} .N(r+1)≤N(r)≤N(0).

Combined with N(0)=Opt⁡(ε/2)N^{(0)}=\operatorname{Opt}(\varepsilon/2)N(0)=Opt(ε/2), this replaces N(r)N^{(r)}N(r) by Opt⁡(ε/2)\operatorname{Opt}(\varepsilon/2)Opt(ε/2) in the definition (2) of ρ\rhoρ.

Formalization Note N(s)N^{(s)}N(s) is represented through minimum-support vectors (IsMinSparseSol), whose number of nonzero entries is the minimum. Iteration r+1r+1r+1 is the state produced by the rrr-th greedy step of the run.

Preamble
import Mathlib
import Definitions.Def_SparseApprox_Greedy_Basic
import Definitions.Def_SparseApprox_Greedy_Algorithm

open scoped InnerProductSpace
Formal statement
namespace SparseApprox.Greedy

theorem sparsity_nonincreasing {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₀ u u' : EuclideanSpace ℝ (Fin n))
    (hu₀ : IsMinSparseSol (greedyState A b k 0).col (greedyState A b k 0).res (ε / 2) u₀)
    (hu : IsMinSparseSol (greedyState A b k r).col (greedyState A b k r).res (ε / 2) u)
    (hu' : IsMinSparseSol (greedyState A b k (r + 1)).col (greedyState A b k (r + 1)).res
      (ε / 2) u') :
    nnz u' ≤ nnz u ∧ nnz u ≤ nnz u₀ := by sorry

end SparseApprox.Greedy
Source
Natarajan, Sparse Approximate Solutions to Linear Systems, SIAM J. Comput. 24 (1995), p. 233, Lemma 3
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