Theorem (HasOrthonormalCols.frobNorm_sub_mul_truncatedSVD_sq_le). Truncation for free. For any \mathbf{Q} with orthonormal columns whose range contains \operatorname{range}(\mathbf{A}\mathbf{\Omega}) and any k \ge \lvert r \rvert, \|\mathbf{A} - \mathbf{Q}\llbracket \mathbf{Q}^{\mathsf{H}}\mathbf{A} \rrbracket_k\|_{\mathsf{F}}^2 \le \|\mathbf{E}\|_{\mathsf{F}}^2 + \|\mathbf{M}\|_{\mathsf{F}}^2\,: the rank-k restricted projection keeps the bound of the untruncated range finder, since the competitor has rank at most \lvert r \rvert and lies in \operatorname{range}\mathbf{Q}. The hypothesis k \ge \lvert r \rvert is needed: take \mathbf{A} = \mathbf{\Omega} = \mathbf{Z} = \mathbf{I}_2 and k = 0. [Woodruff2014, Lemma 48], its middle inequality, there over \mathbb{R} with the best rank-k approximation in the column space of the sketch; here for any \mathbf{Q} containing that column space.
Headline (provisional) General form: sizes are index types
Lean statement and details
NLAlib.HasOrthonormalCols.frobNorm_sub_mul_truncatedSVD_sq_le.{u_1, u_2, u_3, u_4, u_5, u_6}
{𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_2} {n : Type u_3} {l : Type u_4} {r : Type u_5}
{q : Type u_6} [Fintype m] [Fintype n] [Fintype l] [Fintype r] [Fintype q] {Ω : Matrix n l 𝕜}
{Z : Matrix n r 𝕜} [DecidableEq r] [DecidableEq q] {A : Matrix m n 𝕜} {Q : Matrix m q 𝕜}
(hQ : HasOrthonormalCols Q) (hQY : (A * Ω).mulVecLin.range ≤ Q.mulVecLin.range)
(hZ : HasOrthonormalCols Z) (hΩ : (Ωᴴ * Z).rank = Z.rank) {k : ℕ} (hk : Fintype.card r ≤ k) :
frobNorm (A - Q * truncatedSVD (Qᴴ * A) k) ^ 2 ≤
frobNorm (A - A * Z * Zᴴ) ^ 2 + frobNorm ((A - A * Z * Zᴴ) * Ω * pinv (Zᴴ * Ω)) ^ 2