Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Time-frequency dictionaries, Alltop sequence, basis pursuit and OMP for compressed sensing radar

Definition
CompressedSensingRadar_Basic

by Xeroth · Nov 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

alltop-sequencebasis-pursuitcompressed-sensinggabor-framessparse-recovery

Objects of Sections II-III and Appendix A of Herman and Strohmer (2008).

  1. Vectors. On Cn\mathbb{C}^nCn, ⟨x,y⟩=∑pxp‾ yp\langle x,y\rangle=\sum_p\overline{x_p}\,y_p⟨x,y⟩=∑p​xp​​yp​, ∥x∥2=(∑p∣xp∣2)1/2\|x\|_2=(\sum_p|x_p|^2)^{1/2}∥x∥2​=(∑p​∣xp​∣2)1/2 and ∥x∥1=∑p∣xp∣\|x\|_1=\sum_p|x_p|∥x∥1​=∑p​∣xp​∣. ∥s∥0\|s\|_0∥s∥0​ is the number of nonzero coefficients of sss, and sss is KKK-sparse if ∥s∥0≤K\|s\|_0\le K∥s∥0​≤K.
  2. Dictionaries. A dictionary is a matrix Φ=(φ0∣⋯∣φM−1)∈Cn×M\Phi=(\varphi_0|\cdots|\varphi_{M-1})\in\mathbb{C}^{n\times M}Φ=(φ0​∣⋯∣φM−1​)∈Cn×M with atoms φi\varphi_iφi​. Its coherence is μ(Φ)=max⁡i≠i′∣⟨φi,φi′⟩∣\mu(\Phi)=\max_{i\ne i'}|\langle\varphi_i,\varphi_{i'}\rangle|μ(Φ)=maxi=i′​∣⟨φi​,φi′​⟩∣. Its atoms are unit-norm if ∥φi∥2=1\|\varphi_i\|_2=1∥φi​∥2​=1 for all iii. ∥A∥=max⁡∥v∥2≤1∥Av∥2\|A\|=\max_{\|v\|_2\le1}\|Av\|_2∥A∥=max∥v∥2​≤1​∥Av∥2​ is the spectral norm. For T⊆{0,…,M−1}T\subseteq\{0,\dots,M-1\}T⊆{0,…,M−1}, ΦT\Phi_TΦT​ is the subdictionary of the columns in TTT. The statement σmin⁡(A)≥c\sigma_{\min}(A)\ge cσmin​(A)≥c means c∥v∥2≤∥Av∥2c\|v\|_2\le\|Av\|_2c∥v∥2​≤∥Av∥2​ for every vvv.
  3. Basis pursuit (eq. 5). s⋆s^\stars⋆ solves BP for the data yyy if Φs⋆=y\Phi s^\star=yΦs⋆=y and ∥s⋆∥1≤∥s′∥1\|s^\star\|_1\le\|s'\|_1∥s⋆∥1​≤∥s′∥1​ whenever Φs′=y\Phi s'=yΦs′=y. BP recovers sss from yyy if sss is its unique solution. In the noise-aware program of footnote 1, s⋆s^\stars⋆ minimises ∥s′∥1\|s'\|_1∥s′∥1​ subject to ∣(Φs′−y)n∣≤ε|(\Phi s'-y)_n|\le\varepsilon∣(Φs′−y)n​∣≤ε for every nnn.
  4. Orthogonal matching pursuit. A run of ttt steps on yyy starts from x0=0x_0=0x0​=0. At step kkk it selects an index λk\lambda_kλk​ maximising ∣⟨φj,y−Φxk⟩∣|\langle\varphi_j,y-\Phi x_k\rangle|∣⟨φj​,y−Φxk​⟩∣, with ties broken arbitrarily. Then xk+1x_{k+1}xk+1​ is any minimiser of ∥y−Φx∥2\|y-\Phi x\|_2∥y−Φx∥2​ among the xxx supported on {λ0,…,λk}\{\lambda_0,\dots,\lambda_k\}{λ0​,…,λk​}. OMP recovers sss if every run of ∥s∥0\|s\|_0∥s∥0​ steps on yyy ends at x∥s∥0=sx_{\|s\|_0}=sx∥s∥0​​=s.
  5. Time-frequency shifts (eq. 10). ωN=e2πi/N\omega_N=e^{2\pi i/N}ωN​=e2πi/N. TTT is the cyclic unit shift (Tp,q=1T_{p,q}=1Tp,q​=1 iff p≡q+1(modN)p\equiv q+1\pmod Np≡q+1(modN)) and M=diag⁡(ωN0,…,ωNN−1)M=\operatorname{diag}(\omega_N^0,\dots,\omega_N^{N-1})M=diag(ωN0​,…,ωNN−1​). For 0≤i<N20\le i<N^20≤i<N2, Hi=Mi mod NT⌊i/N⌋H_i=M^{i\bmod N}T^{\lfloor i/N\rfloor}Hi​=MimodNT⌊i/N⌋, and H=∑isiHiH=\sum_is_iH_iH=∑i​si​Hi​ for a coefficient vector s∈CN2s\in\mathbb{C}^{N^2}s∈CN2. ⟨A,B⟩F=trace⁡(A∗B)\langle A,B\rangle_F=\operatorname{trace}(A^*B)⟨A,B⟩F​=trace(A∗B).
  6. Gabor dictionary (eqs. 7, 8, 11). For a probe f∈CNf\in\mathbb{C}^Nf∈CN, Φ∈CN×N2\Phi\in\mathbb{C}^{N\times N^2}Φ∈CN×N2 has atoms φi=Hif\varphi_i=H_ifφi​=Hi​f. The block atoms are the columns of DkWND_kW_NDk​WN​, (φj(k))p=f(p+k) mod N ωNpj(\varphi^{(k)}_j)_p=f_{(p+k)\bmod N}\,\omega_N^{pj}(φj(k)​)p​=f(p+k)modN​ωNpj​.
  7. Alltop sequence (eq. 12). fn=N−1/2e2πin3/Nf_n=N^{-1/2}e^{2\pi i n^3/N}fn​=N−1/2e2πin3/N, n=0,…,N−1n=0,\dots,N-1n=0,…,N−1. ΦA\Phi_AΦA​ is the Gabor dictionary of fAf_AfA​.
  8. Random signals (Section III-E). The nonzero coefficients of a random signal are independent circularly symmetric complex Gaussians of mean 000 and variance 111: real and imaginary parts are independent N(0,1/2)N(0,1/2)N(0,1/2). For a fixed support TTT, the probability that BP recovers sss from y=Φsy=\Phi sy=Φs is computed with sss supported on TTT. For a random KKK-sparse signal the support is moreover a uniformly random KKK-subset. For a random KKK-column subdictionary, the probability P{∥X∗X−I∥≥δ}P\{\|X^*X-I\|\ge\delta\}P{∥X∗X−I∥≥δ} is the fraction of KKK-subsets TTT with ∥ΦT∗ΦT−I∥≥δ\|\Phi_T^*\Phi_T-I\|\ge\delta∥ΦT∗​ΦT​−I∥≥δ.

