NLA-lib Explorer

Early-truncated generalized Nyström

Library · Result group

Theorem (integral_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_le_one_add_mul_of_hasLaw_gaussianMatrix). Early-truncated generalized Nyström reaches relative error 1 + \varepsilon: for independent standard Gaussian test matrices \mathbf{\Omega} (n \times \ell) and \mathbf{\Psi} (m \times p) with \ell \ge 1600k/\varepsilon^2, p \ge k + 1 + (2+\varepsilon)k/\varepsilon and 0 < \varepsilon \le 1, \mathbb{E}\|\mathbf{A}-\mathsf{earlyTruncatedGN}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi}, k)\|_{\mathsf{F}}^2 \le (1+\varepsilon)\|\mathbf{A}-\llbracket\mathbf{A}\rrbracket_k \|_{\mathsf{F}}^2\,: one pass, output rank at most k. The early-truncated randomized SVD at accuracy \varepsilon/2 (NLAlib.integral_frobNorm_sub_earlyTruncatedRSVD_sq_le_one_add_mul_of_hasLaw_gaussianMatrix) composed with the Gaussian completion (NLAlib.integral_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_le_one_add_mul_of_hasLaw_gaussianMatrix_of_integral_le). Asymptotic form: NLAlib.exists_forall_integral_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_le_of_hasLaw_gaussianMatrix. Proved without a literature source; the algorithm is [TroppYurtseverUdellCevher2017, §7.3.1, (7.3)].

Headline General form: sizes are index types

Lean statement and details
NLAlib.integral_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_le_one_add_mul_of_hasLaw_gaussianMatrix.{u_1,
    u_2, u_3, u_4, u_5}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {m : Type u_2} {n : Type u_3}
  {l : Type u_4} {p : Type u_5} [Fintype m] [Fintype n] [Fintype l] [Fintype p]
  {X : Ω → Matrix n l ℝ} {Ψ : Ω → Matrix m p ℝ} (A : Matrix m n ℝ)
  (hX : HasLaw X (gaussianMatrix n l) μ) (hΨ : HasLaw Ψ (gaussianMatrix m p) μ) (hXΨ : X ⟂ᵢ[μ] Ψ)
  {k : ℕ} {ε : ℝ} (hε : 0 < ε) (hε1 : ε ≤ 1) (hl : 1600 * ↑k ≤ ε ^ 2 * ↑(Fintype.card l))
  (hp : ↑k + 1 + (2 + ε) * ↑k / ε ≤ ↑(Fintype.card p)) :
  ∫ (ω : Ω), frobNorm (A - earlyTruncatedGeneralizedNystrom A (X ω) (Ψ ω) k) ^ 2 ∂μ ≤
    (1 + ε) * frobNorm (A - truncatedSVD A k) ^ 2

Full source on GitHub

Copy link

Other forms

Theorem (HasJLMoment.measureReal_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_gt_le). Early-truncated generalized Nyström with structured sketches: if the real \mathbf{\Omega}^{\mathsf{H}} injects \operatorname{range}\llbracket\mathbf{A}\rrbracket_k^{\mathsf{H}} with constant 0 < a \le 1 except with probability \delta and has the (\varepsilon, \delta_1, q) JL moment property, and an independent real \mathbf{\Psi}^{\mathsf{H}} is an OSI for dimension k (constant a' > 0, failure probability \delta') with the (\varepsilon', \delta_2, q') JL moment property, \varepsilon, \varepsilon' > 0, q, q' \ge 2, \delta_1, \delta_2 \ge 0, then for 0 < \theta < 1 \|\mathbf{A} - \mathsf{earlyTruncatedGN}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi}, k) \|_{\mathsf{F}}^2 \le \Bigl(1 + \frac{k\varepsilon'^2}{a'^2}\Bigr) \Bigl(\frac{1 + \sqrt{k}\,\varepsilon}{(1-\theta)a} + \frac{k\varepsilon^2}{\theta(1-\theta)a^2}\Bigr) \|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_k\|_{\mathsf{F}}^2 except with probability \delta + 2\delta_1 + \delta' + \delta_2: 1 + \varepsilon_0 at \ell = O(k/\varepsilon_0^2) and p = O(k/\varepsilon_0) at constant failure probability. Proved without a literature source, as a composition; [TroppYurtseverUdellCevher2017, §7.3.1] states the algorithm and the rate \Theta(r/\varepsilon^2) for both sizes, with unspecified constants.

