NLA-lib Explorer

Early-truncated randomized SVD, structural bound

Library · Result group

Theorem (IsSubspaceInjection.frobNorm_sub_earlyTruncatedRSVD_sq_le). Early-truncated randomized SVD, structural bound. For \mathbf{Z} with orthonormal columns, \lvert r \rvert \le k, \mathbf{\Omega}^{\mathsf{H}} a subspace injection for \operatorname{range}\mathbf{Z} with constant 0 < \lambda \le 1, and 0 < \theta < 1, with \mathbf{E} = \mathbf{A} - \mathbf{A}\mathbf{Z}\mathbf{Z}^{\mathsf{H}},\qquad w = \|\mathbf{E}\mathbf{\Omega}\mathbf{\Omega}^{\mathsf{H}}\mathbf{E}^{\mathsf{H}} - \mathbf{E}\mathbf{E}^{\mathsf{H}}\|_{\mathsf{F}},\qquad \chi = \|\mathbf{E}\mathbf{\Omega}\mathbf{\Omega}^{\mathsf{H}}\mathbf{Z} - \mathbf{E}\mathbf{Z}\|_{\mathsf{F}}, \|\mathbf{A} - \mathsf{earlyTruncatedRSVD}(\mathbf{A}, \mathbf{\Omega}, k) \|_{\mathsf{F}}^2 \le \frac{\|\mathbf{E}\|_{\mathsf{F}}^2 + \sqrt{k}\,w}{(1-\theta)\lambda} + \frac{\chi^2}{\theta(1-\theta)\lambda^2}\,, for every choice of the truncation. With \mathbf{A}\mathbf{Z}\mathbf{Z}^{\mathsf{H}} = \llbracket\mathbf{A}\rrbracket_k (NLAlib.exists_hasOrthonormalCols_mul_mul_conjTranspose_eq_truncatedSVD, for k \le \lvert n \rvert) \|\mathbf{E}\|_{\mathsf{F}} is the optimal error. The hypothesis \lvert r \rvert \le k is needed (\mathbf{A} = \mathbf{\Omega} = \mathbf{Z} = \mathbf{I}_2, k = 1). Proved without a literature source; the sketch quantities are those of [CohenElderMuscoMuscoPersu2015, proof of Theorem 12].

Headline (provisional) General form: sizes are index types

Lean statement and details
NLAlib.IsSubspaceInjection.frobNorm_sub_earlyTruncatedRSVD_sq_le.{u_1, u_2, u_3, u_4, u_5}
  {𝕜 : Type u_1} [RCLike 𝕜] {l : Type u_2} {m : Type u_3} {n : Type u_4} {r : Type u_5} [Fintype l]
  [Fintype m] [Fintype n] [Fintype r] [DecidableEq r] {Ω : Matrix n l 𝕜} {Z : Matrix n r 𝕜}
  {a θ : ℝ} (h : IsSubspaceInjection Ωᴴ Z a) (hZ : HasOrthonormalCols Z) {k : ℕ}
  (hk : Fintype.card r ≤ k) (ha : 0 < a) (ha1 : a ≤ 1) (hθ : 0 < θ) (hθ1 : θ < 1)
  (A : Matrix m n 𝕜) :
  frobNorm (A - earlyTruncatedRSVD A Ω k) ^ 2 ≤
    (frobNorm (A - A * Z * Zᴴ) ^ 2 +
          √↑k *
            frobNorm
              ((A - A * Z * Zᴴ) * Ω * Ωᴴ * (A - A * Z * Zᴴ)ᴴ -
                (A - A * Z * Zᴴ) * (A - A * Z * Zᴴ)ᴴ)) /
        ((1 - θ) * a) +
      frobNorm ((A - A * Z * Zᴴ) * Ω * Ωᴴ * Z - (A - A * Z * Zᴴ) * Z) ^ 2 / (θ * (1 - θ) * a ^ 2)

Full source on GitHub

Copy link

Other forms

