Theorem (integral_frobNorm_sub_generalizedNystrom_sq_le_of_hasLaw_gaussianMatrix).The expected error of generalized Nyström (Gaussian test matrices): for independent standard Gaussian test matrices, k + 2 \le \ell and \ell + 2 \le p, so <!-- value gaussianProjectionFactor \ell p --> <!-- value gaussianProjectionFactor k \ell --> \mathbb{E}\|\mathbf{A}-\mathsf{gn}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi})\|_{\mathsf{F}}^2 \le \Bigl(1 + \frac{\ell}{p - \ell - 1}\Bigr)\Bigl(1 + \frac{k}{\ell - k - 1}\Bigr) \|\mathbf{A}-\llbracket\mathbf{A}\rrbracket_k\|_{\mathsf{F}}^2\,. Asymptotic form: NLAlib.exists_forall_integral_frobNorm_sub_generalizedNystrom_sq_le_of_hasLaw_gaussianMatrix. [TroppYurtseverUdellCevher2017, Theorem 4.3]; there with a minimum over k, not stated here (one comparison rank per statement).
HeadlineGeneral form: sizes are index types
Lean statement and details
NLAlib.integral_frobNorm_sub_generalizedNystrom_sq_le_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 : ℕ} (hk : k + 2 ≤ Fintype.card l) (hlp : Fintype.card l + 2 ≤ Fintype.card p) :
∫ (ω : Ω), frobNorm (A - generalizedNystrom A (X ω) (Ψ ω)) ^ 2 ∂μ ≤
gaussianProjectionFactor (Fintype.card l) (Fintype.card p) *
gaussianProjectionFactor k (Fintype.card l) *
frobNorm (A - truncatedSVD A k) ^ 2
Theorem (exists_forall_integral_frobNorm_sub_generalizedNystrom_sq_le_of_hasLaw_gaussianMatrix).O(k/\varepsilon) and O(\ell/\varepsilon) samples suffice for 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), k \ge 1, 0 < \varepsilon \le \varepsilon_0, \ell \ge Ck/\varepsilon and p \ge C\ell/\varepsilon, \mathbb{E}\|\mathbf{A}-\mathsf{gn}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi})\|_{\mathsf{F}}^2 \le (1 + \varepsilon)\|\mathbf{A}-\llbracket\mathbf{A}\rrbracket_k\|_{\mathsf{F}}^2\,, so O(k/\varepsilon^2) products in all. The asymptotic form of NLAlib.integral_frobNorm_sub_generalizedNystrom_sq_le_of_hasLaw_gaussianMatrix; the proof takes C = 9 and \varepsilon_0 = 1. [TroppYurtseverUdellCevher2017, Remark 4.4]; [Woodruff2014, Theorem 47]; [EpperlyWebber2026, §4.2]; there as scalings \Theta(\cdot), and (Woodruff) with constant probability and a subspace embedding for the co-range sketch.
General form: sizes are index types
Lean statement and details
NLAlib.exists_forall_integral_frobNorm_sub_generalizedNystrom_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 < k →
0 < ε →
ε ≤ ε₀ →
C * (↑k / ε) ≤ ↑(Fintype.card l) →
C * (↑(Fintype.card l) / ε) ≤ ↑(Fintype.card p) →
∫ (ω : Ω), frobNorm (A - generalizedNystrom A (X ω) (Ψ ω)) ^ 2 ∂μ ≤
(1 + ε) * frobNorm (A - truncatedSVD A k) ^ 2
Theorem (integral_frobNorm_sub_generalizedNystrom_sq_eq_integral_of_hasLaw_gaussianMatrix).Generalized Nyström = randomized SVD × completion, for any law of the range test matrix: for \mathbf{\Omega} independent of a standard Gaussian \mathbf{\Psi}, and \operatorname{rank}(\mathbf{A}\mathbf{\Omega}) + 2 \le p almost surely, writing q = \operatorname{rank}(\mathbf{A}\mathbf{\Omega}), <!-- value gaussianProjectionFactor q p --> \mathbb{E}\|\mathbf{A}-\mathsf{gn}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi})\|_{\mathsf{F}}^2 = \mathbb{E}\Bigl[\Bigl(1 + \frac{q}{p - q - 1}\Bigr)\|\mathbf{A}-\mathsf{rsvd}(\mathbf{A}, \mathbf{\Omega})\|_{\mathsf{F}}^2\Bigr]\,: the rank stays inside the expectation. [EpperlyWebber2026, proof of Theorem 4.2]; [TroppYurtseverUdellCevher2017, §A.3.4].
General form: sizes are index types
Lean statement and details
NLAlib.integral_frobNorm_sub_generalizedNystrom_sq_eq_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 ⟂ᵢ[μ] Ψ)
(hr : ∀ᵐ (ω : Ω) ∂μ, (A * X ω).rank + 2 ≤ Fintype.card p) :
∫ (ω : Ω), frobNorm (A - generalizedNystrom A (X ω) (Ψ ω)) ^ 2 ∂μ =
∫ (ω : Ω),
gaussianProjectionFactor (A * X ω).rank (Fintype.card p) * frobNorm (A - rsvd A (X ω)) ^ 2 ∂μ
Theorem (integral_frobNorm_sub_generalizedNystrom_sq_eq_mul_integral_of_hasLaw_gaussianMatrix).The generalized Nyström identity, Gaussian test matrices: for independent test matrices, with \ell' = \min(\operatorname{rank}\mathbf{A}, \ell), the almost sure rank of the sketch, and \ell' + 2 \le p, <!-- value gaussianProjectionFactor {\ell'} p --> \mathbb{E}\|\mathbf{A}-\mathsf{gn}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi})\|_{\mathsf{F}}^2 = \Bigl(1 + \frac{\ell'}{p - \ell' - 1}\Bigr)\,\mathbb{E}\|\mathbf{A}-\mathsf{rsvd}(\mathbf{A}, \mathbf{\Omega})\|_{\mathsf{F}}^2\,. [EpperlyWebber2026, proof of Theorem 4.2(a)], with \gamma = 1; there for \operatorname{rank}\mathbf{A} \ge p.
General form: sizes are index types
Lean statement and details
NLAlib.integral_frobNorm_sub_generalizedNystrom_sq_eq_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 : HasLaw X (gaussianMatrix n l) μ) (hΨ : HasLaw Ψ (gaussianMatrix m p) μ) (hXΨ : X ⟂ᵢ[μ] Ψ)
(hr : min A.rank (Fintype.card l) + 2 ≤ Fintype.card p) :
∫ (ω : Ω), frobNorm (A - generalizedNystrom A (X ω) (Ψ ω)) ^ 2 ∂μ =
gaussianProjectionFactor (min A.rank (Fintype.card l)) (Fintype.card p) *
∫ (ω : Ω), frobNorm (A - rsvd A (X ω)) ^ 2 ∂μ
Theorem (integral_frobNorm_sub_generalizedNystrom_sq_eq_mul_integral_of_hasLaw_haarFrame).The generalized Nyström identity, Gaussian range and Haar co-range test matrices: for independent test matrices, with \ell' = \min(\operatorname{rank}\mathbf{A}, \ell), the almost sure rank of the sketch, \ell' + 2 \le p \le m, <!-- value haarProjectionFactor m p {\ell'} --> \mathbb{E}\|\mathbf{A}-\mathsf{gn}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi})\|_{\mathsf{F}}^2 = \Bigl(1 + \frac{m - p}{m - \ell'}\cdot\frac{\ell'}{p - \ell' - 1}\Bigr)\, \mathbb{E}\|\mathbf{A}-\mathsf{rsvd}(\mathbf{A}, \mathbf{\Omega})\|_{\mathsf{F}}^2\,, Epperly and Webber's factor 1 + \gamma\ell'/(p - \ell' - 1) with \gamma = (m - p)/(m - \ell'). [EpperlyWebber2026, proof of Theorem 4.2(a), random orthonormal co-range]; there for \operatorname{rank}\mathbf{A} \ge p.
General form: sizes are index types
Lean statement and details
NLAlib.integral_frobNorm_sub_generalizedNystrom_sq_eq_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 : HasLaw X (gaussianMatrix n l) μ) (hΨ : HasLaw Ψ (haarFrame m p) μ)
(hpm : Fintype.card p ≤ Fintype.card m) (hXΨ : X ⟂ᵢ[μ] Ψ)
(hr : min A.rank (Fintype.card l) + 2 ≤ Fintype.card p) :
∫ (ω : Ω), frobNorm (A - generalizedNystrom A (X ω) (Ψ ω)) ^ 2 ∂μ =
haarProjectionFactor (Fintype.card m) (Fintype.card p) (min A.rank (Fintype.card l)) *
∫ (ω : Ω), frobNorm (A - rsvd A (X ω)) ^ 2 ∂μ
Theorem (integral_frobNorm_sub_generalizedNystrom_sq_le_mul_integral_of_hasLaw_gaussianMatrix).Generalized Nyström = randomized SVD × completion, bound form, for any law of \mathbf{\Omega} independent of a standard Gaussian \mathbf{\Psi} and \ell + 2 \le p: <!-- value gaussianProjectionFactor \ell p --> \mathbb{E}\|\mathbf{A}-\mathsf{gn}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi})\|_{\mathsf{F}}^2 \le \Bigl(1 + \frac{\ell}{p - \ell - 1}\Bigr)\,\mathbb{E}\|\mathbf{A}-\mathsf{rsvd}(\mathbf{A}, \mathbf{\Omega})\|_{\mathsf{F}}^2\,. Any bound on the randomized SVD (Gaussian, rotation-invariant, oblivious subspace injection) becomes a bound on generalized Nyström. [CamanoEpperlyMeyerTropp2025, proof of Corollary 2.8]; [TroppYurtseverUdellCevher2017, §A.3.4].
General form: sizes are index types
Lean statement and details
NLAlib.integral_frobNorm_sub_generalizedNystrom_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 ⟂ᵢ[μ] Ψ)
(hlp : Fintype.card l + 2 ≤ Fintype.card p) :
∫ (ω : Ω), frobNorm (A - generalizedNystrom A (X ω) (Ψ ω)) ^ 2 ∂μ ≤
gaussianProjectionFactor (Fintype.card l) (Fintype.card p) *
∫ (ω : Ω), frobNorm (A - rsvd A (X ω)) ^ 2 ∂μ
Theorem (integral_frobNorm_sub_generalizedNystrom_sq_le_mul_integral_of_hasLaw_haarFrame).Generalized Nyström = randomized SVD × completion, Haar co-range, bound form, for any law of \mathbf{\Omega} independent of an m \times p Haar \mathbf{\Psi} with p \le m and \ell + 2 \le p: <!-- value haarProjectionFactor m p \ell --> \mathbb{E}\|\mathbf{A}-\mathsf{gn}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi})\|_{\mathsf{F}}^2 \le \Bigl(1 + \frac{m - p}{m - \ell}\cdot\frac{\ell}{p - \ell - 1}\Bigr)\, \mathbb{E}\|\mathbf{A}-\mathsf{rsvd}(\mathbf{A}, \mathbf{\Omega})\|_{\mathsf{F}}^2\,. Any bound on the randomized SVD becomes a bound on generalized Nyström with a Haar co-range test matrix. [EpperlyWebber2026, proof of Theorem 4.2].
General form: sizes are index types
Lean statement and details
NLAlib.integral_frobNorm_sub_generalizedNystrom_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 ⟂ᵢ[μ] Ψ) (hlp : Fintype.card l + 2 ≤ Fintype.card p) :
∫ (ω : Ω), frobNorm (A - generalizedNystrom A (X ω) (Ψ ω)) ^ 2 ∂μ ≤
haarProjectionFactor (Fintype.card m) (Fintype.card p) (Fintype.card l) *
∫ (ω : Ω), frobNorm (A - rsvd A (X ω)) ^ 2 ∂μ
Theorem (integral_frobNorm_sub_generalizedNystrom_sq_le_of_isLeftUnitarilyInvariant_of_hasLaw_gaussianMatrix_of_rank_le).The sharp upper bound for generalized Nyström, Gaussian co-range: for \mathbf{A} of rank at most r, a test matrix \mathbf{\Omega} with a left unitarily invariant law and full column rank almost surely, a standard Gaussian \mathbf{\Psi} independent of it, \ell \le r, \ell + 2 \le p and q + 2 \le \ell, so <!-- value gaussianProjectionFactor \ell p --> <!-- value rotationInvariantFactor r \ell q --> \mathbb{E}\|\mathbf{A}-\mathsf{gn}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi}) \|_{\mathsf{F}}^2 \le \Bigl(1 + \frac{\ell}{p - \ell - 1}\Bigr) \frac{r - \ell}{r - q}\Bigl(1 + \frac{q}{\ell - q - 1}\Bigr) \|\mathbf{A}-\llbracket\mathbf{A}\rrbracket_q\|_{\mathsf{F}}^2\,. The instance r = \lvert n\rvert needs no knowledge of the rank. [EpperlyWebber2026, Theorem 4.2(a)], with \gamma = 1; there r = \operatorname{rank}\mathbf{A} \ge p and a minimum over q.
General form: sizes are index types
Lean statement and details
NLAlib.integral_frobNorm_sub_generalizedNystrom_sq_le_of_isLeftUnitarilyInvariant_of_hasLaw_gaussianMatrix_of_rank_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 ℝ} [DecidableEq n] {ν : Measure (Matrix n l ℝ)}
[IsProbabilityMeasure ν] [IsLeftUnitarilyInvariant ν] (A : Matrix m n ℝ) (hX : HasLaw X ν μ)
(hXr : ∀ᵐ (ω : Ω) ∂μ, Function.Injective (X ω).mulVec) (hΨ : HasLaw Ψ (gaussianMatrix m p) μ)
(hXΨ : X ⟂ᵢ[μ] Ψ) {r q : ℕ} (hr : A.rank ≤ r) (hlr : Fintype.card l ≤ r)
(hq : q + 2 ≤ Fintype.card l) (hlp : Fintype.card l + 2 ≤ Fintype.card p) :
∫ (ω : Ω), frobNorm (A - generalizedNystrom A (X ω) (Ψ ω)) ^ 2 ∂μ ≤
gaussianProjectionFactor (Fintype.card l) (Fintype.card p) *
rotationInvariantFactor r (Fintype.card l) q *
frobNorm (A - truncatedSVD A q) ^ 2
Theorem (integral_frobNorm_sub_generalizedNystrom_sq_le_of_isLeftUnitarilyInvariant_of_hasLaw_haarFrame_of_rank_le).The sharp upper bound for generalized Nyström, random orthonormal co-range: for \mathbf{A} of rank at most r, a test matrix \mathbf{\Omega} with a left unitarily invariant law and full column rank almost surely, an m \times p Haar \mathbf{\Psi} independent of it, \ell \le r, \ell + 2 \le p \le m and q + 2 \le \ell, so <!-- value haarProjectionFactor m p \ell --> <!-- value rotationInvariantFactor r \ell q --> \mathbb{E}\|\mathbf{A}-\mathsf{gn}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi}) \|_{\mathsf{F}}^2 \le \Bigl(1 + \frac{m - p}{m - \ell}\cdot\frac{\ell}{p - \ell - 1}\Bigr) \frac{r - \ell}{r - q}\Bigl(1 + \frac{q}{\ell - q - 1}\Bigr) \|\mathbf{A}-\llbracket\mathbf{A}\rrbracket_q\|_{\mathsf{F}}^2\,, smaller than the Gaussian co-range bound by the ratio of the completion factors. [EpperlyWebber2026, Theorem 4.2(a)], with \gamma = (d - k)/(d - \ell) in their letters; there r = \operatorname{rank}\mathbf{A} \ge p and a minimum over q.
General form: sizes are index types
Lean statement and details
NLAlib.integral_frobNorm_sub_generalizedNystrom_sq_le_of_isLeftUnitarilyInvariant_of_hasLaw_haarFrame_of_rank_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 ℝ} [DecidableEq n] {ν : Measure (Matrix n l ℝ)}
[IsProbabilityMeasure ν] [IsLeftUnitarilyInvariant ν] [DecidableEq p] (A : Matrix m n ℝ)
(hX : HasLaw X ν μ) (hXr : ∀ᵐ (ω : Ω) ∂μ, Function.Injective (X ω).mulVec)
(hΨ : HasLaw Ψ (haarFrame m p) μ) (hpm : Fintype.card p ≤ Fintype.card m) (hXΨ : X ⟂ᵢ[μ] Ψ)
{r q : ℕ} (hr : A.rank ≤ r) (hlr : Fintype.card l ≤ r) (hq : q + 2 ≤ Fintype.card l)
(hlp : Fintype.card l + 2 ≤ Fintype.card p) :
∫ (ω : Ω), frobNorm (A - generalizedNystrom A (X ω) (Ψ ω)) ^ 2 ∂μ ≤
haarProjectionFactor (Fintype.card m) (Fintype.card p) (Fintype.card l) *
rotationInvariantFactor r (Fintype.card l) q *
frobNorm (A - truncatedSVD A q) ^ 2
Theorem (integral_frobNorm_sub_generalizedNystrom_sq_of_hasLaw_gaussianMatrix).Generalized Nyström conditionally on the range test matrix: for a fixed test matrix \mathbf{\Omega}, a standard Gaussian m \times p co-range test matrix \mathbf{\Psi} and q = \operatorname{rank}(\mathbf{A}\mathbf{\Omega}) with q + 2 \le p, <!-- value gaussianProjectionFactor q p --> \mathbb{E}_{\mathbf{\Psi}}\|\mathbf{A}-\mathsf{gn}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi}) \|_{\mathsf{F}}^2 = \Bigl(1 + \frac{q}{p - q - 1}\Bigr)\|\mathbf{A}-\mathsf{rsvd}(\mathbf{A}, \mathbf{\Omega})\|_{\mathsf{F}}^2\,. [EpperlyWebber2026, proof of Theorem 4.2]; [TroppYurtseverUdellCevher2017, Lemmas A.3, A.5]; there with q the sketch size (full rank).
General form: sizes are index types
Lean statement and details
NLAlib.integral_frobNorm_sub_generalizedNystrom_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) μ) (hr : (A * X₀).rank + 2 ≤ Fintype.card p) :
∫ (ω : Ω), frobNorm (A - generalizedNystrom A X₀ (Ψ ω)) ^ 2 ∂μ =
gaussianProjectionFactor (A * X₀).rank (Fintype.card p) * frobNorm (A - rsvd A X₀) ^ 2
Theorem (integral_frobNorm_sub_generalizedNystrom_sq_of_hasLaw_haarFrame).Generalized Nyström conditionally on the range test matrix, Haar co-range: for a fixed test matrix \mathbf{\Omega}, an m \times p Haar co-range test matrix \mathbf{\Psi} with p \le m and q = \operatorname{rank}(\mathbf{A}\mathbf{\Omega}) with q + 2 \le p, <!-- value haarProjectionFactor m p q --> \mathbb{E}_{\mathbf{\Psi}}\|\mathbf{A}-\mathsf{gn}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi}) \|_{\mathsf{F}}^2 = \Bigl(1 + \frac{m - p}{m - q}\cdot\frac{q}{p - q - 1}\Bigr) \|\mathbf{A}-\mathsf{rsvd}(\mathbf{A}, \mathbf{\Omega})\|_{\mathsf{F}}^2\,. The Gaussian twin is NLAlib.integral_frobNorm_sub_generalizedNystrom_sq_of_hasLaw_gaussianMatrix. [EpperlyWebber2026, proof of Theorem 4.2]; there with q the sketch size.
General form: sizes are index types
Lean statement and details
NLAlib.integral_frobNorm_sub_generalizedNystrom_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)
(hr : (A * X₀).rank + 2 ≤ Fintype.card p) :
∫ (ω : Ω), frobNorm (A - generalizedNystrom A X₀ (Ψ ω)) ^ 2 ∂μ =
haarProjectionFactor (Fintype.card m) (Fintype.card p) (A * X₀).rank *
frobNorm (A - rsvd A X₀) ^ 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.