NLA-lib Explorer

Example: modified Gram–Schmidt over the level-1 operations

Library · Source module

Example: modified Gram–Schmidt over the level-1 operations

The algorithm NLAlib.Ops.Examples.mgs orthogonalizes a vector w against the k rows of Q and stores the k coefficients and the norm of the result in R. This is the example of the first build, proved in the program logic (NLAlib.Ops.Logic) with block specifications.

Main results

* Mathematics: the postcondition is the recurrence with local errors NLAlib.Ops.Examples.MgsRec, on decoded values; its analysis is not part of this file. * The certificate (NLAlib.Ops.Examples.mgs_satisfies): for every interpretation satisfying the contracts, mgs satisfies its contract in operand form (NLAlib.Ops.Examples.mgsRel): one allocation, one loop in the standard invariant form, a named step per call. * The abstract theorem (NLAlib.Ops.Examples.runs_mgs_rounded): the same with the call counts k (dot + neg + axpy) + nrm2, by evaluating the static cost. * The corollary (NLAlib.Ops.Examples.runs_mgs_link_seq): the program linked through the profile of sequential summation, down to scalar arithmetic meeting the standard model at u, by one application of the certificate; its scalar counts are NLAlib.Ops.Examples.push_seq_mgsCount.

Declarations