NLAlib.hasLaw_countSketchMatrix
Library · theorem
From the user's own hash and signs: for i.i.d. uniform hash values h and independent Rademacher signs \sigma, under any measurable space on k with measurable singletons, the CountSketch matrix built from them has law NLAlib.countSketch k n. A uniform hash function, HasLaw h (uniformOn Set.univ) μ, gives hh by uniformOn_pi and NLAlib.samplingMeasure_const_inv_card.
NLAlib.hasLaw_countSketchMatrix.{u_1, u_2, u_3, u_4} {Ω : Type u_1} {mΩ : MeasurableSpace Ω}
{μ : Measure Ω} {𝕜 : Type u_2} [RCLike 𝕜] {k : Type u_3} {n : Type u_4} [Fintype k] [Fintype n]
[DecidableEq k] [MeasurableSpace k] [MeasurableSingletonClass k] {h : Ω → n → k} {σ : Ω → n → ℝ}
(hh : HasLaw h (Measure.pi fun x ↦ samplingMeasure fun x ↦ (↑(Fintype.card k))⁻¹) μ)
(hσ : HasLaw σ (rademacherVector n) μ) (hind : h ⟂ᵢ[μ] σ) :
HasLaw (fun ω ↦ countSketchMatrix (h ω) (σ ω)) (countSketch k n) μImport NLAlib.Sketching.Sparse.CountSketch.