NLA-lib Explorer

PSD Nyström: expected error

Library · Result group

Theorem (Matrix.PosSemidef.integral_nuclearNorm_sub_nystrom_le_of_hasLaw_gaussianMatrix). The expected error of randomized Nyström, trace: for positive semidefinite \mathbf{H}, a standard Gaussian n \times \ell test matrix \mathbf{X} and k + 2 \le \ell, <!-- value gaussianProjectionFactor k \ell --> \mathbb{E}\|\mathbf{H} - \mathsf{nystrom}(\mathbf{H}, \mathbf{X})\|_* \le \Bigl(1 + \frac{k}{\ell - k - 1}\Bigr)\|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_*\,. The error is positive semidefinite, so this is \mathbb{E}\operatorname{tr}(\mathbf{H} - \mathsf{nystrom}(\mathbf{H}, \mathbf{X})). The trace instance of the Gram-form bound above; Epperly and Webber's sharper factor, with a rank parameter, is Matrix.PosSemidef.integral_nuclearNorm_sub_nystrom_le_of_hasLaw_gaussianMatrix_of_rank_le. Asymptotic form: NLAlib.exists_forall_integral_nuclearNorm_sub_nystrom_le_of_hasLaw_gaussianMatrix. [TroppYurtseverUdellCevher2017a, Theorem A.1]; [TroppWebber2023, Corollary 8.8]; there with a minimum over the comparison rank (TYUC) and k \ge 1, here at one rank, any k; the first case of TW Corollary 8.8.

Headline General form: sizes are index types

Lean statement and details
Matrix.PosSemidef.integral_nuclearNorm_sub_nystrom_le_of_hasLaw_gaussianMatrix.{u_1, u_2, u_3}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} {l : Type u_3} [Fintype n]
  [Fintype l] {H : Matrix n n ℝ} {X : Ω → Matrix n l ℝ} (hH : H.PosSemidef)
  (hX : HasLaw X (gaussianMatrix n l) μ) {k : ℕ} (hk : k + 2 ≤ Fintype.card l) :
  ∫ (ω : Ω), nuclearNorm (H - nystrom H (X ω)) ∂μ ≤
    gaussianProjectionFactor k (Fintype.card l) * nuclearNorm (H - truncatedSVD H k)

Full source on GitHub

Copy link

Other forms

Theorem (Matrix.PosSemidef.integral_frobNorm_sub_nystrom_le_of_hasLaw_gaussianMatrix). The expected error of randomized Nyström, Frobenius norm: for positive semidefinite \mathbf{H}, a standard Gaussian n \times \ell test matrix \mathbf{X} and k + 2 \le \ell, \mathbb{E}\|\mathbf{H} - \mathsf{nystrom}(\mathbf{H}, \mathbf{X})\|_{\mathsf{F}} \le \|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_{\mathsf{F}} + \frac{k}{\ell - k - 1} \|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_*\,. [TroppWebber2023, Corollary 8.2 (NysSVD2)]; there at p = 2.

General form: sizes are index types

Lean statement and details
Matrix.PosSemidef.integral_frobNorm_sub_nystrom_le_of_hasLaw_gaussianMatrix.{u_1, u_2, u_3}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} {l : Type u_3} [Fintype n]
  [Fintype l] {H : Matrix n n ℝ} {X : Ω → Matrix n l ℝ} (hH : H.PosSemidef)
  (hX : HasLaw X (gaussianMatrix n l) μ) {k : ℕ} (hk : k + 2 ≤ Fintype.card l) :
  ∫ (ω : Ω), frobNorm (H - nystrom H (X ω)) ∂μ ≤
    frobNorm (H - truncatedSVD H k) +
      ↑k / (↑(Fintype.card l) - ↑k - 1) * nuclearNorm (H - truncatedSVD H k)

Full source on GitHub

Copy link

Theorem (Matrix.PosSemidef.integral_nuclearNorm_sub_nystrom_le_of_hasLaw_gaussianMatrix_of_rank_le). The sharp expected trace error of randomized Nyström, Gaussian test matrices: for positive semidefinite \mathbf{H} of rank at most r, a standard Gaussian n \times \ell test matrix \mathbf{X}, \ell \le r and q + 2 \le \ell, <!-- value rotationInvariantFactor r \ell q --> \mathbb{E}\|\mathbf{H} - \mathsf{nystrom}(\mathbf{H}, \mathbf{X})\|_* \le \frac{r - \ell}{r - q}\Bigl(1 + \frac{q}{\ell - q - 1}\Bigr) \|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_q\|_*\,, for every \ell (for \ell > n Nyström is exact almost surely). The Gaussian instance of Matrix.PosSemidef.integral_nuclearNorm_sub_nystrom_le_of_isLeftUnitarilyInvariant_of_rank_le, and the sharper form of Matrix.PosSemidef.integral_nuclearNorm_sub_nystrom_le_of_hasLaw_gaussianMatrix (HMT's factor). [EpperlyWebber2026, Theorem 3.6(a)]; there with r = \operatorname{rank}\mathbf{H} \ge \ell and a minimum over q.

General form: sizes are index types

Lean statement and details
Matrix.PosSemidef.integral_nuclearNorm_sub_nystrom_le_of_hasLaw_gaussianMatrix_of_rank_le.{u_1, u_3,
    u_4}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_3} {l : Type u_4} [Fintype n]
  [Fintype l] {X : Ω → Matrix n l ℝ} {H : Matrix n n ℝ} (hH : H.PosSemidef)
  (hX : HasLaw X (gaussianMatrix n l) μ) {r q : ℕ} (hr : H.rank ≤ r) (hlr : Fintype.card l ≤ r)
  (hq : q + 2 ≤ Fintype.card l) :
  ∫ (ω : Ω), nuclearNorm (H - nystrom H (X ω)) ∂μ ≤
    rotationInvariantFactor r (Fintype.card l) q * nuclearNorm (H - truncatedSVD H q)

Full source on GitHub

Copy link