Lean statement and details
NLAlib.HasJLMoment.measureReal_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_gt_le.{u_1, u_3,
    u_4, u_5, u_6}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {m : Type u_3} {n : Type u_4}
  {l : Type u_5} {p : Type u_6} [Fintype m] [Fintype n] [Fintype l] [Fintype p] [DecidableEq m]
  {X : Ω → Matrix n l ℝ} {Ψ : Ω → Matrix m p ℝ} [IsProbabilityMeasure μ] {A : Matrix m n ℝ} {k : ℕ}
  {a θ δ ε δ₁ q a' δ' ε' δ₂ q' : ℝ} (hJL : HasJLMoment (fun ω ↦ (X ω)ᴴ) ε δ₁ q μ)
  (h : HasSubspaceInjection (fun ω ↦ (X ω)ᴴ) (truncatedSVD A k)ᴴ a δ μ)
  (hJLΨ : HasJLMoment (fun ω ↦ (Ψ ω)ᴴ) ε' δ₂ q' μ)
  (hΨ : IsObliviousSubspaceInjection (fun ω ↦ (Ψ ω)ᴴ) k a' δ' μ) (hind : X ⟂ᵢ[μ] Ψ)
  (hX : AEMeasurable X μ) (hΨm : AEMeasurable Ψ μ) (ha : 0 < a) (ha1 : a ≤ 1) (hθ : 0 < θ)
  (hθ1 : θ < 1) (hε : 0 < ε) (hq : 2 ≤ q) (hδ₁ : 0 ≤ δ₁) (ha' : 0 < a') (hε' : 0 < ε')
  (hq' : 2 ≤ q') (hδ₂ : 0 ≤ δ₂) :
  μ.real
      {ω |
        (1 + ↑k * ε' ^ 2 / a' ^ 2) *
              ((1 + √↑k * ε) / ((1 - θ) * a) + ↑k * ε ^ 2 / (θ * (1 - θ) * a ^ 2)) *
            frobNorm (A - truncatedSVD A k) ^ 2 <
          frobNorm (A - earlyTruncatedGeneralizedNystrom A (X ω) (Ψ ω) k) ^ 2} ≤
    δ + 2 * δ₁ + (δ' + δ₂)

Full source on GitHub

Copy link

Theorem (HasJLMoment.measureReal_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_gt_mul_le). Early-truncated generalized Nyström: the completion through approximate multiplication: for any law of \mathbf{\Omega} and an independent real \mathbf{\Psi} whose \mathbf{\Psi}^{\mathsf{H}} is an OSI for dimension k (constant a > 0, failure probability \delta) with the (\varepsilon, \delta', q) JL moment property, \varepsilon > 0, q \ge 2, \delta' \ge 0, \|\mathbf{A} - \mathsf{earlyTruncatedGN}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi}, k) \|_{\mathsf{F}}^2 \le \Bigl(1 + \frac{k\varepsilon^2}{a^2}\Bigr) \|\mathbf{A} - \mathsf{earlyTruncatedRSVD}(\mathbf{A}, \mathbf{\Omega}, k)\|_{\mathsf{F}}^2 except with probability \delta + \delta'. Its constant-factor neighbour is IsObliviousSubspaceInjection.measureReal_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_gt_mul_le. Proved without a literature source, as a composition; the algorithm is [TroppYurtseverUdellCevher2017, §7.3.1, (7.3)].

