NLAlib.Ops.StdModel.specNorm_matMulWord_sub_le
Library · theorem
Standard rounding
The error of a stored product ([Higham2002, §3.5], complex, with the accumulation from a rounded zero and a rounded unit): under the standard model at \boldsymbol{u} with 32(p + 1)\boldsymbol{u} \le 1, \|\mathrm{fl}(\mathbf{X}\mathbf{Y}) - \mathbf{X}\mathbf{Y}\|_2 \le 8(p + 1)\boldsymbol{u}\|\mathbf{X}\|_{\mathsf F}\|\mathbf{Y}\|_{\mathsf F}, p the inner dimension. Each multiply–add rounds the running sum four times (the product by the rounded unit, the subtraction of the exact zero product, the sum), so a term passes through at most 4p roundings; the complex products contribute the factor \sqrt 2.
NLAlib.Ops.StdModel.specNorm_matMulWord_sub_le {M : Ops.Machine ℝ} {u : ℝ}
(hM : Ops.StdModel u id M) {m p q : ℕ} (hu : 32 * (↑p + 1) * u ≤ 1) (X : Matrix (Fin m) (Fin p) ℂ)
(Y : Matrix (Fin p) (Fin q) ℂ) :
specNorm (matMulWord M X Y - X * Y) ≤ 8 * (↑p + 1) * u * (frobNorm X * frobNorm Y)Import NLAlib.Matrix.FinitePrecision.StoredProducts.