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
- NLAlib.Ops.PWrites.of_measureReal_le
- NLAlib.Schur.HoldsMatrix.get_eq
- NLAlib.Schur.SchurPipelineInput.head
- NLAlib.Schur.SchurPipelineInput.of_below
- NLAlib.Schur.TerminatingSchurSolver
- NLAlib.Schur.VerifiedSchurOutput
- NLAlib.Schur.apart_verifiedCheck
- NLAlib.Schur.disj_schurFp_words
- NLAlib.Schur.frobNormStage_frobNormEstimateContract_check
- NLAlib.Schur.frobNorm_sub_le_of_specNorm_sub_le
- NLAlib.Schur.norm_check_size_le
- NLAlib.Schur.schurResidualCheck_writes_of_schurOutput
- NLAlib.Schur.size_stmtCost_copy_le
- NLAlib.Schur.size_stmtCost_schurResidualCheck_le
- NLAlib.Schur.size_stmtCost_verifiedSchurWith_le
- NLAlib.Schur.verifiedSchurWith
- NLAlib.Schur.verifiedSchurWith_measureReal_not_flag_le
- NLAlib.Schur.verifiedSchurWith_writes