NLA-lib Explorer

NLAlib.HasJLMoment.measureReal_frobNorm_sub_mul_sketchAndSolve_sq_gt_le

Library · theorem

Sketch-and-solve to relative error through approximate multiplication: if the real sketch \mathbf{S} injects \operatorname{range}\mathbf{A} with constant a > 0 except with probability \delta and has the (\varepsilon, \delta', p) JL moment property, \varepsilon > 0, p \ge 2, \delta' \ge 0, then \|\mathbf{B} - \mathbf{A}\,\mathsf{sketchAndSolve}(\mathbf{A}, \mathbf{S}, \mathbf{B}) \|_{\mathsf{F}}^2 \le \Bigl(1 + \frac{\operatorname{rank}(\mathbf{A})\,\varepsilon^2}{a^2}\Bigr) \|(\mathbf{I} - \mathbf{P}_{\mathbf{A}})\mathbf{B}\|_{\mathsf{F}}^2 except with probability \delta + \delta'. Its neighbour without the moment property, NLAlib.HasSubspaceInjection.measureReal_frobNorm_sub_mul_pinv_mul_sq_gt_le, has the constant factor 1 + t/a at failure probability \delta + 1/t; this one reaches 1 + \varepsilon when the moment's \delta' decays with the sketch size. [Woodruff2014, Theorem 23]; there sparse embeddings, a vector right-hand side and the unsquared objective; here any injection and JL moment, a matrix right-hand side. Result: sketch-and-solve-ls

NLAlib.HasJLMoment.measureReal_frobNorm_sub_mul_sketchAndSolve_sq_gt_le.{u_1, u_3, u_5, u_7, u_8}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {k : Type u_3} {n : Type u_5}
  {q : Type u_7} {r : Type u_8} [Fintype k] [Fintype n] [Fintype q] [Fintype r] [DecidableEq n]
  {a δ : ℝ} {S : Ω → Matrix k n ℝ} [IsFiniteMeasure μ] {A : Matrix n q ℝ} {ε δ' p : ℝ}
  (hJL : HasJLMoment S ε δ' p μ) (h : HasSubspaceInjection S A a δ μ) (hS : AEMeasurable S μ)
  (ha : 0 < a) (hε : 0 < ε) (hp : 2 ≤ p) (hδ' : 0 ≤ δ') (B : Matrix n r ℝ) :
  μ.real
      {ω |
        (1 + ↑A.rank * ε ^ 2 / a ^ 2) * frobNorm ((1 - rangeProjector A) * B) ^ 2 <
          frobNorm (B - A * sketchAndSolve A (S ω) B) ^ 2} ≤
    δ + δ'

Full source on GitHub

Import NLAlib.Regression.Oblivious.