The rounded shifted QR algorithm with the small-eigenvalue program as a canonical certificate
Library · Source module
The rounded shifted QR algorithm with the small-eigenvalue program as a canonical certificate
The rounded shifted QR algorithm with no SmallEig oracle as one counted run: the program is NLAlib.ShiftedQR.roundedShQRSmallEig, which runs the small-eigenvalue program NLAlib.SmallEig.smallEigProg as its leaf. The program, fixed before every size and input, is a canonical certificate (NLAlib.Ops.Algorithm) over the model of the small-eigenvalue solver (NLAlib.SmallEig.smallEigModel: scalar arithmetic of a machine Mch, exact dimension literals, comparisons and index conversion, draws of the tape streams and the exact polar disk sampler; every contract a function), with explicit work and span polynomials; and the probability that this counted run fails, exceeds a resource bound of the specification, or fails to store the spectrum of a nearby matrix is at most \varphi.
Every primitive, query and structural instruction costs one unit, so the work and the span are the number of instructions of the static count, SmallEig's instructions included: no kernel weight remains. Hence, unlike the certificate with the oracle, the shift degree k may exceed n.
The every-tape output claim (NLAlib.Ops.Specification.good) is the frame: the run writes only the matrix, the output and the failure word. No accuracy claim holds on every tape: on a tape where the small-eigenvalue program misses its forward accuracy a leaf block stores its words as eigenvalues with the failure word 0. The spectrum claim is the postcondition of NLAlib.Ops.Specification.Accepts in NLAlib.ShiftedQR.roundedShQRSmallEig_algorithm_measureReal_not_accepts_le, bounded through the probabilistic program logic (NLAlib.Ops.Algorithm.measureReal_not_accepts_le_of_wp).
Main definitions
* NLAlib.ShiftedQR.shqrSmallEigProgram, NLAlib.ShiftedQR.shqrSmallEigProblem: the program and the problem. * NLAlib.ShiftedQR.shqrSmallEigWork: the explicit work and span polynomial. * NLAlib.ShiftedQR.shqrSmallEigAlgorithm: the certificate.
Main results
* NLAlib.ShiftedQR.shqrSmallEigProgram_work_le: the work and span of every run. * NLAlib.ShiftedQR.roundedShQRSmallEig_algorithm_measureReal_not_accepts_le: the headline, on one run.
Declarations
- NLAlib.ShiftedQR.ShQRSmallEigData
- NLAlib.ShiftedQR.ShQRSmallEigSizes
- NLAlib.ShiftedQR.roundedShQRSmallEig_algorithm_measureReal_not_accepts_le
- NLAlib.ShiftedQR.roundedShQRSmallEig_algorithm_measureReal_not_accepts_le_unconditional
- NLAlib.ShiftedQR.shqrSmallEigAlgorithm
- NLAlib.ShiftedQR.shqrSmallEigClaim
- NLAlib.ShiftedQR.shqrSmallEigGinibreClaim
- NLAlib.ShiftedQR.shqrSmallEigInputWords
- NLAlib.ShiftedQR.shqrSmallEigInputs
- NLAlib.ShiftedQR.shqrSmallEigProblem
- NLAlib.ShiftedQR.shqrSmallEigProblem_buffers
- NLAlib.ShiftedQR.shqrSmallEigProblem_cap_eq
- NLAlib.ShiftedQR.shqrSmallEigProblem_degree_eq
- NLAlib.ShiftedQR.shqrSmallEigProblem_initialBytes
- NLAlib.ShiftedQR.shqrSmallEigProblem_initial_accumulator
- NLAlib.ShiftedQR.shqrSmallEigProblem_initial_input
- NLAlib.ShiftedQR.shqrSmallEigProblem_initial_live
- NLAlib.ShiftedQR.shqrSmallEigProblem_smallEigCap_eq
- NLAlib.ShiftedQR.shqrSmallEigProblem_words_eq
- NLAlib.ShiftedQR.shqrSmallEigProgram
- NLAlib.ShiftedQR.shqrSmallEigProgram_wellTyped
- NLAlib.ShiftedQR.shqrSmallEigProgram_work_le
- NLAlib.ShiftedQR.shqrSmallEigProgram_wp
- NLAlib.ShiftedQR.shqrSmallEigSlots
- NLAlib.ShiftedQR.shqrSmallEigSpecification
- NLAlib.ShiftedQR.shqrSmallEigWork
- NLAlib.ShiftedQR.shqrSmallEig_checked
- NLAlib.ShiftedQR.size_staticCost_shqrSmallEigProgram_le
- NLAlib.ShiftedQR.stmtWorkMono_shqrSmallEigProgram