Theorem (IsSubspaceInjection.frobNorm_sub_mul_sq_le). The early-truncation bound with all unboundedness in the head constant. For \mathbf{A} \in \Bbbk^{m \times n}, \mathbf{\Omega} \in \Bbbk^{n \times \ell} and \mathbf{Z} \in \Bbbk^{n \times r} with orthonormal columns such that \mathbf{\Omega}^{\mathsf{H}} is a subspace injection for \operatorname{range}\mathbf{Z} with constant \lambda (\lambda\,\mathbf{Z}^{\mathsf{H}}\mathbf{Z} \preceq (\mathbf{\Omega}^{\mathsf{H}}\mathbf{Z})^{\mathsf{H}}\mathbf{\Omega}^{\mathsf{H}}\mathbf{Z}), 0 < \lambda \le 1, 0 < \theta < 1, and an orthogonal projector \mathbf{P} \in \Bbbk^{m \times m} of rank at most k whose sketch residual is at most that of the frame's competitor, \|\mathbf{A}\mathbf{\Omega} - \mathbf{P}\mathbf{A}\mathbf{\Omega}\|_{\mathsf{F}} \le \|\mathbf{E}\mathbf{\Omega}\|_{\mathsf{F}}, with \mathbf{E} = \mathbf{A} - \mathbf{A}\mathbf{Z}\mathbf{Z}^{\mathsf{H}},\qquad w = \|\mathbf{E}\mathbf{\Omega}\mathbf{\Omega}^{\mathsf{H}}\mathbf{E}^{\mathsf{H}} - \mathbf{E}\mathbf{E}^{\mathsf{H}}\|_{\mathsf{F}},\qquad \chi = \|\mathbf{E}\mathbf{\Omega}\mathbf{\Omega}^{\mathsf{H}}\mathbf{Z} - \mathbf{E}\mathbf{Z}\|_{\mathsf{F}}, \|\mathbf{A} - \mathbf{P}\mathbf{A}\|_{\mathsf{F}}^2 \le \frac{\|\mathbf{E}\|_{\mathsf{F}}^2 + \sqrt{k}\,w}{(1-\theta)\lambda} + \frac{\chi^2}{\theta(1-\theta)\lambda^2}\,. A random head constant enters as \min\{1, \lambda\} through NLAlib.IsSubspaceInjection.mono, which is the form an expectation bound integrates. Proved without a literature source; the sketch quantities are those of [CohenElderMuscoMuscoPersu2015, proof of Theorem 12].

Lean statement and details
NLAlib.IsSubspaceInjection.frobNorm_sub_mul_sq_le.{u_1, u_2, u_3, u_4, u_5} {𝕜 : Type u_1}
  [RCLike 𝕜] {l : Type u_2} {m : Type u_3} {n : Type u_4} {r : Type u_5} [Fintype l] [Fintype m]
  [Fintype n] [Fintype r] [DecidableEq r] {A : Matrix m n 𝕜} {Ω : Matrix n l 𝕜} {Z : Matrix n r 𝕜}
  {a θ : ℝ} (h : IsSubspaceInjection Ωᴴ Z a) (hZ : HasOrthonormalCols Z) (ha : 0 < a) (ha1 : a ≤ 1)
  (hθ : 0 < θ) (hθ1 : θ < 1) {P : Matrix m m 𝕜} (hP : IsStarProjection P) {k : ℕ} (hPk : P.rank ≤ k)
  (hopt : frobNorm (A * Ω - P * (A * Ω)) ≤ frobNorm ((A - A * Z * Zᴴ) * Ω)) :
  frobNorm (A - P * A) ^ 2 ≤
    (frobNorm (A - A * Z * Zᴴ) ^ 2 +
          √↑k *
            frobNorm
              ((A - A * Z * Zᴴ) * Ω * Ωᴴ * (A - A * Z * Zᴴ)ᴴ -
                (A - A * Z * Zᴴ) * (A - A * Z * Zᴴ)ᴴ)) /
        ((1 - θ) * a) +
      frobNorm ((A - A * Z * Zᴴ) * Ω * Ωᴴ * Z - (A - A * Z * Zᴴ) * Z) ^ 2 / (θ * (1 - θ) * a ^ 2)

