Sparse Approximate Solutions to Linear Systems 1: The Column Bound for Greedy SelectionResearch Paper
Motivation
Many problems in scientific computing and statistics ask for a solution of a linear system that uses as few unknowns as possible. In statistics this is subset selection (Golub and Van Loan, Matrix Computations, 1983). In coding theory over binary matrices it is the minimum weight solution problem (Gallager, 1968). Natarajan's own motivation was radial basis interpolation (Hardy, 1988). There the coefficients of the interpolant solve a square nonsingular linear system (Michelli, 1986). Few nonzero coefficients make the interpolant cheap to evaluate and, by Occam's razor, less prone to fitting noise.
Natarajan's paper (SIAM J. Comput. 24 (1995) 227–234) makes two contributions. First, finding the sparsest approximate solution over the reals is NP-hard (Theorem 1, the subject of the companion mission). Second, the obvious greedy heuristic, a QR factorization whose column pivots are chosen by their correlation with the right-hand side, is provably good (Theorem 2). This mission formalizes Theorem 2. The greedy method is known today as orthogonal least squares (OLS), a variant of orthogonal matching pursuit. Natarajan's bound is among the earliest worst-case guarantees for this family of algorithms and is widely cited in the sparse approximation and compressed sensing literature.
Setting
Let have columns , let and . Write for the Euclidean norm and for the number of nonzero entries of . The sparse approximate solution problem asks for with and minimal. Define
Let be with every column divided by its Euclidean norm. Let be its Moore–Penrose pseudo-inverse, the unique matrix with , and , symmetric. Let be its spectral norm, the operator norm.
Algorithm Greedy keeps a working matrix with columns , a working vector and a set of chosen indices. It starts from , , . While , it chooses an index that maximizes and replaces by its projection onto the orthogonal complement of . It adds to and replaces every column outside by its normalized projection onto that complement. If every correlation vanishes, the algorithm stops ("no solution exists"). A final solution phase solves the linear system in the chosen columns of . The number of nonzero entries of the output is therefore at most the number of selection iterations.
Formalization targets
Goal: Theorem 2, for with linearly independent columns
If the columns of are linearly independent and some satisfies , then every run of the selection phase, with any tie-breaking, performs
iterations. The paper prints the theorem without the independence hypothesis. The hypothesis is needed (see Formalization scope).
Milestones
The proof on pp. 230–233 passes through the following statements, in order:
- (12): some column satisfies . Here is a sparsest vector with and .
- (18): whenever .
- Lemma 1: for any such valid at every iteration.
- Lemma 3: .
- .
- The columns of indexed by the support of and by the chosen set are linearly independent, and .
- (31): for the matrix of those columns.
- The singular-value comparison for a column submatrix of a matrix with independent columns.
- Lemma 2: , for with independent columns.
Items 1–7 hold for every matrix . Items 8, 9 and the goal carry the independence hypothesis.
Significance
Theorem 2 is a bicriteria approximation guarantee for an NP-hard problem. The greedy output meets the error with at most a factor more nonzeros than the best solution at error . The factor depends only on the conditioning of the normalized matrix and logarithmically on the required accuracy. Its structure follows Johnson's analysis of the greedy set cover algorithm (1974): a potential decreases by a constant factor per step, which gives a logarithmic number of steps. The intermediate facts (12), (18) and Lemma 1 are the template of many later analyses of matching pursuit and OLS.
The result is proved on paper, with a gap. The last step of the proof of Lemma 2 compares singular values of a submatrix with those of , and this comparison holds only when has full column rank. For general , Theorem 2 and Lemma 2 are false as printed. The formalization produces a machine-checked proof of the corrected theorem and pins down exactly where the hypothesis enters. The hypothesis-free statements (12), (18), Lemma 1, Lemma 3 and (31) form reusable infrastructure for greedy sparse approximation. No existing formalization of this algorithm or of its guarantee, in Lean or elsewhere, was found for this mission.
Difficulty
Each step of the proof is short, but the objects are defined by an iteration. The columns are repeatedly projected and renormalized, and the columns already chosen are left untouched. Every claim about iteration therefore needs invariants: chosen columns are orthonormal and orthogonal to , and the remaining columns are normalized projections of the original ones onto the orthogonal complement of the chosen ones. A proof has to establish these by induction before any lemma can be applied. The sparsest vector is defined by minimality, so Lemma 3 and the linear-independence claim are exchange arguments on supports rather than computations. Finally, the passage from (31) to Lemma 2 needs a quantitative fact about pseudo-inverses of column submatrices. Mathlib has neither the Moore–Penrose inverse of a rectangular matrix nor its norm as a reciprocal singular value.
A naive attempt to bound directly by fails: multiplies the projected columns , not , and different sparsest solutions can have different norms.
Formalization scope
Vectors live in EuclideanSpace ℝ (Fin m), so every is the Euclidean norm. The only is the maximum of , which is written out explicitly. The algorithm is a recursion greedyState A b k r in the sequence of choices k : ℕ → Fin n. A run of iterations (IsGreedyRun) requires, at each : the strict while-condition , an unchosen index, a nonzero correlation, and maximality over the unchosen columns. The residual and the columns are computed, never assumed. Normalization sends to , so a column lying in the span of the chosen ones stays zero and is never chosen. is an infimum over ℕ, and the goal assumes that some has , since otherwise the infimum would be . The ceiling is the natural-number ceiling. It agrees with the printed one whenever the loop runs at least once, because then . The pseudo-inverse is any matrix satisfying the four Penrose equations. It is never defined as , which would hide the rank assumption.
Added hypothesis. The goal, Lemma 2 and the singular-value step assume that the columns of are linearly independent, which forces . Without it, Theorem 2 fails. Take , , columns and for 100 distinct , and . Then and the bound evaluates to , but Greedy selects two columns. Lemma 2 fails for and . The paper's motivating interpolation systems are square and nonsingular, so they satisfy the hypothesis. A hypothesis-free goal would replace by the largest over linearly independent column subsets of , which is what (31) gives. That quantity is not printed in the paper, so it is not the goal here.
A statement in which the iterates are free sequences constrained by hypotheses, the greedy choice is dropped, or is taken over an empty set would be trivially true or would not describe this algorithm. The encoding above rules these out.
A complete development needs Gram–Schmidt-type invariants of the iteration, exchange arguments for sparsest solutions, and the Moore–Penrose inverse with its spectral norm. The last of these is reusable well beyond this mission. Contributions of any milestone, of the general Penrose-inverse facts, or of alternative proofs are welcome.
Selected references
- B. K. Natarajan, Sparse Approximate Solutions to Linear Systems, SIAM J. Comput. 24(2):227–234, 1995. https://doi.org/10.1137/s0097539792240406
- G. H. Golub and C. F. Van Loan, Matrix Computations, Johns Hopkins University Press, 1983.
- D. S. Johnson, Approximation algorithms for combinatorial problems, J. Comput. System Sci. 9:256–278, 1974. https://doi.org/10.1016/S0022-0000(74)80044-9
- R. Penrose, A generalized inverse for matrices, Proc. Cambridge Philos. Soc. 51:406–413, 1955. https://doi.org/10.1017/S0305004100030401