Theorem (Matrix.PosSemidef.integral_nuclearNorm_sub_nystrom_le_of_isLeftUnitarilyInvariant). The expected trace error of randomized Nyström, rotation-invariant test matrices: for positive semidefinite \mathbf{H}, a test matrix \mathbf{X} with a left unitarily invariant law and full column rank almost surely and k + 2 \le \ell, <!-- value gaussianProjectionFactor k \ell --> \mathbb{E}\|\mathbf{H} - \mathsf{nystrom}(\mathbf{H}, \mathbf{X})\|_* \le \Bigl(1 + \frac{k}{\ell - k - 1}\Bigr)\|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_*\,, with HMT's factor. The instance r = n of Matrix.PosSemidef.integral_nuclearNorm_sub_nystrom_le_of_isLeftUnitarilyInvariant_of_rank_le, with Epperly and Webber's factor bounded by HMT's. A Haar frame (NLAlib.haarFrame) is an instance: its law is left unitarily invariant (NLAlib.isLeftUnitarilyInvariant_haarFrame), and for \ell \le n it has full column rank almost surely (NLAlib.ae_rank_mul_eq_min_of_hasLaw_haarFrame at \mathbf{A} = \mathbf{I}). Asymptotic form: NLAlib.exists_forall_integral_nuclearNorm_sub_nystrom_le_of_isLeftUnitarilyInvariant. [EpperlyWebber2026, Theorem 3.1 and Fact 3.5]; [TroppYurtseverUdellCevher2017a, Theorem A.1]; there with a minimum over the comparison rank, for orthonormal test matrices (TYUC) or rotation-invariant ones (EW, the Nyström twin of their Theorem 3.1); here at one rank.

General form: sizes are index types

Lean statement and details
Matrix.PosSemidef.integral_nuclearNorm_sub_nystrom_le_of_isLeftUnitarilyInvariant.{u_1, u_3, u_4}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_3} {l : Type u_4} [Fintype n]
  [Fintype l] {X : Ω → Matrix n l ℝ} [DecidableEq n] {ν : Measure (Matrix n l ℝ)}
  [IsProbabilityMeasure ν] [IsLeftUnitarilyInvariant ν] {H : Matrix n n ℝ} (hH : H.PosSemidef)
  (hX : HasLaw X ν μ) (hXr : ∀ᵐ (ω : Ω) ∂μ, Function.Injective (X ω).mulVec) {k : ℕ}
  (hk : k + 2 ≤ Fintype.card l) :
  ∫ (ω : Ω), nuclearNorm (H - nystrom H (X ω)) ∂μ ≤
    gaussianProjectionFactor k (Fintype.card l) * nuclearNorm (H - truncatedSVD H k)

Full source on GitHub

Copy link

Theorem (Matrix.PosSemidef.integral_nuclearNorm_sub_nystrom_le_of_isLeftUnitarilyInvariant_of_rank_le). The sharp expected trace error of randomized Nyström, rotation-invariant test matrices: for positive semidefinite \mathbf{H} of rank at most r, a test matrix \mathbf{X} with a left unitarily invariant law and full column rank almost surely (Gaussian, Haar, ...), \ell \le r and q + 2 \le \ell, <!-- value rotationInvariantFactor r \ell q --> \mathbb{E}\|\mathbf{H} - \mathsf{nystrom}(\mathbf{H}, \mathbf{X})\|_* \le \frac{r - \ell}{r - q}\Bigl(1 + \frac{q}{\ell - q - 1}\Bigr) \|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_q\|_*\,. At r = \operatorname{rank}\mathbf{H} the supremum of the ratio over rank-r matrices equals the factor ([EpperlyWebber2026, Theorem 3.6(b)]); at r = n the bound needs no knowledge of the rank. The factor is at most HMT's (NLAlib.rotationInvariantFactor_le_gaussianProjectionFactor), so this sharpens Matrix.PosSemidef.integral_nuclearNorm_sub_nystrom_le_of_isLeftUnitarilyInvariant, its instance r = n. The proof passes to a Gaussian test matrix, compresses \mathbf{H} to its leading r eigenvectors, raises the top q eigenvalues to \lambda_0(\mathbf{H}) (monotonicity of the Schur complement), averages the tail over its cyclic shifts (concavity) and ends at the two-eigenvalue instance NLAlib.integral_nuclearNorm_fromBlocks_sub_nystrom_le_of_isLeftUnitarilyInvariant. [EpperlyWebber2026, Theorem 3.6(a)]; there over \mathbb{R} and \mathbb{C} with r = \operatorname{rank}\mathbf{H} \ge \ell and a minimum over q; here over \mathbb{R}, any r \ge \max(\operatorname{rank}\mathbf{H}, \ell), at each q.

General form: sizes are index types

Lean statement and details
Matrix.PosSemidef.integral_nuclearNorm_sub_nystrom_le_of_isLeftUnitarilyInvariant_of_rank_le.{u_1,
    u_3, u_4}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_3} {l : Type u_4} [Fintype n]
  [Fintype l] {X : Ω → Matrix n l ℝ} [DecidableEq n] {ν : Measure (Matrix n l ℝ)}
  [IsProbabilityMeasure ν] [IsLeftUnitarilyInvariant ν] {H : Matrix n n ℝ} (hH : H.PosSemidef)
  (hX : HasLaw X ν μ) (hXr : ∀ᵐ (ω : Ω) ∂μ, Function.Injective (X ω).mulVec) {r q : ℕ}
  (hr : H.rank ≤ r) (hlr : Fintype.card l ≤ r) (hq : q + 2 ≤ Fintype.card l) :
  ∫ (ω : Ω), nuclearNorm (H - nystrom H (X ω)) ∂μ ≤
    rotationInvariantFactor r (Fintype.card l) q * nuclearNorm (H - truncatedSVD H q)

Full source on GitHub

Copy link

Theorem (Matrix.PosSemidef.integral_nuclearNorm_sub_truncatedSVD_nystrom_le_add_of_hasLaw_gaussianMatrix). Truncated Nyström exploits spectral decay, trace: for positive semidefinite \mathbf{H}, a standard Gaussian n \times \ell test matrix \mathbf{X}, any target rank k, any comparison rank q with q + 2 \le \ell and every choice of the truncation, \mathbb{E}\|\mathbf{H} - \llbracket\mathsf{nystrom}(\mathbf{H}, \mathbf{X})\rrbracket_k\|_* \le \|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_* + \Bigl(1 + \frac{q}{\ell - q - 1}\Bigr) \|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_q\|_*\,. Incomparable with Matrix.PosSemidef.integral_nuclearNorm_sub_truncatedSVD_nystrom_le_of_hasLaw_gaussianMatrix: better when the spectrum decays past k and q > k. From the constant-one truncation lemma NLAlib.SymmetricGauge.matrixNorm_sub_truncatedSVD_nystrom_le and the untruncated trace bound at q. [TroppYurtseverUdellCevher2017a, Theorem 4.2 (4.3)]; there with the constant 2 in place of 1 and a minimum over q; here the constant 1 (Nyström does not increase singular values) at each q.

General form: sizes are index types

