NLA-lib Explorer

A verified Schur solver

Library · Source module

A verified Schur solver

NLAlib.Schur.verifiedSchurWith Solve runs any Schur solver Solve (the interface of the pipeline, [N, nr, nq, k, F, T] (A, P) → (A, U, Fl)) on the matrix, keeping a copy \mathbf{A}_0, and then the residual check NLAlib.Schur.schurResidualCheck on (\mathbf{A}_0, \widehat{\mathbf{U}}, \widehat{\mathbf{T}}) with the words \theta, \kappa, which writes the flag. The flag is then a certificate: on every tape, flag 0 implies that \widehat{\mathbf{T}} is upper triangular and \|\mathbf{A} - \widehat{\mathbf{U}}\widehat{\mathbf{T}}\widehat{\mathbf{U}}^{\mathsf H}\|_2 \le \delta\|\mathbf{A}\|_2, whatever the solver did. Only the chance of a nonzero flag depends on the solver's probabilistic contract.

Main definitions

* NLAlib.Schur.TerminatingSchurSolver: a solver that terminates on every tape. * NLAlib.Schur.verifiedSchurWith: the verified program. * NLAlib.Schur.VerifiedSchurOutput: its every-tape output.

Main results

* NLAlib.Schur.verifiedSchurWith_writes: termination and the flag-conditional Schur output on every tape.

Declarations