Formalization Note Indices run over {0,…,N−1}\{0,\dots,N-1\}{0,…,N−1} and {0,…,N2−1}\{0,\dots,N^2-1\}{0,…,N2−1} as in the paper. The coherence of a dictionary with fewer than two atoms is 000. A probability of an event EEE is the Gaussian measure of the set of coefficient values for which EEE holds.

Definition code
import Mathlib

/-!
Herman and Strohmer, *High-Resolution Radar via Compressed Sensing*, arXiv:0803.2257v2 (2008),
IEEE Trans. Signal Process. 57(6) (2009): sparse vectors, basis pursuit and orthogonal matching
pursuit (Section II and the cited Tropp 2004), the coherence of a dictionary (Section III-B), the
time-frequency shift basis and its Gabor dictionary (Section III-C), the Alltop sequence
(Section III-D), and the random signal and random subdictionary models of Section III-E and
Appendix A.
-/

open MeasureTheory ProbabilityTheory

noncomputable section

namespace CompressedSensingRadar

section Vectors

variable {ι : Type*} [Fintype ι]

/-- The Hermitian inner product `⟨x, y⟩ = ∑ₙ conj(xₙ) yₙ` on `ℂ^ι` (Section III-B). -/
def ip (x y : ι → ℂ) : ℂ := ∑ n, star (x n) * y n

/-- The Euclidean norm `‖x‖₂ = (∑ₙ |xₙ|²)^{1/2}`. -/
def norm2 (x : ι → ℂ) : ℝ := Real.sqrt (∑ n, ‖x n‖ ^ 2)

/-- The `ℓ¹` norm `‖x‖₁ = ∑ₙ |xₙ|`, the objective of basis pursuit, eq. (5). -/
def norm1 (x : ι → ℂ) : ℝ := ∑ n, ‖x n‖

/-- The number of nonzero coefficients of `s`. -/
def suppCard (s : ι → ℂ) : ℕ := {i | s i ≠ 0}.ncard

/-- Section II: `s` is `K`-sparse if at most `K` of its coefficients are nonzero. -/
def IsSparse (K : ℕ) (s : ι → ℂ) : Prop := suppCard s ≤ K

end Vectors

section Dictionaries

variable {m ι : Type*} [Fintype m] [Fintype ι]

/-- The `i`-th atom (column) `φᵢ` of a dictionary `Φ = (φ₀ | ⋯ | φ_{M-1})`. -/
def atom (Φ : Matrix m ι ℂ) (i : ι) : m → ℂ := fun p => Φ p i

