Proofs: Sparse Fourier transform
These are the human proofs of Sparse Fourier transform, at full length.
SPARSE-DFT reports only correct coefficients for every K-sparse spectrum when T ≥ K, and finds the whole spectrum exactly when the support contains no stopping set full
This proof shows: correctness, complexity.
Setting. Let be a field, with pairwise coprime , in , and of order exactly . For let . Write for a divisor of ; it has order exactly . Since in , every divisor of is nonzero in , so the fractions and exist. Let , and for define the aliased sums
Statement. Suppose has at most nonzero entries and . Then SPARSE-DFT terminates, every pair it returns has , and the flag success is true if and only if the returned map equals the nonzero part of . This happens if and only if the support of contains no nonempty stopping set, a set such that for every and the bucket meets in or at least elements. The algorithm reads samples, , and does additions and multiplications.
Lemma 1 (aliasing). Line L2 sets .
Proof. The inverse DFT gives ; this uses that has order , so for , and that is invertible. With , , and the sum over is unchanged by reducing indices modulo . So
The inner sum is if , since then each term is , and otherwise, since is a root of .
Lemma 2 (invariant). At all times for all , where is the residual spectrum.
Proof. True after line L2 by Lemma 1, with found empty. The aliased sums are linear in , and is for and for other . So the update at line L9, which adds to found and subtracts exactly these values, keeps the equality. Nothing else changes or found.
Lemma 3 (Vandermonde). Let with , and with for . Then .
Proof. The elements , , are distinct because has order . The rows of the system form the square Vandermonde matrix on distinct nodes, whose determinant is nonzero in the field .
Lemma 4 (soundness of one peel). Suppose when bucket of stage passes line L8 with . Then , , and in the class modulo the residual is exactly : and for every other .
Proof. At line L7, satisfies by the Chinese remainder theorem. Since (line L5) and , . Let be the union of and the residual support in the class , so , and let on . Line L8 passed, so by Lemma 2, for (all in ),
By Lemma 3, .
Lemma 5 (singletons pass). If the residual meets the class modulo in exactly one frequency , then bucket of stage passes lines L5 to L8 with this and .
Proof. By Lemma 2, for all , and . For , with , because . The powers , , are distinct, and , so line L6 finds exactly , and . Since the are pairwise coprime, the solution in of the congruences is unique and equals . Line L7 gives , and line L8 passes because its equations hold by the first sentence.
Soundness. By induction on the peels, the residual support is always a subset of , so it has at most elements: initially , and by Lemma 4 each peel picks with and sets to , leaving the other entries unchanged. So each peel removes one element of the residual support. A frequency is peeled at most once, since afterwards forever, and when it is peeled found goes from to (the residual at equals until is peeled). Hence every returned pair has .
Termination. There are at most peels, and the budget at line L4 stops the loop after peels. A pass with no peel ends the loop. So there are at most passes, each finite.
The flag. If success, all ; by Lemma 2 and Lemma 3, applied in each class modulo to the residual (at most frequencies) with the shifts , , so found is the nonzero part of . Conversely, if then all aliased sums vanish and success is true.
Stopping sets. Let be the residual support at the end. Every stopping set is contained in : otherwise consider the first peel of an element , at bucket of stage . Before it no element of has been peeled, so the residual contains , and the class contains , hence at least two elements of and of the residual. This contradicts Lemma 4. On the other hand, is itself a stopping set. If the loop ended because of the budget, correct peels were made, so and . Otherwise the last pass peeled nothing, so the tables did not change during it and it examined every bucket in the final state; by Lemma 5 no class meets in exactly one element. So is the largest stopping set in , and success holds if and only if it is empty, that is, if and only if contains no nonempty stopping set.
Cost. Line L2 reads samples per stage and shift, in all, and computes each DFT of length directly with at most multiplications and additions, at most of each. A pass examines buckets. Each examination does at most multiplications and comparisons at line L6, operations for the Chinese remainder step at line L7, and at most multiplications and subtractions at line L8, besides the powers : costs multiplications by repeated squaring, its powers for one multiplication each, and for they are the table entries . Each of the at most peels does subtractions and multiplications, with the same powers. With at most passes and , the total is , using . The tables hold entries, and found at most .