NLA-lib Explorer

NLAlib.norm_inv_sqrt_card_smul_mulVec_sq

Library · theorem

A scaled matrix on a vector, row by row: for \mathbf{S} = \lvert k \rvert^{-1/2} \mathbf{A} with rows \mathbf{A}_i, \|\mathbf{S}\mathbf{x}\|^2 = \frac{1}{\lvert k \rvert} \sum_i \lvert \langle \mathbf{x}, \mathbf{A}_i \rangle \rvert^2 \,, the average of the squared projections of \mathbf{x} on the rows (with the bilinear pairing x ⬝ᵥ A i). The identity behind every sketch with independent rows (NLAlib.isIsotropicSketch_smul_of_isIsotropic, the Gaussian, sub-Gaussian and sign sketches).

NLAlib.norm_inv_sqrt_card_smul_mulVec_sq.{u_1, u_3, u_4} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_3}
  {k : Type u_4} [Fintype k] [Fintype n] (A : Matrix k n 𝕜) (x : n → 𝕜) :
  ‖WithLp.toLp 2 (((√↑(Fintype.card k))⁻¹ • A) *ᵥ x)‖ ^ 2 =
    (∑ i, ‖x ⬝ᵥ A i‖ ^ 2) / ↑(Fintype.card k)

Full source on GitHub

Import NLAlib.Matrix.Basic.Gram.