Lean statement and details
NLAlib.HasJLMoment.measureReal_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_gt_mul_le.{u_1, u_3,
    u_4, u_5, u_6}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {m : Type u_3} {n : Type u_4}
  {l : Type u_5} {p : Type u_6} [Fintype m] [Fintype n] [Fintype l] [Fintype p] [DecidableEq m]
  {X : Ω → Matrix n l ℝ} {Ψ : Ω → Matrix m p ℝ} [IsProbabilityMeasure μ] {A : Matrix m n ℝ} {k : ℕ}
  {a δ ε δ' q : ℝ} (hJL : HasJLMoment (fun ω ↦ (Ψ ω)ᴴ) ε δ' q μ)
  (h : IsObliviousSubspaceInjection (fun ω ↦ (Ψ ω)ᴴ) k a δ μ) (ha : 0 < a) (hε : 0 < ε) (hq : 2 ≤ q)
  (hδ' : 0 ≤ δ') (hind : X ⟂ᵢ[μ] Ψ) (hX : AEMeasurable X μ) (hΨ : AEMeasurable Ψ μ) :
  μ.real
      {ω |
        (1 + ↑k * ε ^ 2 / a ^ 2) * frobNorm (A - earlyTruncatedRSVD A (X ω) k) ^ 2 <
          frobNorm (A - earlyTruncatedGeneralizedNystrom A (X ω) (Ψ ω) k) ^ 2} ≤
    δ + δ'

Full source on GitHub

Copy link

Theorem (IsObliviousSubspaceInjection.measureReal_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_gt_mul_le). Early-truncated generalized Nyström: the completion step with a structured co-range sketch: for any law of \mathbf{\Omega} and an independent \mathbf{\Psi} whose \mathbf{\Psi}^{\mathsf{H}} is an OSI for dimension k with constant a > 0 and failure probability \delta, for t > 0 \|\mathbf{A} - \mathsf{earlyTruncatedGN}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi}, k) \|_{\mathsf{F}}^2 \le \Bigl(1 + \frac{t}{a}\Bigr) \|\mathbf{A} - \mathsf{earlyTruncatedRSVD}(\mathbf{A}, \mathbf{\Omega}, k)\|_{\mathsf{F}}^2 except with probability \delta + 1/t. Every early-truncated RSVD tail composes with it. Proved without a literature source, as a composition with NLAlib.IsObliviousSubspaceInjection.measureReal_frobNorm_sub_mul_sketchAndSolve_sq_gt_le_of_indepFun; the algorithm is [TroppYurtseverUdellCevher2017, §7.3.1, (7.3)].

Lean statement and details
NLAlib.IsObliviousSubspaceInjection.measureReal_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_gt_mul_le.{u_1,
    u_2, u_3, u_4, u_5, u_6}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {𝕜 : Type u_2} [RCLike 𝕜] {m : Type u_3}
  {n : Type u_4} {l : Type u_5} {p : Type u_6} [Fintype m] [Fintype n] [Fintype l] [Fintype p]
  [DecidableEq m] {X : Ω → Matrix n l 𝕜} {Ψ : Ω → Matrix m p 𝕜} [IsProbabilityMeasure μ]
  {A : Matrix m n 𝕜} {k : ℕ} {a δ t : ℝ} (h : IsObliviousSubspaceInjection (fun ω ↦ (Ψ ω)ᴴ) k a δ μ)
  (ha : 0 < a) (ht : 0 < t) (hind : X ⟂ᵢ[μ] Ψ) (hX : AEMeasurable X μ) (hΨ : AEMeasurable Ψ μ) :
  μ.real
      {ω |
        (1 + t / a) * frobNorm (A - earlyTruncatedRSVD A (X ω) k) ^ 2 <
          frobNorm (A - earlyTruncatedGeneralizedNystrom A (X ω) (Ψ ω) k) ^ 2} ≤
    δ + 1 / t

Full source on GitHub

Copy link