/-- Section III-B: the atoms of `Φ` have unit norm, `‖φᵢ‖₂ = 1`, the standing assumption under
which the coherence is used. -/
def HasUnitAtoms (Φ : Matrix m ι ℂ) : Prop := ∀ i, norm2 (atom Φ i) = 1

/-- Section III-B: the coherence `μ(Φ) = max_{i ≠ i'} |⟨φᵢ, φᵢ'⟩|` (this is `0` if `Φ` has fewer
than two atoms). -/
def coherence (Φ : Matrix m ι ℂ) : ℝ :=
  ⨆ (i : ι) (i' : ι) (_ : i ≠ i'), ‖ip (atom Φ i) (atom Φ i')‖

/-- The spectral norm `‖A‖ = max_{‖v‖₂ ≤ 1} ‖Av‖₂` (Appendix A, Proposition 1). -/
def specNorm {k : Type*} [Fintype k] (A : Matrix m k ℂ) : ℝ :=
  sSup ((fun v => norm2 (A.mulVec v)) '' {v | norm2 v ≤ 1})

/-- Appendix A, Proposition 2: the least singular value of `A` is at least `c`, i.e.
`c ‖v‖₂ ≤ ‖Av‖₂` for every `v`. -/
def LeastSingValGe {k : Type*} [Fintype k] (A : Matrix m k ℂ) (c : ℝ) : Prop :=
  ∀ v : k → ℂ, c * norm2 v ≤ norm2 (A.mulVec v)

/-- Appendix A: the subdictionary `Φ_T` of the columns `φⱼ`, `j ∈ T`. -/
def subdict (Φ : Matrix m ι ℂ) (T : Finset ι) : Matrix m T ℂ := fun p j => Φ p j

/-- Appendix A, Proposition 1: the Gram matrix `X* X` of the subdictionary `X = Φ_T`. -/
def subGram (Φ : Matrix m ι ℂ) (T : Finset ι) : Matrix T T ℂ :=
  (subdict Φ T).conjTranspose * subdict Φ T

/-- Eq. (5): `s` solves basis pursuit `min ‖s'‖₁ s.t. Φ s' = y`. -/
def IsBPSolution (Φ : Matrix m ι ℂ) (y : m → ℂ) (s : ι → ℂ) : Prop :=
  Φ.mulVec s = y ∧ ∀ s' : ι → ℂ, Φ.mulVec s' = y → norm1 s ≤ norm1 s'

/-- Basis pursuit recovers `s` from the observation `y`: `s` is the unique solution of eq. (5). -/
def BPRecovers (Φ : Matrix m ι ℂ) (y : m → ℂ) (s : ι → ℂ) : Prop :=
  ∀ s' : ι → ℂ, IsBPSolution Φ y s' ↔ s' = s

/-- Footnote 1 of Section II: `s` solves the noise-aware basis pursuit
`min ‖s'‖₁ s.t. |(Φ s' - y)ₙ| ≤ ε` for every `n`. -/
def IsNoisyBPSolution (Φ : Matrix m ι ℂ) (y : m → ℂ) (ε : ℝ) (s : ι → ℂ) : Prop :=
  (∀ n, ‖(Φ.mulVec s - y) n‖ ≤ ε) ∧
    ∀ s' : ι → ℂ, (∀ n, ‖(Φ.mulVec s' - y) n‖ ≤ ε) → norm1 s ≤ norm1 s'