Lean statement and details
Matrix.PosSemidef.integral_nuclearNorm_sub_truncatedSVD_nystrom_le_add_of_hasLaw_gaussianMatrix.{u_1,
    u_2, u_3}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} {l : Type u_3} [Fintype n]
  [Fintype l] {H : Matrix n n ℝ} {X : Ω → Matrix n l ℝ} (hH : H.PosSemidef)
  (hX : HasLaw X (gaussianMatrix n l) μ) (k : ℕ) {q : ℕ} (hq : q + 2 ≤ Fintype.card l) :
  ∫ (ω : Ω), nuclearNorm (H - truncatedSVD (nystrom H (X ω)) k) ∂μ ≤
    nuclearNorm (H - truncatedSVD H k) +
      gaussianProjectionFactor q (Fintype.card l) * nuclearNorm (H - truncatedSVD H q)

Full source on GitHub

Copy link

Theorem (Matrix.PosSemidef.integral_nuclearNorm_sub_truncatedSVD_nystrom_le_add_of_isLeftUnitarilyInvariant_of_rank_le). Truncated Nyström exploits spectral decay, with Epperly and Webber's factor: for positive semidefinite \mathbf{H} of rank at most r, a test matrix \mathbf{X} with a left unitarily invariant law and full column rank almost surely, any target rank k, a comparison rank q with q + 2 \le \ell \le r and every choice of the truncation, <!-- value rotationInvariantFactor r \ell q --> \mathbb{E}\|\mathbf{H} - \llbracket\mathsf{nystrom}(\mathbf{H}, \mathbf{X})\rrbracket_k\|_* \le \|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_* + \frac{r - \ell}{r - q} \Bigl(1 + \frac{q}{\ell - q - 1}\Bigr)\|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_q\|_*\,. Better than Matrix.PosSemidef.integral_nuclearNorm_sub_truncatedSVD_nystrom_le_add_of_hasLaw_gaussianMatrix's 1 + q/(\ell-q-1) by the factor (r-\ell)/(r-q). Incomparable with Matrix.PosSemidef.integral_nuclearNorm_sub_truncatedSVD_nystrom_le_of_isLeftUnitarilyInvariant at q = k as well: better iff (r-\ell)(\ell-1) < k(r-k), that is for rank close to \ell (at r = \ell it gives the best rank-k error with constant one); for q > k better when the tail decays. From the constant-one truncation lemma NLAlib.SymmetricGauge.matrixNorm_sub_truncatedSVD_nystrom_le and Matrix.PosSemidef.integral_nuclearNorm_sub_nystrom_le_of_isLeftUnitarilyInvariant_of_rank_le. [TroppYurtseverUdellCevher2017a, Theorem 4.2 (4.3)]; [EpperlyWebber2026, Theorem 3.6(a)]; there (TYUC) with the constant 2 and HMT's factor.

General form: sizes are index types

Lean statement and details
Matrix.PosSemidef.integral_nuclearNorm_sub_truncatedSVD_nystrom_le_add_of_isLeftUnitarilyInvariant_of_rank_le.{u_1,
    u_3, u_4}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_3} {l : Type u_4} [Fintype n]
  [Fintype l] {X : Ω → Matrix n l ℝ} [DecidableEq n] {ν : Measure (Matrix n l ℝ)}
  [IsProbabilityMeasure ν] [IsLeftUnitarilyInvariant ν] {H : Matrix n n ℝ} (hH : H.PosSemidef)
  (hX : HasLaw X ν μ) (hXr : ∀ᵐ (ω : Ω) ∂μ, Function.Injective (X ω).mulVec) (k : ℕ) {r q : ℕ}
  (hr : H.rank ≤ r) (hlr : Fintype.card l ≤ r) (hq : q + 2 ≤ Fintype.card l) :
  ∫ (ω : Ω), nuclearNorm (H - truncatedSVD (nystrom H (X ω)) k) ∂μ ≤
    nuclearNorm (H - truncatedSVD H k) +
      rotationInvariantFactor r (Fintype.card l) q * nuclearNorm (H - truncatedSVD H q)

Full source on GitHub

Copy link

Theorem (Matrix.PosSemidef.integral_nuclearNorm_sub_truncatedSVD_nystrom_le_of_hasLaw_gaussianMatrix). The expected trace error of truncated Nyström (fixed-rank Nyström): for positive semidefinite \mathbf{H}, a standard Gaussian n \times \ell test matrix \mathbf{X}, k + 2 \le \ell and every choice of the truncation, \mathbb{E}\|\mathbf{H} - \llbracket\mathsf{nystrom}(\mathbf{H}, \mathbf{X})\rrbracket_k\|_* \le \Bigl(1 + \frac{k}{\ell - k - 1}\Bigr)\|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_*\,, the bound of the untruncated output. The error does not depend on the choice: it is the squared Frobenius error of the truncated randomized SVD of a factor (NLAlib.integral_frobNorm_sub_truncatedSVD_rsvd_sq_le_of_hasLaw_gaussianMatrix). Incomparable with the decay form with Epperly and Webber's factor, Matrix.PosSemidef.integral_nuclearNorm_sub_truncatedSVD_nystrom_le_add_of_isLeftUnitarilyInvariant_of_rank_le (a Gaussian test matrix is an instance), which is better for rank close to \ell or a decaying tail. Asymptotic form: NLAlib.exists_forall_integral_nuclearNorm_sub_truncatedSVD_nystrom_le_of_hasLaw_gaussianMatrix. [TroppYurtseverUdellCevher2017a, Theorem 4.1 (4.1)]; there with 1 \le k and \ell \le n, neither needed here, and through Gu's projected truncation; here through Woodruff's truncation for free.

General form: sizes are index types

Lean statement and details
Matrix.PosSemidef.integral_nuclearNorm_sub_truncatedSVD_nystrom_le_of_hasLaw_gaussianMatrix.{u_1,
    u_2, u_3}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} {l : Type u_3} [Fintype n]
  [Fintype l] {H : Matrix n n ℝ} {X : Ω → Matrix n l ℝ} (hH : H.PosSemidef)
  (hX : HasLaw X (gaussianMatrix n l) μ) {k : ℕ} (hk : k + 2 ≤ Fintype.card l) :
  ∫ (ω : Ω), nuclearNorm (H - truncatedSVD (nystrom H (X ω)) k) ∂μ ≤
    gaussianProjectionFactor k (Fintype.card l) * nuclearNorm (H - truncatedSVD H k)

Full source on GitHub

Copy link

