NLA-lib Explorer

NLAlib.srht_eq_map_prod

Library · theorem

The SRHT law as signs times row sampling without replacement: the pushforward of independent signs and the law NLAlib.samplingSketchWithoutReplacement k n by (\boldsymbol{\xi}, \mathbf{P}) \mapsto \mathbf{P}\mathbf{F}\operatorname{diag}(\boldsymbol{\xi}); the form the proofs use.

NLAlib.srht_eq_map_prod.{u_2, u_3, u_4} {𝕜 : Type u_2} [RCLike 𝕜] {k : Type u_3} {n : Type u_4}
  [Fintype k] [Fintype n] [DecidableEq n] (F : Matrix n n 𝕜) :
  srht k F =
    Measure.map (fun x ↦ x.2 * F * diagonal fun i ↦ ↑(x.1 i))
      ((rademacherVector n).prod (samplingSketchWithoutReplacement k n))

Full source on GitHub

Import NLAlib.Sketching.Structured.SRHT.