NLAlib.conjTranspose_countSketchMatrix_mul_self_apply
Library · theorem
The Gram matrix of a CountSketch: for any real signs, (\mathbf{S}^{\mathsf{H}}\mathbf{S})_{i,j} = \sigma_i \sigma_j when h(i) = h(j) and 0 otherwise. The general form of the hollow Gram identity (NLAlib.conjTranspose_countSketchMatrix_mul_self_sub_one), for a family that scales its signs. [Woodruff2014, proof of Theorem 14] (the same expansion, for \|\mathbf{S}\mathbf{x}\|^2).
NLAlib.conjTranspose_countSketchMatrix_mul_self_apply.{u_2, u_3, u_4} {𝕜 : Type u_2} [RCLike 𝕜]
{k : Type u_3} {n : Type u_4} [Fintype k] [DecidableEq k] (h : n → k) (σ : n → ℝ) (i j : n) :
((countSketchMatrix h σ)ᴴ * countSketchMatrix h σ) i j = if h i = h j then ↑(σ i * σ j) else 0Import NLAlib.Sketching.Sparse.CountSketch.