NLA-lib Explorer

NLAlib.QueryAlgorithm.run_gramSimulation

Library · theorem

The Gram simulation runs the original algorithm: the 2q-round algorithm alg.gramSimulation k against twoSidedMulVec X, \mathbf{X} \in \Bbbk^{d \times k}, outputs what alg outputs against \mathbf{X}\mathbf{X}^{\mathsf{H}}. Two-sided queries to the factor \mathbf{X} therefore simulate products with \mathbf{X}\mathbf{X}^{\mathsf{H}}, at q products with each of \mathbf{X} and \mathbf{X}^{\mathsf{H}} (QueryAlgorithm.rightCount_gramSimulation_le, QueryAlgorithm.leftCount_gramSimulation_le). [ZhangEtAl2026, Section 4.1]; there implicit: the analysis works with the factor \mathbf{X} while the queries are to \mathbf{X}\mathbf{X}^{\mathsf{T}}.

NLAlib.QueryAlgorithm.run_gramSimulation.{u_3, u_4, u_5, u_6} {β : Type u_3} {q : ℕ} {𝕜 : Type u_4}
  {d : Type u_5} {k : Type u_6} [RCLike 𝕜] [Fintype d] [Fintype k]
  (alg : QueryAlgorithm (d → 𝕜) (d → 𝕜) q β) (X : Matrix d k 𝕜) :
  (QueryAlgorithm.gramSimulation k alg).run (twoSidedMulVec X) = alg.run (X * Xᴴ).mulVec

Full source on GitHub

Import NLAlib.LowerBounds.QueryModel.Basic.