Theorem (Matrix.PosSemidef.integral_nuclearNorm_sub_truncatedSVD_nystrom_le_of_isLeftUnitarilyInvariant). The expected trace error of truncated Nyström, rotation-invariant test matrices: for positive semidefinite \mathbf{H}, a test matrix \mathbf{X} with a left unitarily invariant law and full column rank almost surely, k + 2 \le \ell and every choice of the truncation, \mathbb{E}\|\mathbf{H} - \llbracket\mathsf{nystrom}(\mathbf{H}, \mathbf{X})\rrbracket_k\|_* \le \Bigl(1 + \frac{k}{\ell - k - 1}\Bigr)\|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_*\,: the squared Frobenius error of the truncated randomized SVD of a factor (NLAlib.integral_frobNorm_sub_truncatedSVD_rsvd_sq_le_of_isLeftUnitarilyInvariant). A Haar frame is an instance (NLAlib.isLeftUnitarilyInvariant_haarFrame, and NLAlib.ae_rank_mul_eq_min_of_hasLaw_haarFrame at \mathbf{A} = \mathbf{I} for \ell \le n). Incomparable with the decay form with Epperly and Webber's factor, Matrix.PosSemidef.integral_nuclearNorm_sub_truncatedSVD_nystrom_le_add_of_isLeftUnitarilyInvariant_of_rank_le, which is better for rank close to \ell or a decaying tail. Asymptotic form: NLAlib.exists_forall_integral_nuclearNorm_sub_truncatedSVD_nystrom_le_of_isLeftUnitarilyInvariant. [TroppYurtseverUdellCevher2017a, Theorem 4.1 (4.1)]; there for Gaussian or orthonormal test matrices, with 1 \le k and \ell \le n.

General form: sizes are index types

Lean statement and details
Matrix.PosSemidef.integral_nuclearNorm_sub_truncatedSVD_nystrom_le_of_isLeftUnitarilyInvariant.{u_1,
    u_3, u_4}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_3} {l : Type u_4} [Fintype n]
  [Fintype l] {X : Ω → Matrix n l ℝ} [DecidableEq n] {ν : Measure (Matrix n l ℝ)}
  [IsProbabilityMeasure ν] [IsLeftUnitarilyInvariant ν] {H : Matrix n n ℝ} (hH : H.PosSemidef)
  (hX : HasLaw X ν μ) (hXr : ∀ᵐ (ω : Ω) ∂μ, Function.Injective (X ω).mulVec) {k : ℕ}
  (hk : k + 2 ≤ Fintype.card l) :
  ∫ (ω : Ω), nuclearNorm (H - truncatedSVD (nystrom H (X ω)) k) ∂μ ≤
    gaussianProjectionFactor k (Fintype.card l) * nuclearNorm (H - truncatedSVD H k)

Full source on GitHub

Copy link

Theorem (Matrix.PosSemidef.integral_schattenNorm_sub_nystrom_le_of_hasLaw_gaussianMatrix). The expected error of randomized Nyström, Schatten norms: for positive semidefinite \mathbf{H}, a standard Gaussian n \times \ell test matrix \mathbf{X}, k + 2 \le \ell and 1 \le p \le \infty, \mathbb{E}\|\mathbf{H} - \mathsf{nystrom}(\mathbf{H}, \mathbf{X})\|_{S_p} \le \|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_{S_p} + \frac{k}{\ell - k - 1} \|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_*\,. [TroppWebber2023, Corollary 8.2 (NysSVD2)]; as printed there, with k + 2 \le \ell and no hypothesis on k \ge 1.

General form: sizes are index types

Lean statement and details
Matrix.PosSemidef.integral_schattenNorm_sub_nystrom_le_of_hasLaw_gaussianMatrix.{u_1, u_2, u_3}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} {l : Type u_3} [Fintype n]
  [Fintype l] {H : Matrix n n ℝ} {X : Ω → Matrix n l ℝ} (hH : H.PosSemidef)
  (hX : HasLaw X (gaussianMatrix n l) μ) {k : ℕ} (hk : k + 2 ≤ Fintype.card l) {p : ℝ≥0∞}
  (hp : 1 ≤ p) :
  ∫ (ω : Ω), schattenNorm p (H - nystrom H (X ω)) ∂μ ≤
    schattenNorm p (H - truncatedSVD H k) +
      ↑k / (↑(Fintype.card l) - ↑k - 1) * nuclearNorm (H - truncatedSVD H k)

Full source on GitHub

Copy link

Theorem (Matrix.PosSemidef.integral_specNorm_sub_le_add_of_isBestRankApprox_nystrom_of_hasLaw_gaussianMatrix). Truncated Nyström exploits spectral decay, spectral norm: for positive semidefinite \mathbf{H}, a standard Gaussian n \times \ell test matrix \mathbf{X}, any target rank k, a measurable choice \mathbf{Y} of best rank-k approximations of \mathsf{nystrom}(\mathbf{H}, \mathbf{X}) and any comparison rank q with q + 2 \le \ell, \mathbb{E}\|\mathbf{H} - \mathbf{Y}\|_2 \le \lambda_k(\mathbf{H}) + \lambda_q(\mathbf{H}) + \frac{q}{\ell - q - 1}\|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_q\|_*\,, eigenvalues indexed from 0. At q = k it is dominated by Matrix.PosSemidef.integral_specNorm_sub_le_of_isBestRankApprox_nystrom_of_hasLaw_gaussianMatrix (Martinsson and Tropp's Theorem 14.1); for q > k the two are incomparable, this one better when the spectrum decays past k. Direct form at truncatedSVD: Matrix.PosSemidef.integral_specNorm_sub_truncatedSVD_nystrom_le_add_of_hasLaw_gaussianMatrix. [TroppYurtseverUdellCevher2017a, Theorem 4.2 (4.4)]; there 2(1 + q/(\ell - q - 1))\|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_q\|_* in place of the last two terms and a minimum over q.

General form: sizes are index types

Lean statement and details
Matrix.PosSemidef.integral_specNorm_sub_le_add_of_isBestRankApprox_nystrom_of_hasLaw_gaussianMatrix.{u_1,
    u_2, u_3}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} {l : Type u_3} [Fintype n]
  [Fintype l] {H : Matrix n n ℝ} {X : Ω → Matrix n l ℝ} (hH : H.PosSemidef)
  (hX : HasLaw X (gaussianMatrix n l) μ) {k : ℕ} {Y : Ω → Matrix n n ℝ}
  (hY : ∀ (ω : Ω), IsBestRankApprox (nystrom H (X ω)) k (Y ω)) (hYm : AEStronglyMeasurable Y μ)
  {q : ℕ} (hq : q + 2 ≤ Fintype.card l) :
  ∫ (ω : Ω), specNorm (H - Y ω) ∂μ ≤
    singularValues H k + singularValues H q +
      ↑q / (↑(Fintype.card l) - ↑q - 1) * nuclearNorm (H - truncatedSVD H q)

Full source on GitHub

Copy link