Full source on GitHub

Copy link

Theorem (IsSubspaceInjection.mul_frobNorm_sub_mul_sq_add_le). The early-truncation structural bound. Let \mathbf{Z} have orthonormal columns, \mathbf{\Omega}^{\mathsf{H}} be a subspace injection for \operatorname{range}\mathbf{Z} with constant \lambda, and \mathbf{P} an orthogonal projector of rank at most k whose sketch residual is at most that of the frame's competitor \mathbf{A}\mathbf{Z}\mathbf{Z}^{\mathsf{H}}\mathbf{\Omega}, \|\mathbf{A}\mathbf{\Omega} - \mathbf{P}\mathbf{A}\mathbf{\Omega}\|_{\mathsf{F}} \le \|\mathbf{E}\mathbf{\Omega}\|_{\mathsf{F}} with \mathbf{E} = \mathbf{A} - \mathbf{A}\mathbf{Z}\mathbf{Z}^{\mathsf{H}} (implied by being at least as good on the sketch as \mathbf{P}_{\mathbf{A}\mathbf{Z}}). With r_1 = \|\mathbf{A}\mathbf{Z} - \mathbf{P}\mathbf{A}\mathbf{Z}\|_{\mathsf{F}}, r_2 = \|\mathbf{E} - \mathbf{P}\mathbf{E}\|_{\mathsf{F}} and w = \|\mathbf{E}\mathbf{\Omega}\mathbf{\Omega}^{\mathsf{H}}\mathbf{E}^{\mathsf{H}} - \mathbf{E}\mathbf{E}^{\mathsf{H}}\|_{\mathsf{F}},\qquad \chi = \|\mathbf{E}\mathbf{\Omega}\mathbf{\Omega}^{\mathsf{H}}\mathbf{Z} - \mathbf{E}\mathbf{Z}\|_{\mathsf{F}}, \lambda r_1^2 + r_2^2 \le \|\mathbf{E}\|_{\mathsf{F}}^2 + \sqrt{k}\,w + 2\chi r_1\,. Only the lower side of the head embedding and the two approximate-multiplication errors enter; the Frobenius preservation of the tail cancels. True for every real \lambda. Proved without a literature source; the sketch quantities are those of [CohenElderMuscoMuscoPersu2015, proof of Theorem 12].

Lean statement and details
NLAlib.IsSubspaceInjection.mul_frobNorm_sub_mul_sq_add_le.{u_1, u_2, u_3, u_4, u_5} {𝕜 : Type u_1}
  [RCLike 𝕜] {l : Type u_2} {m : Type u_3} {n : Type u_4} {r : Type u_5} [Fintype l] [Fintype m]
  [Fintype n] [Fintype r] [DecidableEq r] {A : Matrix m n 𝕜} {Ω : Matrix n l 𝕜} {Z : Matrix n r 𝕜}
  {a : ℝ} (h : IsSubspaceInjection Ωᴴ Z a) (hZ : HasOrthonormalCols Z) {P : Matrix m m 𝕜}
  (hP : IsStarProjection P) {k : ℕ} (hPk : P.rank ≤ k)
  (hopt : frobNorm (A * Ω - P * (A * Ω)) ≤ frobNorm ((A - A * Z * Zᴴ) * Ω)) :
  a * frobNorm (A * Z - P * (A * Z)) ^ 2 + frobNorm (A - A * Z * Zᴴ - P * (A - A * Z * Zᴴ)) ^ 2 ≤
    frobNorm (A - A * Z * Zᴴ) ^ 2 +
        √↑k *
          frobNorm
            ((A - A * Z * Zᴴ) * Ω * Ωᴴ * (A - A * Z * Zᴴ)ᴴ - (A - A * Z * Zᴴ) * (A - A * Z * Zᴴ)ᴴ) +
      2 * frobNorm ((A - A * Z * Zᴴ) * Ω * Ωᴴ * Z - (A - A * Z * Zᴴ) * Z) *
        frobNorm (A * Z - P * (A * Z))

Full source on GitHub

Copy link

