Theorem (isObliviousSubspaceInjection_of_hasLaw_countSketch). CountSketch OSI: for \varepsilon > 0 and nonempty k, a CountSketch is an oblivious subspace injection for dimension d with constant 1 - \varepsilon and failure probability (d^2 + d)/(\lvert k \rvert \varepsilon^2) \,: the lower half of the OSE, with isotropy. [CamanoEpperlyMeyerTropp2025, Definition 1.2] for the notion; their Table 3 lists CountSketch only as an OSE, with k = O(r^2).
Headline General form: sizes are index types
Lean statement and details
NLAlib.isObliviousSubspaceInjection_of_hasLaw_countSketch.{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] {S : Ω → Matrix k n 𝕜} {ε : ℝ} [Nonempty k]
[DecidableEq n] (hS : HasLaw S (countSketch k n) μ) (d : ℕ) (hε : 0 < ε) :
IsObliviousSubspaceInjection S d (1 - ε) ((↑d ^ 2 + ↑d) / (↑(Fintype.card k) * ε ^ 2)) μ