Theorem (Matrix.PosSemidef.integral_specNorm_sub_le_of_isBestRankApprox_nystrom_of_hasLaw_gaussianMatrix). The expected spectral error of truncated Nyström (Martinsson and Tropp's Theorem 14.1): for positive semidefinite \mathbf{H}, a standard Gaussian n \times \ell test matrix \mathbf{X}, k + 2 \le \ell and a measurable choice \mathbf{Y} of best rank-k approximations of \mathsf{nystrom}(\mathbf{H}, \mathbf{X}), \mathbb{E}\|\mathbf{H} - \mathbf{Y}\|_2 \le \lambda_k(\mathbf{H}) + \frac{k}{\ell - k - 1} \|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_*\,, eigenvalues indexed from 0 (MT's \lambda_{k+1}), the bound of the untruncated output, by reverse Eckart–Young from the trace bound. Direct form at truncatedSVD: Matrix.PosSemidef.integral_specNorm_sub_truncatedSVD_nystrom_le_of_hasLaw_gaussianMatrix. [MartinssonTropp2020, Theorem 14.1]; [TroppYurtseverUdellCevher2017a, Theorem 4.1 (4.2)]; there with 1 \le k < \ell \le n and for the truncation an algorithm computes; here k + 2 \le \ell, any n, under a selector.

General form: sizes are index types

Lean statement and details
Matrix.PosSemidef.integral_specNorm_sub_le_of_isBestRankApprox_nystrom_of_hasLaw_gaussianMatrix.{u_1,
    u_2, u_3}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} {l : Type u_3} [Fintype n]
  [Fintype l] {H : Matrix n n ℝ} {X : Ω → Matrix n l ℝ} (hH : H.PosSemidef)
  (hX : HasLaw X (gaussianMatrix n l) μ) {k : ℕ} (hk : k + 2 ≤ Fintype.card l)
  {Y : Ω → Matrix n n ℝ} (hY : ∀ (ω : Ω), IsBestRankApprox (nystrom H (X ω)) k (Y ω))
  (hYm : AEStronglyMeasurable Y μ) :
  ∫ (ω : Ω), specNorm (H - Y ω) ∂μ ≤
    singularValues H k + ↑k / (↑(Fintype.card l) - ↑k - 1) * nuclearNorm (H - truncatedSVD H k)

Full source on GitHub

Copy link

Theorem (Matrix.PosSemidef.integral_specNorm_sub_le_of_isBestRankApprox_nystrom_of_isLeftUnitarilyInvariant). The expected spectral error of truncated Nyström, rotation-invariant test matrices (Martinsson and Tropp's Theorem 14.1): for positive semidefinite \mathbf{H}, a test matrix \mathbf{X} with a left unitarily invariant law and full column rank almost surely, k + 2 \le \ell and a measurable choice \mathbf{Y} of best rank-k approximations of \mathsf{nystrom}(\mathbf{H}, \mathbf{X}), \mathbb{E}\|\mathbf{H} - \mathbf{Y}\|_2 \le \lambda_k(\mathbf{H}) + \frac{k}{\ell - k - 1} \|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_*\,, eigenvalues indexed from 0. Direct form at truncatedSVD: Matrix.PosSemidef.integral_specNorm_sub_truncatedSVD_nystrom_le_of_isLeftUnitarilyInvariant. [MartinssonTropp2020, Theorem 14.1]; [TroppYurtseverUdellCevher2017a, Theorem 4.1 (4.2)]; there for Gaussian (MT, TYUC) or orthonormal (TYUC) test matrices, with 1 \le k < \ell \le n.

General form: sizes are index types

Lean statement and details
Matrix.PosSemidef.integral_specNorm_sub_le_of_isBestRankApprox_nystrom_of_isLeftUnitarilyInvariant.{u_1,
    u_3, u_4}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_3} {l : Type u_4} [Fintype n]
  [Fintype l] {X : Ω → Matrix n l ℝ} [DecidableEq n] {ν : Measure (Matrix n l ℝ)}
  [IsProbabilityMeasure ν] [IsLeftUnitarilyInvariant ν] {H : Matrix n n ℝ} (hH : H.PosSemidef)
  (hX : HasLaw X ν μ) (hXr : ∀ᵐ (ω : Ω) ∂μ, Function.Injective (X ω).mulVec) {k : ℕ}
  (hk : k + 2 ≤ Fintype.card l) {Y : Ω → Matrix n n ℝ}
  (hY : ∀ (ω : Ω), IsBestRankApprox (nystrom H (X ω)) k (Y ω)) (hYm : AEStronglyMeasurable Y μ) :
  ∫ (ω : Ω), specNorm (H - Y ω) ∂μ ≤
    singularValues H k + ↑k / (↑(Fintype.card l) - ↑k - 1) * nuclearNorm (H - truncatedSVD H k)

Full source on GitHub

Copy link

Theorem (Matrix.PosSemidef.integral_specNorm_sub_nystrom_le_of_hasLaw_gaussianMatrix). The expected error of randomized Nyström, spectral norm: for positive semidefinite \mathbf{H}, a standard Gaussian n \times \ell test matrix \mathbf{X} and k + 2 \le \ell, \mathbb{E}\|\mathbf{H} - \mathsf{nystrom}(\mathbf{H}, \mathbf{X})\|_2 \le \lambda_k(\mathbf{H}) + \frac{k}{\ell - k - 1}\|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_* \,, eigenvalues indexed from 0 (\lambda_k(\mathbf{H}) is singularValues H k): the squared spectral error of the randomized SVD of a factor (NLAlib.integral_specNorm_sub_rsvd_sq_le_of_hasLaw_gaussianMatrix). [TroppWebber2023, Corollary 8.2 (NysSVD2)]; there at p = \infty.

General form: sizes are index types

Lean statement and details
Matrix.PosSemidef.integral_specNorm_sub_nystrom_le_of_hasLaw_gaussianMatrix.{u_1, u_2, u_3}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} {l : Type u_3} [Fintype n]
  [Fintype l] {H : Matrix n n ℝ} {X : Ω → Matrix n l ℝ} (hH : H.PosSemidef)
  (hX : HasLaw X (gaussianMatrix n l) μ) {k : ℕ} (hk : k + 2 ≤ Fintype.card l) :
  ∫ (ω : Ω), specNorm (H - nystrom H (X ω)) ∂μ ≤
    singularValues H k + ↑k / (↑(Fintype.card l) - ↑k - 1) * nuclearNorm (H - truncatedSVD H k)

Full source on GitHub

Copy link

