NLA-lib Explorer

NLAlib.srhtRowBound

Library · def

The SRHT row bound <!-- value srhtRowBound n d \delta --> d + 2\sqrt{d \log(n/\delta)} + 2 \log(n/\delta): flattening with failure probability \delta makes every leverage score at most \beta times this over n (measureReal_exists_leverageScore_mul_diagonal_gt_srhtRowBound_le_of_hasLaw_rademacherVector). The value the proof reaches, at t = \log(n/\delta) in the Hsu–Kakade–Zhang tail. Tropp 2011a has (\sqrt{d} + \sqrt{8 \log(n/\delta)})^2 ([Tropp2011a, Lemma 3.3], Walsh–Hadamard, failure probability \delta; the 8 is as in [HalkoMartinssonTropp2011, Theorem 11.1], [\sqrt{k} + \sqrt{8 \log(kn)}]^2), which is larger (NLAlib.srhtRowBound_le). Consumers use the API. Junk values: for \delta > n the logarithm is negative, the square root is 0, and the value may be below d; the flattening tail is then trivial.

NLAlib.srhtRowBound (n d : ℕ) (δ : ℝ) : ℝ

Full source on GitHub

Import NLAlib.Sketching.Structured.Flattening.