Theorem (exists_forall_integral_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_le_of_hasLaw_gaussianMatrix). O(k/\varepsilon^2) and O(k/\varepsilon) samples suffice for early-truncated generalized Nyström: there are absolute constants C, \varepsilon_0 > 0 such that for independent standard Gaussian test matrices \mathbf{\Omega} (n \times \ell) and \mathbf{\Psi} (m \times p), 0 < \varepsilon \le \varepsilon_0, \ell \ge Ck/\varepsilon^2 and p \ge Ck/\varepsilon, \mathbb{E}\|\mathbf{A}-\mathsf{earlyTruncatedGN}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi}, k)\|_{\mathsf{F}}^2 \le (1+\varepsilon)\|\mathbf{A}-\llbracket\mathbf{A}\rrbracket_k \|_{\mathsf{F}}^2\,. The asymptotic form of NLAlib.integral_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_le_one_add_mul_of_hasLaw_gaussianMatrix; the proof takes C = 1600 and \varepsilon_0 = 1.

General form: sizes are index types

Lean statement and details
NLAlib.exists_forall_integral_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_le_of_hasLaw_gaussianMatrix :
  ∃ C ε₀,
    0 < C ∧
      0 < ε₀ ∧
        ∀ {Ω m n l p : Type} [inst : MeasurableSpace Ω] [inst_1 : Fintype m] [inst_2 : Fintype n]
          [inst_3 : Fintype l] [inst_4 : Fintype p] (μ : Measure Ω) (A : Matrix m n ℝ)
          (X : Ω → Matrix n l ℝ) (Ψ : Ω → Matrix m p ℝ) (k : ℕ) (ε : ℝ),
          HasLaw X (gaussianMatrix n l) μ →
            HasLaw Ψ (gaussianMatrix m p) μ →
              X ⟂ᵢ[μ] Ψ →
                0 < ε →
                  ε ≤ ε₀ →
                    C * (↑k / ε ^ 2) ≤ ↑(Fintype.card l) →
                      C * (↑k / ε) ≤ ↑(Fintype.card p) →
                        ∫ (ω : Ω),
                            frobNorm (A - earlyTruncatedGeneralizedNystrom A (X ω) (Ψ ω) k) ^ 2 ∂μ ≤
                          (1 + ε) * frobNorm (A - truncatedSVD A k) ^ 2

Full source on GitHub

Copy link

Theorem (integral_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_le_mul_integral_of_hasLaw_gaussianMatrix). Early-truncated generalized Nyström = early-truncated randomized SVD × completion: for any law of \mathbf{\Omega} independent of a standard Gaussian \mathbf{\Psi} and k + 2 \le p, <!-- value gaussianProjectionFactor k p --> \mathbb{E}\|\mathbf{A}-\mathsf{earlyTruncatedGN}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi}, k) \|_{\mathsf{F}}^2 \le \Bigl(1 + \frac{k}{p - k - 1}\Bigr)\,\mathbb{E}\|\mathbf{A}- \mathsf{earlyTruncatedRSVD}(\mathbf{A}, \mathbf{\Omega}, k)\|_{\mathsf{F}}^2\,. Every bound on the early-truncated randomized SVD (the subspace-embedding and projection-cost-preserving routes, and its expectation) becomes one on early-truncated generalized Nyström. Proved without a literature source, as a composition: [EpperlyWebber2026, Theorem 2.1] for the completion; the algorithm is [TroppYurtseverUdellCevher2017, §7.3.1, (7.3)].

General form: sizes are index types

Lean statement and details
NLAlib.integral_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_le_mul_integral_of_hasLaw_gaussianMatrix.{u_1,
    u_2, u_3, u_4, u_5}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {m : Type u_2} {n : Type u_3}
  {l : Type u_4} {p : Type u_5} [Fintype m] [Fintype n] [Fintype l] [Fintype p]
  {X : Ω → Matrix n l ℝ} {Ψ : Ω → Matrix m p ℝ} (A : Matrix m n ℝ) (hX : AEMeasurable X μ)
  (hΨ : HasLaw Ψ (gaussianMatrix m p) μ) (hXΨ : X ⟂ᵢ[μ] Ψ) {k : ℕ} (hkp : k + 2 ≤ Fintype.card p) :
  ∫ (ω : Ω), frobNorm (A - earlyTruncatedGeneralizedNystrom A (X ω) (Ψ ω) k) ^ 2 ∂μ ≤
    gaussianProjectionFactor k (Fintype.card p) *
      ∫ (ω : Ω), frobNorm (A - earlyTruncatedRSVD A (X ω) k) ^ 2 ∂μ

