Lemma 1 — the selection phase runs at most iterations
ProvedSparseApprox.Greedy.iterations_le_of_rhoThroughout, , and are the input of Algorithm Greedy, and are the indices it selects. For , (columns ), and are the columns, the vector and the set of chosen indices at the start of iteration of a run of selection iterations, as computed by the algorithm.
For each let be a vector with the minimum number of nonzero entries such that , and let be a real number bounding every term of the paper's definition (2),
Then the number of iterations satisfies
This is the first of the three lemmas that combine into Theorem 2: it bounds the number of selected columns by , and Lemmas 2 and 3 then bound .
Formalization Note "Every bounding each term of (2)" is used instead of the maximum in (2); the bound is monotone in whenever , so the two readings agree, and the form avoids a maximum over an empty range at . The ceiling is the natural-number ceiling Nat.ceil, which agrees with the integer ceiling whenever (then and the logarithm is positive). No condition is assumed: at the statement remains true although the paper's (21) takes . The hypotheses can hold only if a vector with exists.
import Mathlib import Definitions.Def_SparseApprox_Greedy_Basic import Definitions.Def_SparseApprox_Greedy_Algorithm open scoped InnerProductSpace
namespace SparseApprox.Greedy
theorem iterations_le_of_rho {m n : ℕ} (A : Matrix (Fin m) (Fin n) ℝ)
(b : EuclideanSpace ℝ (Fin m)) (ε : ℝ) (hε : 0 < ε) (k : ℕ → Fin n) (t : ℕ)
(hrun : IsGreedyRun A b ε k t) (u : ℕ → EuclideanSpace ℝ (Fin n))
(hu : ∀ r < t,
IsMinSparseSol (greedyState A b k r).col (greedyState A b k r).res (ε / 2) (u r))
(ρ : ℝ)
(hρ : ∀ r < t, 4 * (nnz (u r) : ℝ) * ‖u r‖ ^ 2 ≤ ρ * ‖(greedyState A b k r).res‖ ^ 2) :
t ≤ ⌈2 * ρ * Real.log (‖b‖ / ε)⌉₊ := by sorry
end SparseApprox.Greedy
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.