NLA-lib Explorer

NLAlib.hasGramTraceMoment_of_hasLaw_countSketch

Library · theorem

The trace moment of a CountSketch at q = 1: for \mathbf{U} with orthonormal columns and d = \lvert r \rvert, \mathbb{E}\|(\mathbf{S}\mathbf{U})^{\mathsf{H}}\mathbf{S}\mathbf{U} - \mathbf{I}\|_{\mathsf{F}}^2 \le \frac{d^2 + d}{\lvert k \rvert}\,. [Woodruff2014, Theorem 9 and the discussion following it] (the proof of Meng and Mahoney and of Nelson and Nguyen, as Woodruff describes it). The exact mean with \|\mathbf{U}^{\mathsf{T}}\mathbf{U}\|_{\mathsf{F}}^2 \le d.

NLAlib.hasGramTraceMoment_of_hasLaw_countSketch.{u_1, u_2, u_3, u_4, u_6} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {𝕜 : Type u_2} [RCLike 𝕜] {k : Type u_3} {n : Type u_4}
  {r : Type u_6} [Fintype k] [Fintype n] [DecidableEq k] {S : Ω → Matrix k n 𝕜} [Fintype r]
  [DecidableEq r] {U : Matrix n r 𝕜} (hS : HasLaw S (countSketch k n) μ)
  (hU : HasOrthonormalCols U) :
  HasGramTraceMoment S U 1 ((↑(Fintype.card r) ^ 2 + ↑(Fintype.card r)) / ↑(Fintype.card k)) μ

Full source on GitHub

Import NLAlib.Sketching.Sparse.CountSketchEmbedding.