Theorem (frobNorm_sub_truncatedSVD_le_of_rank_le).Eckart–Young in the Frobenius norm. No matrix of rank at most k is closer to \mathbf{A} in Frobenius norm than the truncated SVD: if \operatorname{rank} \mathbf{B} \le k then \|\mathbf{A} - \llbracket \mathbf{A} \rrbracket_k\|_{\mathsf{F}} \le \|\mathbf{A} - \mathbf{B}\|_{\mathsf{F}}. [HornJohnson2013, §7.4.9].
Headline (provisional)
Lean statement and details
NLAlib.frobNorm_sub_truncatedSVD_le_of_rank_le.{u_1, u_2, u_3} {𝕜 : Type u_1} [RCLike 𝕜]
{m : Type u_2} {n : Type u_3} [Fintype m] [Fintype n] (A : Matrix m n 𝕜) {B : Matrix m n 𝕜}
{k : ℕ} (hB : B.rank ≤ k) : frobNorm (A - truncatedSVD A k) ≤ frobNorm (A - B)
Theorem (isLeast_frobNorm_sub_of_rank_le).Eckart–Young in the Frobenius norm, as a least element: over the matrices \mathbf{B} of rank at most k, the distance \|\mathbf{A} - \mathbf{B}\|_{\mathsf{F}} has a least value, and it is \|\mathbf{A} - \llbracket \mathbf{A} \rrbracket_k\|_{\mathsf{F}}.
Lean statement and details
NLAlib.isLeast_frobNorm_sub_of_rank_le.{u_1, u_2, u_3} {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_2}
{n : Type u_3} [Fintype m] [Fintype n] (A : Matrix m n 𝕜) (k : ℕ) :
IsLeast ((fun B ↦ frobNorm (A - B)) '' {B | B.rank ≤ k}) (frobNorm (A - truncatedSVD A k))
Theorem (sum_Ico_singularValues_sq_le_frobNorm_sub_sq_of_rank_le).Eckart–Young in the Frobenius norm, tail-sum form. For every \mathbf{B} of rank at most k, \sum_{k \le i < \min(\lvert m \rvert, \lvert n \rvert)} \sigma_i(\mathbf{A})^2 \le \|\mathbf{A} - \mathbf{B}\|_{\mathsf{F}}^2. [HornJohnson2013, §7.4.9].
General form: sizes are index types
Lean statement and details
NLAlib.sum_Ico_singularValues_sq_le_frobNorm_sub_sq_of_rank_le.{u_1, u_2, u_3} {𝕜 : Type u_1}
[RCLike 𝕜] {m : Type u_2} {n : Type u_3} [Fintype m] [Fintype n] (A : Matrix m n 𝕜)
{B : Matrix m n 𝕜} {k : ℕ} (hB : B.rank ≤ k) :
∑ i ∈ Finset.Ico k (min (Fintype.card m) (Fintype.card n)), singularValues A i ^ 2 ≤
frobNorm (A - B) ^ 2
General form: sizes are index types. A size is carried by a finite index type: |k| is the number of elements of the index type k, and "k nonempty" means k ≥ 1.