Full source on GitHub

Copy link

Theorem (integral_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_le_mul_integral_of_hasLaw_haarFrame). Early-truncated generalized Nyström = early-truncated randomized SVD × completion, Haar co-range: for any law of \mathbf{\Omega} independent of an m \times p Haar \mathbf{\Psi} with p \le m, and k + 2 \le p, <!-- value haarProjectionFactor m p k --> \mathbb{E}\|\mathbf{A}-\mathsf{earlyTruncatedGN}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi}, k) \|_{\mathsf{F}}^2 \le \Bigl(1 + \frac{m - p}{m - k}\cdot\frac{k}{p - k - 1}\Bigr)\, \mathbb{E}\|\mathbf{A}-\mathsf{earlyTruncatedRSVD}(\mathbf{A}, \mathbf{\Omega}, k) \|_{\mathsf{F}}^2\,. The Gaussian twin is integral_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_le_mul_integral_of_hasLaw_gaussianMatrix. Proved without a literature source, as a composition: [EpperlyWebber2026, Theorem 2.1] for the completion; the algorithm is [TroppYurtseverUdellCevher2017, §7.3.1, (7.3)].

General form: sizes are index types

Lean statement and details
NLAlib.integral_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_le_mul_integral_of_hasLaw_haarFrame.{u_1,
    u_2, u_3, u_4, u_5}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {m : Type u_2} {n : Type u_3}
  {l : Type u_4} {p : Type u_5} [Fintype m] [Fintype n] [Fintype l] [Fintype p]
  {X : Ω → Matrix n l ℝ} {Ψ : Ω → Matrix m p ℝ} [DecidableEq p] (A : Matrix m n ℝ)
  (hX : AEMeasurable X μ) (hΨ : HasLaw Ψ (haarFrame m p) μ) (hpm : Fintype.card p ≤ Fintype.card m)
  (hXΨ : X ⟂ᵢ[μ] Ψ) {k : ℕ} (hkp : k + 2 ≤ Fintype.card p) :
  ∫ (ω : Ω), frobNorm (A - earlyTruncatedGeneralizedNystrom A (X ω) (Ψ ω) k) ^ 2 ∂μ ≤
    haarProjectionFactor (Fintype.card m) (Fintype.card p) k *
      ∫ (ω : Ω), frobNorm (A - earlyTruncatedRSVD A (X ω) k) ^ 2 ∂μ

Full source on GitHub

Copy link

Theorem (integral_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_le_one_add_mul_of_hasLaw_gaussianMatrix_of_earlyTruncatedGNRangeDim_le). Early-truncated generalized Nyström reaches relative error with independent standard Gaussian range and co-range matrices: for 0<\varepsilon\le1, \ell\ge\max\{900,500k/\varepsilon^2\} and p\ge10k/\varepsilon+10k+1, its expected squared Frobenius error is at most (1+\varepsilon) times the optimal squared error. \mathbb{E}\|\mathbf{A}-\mathsf{earlyTruncatedGN}(\mathbf{A},\mathbf\Omega,\mathbf\Psi,k) \|_{\mathsf{F}}^2\le(1+\varepsilon) \|\mathbf{A}-\llbracket\mathbf{A}\rrbracket_k\|_{\mathsf{F}}^2\,. No printed source.

General form: sizes are index types