Theorem (Matrix.PosSemidef.integral_specNorm_sub_truncatedSVD_nystrom_le_add_of_hasLaw_gaussianMatrix). Truncated Nyström exploits spectral decay, spectral norm: for positive semidefinite \mathbf{H}, a standard Gaussian n \times \ell test matrix \mathbf{X}, any target rank k and any comparison rank q with q + 2 \le \ell, \mathbb{E}\|\mathbf{H} - \llbracket\mathsf{nystrom}(\mathbf{H}, \mathbf{X})\rrbracket_k\|_2 \le \lambda_k(\mathbf{H}) + \lambda_q(\mathbf{H}) + \frac{q}{\ell - q - 1} \|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_q\|_*\,, eigenvalues indexed from 0. The direct form of Matrix.PosSemidef.integral_specNorm_sub_le_add_of_isBestRankApprox_nystrom_of_hasLaw_gaussianMatrix; at q = k it is dominated by Matrix.PosSemidef.integral_specNorm_sub_truncatedSVD_nystrom_le_of_hasLaw_gaussianMatrix, and for q > k the two are incomparable, this one better when the spectrum decays past k. [TroppYurtseverUdellCevher2017a, Theorem 4.2 (4.4)]; there 2(1 + q/(\ell - q - 1))\|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_q\|_* in place of the last two terms and a minimum over q.

General form: sizes are index types

Lean statement and details
Matrix.PosSemidef.integral_specNorm_sub_truncatedSVD_nystrom_le_add_of_hasLaw_gaussianMatrix.{u_1,
    u_2, u_3}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} {l : Type u_3} [Fintype n]
  [Fintype l] {H : Matrix n n ℝ} {X : Ω → Matrix n l ℝ} (hH : H.PosSemidef)
  (hX : HasLaw X (gaussianMatrix n l) μ) (k : ℕ) {q : ℕ} (hq : q + 2 ≤ Fintype.card l) :
  ∫ (ω : Ω), specNorm (H - truncatedSVD (nystrom H (X ω)) k) ∂μ ≤
    singularValues H k + singularValues H q +
      ↑q / (↑(Fintype.card l) - ↑q - 1) * nuclearNorm (H - truncatedSVD H q)

Full source on GitHub

Copy link

Theorem (Matrix.PosSemidef.integral_specNorm_sub_truncatedSVD_nystrom_le_of_hasLaw_gaussianMatrix). The expected spectral error of truncated Nyström (Martinsson and Tropp's Theorem 14.1): for positive semidefinite \mathbf{H}, a standard Gaussian n \times \ell test matrix \mathbf{X} and k + 2 \le \ell, \mathbb{E}\|\mathbf{H} - \llbracket\mathsf{nystrom}(\mathbf{H}, \mathbf{X})\rrbracket_k\|_2 \le \lambda_k(\mathbf{H}) + \frac{k}{\ell - k - 1} \|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_*\,, eigenvalues indexed from 0 (MT's \lambda_{k+1}). The direct form of Matrix.PosSemidef.integral_specNorm_sub_le_of_isBestRankApprox_nystrom_of_hasLaw_gaussianMatrix, which covers any other measurable choice of the truncation. [MartinssonTropp2020, Theorem 14.1]; [TroppYurtseverUdellCevher2017a, Theorem 4.1 (4.2)]; there with 1 \le k < \ell \le n; here k + 2 \le \ell, any n.

General form: sizes are index types

Lean statement and details
Matrix.PosSemidef.integral_specNorm_sub_truncatedSVD_nystrom_le_of_hasLaw_gaussianMatrix.{u_1, u_2,
    u_3}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} {l : Type u_3} [Fintype n]
  [Fintype l] {H : Matrix n n ℝ} {X : Ω → Matrix n l ℝ} (hH : H.PosSemidef)
  (hX : HasLaw X (gaussianMatrix n l) μ) {k : ℕ} (hk : k + 2 ≤ Fintype.card l) :
  ∫ (ω : Ω), specNorm (H - truncatedSVD (nystrom H (X ω)) k) ∂μ ≤
    singularValues H k + ↑k / (↑(Fintype.card l) - ↑k - 1) * nuclearNorm (H - truncatedSVD H k)

Full source on GitHub

Copy link

Theorem (Matrix.PosSemidef.integral_specNorm_sub_truncatedSVD_nystrom_le_of_isLeftUnitarilyInvariant). The expected spectral error of truncated Nyström, rotation-invariant test matrices (Martinsson and Tropp's Theorem 14.1): for positive semidefinite \mathbf{H}, a test matrix \mathbf{X} with a left unitarily invariant law and full column rank almost surely and k + 2 \le \ell, \mathbb{E}\|\mathbf{H} - \llbracket\mathsf{nystrom}(\mathbf{H}, \mathbf{X})\rrbracket_k\|_2 \le \lambda_k(\mathbf{H}) + \frac{k}{\ell - k - 1} \|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_*\,, eigenvalues indexed from 0. The direct form of Matrix.PosSemidef.integral_specNorm_sub_le_of_isBestRankApprox_nystrom_of_isLeftUnitarilyInvariant, which covers any other measurable choice of the truncation. [MartinssonTropp2020, Theorem 14.1]; [TroppYurtseverUdellCevher2017a, Theorem 4.1 (4.2)]; there for Gaussian (MT, TYUC) or orthonormal (TYUC) test matrices, with 1 \le k < \ell \le n.

General form: sizes are index types

Lean statement and details
Matrix.PosSemidef.integral_specNorm_sub_truncatedSVD_nystrom_le_of_isLeftUnitarilyInvariant.{u_1,
    u_3, u_4}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_3} {l : Type u_4} [Fintype n]
  [Fintype l] {X : Ω → Matrix n l ℝ} [DecidableEq n] {ν : Measure (Matrix n l ℝ)}
  [IsProbabilityMeasure ν] [IsLeftUnitarilyInvariant ν] {H : Matrix n n ℝ} (hH : H.PosSemidef)
  (hX : HasLaw X ν μ) (hXr : ∀ᵐ (ω : Ω) ∂μ, Function.Injective (X ω).mulVec) {k : ℕ}
  (hk : k + 2 ≤ Fintype.card l) :
  ∫ (ω : Ω), specNorm (H - truncatedSVD (nystrom H (X ω)) k) ∂μ ≤
    singularValues H k + ↑k / (↑(Fintype.card l) - ↑k - 1) * nuclearNorm (H - truncatedSVD H k)

Full source on GitHub

Copy link

