NLA-lib Explorer

NLAlib.isObliviousSubspaceEmbedding_of_hasLaw_srhtWithReplacement

Library · theorem

General form: sizes are index types

The SRHT OSE with replacement: with failure probability 2 d\, e^{-\varepsilon^2 \lvert k \rvert / (3 \beta (d + 2 \sqrt{d t} + 2 t))} + \lvert n \rvert e^{-t} \,, the bound of NLAlib.isObliviousSubspaceEmbedding_of_hasLaw_srht for i.i.d. uniform indices. [MartinssonTropp2020, §9.3]. Result: srht-ose

NLAlib.isObliviousSubspaceEmbedding_of_hasLaw_srhtWithReplacement.{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 n] {S : Ω → Matrix k n 𝕜} {F : Matrix n n 𝕜}
  {β ε t : ℝ} (hF : IsBoundedOrthonormal F β) (hS : HasLaw S (srhtWithReplacement k F) μ) (d : ℕ)
  (hε : 0 ≤ ε) (hε1 : ε ≤ 1) (ht : 0 ≤ t) :
  IsObliviousSubspaceEmbedding S d (1 - ε) (1 + ε)
    (2 * ↑d * rexp (-ε ^ 2 * ↑(Fintype.card k) / (3 * (β * (↑d + 2 * √(↑d * t) + 2 * t)))) +
      ↑(Fintype.card n) * rexp (-t))
    μ

Full source on GitHub

Import NLAlib.Sketching.Structured.SRHT.

General form: sizes are index types. A size is carried by a finite index type: |k| is the number of elements of the index type k, and "k nonempty" means k ≥ 1.