/-- Orthogonal matching pursuit (Section II; Tropp 2004, Algorithm 3), run for `t` steps on `y`:
`x 0 = 0`; at step `k < t` the index `lam k` maximises `|⟨φⱼ, y - Φ x_k⟩|` over all `j` (any
choice among ties), and `x (k+1)` minimises `‖y - Φ x‖₂` over the `x` supported on
`{lam 0, …, lam k}` (any minimiser). -/
def IsOMPRun (Φ : Matrix m ι ℂ) (y : m → ℂ) (t : ℕ) (lam : ℕ → ι) (x : ℕ → ι → ℂ) : Prop :=
  x 0 = 0 ∧ ∀ k < t,
    (∀ j, ‖ip (atom Φ j) (y - Φ.mulVec (x k))‖ ≤ ‖ip (atom Φ (lam k)) (y - Φ.mulVec (x k))‖) ∧
    (∀ i, (∀ l ≤ k, lam l ≠ i) → x (k + 1) i = 0) ∧
    (∀ x' : ι → ℂ, (∀ i, (∀ l ≤ k, lam l ≠ i) → x' i = 0) →
      norm2 (y - Φ.mulVec (x (k + 1))) ≤ norm2 (y - Φ.mulVec x'))

/-- Orthogonal matching pursuit recovers `s` from `y`: every run of `‖s‖₀` steps (the number of
nonzero coefficients of `s`) ends at `s`. -/
def OMPRecovers (Φ : Matrix m ι ℂ) (y : m → ℂ) (s : ι → ℂ) : Prop :=
  ∀ (lam : ℕ → ι) (x : ℕ → ι → ℂ), IsOMPRun Φ y (suppCard s) lam x → x (suppCard s) = s

end Dictionaries

section TimeFrequency

variable (N : ℕ)

/-- Section III-C: the `N`-th root of unity `ω_N = e^{2πi/N}`. -/
def omega : ℂ := Complex.exp (2 * Real.pi * Complex.I / N)

/-- Section III-C: the unit-shift operator `T`, `T_{p,q} = 1` if `p ≡ q + 1 (mod N)` and `0`
otherwise. -/
def shiftMat : Matrix (Fin N) (Fin N) ℂ :=
  fun p q => if (p : ℕ) = ((q : ℕ) + 1) % N then 1 else 0

/-- Section III-C: the modulation operator `M = diag(ω_N^0, …, ω_N^{N-1})`. -/
def modMat : Matrix (Fin N) (Fin N) ℂ := Matrix.diagonal fun p => omega N ^ (p : ℕ)

/-- Eq. (10): the `i`-th time-frequency shift `Hᵢ = M^{i mod N} T^{⌊i/N⌋}`, `0 ≤ i < N²`. -/
def tfShift (i : Fin (N ^ 2)) : Matrix (Fin N) (Fin N) ℂ :=
  modMat N ^ ((i : ℕ) % N) * shiftMat N ^ ((i : ℕ) / N)

/-- Eq. (6): the matrix `H = ∑ᵢ sᵢ Hᵢ` with coefficient vector `s ∈ ℂ^{N²}`. -/
def tfSynth (s : Fin (N ^ 2) → ℂ) : Matrix (Fin N) (Fin N) ℂ := ∑ i, s i • tfShift N i

/-- Section III-A: the Frobenius inner product `⟨A, B⟩_F = trace(A* B)`. -/
def frobIp (A B : Matrix (Fin N) (Fin N) ℂ) : ℂ := (A.conjTranspose * B).trace

/-- Eqs. (7)-(8): the Gabor dictionary `Φ = (φ₀ | ⋯ | φ_{N²-1}) ∈ ℂ^{N×N²}` generated by the
probe `f`, with atoms `φᵢ = Hᵢ f`. -/
def gaborDict (f : Fin N → ℂ) : Matrix (Fin N) (Fin (N ^ 2)) ℂ :=
  fun p i => (tfShift N i).mulVec f p

/-- Eq. (11): the `j`-th column `φⱼ^{(k)}` of the block `Φ^{(k)} = D_k W_N`, where
`D_k = diag(f_k, …, f_{N-1}, f_0, …, f_{k-1})` and `W_N = (ω_N^{pq})`; its `p`-th entry is
`f_{(p+k) mod N} ω_N^{pj}`. -/
def blockAtom (f : Fin N → ℂ) (k j : Fin N) : Fin N → ℂ :=
  fun p => f (p + k) * omega N ^ ((p : ℕ) * (j : ℕ))

/-- Eq. (12): the Alltop sequence `fₙ = N^{-1/2} e^{2πi n³/N}`, `n = 0, …, N-1`. -/
def alltop : Fin N → ℂ :=
  fun n => ((Real.sqrt N)⁻¹ : ℂ) * Complex.exp (2 * Real.pi * Complex.I * ((n : ℕ) ^ 3 : ℂ) / N)

end TimeFrequency

section Random

variable {n M : ℕ}

/-- Section III-E: the law of the coefficients of a random signal. Coordinate `(i, 0)` is the real
part and `(i, 1)` the imaginary part of coefficient `i`; all are independent `N(0, 1/2)`, so each
coefficient is a circularly symmetric complex Gaussian of zero mean and unit variance. -/
def gaussCoeffs (M : ℕ) : Measure (Fin M × Fin 2 → ℝ) :=
  Measure.pi fun _ => gaussianReal 0 2⁻¹

/-- Section III-E: the signal with support `T` whose coefficients on `T` are given by `w`. -/
def maskedSignal (T : Finset (Fin M)) (w : Fin M × Fin 2 → ℝ) : Fin M → ℂ :=
  fun i => if i ∈ T then (w (i, 0) : ℂ) + (w (i, 1) : ℂ) * Complex.I else 0

/-- Appendix A, Proposition 2: the probability that basis pursuit recovers a random signal `s`
with fixed support `T` (independent standard complex Gaussian coefficients on `T`) from
`y = Φ s`. -/
def bpProbOnSupport (Φ : Matrix (Fin n) (Fin M) ℂ) (T : Finset (Fin M)) : ℝ :=
  (gaussCoeffs M).real {w | BPRecovers Φ (Φ.mulVec (maskedSignal T w)) (maskedSignal T w)}

/-- Section III-E: the probability that basis pursuit recovers a random `K`-sparse signal `s`
from `y = Φ s`. The support is a uniformly random `K`-subset of the `M` indices and the nonzero
coefficients are independent standard complex Gaussians. -/
def bpProbRandom (Φ : Matrix (Fin n) (Fin M) ℂ) (K : ℕ) : ℝ :=
  (∑ T ∈ (Finset.univ : Finset (Fin M)).powersetCard K, bpProbOnSupport Φ T) /
    ((Finset.univ : Finset (Fin M)).powersetCard K).card

open Classical in
/-- Appendix A, Proposition 1: for a random `K`-column subdictionary `X = Φ_T` (every `K`-subset
`T` equally likely), the probability `P{‖X* X - I‖ ≥ δ}`. -/
def illCondProb (Φ : Matrix (Fin n) (Fin M) ℂ) (K : ℕ) (δ : ℝ) : ℝ :=
  (((Finset.univ : Finset (Fin M)).powersetCard K).filter
      fun T => δ ≤ specNorm (subGram Φ T - 1)).card /
    ((Finset.univ : Finset (Fin M)).powersetCard K).card

end Random

end CompressedSensingRadar
Source
Herman and Strohmer, High-Resolution Radar via Compressed Sensing, arXiv:0803.2257v2 (2008), Section II (eq. (5), footnote 1), Section III-A to III-E (eqs. (6)-(12)), Appendix A (Propositions 1-3); OMP as in Tropp, Greed is good (2004), Algorithm 3
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

The file sets up ambient data used by every declaration below. Here ι\iotaι, mmm and kkk denote arbitrary finite index sets, possibly empty. Vectors are complex-valued functions on such an index set, and matrices Φ∈Cm×ι\Phi \in \mathbb{C}^{m\times\iota}Φ∈Cm×ι have rows indexed by mmm and columns indexed by ι\iotaι. Throughout, NNN, nnn, MMM, KKK are natural numbers, and 000 is allowed.

Inner product (ip). For x,y∈Cιx,y\in\mathbb{C}^\iotax,y∈Cι,

⟨x,y⟩=∑j∈ιxj‾ yj.\langle x,y\rangle=\sum_{j\in\iota}\overline{x_j}\,y_j .⟨x,y⟩=j∈ι∑​xj​​yj​.

It is conjugate-linear in the first argument. If ι=∅\iota=\varnothingι=∅ it equals 000.

Euclidean norm (norm2). For x∈Cιx\in\mathbb{C}^\iotax∈Cι,

∥x∥2=(∑j∣xj∣2)1/2.\|x\|_2=\Big(\sum_{j}|x_j|^2\Big)^{1/2}.∥x∥2​=(j∑​∣xj​∣2)1/2.

ℓ1\ell^1ℓ1 norm (norm1). For x∈Cιx\in\mathbb{C}^\iotax∈Cι,

∥x∥1=∑j∣xj∣.\|x\|_1=\sum_j|x_j|.∥x∥1​=j∑​∣xj​∣.

Support size (suppCard). For s∈Cιs\in\mathbb{C}^\iotas∈Cι, ∥s∥0\|s\|_0∥s∥0​ is the number of indices jjj with sj≠0s_j\neq 0sj​=0, a natural number.

Sparsity (IsSparse). "sss is KKK-sparse" means ∥s∥0≤K\|s\|_0\le K∥s∥0​≤K, that is, at most KKK coefficients are nonzero. The zero vector is KKK-sparse for every KKK, including K=0K=0K=0.

Atom (atom). For Φ∈Cm×ι\Phi\in\mathbb{C}^{m\times\iota}Φ∈Cm×ι and i∈ιi\in\iotai∈ι, φi∈Cm\varphi_i\in\mathbb{C}^mφi​∈Cm is the iii-th column of Φ\PhiΦ, with entries (φi)p=Φp,i(\varphi_i)_p=\Phi_{p,i}(φi​)p​=Φp,i​.

Unit atoms (HasUnitAtoms). Φ\PhiΦ has unit atoms if ∥φi∥2=1\|\varphi_i\|_2=1∥φi​∥2​=1 for every column index iii. This holds vacuously if ι\iotaι is empty. It can never hold if ι\iotaι is nonempty and mmm is empty, since then every column has norm 000.

Coherence (coherence). The coherence is a real number μ(Φ)\mu(\Phi)μ(Φ), defined as an iterated supremum of ∣⟨φi,φi′⟩∣|\langle\varphi_i,\varphi_{i'}\rangle|∣⟨φi​,φi′​⟩∣ over pairs i≠i′i\ne i'i=i′. Pairs with i=i′i=i'i=i′ contribute the supremum of an empty family, which is taken to be 000. Since all the terms are ≥0\ge 0≥0, the result is

μ(Φ)=max⁡i≠i′∣⟨φi,φi′⟩∣\mu(\Phi)=\max_{i\neq i'}|\langle\varphi_i,\varphi_{i'}\rangle|μ(Φ)=i=i′max​∣⟨φi​,φi′​⟩∣

when Φ\PhiΦ has at least two columns, and μ(Φ)=0\mu(\Phi)=0μ(Φ)=0 when it has at most one column. Unit-norm columns are not assumed in this definition.

Spectral norm (specNorm). For A∈Cm×kA\in\mathbb{C}^{m\times k}A∈Cm×k, ∥A∥\|A\|∥A∥ is the supremum of ∥Av∥2\|Av\|_2∥Av∥2​ over all v∈Ckv\in\mathbb{C}^kv∈Ck with ∥v∥2≤1\|v\|_2\le 1∥v∥2​≤1. This set is bounded, so the supremum is a genuine maximum. If k=∅k=\varnothingk=∅ the only vector is v=0v=0v=0, and the value is 000.

Least singular value bound (LeastSingValGe). For A∈Cm×kA\in\mathbb{C}^{m\times k}A∈Cm×k and real ccc, the statement is

c ∥v∥2≤∥Av∥2for every v∈Ck.c\,\|v\|_2\le\|Av\|_2\quad\text{for every }v\in\mathbb{C}^k .c∥v∥2​≤∥Av∥2​for every v∈Ck.

It holds trivially for every AAA when c≤0c\le 0c≤0.

Subdictionary (subdict). For a finite set T⊆ιT\subseteq\iotaT⊆ι of column indices, ΦT∈Cm×T\Phi_T\in\mathbb{C}^{m\times T}ΦT​∈Cm×T is the matrix whose columns are φj\varphi_jφj​ for j∈Tj\in Tj∈T, indexed by the elements of TTT.

Sub-Gram matrix (subGram). This is the T×TT\times TT×T matrix ΦT∗ΦT\Phi_T^{*}\Phi_TΦT∗​ΦT​, where ∗^{*}∗ is the conjugate transpose. Its (j,j′)(j,j')(j,j′) entry is ⟨φj,φj′⟩\langle\varphi_j,\varphi_{j'}\rangle⟨φj​,φj′​⟩.

Basis pursuit solution (IsBPSolution). s∈Cιs\in\mathbb{C}^\iotas∈Cι is a basis pursuit solution for (Φ,y)(\Phi,y)(Φ,y), with y∈Cmy\in\mathbb{C}^my∈Cm, if both of the following hold:

  • Φs=y\Phi s=yΦs=y;
  • ∥s∥1≤∥s′∥1\|s\|_1\le\|s'\|_1∥s∥1​≤∥s′∥1​ for every s′s's′ with Φs′=y\Phi s'=yΦs′=y.

In other words, sss is a minimiser of ∥⋅∥1\|\cdot\|_1∥⋅∥1​ over the affine set {s′:Φs′=y}\{s':\Phi s'=y\}{s′:Φs′=y}. It need not be the unique minimiser.

Basis pursuit recovery (BPRecovers). For every s′∈Cιs'\in\mathbb{C}^\iotas′∈Cι, s′s's′ is a basis pursuit solution for (Φ,y)(\Phi,y)(Φ,y) if and only if s′=ss'=ss′=s. Equivalently, sss is the unique ℓ1\ell^1ℓ1-minimiser subject to Φs′=y\Phi s'=yΦs′=y. Two consequences:

  • This forces Φs=y\Phi s=yΦs=y, so the statement is false whenever y≠Φsy\neq\Phi sy=Φs.
  • No sparsity of sss is assumed.

Noise-aware basis pursuit solution (IsNoisyBPSolution). For real ε\varepsilonε, sss is a solution if both of the following hold:

  • ∣(Φs−y)p∣≤ε|(\Phi s-y)_p|\le\varepsilon∣(Φs−y)p​∣≤ε for every row index ppp;
  • ∥s∥1≤∥s′∥1\|s\|_1\le\|s'\|_1∥s∥1​≤∥s′∥1​ for every s′s's′ satisfying the same entrywise bound.

The constraint is entrywise, i.e. an ℓ∞\ell^\inftyℓ∞ bound on the residual, not an ℓ2\ell^2ℓ2 bound. If ε<0\varepsilon<0ε<0 no vector is feasible (unless m=∅m=\varnothingm=∅), so no solution exists.

OMP run (IsOMPRun). The data are:

  • an integer t≥0t\ge 0t≥0;
  • an index sequence λ0,λ1,…∈ι\lambda_0,\lambda_1,\ldots\in\iotaλ0​,λ1​,…∈ι;
  • a vector sequence x0,x1,…∈Cιx_0,x_1,\ldots\in\mathbb{C}^\iotax0​,x1​,…∈Cι.

These form a ttt-step OMP run on yyy if x0=0x_0=0x0​=0 and, for every k<tk<tk<t, all three of the following hold:

  1. λk\lambda_kλk​ maximises the correlation with the current residual:
∣⟨φj, y−Φxk⟩∣≤∣⟨φλk, y−Φxk⟩∣for all j.|\langle\varphi_j,\,y-\Phi x_k\rangle|\le|\langle\varphi_{\lambda_k},\,y-\Phi x_k\rangle|\quad\text{for all } j.∣⟨φj​,y−Φxk​⟩∣≤∣⟨φλk​​,y−Φxk​⟩∣for all j.

Ties may be broken arbitrarily. 2. xk+1x_{k+1}xk+1​ vanishes outside {λ0,…,λk}\{\lambda_0,\dots,\lambda_k\}{λ0​,…,λk​}. 3. ∥y−Φxk+1∥2≤∥y−Φx′∥2\|y-\Phi x_{k+1}\|_2\le\|y-\Phi x'\|_2∥y−Φxk+1​∥2​≤∥y−Φx′∥2​ for every x′x'x′ that vanishes outside {λ0,…,λk}\{\lambda_0,\dots,\lambda_k\}{λ0​,…,λk​}. Any minimiser is allowed.

The definition also leaves several things open:

  • The indices λk\lambda_kλk​ are not required to be distinct.
  • The atoms are not required to be normalised.
  • λk\lambda_kλk​ for k≥tk\ge tk≥t and xkx_kxk​ for k>tk>tk>t are unconstrained.
  • If t=0t=0t=0, the only condition is x0=0x_0=0x0​=0.

OMP recovery (OMPRecovers). Let t=∥s∥0t=\|s\|_0t=∥s∥0​. For every ttt-step OMP run (λ,x)(\lambda,x)(λ,x) on yyy, the final iterate satisfies xt=sx_t=sxt​=s. Some consequences:

  • yyy is an arbitrary vector, not tied to sss.
  • If s=0s=0s=0 then t=0t=0t=0, and the statement reduces to x0=0=sx_0=0=sx0​=0=s, which always holds.
  • If ι=∅\iota=\varnothingι=∅ there are no index sequences at all, so the statement holds vacuously.

Root of unity (omega). ωN=e2πi/N\omega_N=e^{2\pi i/N}ωN​=e2πi/N. When N=0N=0N=0 the division by zero evaluates to 000, so ω0=e0=1\omega_0=e^0=1ω0​=e0=1.

Cyclic shift (shiftMat). T∈CN×NT\in\mathbb{C}^{N\times N}T∈CN×N, with indices p,q∈{0,…,N−1}p,q\in\{0,\dots,N-1\}p,q∈{0,…,N−1}. Its entries are Tp,q=1T_{p,q}=1Tp,q​=1 if p=(q+1) mod Np=(q+1)\bmod Np=(q+1)modN and Tp,q=0T_{p,q}=0Tp,q​=0 otherwise. For N=0N=0N=0 the matrix is empty.

Modulation (modMat). M=diag(ωN0,ωN1,…,ωNN−1)∈CN×NM=\mathrm{diag}(\omega_N^0,\omega_N^1,\dots,\omega_N^{N-1})\in\mathbb{C}^{N\times N}M=diag(ωN0​,ωN1​,…,ωNN−1​)∈CN×N.

Time-frequency shift (tfShift). For i∈{0,…,N2−1}i\in\{0,\dots,N^2-1\}i∈{0,…,N2−1},

Hi=M i mod N T⌊i/N⌋.H_i=M^{\,i\bmod N}\,T^{\lfloor i/N\rfloor}.Hi​=MimodNT⌊i/N⌋.

Time-frequency synthesis (tfSynth). For s∈CN2s\in\mathbb{C}^{N^2}s∈CN2,

H=∑i=0N2−1si Hi∈CN×N.H=\sum_{i=0}^{N^2-1}s_i\,H_i\in\mathbb{C}^{N\times N}.H=i=0∑N2−1​si​Hi​∈CN×N.

Frobenius inner product (frobIp). For N×NN\times NN×N complex matrices A,BA,BA,B,

⟨A,B⟩F=trace⁡(A∗B).\langle A,B\rangle_F=\operatorname{trace}(A^{*}B).⟨A,B⟩F​=trace(A∗B).

Gabor dictionary (gaborDict). For a probe f∈CNf\in\mathbb{C}^Nf∈CN, Φ∈CN×N2\Phi\in\mathbb{C}^{N\times N^2}Φ∈CN×N2 is the matrix whose iii-th column is φi=Hif\varphi_i=H_ifφi​=Hi​f. No normalisation of fff is assumed.

Block atom (blockAtom). For f∈CNf\in\mathbb{C}^Nf∈CN and k,j∈{0,…,N−1}k,j\in\{0,\dots,N-1\}k,j∈{0,…,N−1}, the vector φj(k)∈CN\varphi^{(k)}_j\in\mathbb{C}^Nφj(k)​∈CN has entries

(φj(k))p=f(p+k) mod N  ωN pj,p=0,…,N−1.\big(\varphi^{(k)}_j\big)_p=f_{(p+k)\bmod N}\;\omega_N^{\,pj},\qquad p=0,\dots,N-1.(φj(k)​)p​=f(p+k)modN​ωNpj​,p=0,…,N−1.

The exponent pjpjpj is the ordinary integer product, not reduced mod NNN.

Alltop sequence (alltop). For n=0,…,N−1n=0,\dots,N-1n=0,…,N−1,

fn=1N e2πi n3/N.f_n=\frac{1}{\sqrt N}\,e^{2\pi i\,n^3/N}.fn​=N​1​e2πin3/N.

The cube n3n^3n3 is taken as an integer and is not reduced mod NNN. No assumption that NNN is prime, or ≥5\ge 5≥5, is made.

Gaussian coefficients (gaussCoeffs). This is a probability measure on RM×2\mathbb{R}^{M\times 2}RM×2, i.e. on real arrays w=(wi,0,wi,1)i<Mw=(w_{i,0},w_{i,1})_{i<M}w=(wi,0​,wi,1​)i<M​. It is the product of 2M2M2M independent real Gaussians, each with mean 000 and variance 12\tfrac1221​. Here wi,0w_{i,0}wi,0​ is intended as the real part and wi,1w_{i,1}wi,1​ as the imaginary part of coefficient iii.

Masked signal (maskedSignal). For T⊆{0,…,M−1}T\subseteq\{0,\dots,M-1\}T⊆{0,…,M−1} and w∈RM×2w\in\mathbb{R}^{M\times 2}w∈RM×2, s∈CMs\in\mathbb{C}^Ms∈CM is given by

si={wi,0+i wi,1,i∈T,0,i∉T.s_i=\begin{cases}w_{i,0}+i\,w_{i,1}, & i\in T,\\ 0, & i\notin T.\end{cases}si​={wi,0​+iwi,1​,0,​i∈T,i∈/T.​

The coordinates of www outside TTT are ignored.

Recovery probability on a fixed support (bpProbOnSupport). For Φ∈Cn×M\Phi\in\mathbb{C}^{n\times M}Φ∈Cn×M and T⊆{0,…,M−1}T\subseteq\{0,\dots,M-1\}T⊆{0,…,M−1}, this is the real number obtained by applying the Gaussian measure above to the set of www such that basis pursuit recovers sss from y=Φsy=\Phi sy=Φs, where sss is the masked signal of (T,w)(T,w)(T,w). Recovery means that sss is the unique ℓ1\ell^1ℓ1-minimiser subject to Φs′=Φs\Phi s'=\Phi sΦs′=Φs. Measurability of this set is not asserted; if it failed, the value would be its outer measure.

Recovery probability for a random sparse signal (bpProbRandom). This is the arithmetic mean of the fixed-support recovery probability over all KKK-element subsets T⊆{0,…,M−1}T\subseteq\{0,\dots,M-1\}T⊆{0,…,M−1}:

1(MK)∑∣T∣=K(recovery probability on T).\frac{1}{\binom{M}{K}}\sum_{|T|=K}\text{(recovery probability on }T).(KM​)1​∣T∣=K∑​(recovery probability on T).

If K>MK>MK>M there are no such subsets, and the value is 0/0=00/0=00/0=0.

Ill-conditioning probability (illCondProb). For Φ∈Cn×M\Phi\in\mathbb{C}^{n\times M}Φ∈Cn×M, K∈NK\in\mathbb{N}K∈N and real δ\deltaδ, this is the fraction of KKK-element subsets T⊆{0,…,M−1}T\subseteq\{0,\dots,M-1\}T⊆{0,…,M−1} satisfying

δ≤∥ΦT∗ΦT−IT∥,\delta\le\big\|\Phi_T^{*}\Phi_T-I_T\big\|,δ≤​ΦT∗​ΦT​−IT​​,

where the norm is the spectral norm and ITI_TIT​ is the T×TT\times TT×T identity. The inequality is non-strict. Edge cases:

  • If K>MK>MK>M the value is 000.
  • If K=0K=0K=0 the only subset is T=∅T=\varnothingT=∅, the spectral norm is 000, and the value is 111 if δ≤0\delta\le 0δ≤0 and 000 otherwise.
  • Unit-norm columns are not assumed.
Human review
  • Endorsed by Shuze Chen · Nov 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 24, 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