Theorem (IsSubspaceInjection.mul_frobNorm_sub_mul_sq_le). The early-truncation structural bound, in the error alone. For \mathbf{A} \in \Bbbk^{m \times n}, \mathbf{\Omega} \in \Bbbk^{n \times \ell} and \mathbf{Z} \in \Bbbk^{n \times r} with orthonormal columns such that \mathbf{\Omega}^{\mathsf{H}} is a subspace injection for \operatorname{range}\mathbf{Z} with constant \lambda (\lambda\,\mathbf{Z}^{\mathsf{H}}\mathbf{Z} \preceq (\mathbf{\Omega}^{\mathsf{H}}\mathbf{Z})^{\mathsf{H}}\mathbf{\Omega}^{\mathsf{H}}\mathbf{Z}), \lambda \le 1, and an orthogonal projector \mathbf{P} \in \Bbbk^{m \times m} of rank at most k whose sketch residual is at most that of the frame's competitor, \|\mathbf{A}\mathbf{\Omega} - \mathbf{P}\mathbf{A}\mathbf{\Omega}\|_{\mathsf{F}} \le \|\mathbf{E}\mathbf{\Omega}\|_{\mathsf{F}}, with \mathbf{E} = \mathbf{A} - \mathbf{A}\mathbf{Z}\mathbf{Z}^{\mathsf{H}},\qquad w = \|\mathbf{E}\mathbf{\Omega}\mathbf{\Omega}^{\mathsf{H}}\mathbf{E}^{\mathsf{H}} - \mathbf{E}\mathbf{E}^{\mathsf{H}}\|_{\mathsf{F}},\qquad \chi = \|\mathbf{E}\mathbf{\Omega}\mathbf{\Omega}^{\mathsf{H}}\mathbf{Z} - \mathbf{E}\mathbf{Z}\|_{\mathsf{F}}, \lambda\|\mathbf{A} - \mathbf{P}\mathbf{A}\|_{\mathsf{F}}^2 \le \|\mathbf{E}\|_{\mathsf{F}}^2 + \sqrt{k}\,w + 2\chi\|\mathbf{A} - \mathbf{P}\mathbf{A}\|_{\mathsf{F}}\,. A consequence of NLAlib.IsSubspaceInjection.mul_frobNorm_sub_mul_sq_add_le. For \lambda > 1 apply it at 1 through NLAlib.IsSubspaceInjection.mono. Proved without a literature source; the sketch quantities are those of [CohenElderMuscoMuscoPersu2015, proof of Theorem 12].

Lean statement and details
NLAlib.IsSubspaceInjection.mul_frobNorm_sub_mul_sq_le.{u_1, u_2, u_3, u_4, u_5} {𝕜 : Type u_1}
  [RCLike 𝕜] {l : Type u_2} {m : Type u_3} {n : Type u_4} {r : Type u_5} [Fintype l] [Fintype m]
  [Fintype n] [Fintype r] [DecidableEq r] {A : Matrix m n 𝕜} {Ω : Matrix n l 𝕜} {Z : Matrix n r 𝕜}
  {a : ℝ} (h : IsSubspaceInjection Ωᴴ Z a) (hZ : HasOrthonormalCols Z) (ha1 : a ≤ 1)
  {P : Matrix m m 𝕜} (hP : IsStarProjection P) {k : ℕ} (hPk : P.rank ≤ k)
  (hopt : frobNorm (A * Ω - P * (A * Ω)) ≤ frobNorm ((A - A * Z * Zᴴ) * Ω)) :
  a * frobNorm (A - P * A) ^ 2 ≤
    frobNorm (A - A * Z * Zᴴ) ^ 2 +
        √↑k *
          frobNorm
            ((A - A * Z * Zᴴ) * Ω * Ωᴴ * (A - A * Z * Zᴴ)ᴴ - (A - A * Z * Zᴴ) * (A - A * Z * Zᴴ)ᴴ) +
      2 * frobNorm ((A - A * Z * Zᴴ) * Ω * Ωᴴ * Z - (A - A * Z * Zᴴ) * Z) * frobNorm (A - P * A)

Full source on GitHub

Copy link

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.