Lean statement and details
NLAlib.integral_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_le_one_add_mul_of_hasLaw_gaussianMatrix_of_earlyTruncatedGNRangeDim_le.{u_1,
    u_2, u_3, u_4, u_5}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {m : Type u_2} {n : Type u_3}
  {l : Type u_4} {p : Type u_5} [Fintype m] [Fintype n] [Fintype l] [Fintype p]
  {X : Ω → Matrix n l ℝ} {Ψ : Ω → Matrix m p ℝ} (A : Matrix m n ℝ)
  (hX : HasLaw X (gaussianMatrix n l) μ) (hΨ : HasLaw Ψ (gaussianMatrix m p) μ) (hXΨ : X ⟂ᵢ[μ] Ψ)
  {k : ℕ} {ε : ℝ} (hε : 0 < ε) (hε1 : ε ≤ 1) (hl : earlyTruncatedGNRangeDim k ε ≤ ↑(Fintype.card l))
  (hp : earlyTruncatedGNCorangeDim k ε ≤ ↑(Fintype.card p)) :
  ∫ (ω : Ω), frobNorm (A - earlyTruncatedGeneralizedNystrom A (X ω) (Ψ ω) k) ^ 2 ∂μ ≤
    (1 + ε) * frobNorm (A - truncatedSVD A k) ^ 2

Full source on GitHub

Copy link

Theorem (integral_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_le_one_add_mul_of_hasLaw_gaussianMatrix_of_integral_le). Early-truncated generalized Nyström reaches relative error 1 + \varepsilon from a bound on the early-truncated randomized SVD: for any law of \mathbf{\Omega} independent of a standard Gaussian \mathbf{\Psi}, if the early-truncated randomized SVD with the same \mathbf{\Omega} has expected error at most (1 + \varepsilon/2)\|\mathbf{A}-\llbracket\mathbf{A}\rrbracket_k\|_{\mathsf{F}}^2 and p \ge k + 1 + (2+\varepsilon)k/\varepsilon, then \mathbb{E}\|\mathbf{A}-\mathsf{earlyTruncatedGN}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi}, k) \|_{\mathsf{F}}^2 \le (1+\varepsilon)\|\mathbf{A}-\llbracket\mathbf{A}\rrbracket_k \|_{\mathsf{F}}^2\,. The hypothesis holds for a Gaussian \mathbf{\Omega} with \ell \ge 1600k/\varepsilon^2 columns (NLAlib.integral_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_le_one_add_mul_of_hasLaw_gaussianMatrix); in this form it composes with any other bound on the early-truncated randomized SVD. Proved without a literature source; the algorithm is [TroppYurtseverUdellCevher2017, §7.3.1, (7.3)].

General form: sizes are index types

Lean statement and details
NLAlib.integral_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_le_one_add_mul_of_hasLaw_gaussianMatrix_of_integral_le.{u_1,
    u_2, u_3, u_4, u_5}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {m : Type u_2} {n : Type u_3}
  {l : Type u_4} {p : Type u_5} [Fintype m] [Fintype n] [Fintype l] [Fintype p]
  {X : Ω → Matrix n l ℝ} {Ψ : Ω → Matrix m p ℝ} (A : Matrix m n ℝ) (hX : AEMeasurable X μ)
  (hΨ : HasLaw Ψ (gaussianMatrix m p) μ) (hXΨ : X ⟂ᵢ[μ] Ψ) {k : ℕ} {ε : ℝ} (hε : 0 < ε)
  (hp : ↑k + 1 + (2 + ε) * ↑k / ε ≤ ↑(Fintype.card p))
  (hRSVD :
    ∫ (ω : Ω), frobNorm (A - earlyTruncatedRSVD A (X ω) k) ^ 2 ∂μ ≤
      (1 + ε / 2) * frobNorm (A - truncatedSVD A k) ^ 2) :
  ∫ (ω : Ω), frobNorm (A - earlyTruncatedGeneralizedNystrom A (X ω) (Ψ ω) k) ^ 2 ∂μ ≤
    (1 + ε) * frobNorm (A - truncatedSVD A k) ^ 2

Full source on GitHub

Copy link

