NLA-lib Explorer

NLAlib.srhtWithReplacement_eq_map_prod

Library · theorem

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

NLAlib.srhtWithReplacement_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 𝕜) :
  srhtWithReplacement k F =
    Measure.map (fun x ↦ x.2 * F * diagonal fun i ↦ ↑(x.1 i))
      ((rademacherVector n).prod (samplingSketch k fun x ↦ (↑(Fintype.card n))⁻¹))

Full source on GitHub

Import NLAlib.Sketching.Structured.SRHT.