NLA-lib Explorer

Rounding traces of the BLAS kernels

Library · Source module

Rounding traces of the BLAS kernels

A run of a kernel under an error contract computes, in decoded values, a trace: the sequence of intermediate values of the kernel's recursion, each operation's result related to the exact result on the previous values by an error relation err. The run lemmas of the stored-operation analyses identify actual intermediate values with such traces; this file bounds traces without assuming a program execution. Under the standard model (err the relation NLAlib.Computation.RelErr u of relative error) the bounds are those of [Higham2002, Chapters 3 and 8] with the rounding factor \gamma_n = (1 - u)^{-n} - 1 of [CarsonMaShao2026], under u < 1 alone. A model with underflow reuses them: an absolute error in a multiplication or division is pushed onto its operands.

Main definitions

* NLAlib.Computation.IsDotTrace: recursive accumulation of \sum_k \mathbf{x}_k y_k, as dot and each row of gemv and gemm compute it. * NLAlib.Computation.IsSubstRowTrace, NLAlib.Computation.IsSubstTrace: forward substitution, as trsvLower computes it.

Main results

* NLAlib.Computation.IsDotTrace.exists_eq_sum_mul_one_add: backward error of an inner product, [Higham2002, §3.1]. * NLAlib.Computation.IsDotTrace.exists_eq_sum_mul_one_add_isRoundingProduct: the same with each 1 + \eta_k a product of rounding factors. * NLAlib.Computation.IsDotTrace.abs_sum_mul_sub_le: forward error of an inner product. * NLAlib.Computation.exists_eq_mul_one_add_add_mul_one_add_of_relErr: one axpy entry. * NLAlib.Computation.IsSubstTrace.exists_sum_add_mul_eq: backward error of forward substitution, [Higham2002, Theorem 8.5].

Declarations