Theorem (SymmetricGauge.integral_matrixNorm_sub_nystrom_le_of_hasLaw_gaussianMatrix). The expected error of randomized Nyström, every unitarily invariant norm: for positive semidefinite \mathbf{H}, a standard Gaussian n \times \ell test matrix \mathbf{X} and k + 2 \le \ell, \mathbb{E}\|\mathbf{H} - \mathsf{nystrom}(\mathbf{H}, \mathbf{X})\|_{\Phi} \le \|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_{\Phi} + \Phi(\mathbf{e}_0)\, \frac{k}{\ell - k - 1}\,\|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_*\,, with \mathbf{e}_0 the first unit coordinate sequence (\Phi(\mathbf{e}_0) = 1 for every Schatten gauge, NLAlib.lpGauge_apply_single_zero). The Gram form of the randomized SVD's expected error at a factor of \mathbf{H}, with the same constant (in NLAlib.SymmetricGauge, integral_matrixNorm_conjTranspose_mul_self_sub_rsvd_le_of_hasLaw_gaussianMatrix); no square root. [TroppWebber2023, Corollary 8.2 (NysSVD2)]; [MartinssonTropp2020, §14.4]; [TroppYurtseverUdellCevher2017a, Theorem A.1]; there Schatten 1 \le p \le \infty (TW) or the trace (TYUC), here every unitarily invariant norm, with the factor \Phi(\mathbf{e}_0).

General form: sizes are index types

Lean statement and details
NLAlib.SymmetricGauge.integral_matrixNorm_sub_nystrom_le_of_hasLaw_gaussianMatrix.{u_1, u_2, u_3}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} {l : Type u_3} [Fintype n]
  [Fintype l] {H : Matrix n n ℝ} {X : Ω → Matrix n l ℝ} (Φ : SymmetricGauge) (hH : H.PosSemidef)
  (hX : HasLaw X (gaussianMatrix n l) μ) {k : ℕ} (hk : k + 2 ≤ Fintype.card l) :
  ∫ (ω : Ω), Φ.matrixNorm (H - nystrom H (X ω)) ∂μ ≤
    Φ.matrixNorm (H - truncatedSVD H k) +
      Φ (Finsupp.single 0 1) * (↑k / (↑(Fintype.card l) - ↑k - 1)) *
        nuclearNorm (H - truncatedSVD H k)

Full source on GitHub

Copy link

Theorem (SymmetricGauge.integral_matrixNorm_sub_nystrom_le_of_isLeftUnitarilyInvariant). The expected error of randomized Nyström, every unitarily invariant norm, rotation-invariant test matrices: for positive semidefinite \mathbf{H}, a test matrix \mathbf{X} with a left unitarily invariant law and full column rank almost surely (Gaussian, Haar, ...) and k + 2 \le \ell, \mathbb{E}\|\mathbf{H} - \mathsf{nystrom}(\mathbf{H}, \mathbf{X})\|_{\Phi} \le \|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_{\Phi} + \Phi(\mathbf{e}_0)\, \frac{k}{\ell - k - 1}\,\|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_*\,, the bound of the Gaussian test matrix (in this namespace, integral_matrixNorm_sub_nystrom_le_of_hasLaw_gaussianMatrix); the rotation-invariant Gram form of the randomized SVD at a factor of \mathbf{H}. [TroppWebber2023, Corollary 8.2 (NysSVD2)]; [TroppYurtseverUdellCevher2017a, Theorem A.1]; [EpperlyWebber2026, Theorem 3.1 and Fact 3.5]; there for Gaussian test matrices and Schatten norms (TW), or the trace (TYUC, EW).

General form: sizes are index types

Lean statement and details
NLAlib.SymmetricGauge.integral_matrixNorm_sub_nystrom_le_of_isLeftUnitarilyInvariant.{u_1, u_3, u_4}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_3} {l : Type u_4} [Fintype n]
  [Fintype l] {X : Ω → Matrix n l ℝ} [DecidableEq n] {ν : Measure (Matrix n l ℝ)}
  [IsProbabilityMeasure ν] [IsLeftUnitarilyInvariant ν] (Φ : SymmetricGauge) {H : Matrix n n ℝ}
  (hH : H.PosSemidef) (hX : HasLaw X ν μ) (hXr : ∀ᵐ (ω : Ω) ∂μ, Function.Injective (X ω).mulVec)
  {k : ℕ} (hk : k + 2 ≤ Fintype.card l) :
  ∫ (ω : Ω), Φ.matrixNorm (H - nystrom H (X ω)) ∂μ ≤
    Φ.matrixNorm (H - truncatedSVD H k) +
      Φ (Finsupp.single 0 1) * (↑k / (↑(Fintype.card l) - ↑k - 1)) *
        nuclearNorm (H - truncatedSVD H k)

Full source on GitHub

Copy link

Theorem (exists_forall_integral_nuclearNorm_sub_nystrom_le_of_hasLaw_gaussianMatrix). O(k/\varepsilon) samples suffice for randomized Nyström, trace: there are absolute constants C, \varepsilon_0 > 0 such that for positive semidefinite \mathbf{H}, a standard Gaussian n \times \ell test matrix \mathbf{X}, k \ge 1, 0 < \varepsilon \le \varepsilon_0 and \ell \ge Ck/\varepsilon, \mathbb{E}\|\mathbf{H} - \mathsf{nystrom}(\mathbf{H}, \mathbf{X})\|_* \le (1 + \varepsilon)\|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_*\,. The asymptotic form of Matrix.PosSemidef.integral_nuclearNorm_sub_nystrom_le_of_hasLaw_gaussianMatrix; the proof takes C = 3 and \varepsilon_0 = 1. [TroppYurtseverUdellCevher2017a, §4, after Theorem 4.1]; there \ell = (1 + 1/\varepsilon)k + 1, for the truncated output, whose error is the larger.

General form: sizes are index types

Lean statement and details
NLAlib.exists_forall_integral_nuclearNorm_sub_nystrom_le_of_hasLaw_gaussianMatrix :
  ∃ C ε₀,
    0 < C ∧
      0 < ε₀ ∧
        ∀ {Ω n l : Type} [inst : MeasurableSpace Ω] [inst_1 : Fintype n] [inst_2 : Fintype l]
          (μ : Measure Ω) (H : Matrix n n ℝ) (X : Ω → Matrix n l ℝ) (k : ℕ) (ε : ℝ),
          H.PosSemidef →
            HasLaw X (gaussianMatrix n l) μ →
              0 < k →
                0 < ε →
                  ε ≤ ε₀ →
                    C * (↑k / ε) ≤ ↑(Fintype.card l) →
                      ∫ (ω : Ω), nuclearNorm (H - nystrom H (X ω)) ∂μ ≤
                        (1 + ε) * nuclearNorm (H - truncatedSVD H k)

Full source on GitHub

Copy link

