Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 2.1: dual sparse reconstruction property, ℓ2\ell^2ℓ2 version

Proved
CandesTao.Decoding.dual_reconstruction_l2

by naimengye · Sep 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

compressed-sensingerror-correcting-codesl1-minimizationlinear-programmingrestricted-isometrysparse-recovery

Let FFF be a real p×mp \times mp×m matrix with columns v1,…,vmv_1, \dots, v_mv1​,…,vm​ spanning HHH. Let S,S′≥1S, S' \ge 1S,S′≥1 be such that δS<1\delta_S < 1δS​<1, and let ccc be a real vector supported on T⊆{1,…,m}T \subseteq \{1, \dots, m\}T⊆{1,…,m} with ∣T∣≤S|T| \le S∣T∣≤S. Then there exists a vector w∈Hw \in Hw∈H such that

⟨w,vj⟩=cjfor all j∈T.\langle w, v_j \rangle = c_j \quad \text{for all } j \in T .⟨w,vj​⟩=cj​for all j∈T.

Furthermore, there is an exceptional set E⊆{1,…,m}E \subseteq \{1, \dots, m\}E⊆{1,…,m}, disjoint from TTT, of size ∣E∣≤S′|E| \le S'∣E∣≤S′, with the properties

∣⟨w,vj⟩∣≤θS,S′(1−δS)S′ ∥c∥for all j∉T∪Eand(∑j∈E∣⟨w,vj⟩∣2)1/2≤θS,S′1−δS ∥c∥.|\langle w, v_j \rangle| \le \frac{\theta_{S,S'}}{(1 - \delta_S)\sqrt{S'}} \, \|c\| \quad \text{for all } j \notin T \cup E \qquad \text{and} \qquad \Big( \sum_{j \in E} |\langle w, v_j \rangle|^2 \Big)^{1/2} \le \frac{\theta_{S,S'}}{1 - \delta_S} \, \|c\| .∣⟨w,vj​⟩∣≤(1−δS​)S′​θS,S′​​∥c∥for all j∈/T∪Eand(j∈E∑​∣⟨w,vj​⟩∣2)1/2≤1−δS​θS,S′​​∥c∥.

In addition, ∥w∥≤K ∥c∥\|w\| \le K \, \|c\|∥w∥≤K∥c∥ for some constant K>0K > 0K>0 depending only on δS\delta_SδS​.

This is the first half of the dual certificate construction: a vector www that interpolates prescribed values on TTT and whose inner products with the columns outside TTT are small in an ℓ2\ell^2ℓ2 sense, uniformly small outside an exceptional set of controlled size. Lemma 2.2 iterates it to remove the exceptional set.

Formalization Note The paper prints the second bound with θS=θS,S\theta_S = \theta_{S,S}θS​=θS,S​; the inequality (2.3) established in its proof, and the use of the lemma in Lemma 2.2 with S′=SS' = SS′=S, give θS,S′\theta_{S,S'}θS,S′​, which is what is stated here (the two agree when S′=SS' = SS′=S). "A constant K>0K > 0K>0 depending only on δS\delta_SδS​" is formalized as a positive function KKK of the real number δS\delta_SδS​, chosen before FFF, SSS, S′S'S′, TTT and ccc. The hypothesis S+S′≤mS + S' \le mS+S′≤m is the domain on which Definition 1.1 defines θS,S′\theta_{S,S'}θS,S′​.

Preamble
import Definitions.Def_CandesTao_Decoding_RestrictedIsometry
Formal statement
namespace CandesTao.Decoding
theorem dual_reconstruction_l2 :
    ∃ K : ℝ → ℝ, (∀ δ : ℝ, 0 < K δ) ∧
    ∀ {p m : ℕ} (F : Matrix (Fin p) (Fin m) ℝ) (S S' : ℕ),
      1 ≤ S → 1 ≤ S' → S + S' ≤ m → restrictedIsometryConst F S < 1 →
      ∀ (T : Finset (Fin m)) (c : Fin m → ℝ), T.card ≤ S → SupportedOn c T →
      ∃ w : Fin p → ℝ, w ∈ columnSpan F ∧
        (∀ j ∈ T, dotProduct w (column F j) = c j) ∧
        (∃ E : Finset (Fin m), Disjoint E T ∧ E.card ≤ S' ∧
          (∀ j, j ∉ T → j ∉ E →
            |dotProduct w (column F j)| ≤
              restrictedOrthogonalityConst F S S' /
                ((1 - restrictedIsometryConst F S) * Real.sqrt S') * l2Norm c) ∧
          Real.sqrt (∑ j ∈ E, dotProduct w (column F j) ^ 2) ≤
            restrictedOrthogonalityConst F S S' / (1 - restrictedIsometryConst F S) * l2Norm c) ∧
        l2Norm w ≤ K (restrictedIsometryConst F S) * l2Norm c := by sorry
end CandesTao.Decoding
Source
Candès--Tao 2005, Decoding by Linear Programming, IEEE Trans. Inform. Theory 51(12):4203-4215, doi:10.1109/TIT.2005.858979; arXiv:math/0502327v1 (https://arxiv.org/abs/math/0502327), p. 8, Lemma 2.1 (Dual sparse reconstruction property, l2 version), with eqs. (2.1)-(2.3) of its proof, pp. 8-9
Read-back

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

Read-back of dual_reconstruction_l2

Standing notation. Throughout, p,mp, mp,m are natural numbers (any values, including 000); F∈Rp×mF \in \mathbb{R}^{p \times m}F∈Rp×m is a real matrix whose rows are indexed by a set [p][p][p] of ppp labels and whose columns are indexed by a set [m][m][m] of mmm labels; Fj∈RpF_j \in \mathbb{R}^pFj​∈Rp is the jjj-th column of FFF, so (Fj)i=Fij(F_j)_i = F_{ij}(Fj​)i​=Fij​; Fc∈RpFc \in \mathbb{R}^pFc∈Rp is the matrix–vector product (Fc)i=∑j∈[m]Fijcj(Fc)_i = \sum_{j \in [m]} F_{ij} c_j(Fc)i​=∑j∈[m]​Fij​cj​; ⟨u,v⟩=∑iuivi\langle u, v\rangle = \sum_i u_i v_i⟨u,v⟩=∑i​ui​vi​ is the ordinary dot product; and

∥x∥2=∑ixi2\|x\|_2 = \sqrt{\textstyle\sum_i x_i^2}∥x∥2​=∑i​xi2​​

is the Euclidean norm (the square root is applied to a non-negative number, so it is the usual one; Mathlib's real square root would return 000 on a negative input, which cannot happen here). For a finite set T⊆[m]T \subseteq [m]T⊆[m] and c∈Rmc \in \mathbb{R}^mc∈Rm, "ccc is supported on TTT" means cj=0c_j = 0cj​=0 for every j∉Tj \notin Tj∈/T; nothing is required of ccc on TTT, so ccc may also vanish on part or all of TTT.

Definitions used, unfolded.

Restricted isometry constant. For S∈NS \in \mathbb{N}S∈N,

δS(F):=inf⁡{δ∈R  :  δ≥0, and for every T⊆[m] with ∣T∣≤S and every c∈Rm supported on T,  (1−δ)∥c∥22≤∥Fc∥22≤(1+δ)∥c∥22}.\delta_S(F) := \inf\Big\{\delta \in \mathbb{R} \;:\; \delta \ge 0,\ \text{and for every } T \subseteq [m] \text{ with } |T| \le S \text{ and every } c \in \mathbb{R}^m \text{ supported on } T,\ \ (1-\delta)\|c\|_2^2 \le \|Fc\|_2^2 \le (1+\delta)\|c\|_2^2 \Big\}.δS​(F):=inf{δ∈R:δ≥0, and for every T⊆[m] with ∣T∣≤S and every c∈Rm supported on T,  (1−δ)∥c∥22​≤∥Fc∥22​≤(1+δ)∥c∥22​}.

Restricted orthogonality constant. For S,S′∈NS, S' \in \mathbb{N}S,S′∈N,

θS,S′(F):=inf⁡{θ∈R  :  θ≥0, and for all T,T′⊆[m] with T∩T′=∅, ∣T∣≤S, ∣T′∣≤S′, and all c,c′∈Rm with c supported on T, c′ supported on T′,  ∣⟨Fc,Fc′⟩∣≤θ ∥c∥2 ∥c′∥2}.\theta_{S,S'}(F) := \inf\Big\{\theta \in \mathbb{R} \;:\; \theta \ge 0,\ \text{and for all } T, T' \subseteq [m] \text{ with } T \cap T' = \varnothing,\ |T| \le S,\ |T'| \le S', \text{ and all } c, c' \in \mathbb{R}^m \text{ with } c \text{ supported on } T,\ c' \text{ supported on } T',\ \ |\langle Fc, Fc'\rangle| \le \theta\,\|c\|_2\,\|c'\|_2 \Big\}.θS,S′​(F):=inf{θ∈R:θ≥0, and for all T,T′⊆[m] with T∩T′=∅, ∣T∣≤S, ∣T′∣≤S′, and all c,c′∈Rm with c supported on T, c′ supported on T′,  ∣⟨Fc,Fc′⟩∣≤θ∥c∥2​∥c′∥2​}.

In both definitions the sets T,T′T, T'T,T′ range over all subsets of the stated sizes, including the empty set and sets strictly smaller than SSS or S′S'S′, and the first size parameter of θS,S′\theta_{S,S'}θS,S′​ goes with TTT, the second with T′T'T′.

About the infima. Mathlib's infimum of a set of real numbers returns 000 when the set is empty or has no lower bound. Neither situation occurs here: both sets are contained in [0,∞)[0,\infty)[0,∞), and both contain every sufficiently large real number (by Cauchy–Schwarz, every δ≥max⁡(1,∑i,jFij2)\delta \ge \max\big(1, \sum_{i,j} F_{ij}^2\big)δ≥max(1,∑i,j​Fij2​) lies in the first set and every θ≥∑i,jFij2\theta \ge \sum_{i,j} F_{ij}^2θ≥∑i,j​Fij2​ lies in the second). So δS(F)\delta_S(F)δS​(F) and θS,S′(F)\theta_{S,S'}(F)θS,S′​(F) are genuine infima and are ≥0\ge 0≥0. Moreover each set is upward closed and defined by non-strict inequalities, hence is a closed ray [δ∗,∞)[\delta^{*}, \infty)[δ∗,∞); the infimum is therefore attained, i.e. δS(F)\delta_S(F)δS​(F) itself satisfies the two-sided inequality for every admissible (T,c)(T, c)(T,c), and θS,S′(F)\theta_{S,S'}(F)θS,S′​(F) itself satisfies the orthogonality inequality for every admissible (T,T′,c,c′)(T, T', c, c')(T,T′,c,c′).

Column span. col⁡(F):=span⁡R{F1,…,Fm}⊆Rp\operatorname{col}(F) := \operatorname{span}_{\mathbb{R}}\{F_1, \dots, F_m\} \subseteq \mathbb{R}^pcol(F):=spanR​{F1​,…,Fm​}⊆Rp, i.e. the set of vectors of the form FvFvFv with v∈Rmv \in \mathbb{R}^mv∈Rm.

The statement.

There exists a function K:R→RK : \mathbb{R} \to \mathbb{R}K:R→R such that

  1. K(δ)>0K(\delta) > 0K(δ)>0 for every real number δ\deltaδ (including δ<0\delta < 0δ<0 and δ≥1\delta \ge 1δ≥1, values at which KKK is never evaluated below); and

  2. for all natural numbers p,mp, mp,m, every matrix F∈Rp×mF \in \mathbb{R}^{p \times m}F∈Rp×m, and all natural numbers S,S′S, S'S,S′ satisfying

1≤S,1≤S′,S+S′≤m,δS(F)<1,1 \le S, \qquad 1 \le S', \qquad S + S' \le m, \qquad \delta_S(F) < 1,1≤S,1≤S′,S+S′≤m,δS​(F)<1,

and for every finite set T⊆[m]T \subseteq [m]T⊆[m] and every vector c∈Rmc \in \mathbb{R}^mc∈Rm with

∣T∣≤Sandc supported on T,|T| \le S \qquad\text{and}\qquad c \text{ supported on } T,∣T∣≤Sandc supported on T,

there exists a vector w∈Rpw \in \mathbb{R}^pw∈Rp for which all four of the following hold:

(a) w∈col⁡(F)w \in \operatorname{col}(F)w∈col(F), i.e. w=Fvw = Fvw=Fv for some v∈Rmv \in \mathbb{R}^mv∈Rm;

(b) ⟨w,Fj⟩=cj\langle w, F_j\rangle = c_j⟨w,Fj​⟩=cj​ for every j∈Tj \in Tj∈T;

(c) there exists a finite set E⊆[m]E \subseteq [m]E⊆[m] such that

  • E∩T=∅E \cap T = \varnothingE∩T=∅,
  • ∣E∣≤S′|E| \le S'∣E∣≤S′,
  • for every index j∈[m]j \in [m]j∈[m] with j∉Tj \notin Tj∈/T and j∉Ej \notin Ej∈/E,
∣⟨w,Fj⟩∣  ≤  θS,S′(F)(1−δS(F))S′  ∥c∥2,|\langle w, F_j\rangle| \;\le\; \frac{\theta_{S,S'}(F)}{\big(1-\delta_S(F)\big)\sqrt{S'}}\;\|c\|_2 ,∣⟨w,Fj​⟩∣≤(1−δS​(F))S′​θS,S′​(F)​∥c∥2​,
  • and
∑j∈E⟨w,Fj⟩2  ≤  θS,S′(F)1−δS(F)  ∥c∥2;\sqrt{\sum_{j \in E} \langle w, F_j\rangle^2} \;\le\; \frac{\theta_{S,S'}(F)}{1-\delta_S(F)}\;\|c\|_2 ;j∈E∑​⟨w,Fj​⟩2​≤1−δS​(F)θS,S′​(F)​∥c∥2​;

(d) ∥w∥2≤K(δS(F)) ∥c∥2\|w\|_2 \le K\big(\delta_S(F)\big)\,\|c\|_2∥w∥2​≤K(δS​(F))∥c∥2​.

Here ⟨w,Fj⟩=∑i∈[p]wiFij\langle w, F_j\rangle = \sum_{i \in [p]} w_i F_{ij}⟨w,Fj​⟩=∑i∈[p]​wi​Fij​ is the jjj-th coordinate of FTwF^{\mathsf T} wFTw, and S′\sqrt{S'}S′​ is the real square root of the natural number S′S'S′ after casting it to a real; since S′≥1S' \ge 1S′≥1, this is the ordinary positive square root and is ≥1\ge 1≥1.

Order of quantifiers and dependencies. KKK is chosen first, before p,m,F,S,S′p, m, F, S, S'p,m,F,S,S′: a single function must serve every dimension, every matrix and every pair (S,S′)(S, S')(S,S′), and it enters the conclusion only through its value at the number δS(F)\delta_S(F)δS​(F), which under the hypotheses lies in [0,1)[0, 1)[0,1). Nothing beyond positivity is asked of KKK: no monotonicity, continuity, or boundedness as δ→1\delta \to 1δ→1, and no relation to the explicit constants in (c). The vector www may depend on all of F,S,S′,T,cF, S, S', T, cF,S,S′,T,c; the set EEE may depend on all of these and on www. Only existence is asserted for www and for EEE, not uniqueness.

Edge cases and conventions.

  • The hypotheses 1≤S1 \le S1≤S, 1≤S′1 \le S'1≤S′, S+S′≤mS + S' \le mS+S′≤m force m≥2m \ge 2m≥2; ppp is not constrained by any explicit hypothesis. If p=0p = 0p=0 (no rows) then ∥Fc∥2=0\|Fc\|_2 = 0∥Fc∥2​=0 for every ccc, and with m≥1m \ge 1m≥1, S≥1S \ge 1S≥1 this gives δS(F)=1\delta_S(F) = 1δS​(F)=1; so the hypothesis δS(F)<1\delta_S(F) < 1δS​(F)<1 excludes p=0p = 0p=0, and the statement is vacuous there.
  • Because δS(F)<1\delta_S(F) < 1δS​(F)<1 and S′≥1\sqrt{S'} \ge 1S′​≥1, the denominators (1−δS(F))S′\big(1-\delta_S(F)\big)\sqrt{S'}(1−δS​(F))S′​ and 1−δS(F)1-\delta_S(F)1−δS​(F) are strictly positive, so Lean's convention x/0=0x/0 = 0x/0=0 is never triggered in the two displayed bounds. Both right-hand sides in (c) are ≥0\ge 0≥0 since θS,S′(F)≥0\theta_{S,S'}(F) \ge 0θS,S′​(F)≥0.
  • ∣T∣≤S|T| \le S∣T∣≤S, not ∣T∣=S|T| = S∣T∣=S, and TTT may be empty. If T=∅T = \varnothingT=∅, or more generally if c=0c = 0c=0, then every right-hand side in (c) and (d) equals 000; (d) then forces w=0w = 0w=0, and w=0w = 0w=0 does satisfy (a)–(c) (e.g. with E=∅E = \varnothingE=∅), so in that case the conclusion holds trivially.
  • ∣E∣≤S′|E| \le S'∣E∣≤S′, not ∣E∣=S′|E| = S'∣E∣=S′, and EEE may be empty, in which case the pointwise bound in (c) applies to every j∉Tj \notin Tj∈/T and the sum over EEE is 000.
  • Indices j∈Tj \in Tj∈T are pinned exactly by (b). Indices j∈Ej \in Ej∈E are exempt from the pointwise bound and are controlled only through the aggregate ℓ2\ell^2ℓ2 bound over EEE; no bound is stated for any individual ⟨w,Fj⟩\langle w, F_j\rangle⟨w,Fj​⟩ with j∈Ej \in Ej∈E. Indices outside T∪ET \cup ET∪E get only the pointwise bound.
  • The constant in (c) is θS,S′(F)\theta_{S,S'}(F)θS,S′​(F) with first parameter SSS (matching ∣T∣≤S|T| \le S∣T∣≤S) and second parameter S′S'S′ (matching ∣E∣≤S′|E| \le S'∣E∣≤S′); no hypothesis is placed on θS,S′(F)\theta_{S,S'}(F)θS,S′​(F).
  • No assumption on FFF appears beyond δS(F)<1\delta_S(F) < 1δS​(F)<1: no normalisation of columns, no rank condition, no relation between ppp and mmm.
Human review
  • Endorsed by Shuze Chen · Oct 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by naimengye · Oct 1, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me