NLA-lib Explorer

NLAlib.hasJLProperty_of_hasLaw_srhtWithReplacement

Library · theorem

General form: sizes are index types

Distributional JL for the SRHT with replacement: for a bounded orthonormal \mathbf{F} with constant \beta, the SRHT \mathbf{S} built from it with \lvert k\rvert i.i.d. uniform row indices, 0 \le \varepsilon \le 1 and t \ge 0, \mathbf{S} has the JL property with distortion \varepsilon and failure probability 2\exp\Bigl(-\frac{\varepsilon^2\lvert k\rvert}{3\beta(1 + 2\sqrt{t} + 2t)}\Bigr) + \lvert n\rvert e^{-t}\,, the OSE bound of NLAlib.isObliviousSubspaceEmbedding_of_hasLaw_srhtWithReplacement at d = 1. [MartinssonTropp2020, §9.3]. Any field. Result: jl-srht

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

Full source on GitHub

Import NLAlib.Sketching.Structured.SRHTMultiplication.

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.