Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

p. 233, N(0)=Opt⁡(ε/2)N^{(0)}=\operatorname{Opt}(\varepsilon/2)N(0)=Opt(ε/2) (before (32))

Proved
SparseApprox.Greedy.nnz_initial_eq_opt

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

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

Let A∈Rm×nA\in\mathbb R^{m\times n}A∈Rm×n, b∈Rmb\in\mathbb R^mb∈Rm and ε∈R\varepsilon\in\mathbb Rε∈R, and let A=A(0)\mathbf A=A^{(0)}A=A(0) be AAA with each column normalized in the L2L_2L2​ norm (zero columns stay zero). If u(0)u^{(0)}u(0) is a vector with the minimum number N(0)N^{(0)}N(0) of nonzero entries such that ∥Au(0)−b∥2≤ε/2\|\mathbf A u^{(0)}-b\|_2\le\varepsilon/2∥Au(0)−b∥2​≤ε/2, then

N(0)=Opt⁡(ε/2)=min⁡{∥x∥0:∥Ax−b∥2≤ε/2}.N^{(0)}=\operatorname{Opt}(\varepsilon/2)=\min\{\|x\|_0 : \|Ax-b\|_2\le\varepsilon/2\}.N(0)=Opt(ε/2)=min{∥x∥0​:∥Ax−b∥2​≤ε/2}.

The sparsity of the best approximate solution does not change when the columns are normalized. This identity links the quantity N(0)N^{(0)}N(0) of the proof with the Opt⁡(ε/2)\operatorname{Opt}(\varepsilon/2)Opt(ε/2) of Theorem 2.

Formalization Note Opt⁡\operatorname{Opt}Opt is taken over the original matrix AAA, as Theorem 2 prints it; the hypothesis that u(0)u^{(0)}u(0) exists guarantees that the set defining Opt⁡(ε/2)\operatorname{Opt}(\varepsilon/2)Opt(ε/2) is nonempty.

Preamble
import Mathlib
import Definitions.Def_SparseApprox_Greedy_Basic
import Definitions.Def_SparseApprox_Greedy_Algorithm

open scoped InnerProductSpace
Formal statement
namespace SparseApprox.Greedy

theorem nnz_initial_eq_opt {m n : ℕ} (A : Matrix (Fin m) (Fin n) ℝ)
    (b : EuclideanSpace ℝ (Fin m)) (ε : ℝ) (u : EuclideanSpace ℝ (Fin n))
    (hu : IsMinSparseSol (initState A b).col b (ε / 2) u) :
    nnz u = optSparsity A b (ε / 2) := by sorry

end SparseApprox.Greedy
Source
Natarajan, Sparse Approximate Solutions to Linear Systems, SIAM J. Comput. 24 (1995), p. 233, first line after the proof of Lemma 3 (before Eq. (32))
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