NLAlib.countSketch_eq_map
Library · theorem
The CountSketch law is the pushforward of i.i.d. uniform hash values and independent Rademacher signs under any measurable space on k with measurable singletons (a finite measurable space with measurable singletons is ⊤, DiscreteMeasurableSpace.eq_top). The sign factor is not finite, so the law has no finite-mixture form.
NLAlib.countSketch_eq_map.{u_2, u_3, u_4} {𝕜 : Type u_2} [RCLike 𝕜] {k : Type u_3} {n : Type u_4}
[Fintype k] [Fintype n] [DecidableEq k] [MeasurableSpace k] [MeasurableSingletonClass k] :
countSketch k n =
Measure.map (fun x ↦ countSketchMatrix x.1 x.2)
((Measure.pi fun x ↦ samplingMeasure fun x ↦ (↑(Fintype.card k))⁻¹).prod (rademacherVector n))Import NLAlib.Sketching.Sparse.CountSketch.