Theorem (integral_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_of_hasLaw_gaussianMatrix). Early-truncated generalized Nyström conditionally on the range test matrix: for a fixed \mathbf{\Omega}, a standard Gaussian m \times p co-range test matrix \mathbf{\Psi}, q = \operatorname{rank}\llbracket\mathbf{A}\mathbf{\Omega}\rrbracket_k \le k and k + 2 \le p, <!-- value gaussianProjectionFactor q p --> \mathbb{E}_{\mathbf{\Psi}}\|\mathbf{A}-\mathsf{earlyTruncatedGN}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi}, k)\|_{\mathsf{F}}^2 = \Bigl(1 + \frac{q}{p - q - 1}\Bigr)\|\mathbf{A}- \mathsf{earlyTruncatedRSVD}(\mathbf{A}, \mathbf{\Omega}, k)\|_{\mathsf{F}}^2\,, the factor at the actual rank q. Proved without a literature source, as a composition: the completion step is [EpperlyWebber2026, Theorem 2.1]; the algorithm is [TroppYurtseverUdellCevher2017, §7.3.1, (7.3)].

General form: sizes are index types

Lean statement and details
NLAlib.integral_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_of_hasLaw_gaussianMatrix.{u_1, u_2,
    u_3, u_4, u_5}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {m : Type u_2} {n : Type u_3}
  {l : Type u_4} {p : Type u_5} [Fintype m] [Fintype n] [Fintype l] [Fintype p]
  {Ψ : Ω → Matrix m p ℝ} (A : Matrix m n ℝ) (X₀ : Matrix n l ℝ)
  (hΨ : HasLaw Ψ (gaussianMatrix m p) μ) {k : ℕ} (hkp : k + 2 ≤ Fintype.card p) :
  ∫ (ω : Ω), frobNorm (A - earlyTruncatedGeneralizedNystrom A X₀ (Ψ ω) k) ^ 2 ∂μ =
    gaussianProjectionFactor (truncatedSVD (A * X₀) k).rank (Fintype.card p) *
      frobNorm (A - earlyTruncatedRSVD A X₀ k) ^ 2

Full source on GitHub

Copy link

Theorem (integral_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_of_hasLaw_haarFrame). Early-truncated generalized Nyström conditionally on the range test matrix, Haar co-range: for a fixed \mathbf{\Omega}, an m \times p Haar co-range test matrix \mathbf{\Psi} with p \le m, q = \operatorname{rank}\llbracket\mathbf{A}\mathbf{\Omega}\rrbracket_k \le k and k + 2 \le p, <!-- value haarProjectionFactor m p q --> \mathbb{E}_{\mathbf{\Psi}}\|\mathbf{A}-\mathsf{earlyTruncatedGN}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi}, k)\|_{\mathsf{F}}^2 = \Bigl(1 + \frac{m - p}{m - q}\cdot\frac{q}{p - q - 1}\Bigr) \|\mathbf{A}-\mathsf{earlyTruncatedRSVD}(\mathbf{A}, \mathbf{\Omega}, k)\|_{\mathsf{F}}^2\,, the factor at the actual rank q. The Gaussian twin is NLAlib.integral_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_of_hasLaw_gaussianMatrix. Proved without a literature source, as a composition: the completion step is [EpperlyWebber2026, Theorem 2.1]; the algorithm is [TroppYurtseverUdellCevher2017, §7.3.1, (7.3)].

General form: sizes are index types

Lean statement and details
NLAlib.integral_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_of_hasLaw_haarFrame.{u_1, u_2, u_3,
    u_4, u_5}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {m : Type u_2} {n : Type u_3}
  {l : Type u_4} {p : Type u_5} [Fintype m] [Fintype n] [Fintype l] [Fintype p]
  {Ψ : Ω → Matrix m p ℝ} [DecidableEq p] (A : Matrix m n ℝ) (X₀ : Matrix n l ℝ)
  (hΨ : HasLaw Ψ (haarFrame m p) μ) (hpm : Fintype.card p ≤ Fintype.card m) {k : ℕ}
  (hkp : k + 2 ≤ Fintype.card p) :
  ∫ (ω : Ω), frobNorm (A - earlyTruncatedGeneralizedNystrom A X₀ (Ψ ω) k) ^ 2 ∂μ =
    haarProjectionFactor (Fintype.card m) (Fintype.card p) (truncatedSVD (A * X₀) k).rank *
      frobNorm (A - earlyTruncatedRSVD A X₀ k) ^ 2

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.