Theorem (exists_forall_integral_nuclearNorm_sub_nystrom_le_of_isLeftUnitarilyInvariant). O(k/\varepsilon) samples suffice for randomized Nyström, rotation-invariant test matrices, trace: there are absolute constants C, \varepsilon_0 > 0 such that for positive semidefinite \mathbf{H}, a test matrix \mathbf{X} with a left unitarily invariant law and full column rank almost surely, k \ge 1, 0 < \varepsilon \le \varepsilon_0 and \ell \ge Ck/\varepsilon, \mathbb{E}\|\mathbf{H} - \mathsf{nystrom}(\mathbf{H}, \mathbf{X})\|_* \le (1 + \varepsilon)\|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_*\,. The asymptotic form of Matrix.PosSemidef.integral_nuclearNorm_sub_nystrom_le_of_isLeftUnitarilyInvariant; the proof takes C = 3 and \varepsilon_0 = 1. [EpperlyWebber2026, §4.2 and Fact 3.5]; [TroppYurtseverUdellCevher2017a, §4, after Theorem 4.1]; there (EW) for the randomized SVD, the Gram twin, and (TYUC) for the truncated output of Gaussian or orthonormal test matrices, whose error is the larger.

General form: sizes are index types

Lean statement and details
NLAlib.exists_forall_integral_nuclearNorm_sub_nystrom_le_of_isLeftUnitarilyInvariant :
  ∃ C ε₀,
    0 < C ∧
      0 < ε₀ ∧
        ∀ {Ω n l : Type} [inst : MeasurableSpace Ω] [inst_1 : Fintype n] [inst_2 : Fintype l]
          [inst_3 : DecidableEq n] (μ : Measure Ω) (ν : Measure (Matrix n l ℝ))
          [IsProbabilityMeasure ν] [IsLeftUnitarilyInvariant ν] (H : Matrix n n ℝ)
          (X : Ω → Matrix n l ℝ) (k : ℕ) (ε : ℝ),
          H.PosSemidef →
            HasLaw X ν μ →
              (∀ᵐ (ω : Ω) ∂μ, Function.Injective (X ω).mulVec) →
                0 < k →
                  0 < ε →
                    ε ≤ ε₀ →
                      C * (↑k / ε) ≤ ↑(Fintype.card l) →
                        ∫ (ω : Ω), nuclearNorm (H - nystrom H (X ω)) ∂μ ≤
                          (1 + ε) * nuclearNorm (H - truncatedSVD H k)

Full source on GitHub

Copy link

Theorem (exists_forall_integral_nuclearNorm_sub_truncatedSVD_nystrom_le_of_hasLaw_gaussianMatrix). O(k/\varepsilon) samples suffice for truncated Nyström, trace: there are absolute constants C, \varepsilon_0 > 0 such that for positive semidefinite \mathbf{H}, a standard Gaussian n \times \ell test matrix \mathbf{X}, 0 < \varepsilon \le \varepsilon_0 and \ell \ge Ck/\varepsilon, \mathbb{E}\|\mathbf{H} - \llbracket\mathsf{nystrom}(\mathbf{H}, \mathbf{X})\rrbracket_k\|_* \le (1 + \varepsilon)\|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_*\,. The asymptotic form of Matrix.PosSemidef.integral_nuclearNorm_sub_truncatedSVD_nystrom_le_of_hasLaw_gaussianMatrix; the proof takes C = 3 and \varepsilon_0 = 1. [TroppYurtseverUdellCevher2017a, §4, after Theorem 4.1]; there \ell = (1 + 1/\varepsilon)k + 1.

General form: sizes are index types

Lean statement and details
NLAlib.exists_forall_integral_nuclearNorm_sub_truncatedSVD_nystrom_le_of_hasLaw_gaussianMatrix :
  ∃ C ε₀,
    0 < C ∧
      0 < ε₀ ∧
        ∀ {Ω n l : Type} [inst : MeasurableSpace Ω] [inst_1 : Fintype n] [inst_2 : Fintype l]
          (μ : Measure Ω) (H : Matrix n n ℝ) (X : Ω → Matrix n l ℝ) (k : ℕ) (ε : ℝ),
          H.PosSemidef →
            HasLaw X (gaussianMatrix n l) μ →
              0 < ε →
                ε ≤ ε₀ →
                  C * (↑k / ε) ≤ ↑(Fintype.card l) →
                    ∫ (ω : Ω), nuclearNorm (H - truncatedSVD (nystrom H (X ω)) k) ∂μ ≤
                      (1 + ε) * nuclearNorm (H - truncatedSVD H k)

Full source on GitHub

Copy link

Theorem (exists_forall_integral_nuclearNorm_sub_truncatedSVD_nystrom_le_of_isLeftUnitarilyInvariant). O(k/\varepsilon) samples suffice for truncated Nyström, rotation-invariant test matrices, trace: there are absolute constants C, \varepsilon_0 > 0 such that for positive semidefinite \mathbf{H}, a test matrix \mathbf{X} with a left unitarily invariant law and full column rank almost surely, 0 < \varepsilon \le \varepsilon_0 and \ell \ge Ck/\varepsilon, \mathbb{E}\|\mathbf{H} - \llbracket\mathsf{nystrom}(\mathbf{H}, \mathbf{X})\rrbracket_k\|_* \le (1 + \varepsilon)\|\mathbf{H} - \llbracket\mathbf{H}\rrbracket_k\|_*\,. The asymptotic form of Matrix.PosSemidef.integral_nuclearNorm_sub_truncatedSVD_nystrom_le_of_isLeftUnitarilyInvariant; the proof takes C = 3 and \varepsilon_0 = 1. [TroppYurtseverUdellCevher2017a, §4, after Theorem 4.1]; there \ell = (1 + 1/\varepsilon)k + 1, for Gaussian or orthonormal test matrices.

General form: sizes are index types

Lean statement and details
NLAlib.exists_forall_integral_nuclearNorm_sub_truncatedSVD_nystrom_le_of_isLeftUnitarilyInvariant :
  ∃ C ε₀,
    0 < C ∧
      0 < ε₀ ∧
        ∀ {Ω n l : Type} [inst : MeasurableSpace Ω] [inst_1 : Fintype n] [inst_2 : Fintype l]
          [inst_3 : DecidableEq n] (μ : Measure Ω) (ν : Measure (Matrix n l ℝ))
          [IsProbabilityMeasure ν] [IsLeftUnitarilyInvariant ν] (H : Matrix n n ℝ)
          (X : Ω → Matrix n l ℝ) (k : ℕ) (ε : ℝ),
          H.PosSemidef →
            HasLaw X ν μ →
              (∀ᵐ (ω : Ω) ∂μ, Function.Injective (X ω).mulVec) →
                0 < ε →
                  ε ≤ ε₀ →
                    C * (↑k / ε) ≤ ↑(Fintype.card l) →
                      ∫ (ω : Ω), nuclearNorm (H - truncatedSVD (nystrom H (X ω)) k) ∂μ ≤
                        (1 + ε) * nuclearNorm (H - truncatedSVD H k)

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.