NLA-lib Explorer

The small-eigenvalue solver as a canonical certificate

Library · Source module

The small-eigenvalue solver as a canonical certificate

The headline theorems of NLAlib.Eigensolvers.SmallEig.Theorems state the probability of a correct output and the static count of NLAlib.SmallEig.smallEigProg separately. This file states them for one run: the program, fixed before every size and input, is a canonical certificate (NLAlib.Ops.Algorithm) over a jointly realized access model, 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.

The model has no oracle: scalar arithmetic is the function of a machine Mch (its standard model at \boldsymbol{u} is a hypothesis of the probability statement only); dimension literals, comparisons and index conversion are exact; a draw stores the next entry of its stream; the polar disk sampler is exact on the stream s_U. Every contract is a function, so the model is realized by the interpretation of these functions. Every primitive, query and structural instruction costs one unit of work and span and no workspace, so the work and the span are the number of instructions of the static count: an explicit polynomial in the sizes.

The same signature and contracts serve every program over scalar arithmetic, index literals, draws and the polar sampler (NLAlib.SmallEig.smallEigModel takes any problem); the rounded shifted QR algorithm with the small-eigenvalue program uses them too (NLAlib.Eigensolvers.ShiftedQR.RoundedSmallEigCertification).

The every-tape output claim (NLAlib.Ops.Specification.good) is the frame and the stored output: the run writes only the output, and the 2(n + 1) output words are stored. No accuracy claim holds on every tape (on a tape whose perturbation has a tiny gap the decoupling may stop early). The spectrum claim is the postcondition of NLAlib.Ops.Specification.Accepts in NLAlib.SmallEig.smallEig_algorithm_measureReal_not_accepts_le, bounded through the probabilistic program logic (NLAlib.Ops.Algorithm.measureReal_not_accepts_le_of_wp).

Main definitions

* NLAlib.SmallEig.SmallEigOp, NLAlib.SmallEig.smallEigModel, NLAlib.SmallEig.smallEigResources: the signature, the access model and the unit costs. * NLAlib.SmallEig.smallEigProgram, NLAlib.SmallEig.smallEigProblem: the program and the problem. * NLAlib.SmallEig.smallEigWork: the explicit work and span polynomial. * NLAlib.SmallEig.smallEigAlgorithm: the certificate.

Main results

* NLAlib.SmallEig.confined_smallEigModel, NLAlib.SmallEig.uniform_smallEigModel, NLAlib.SmallEig.charged_smallEigModel: the model is confined, uniform and charged. * NLAlib.SmallEig.smallEigModel_laws: the laws the program proofs use. * NLAlib.SmallEig.smallEigProgram_work_le: the work and span of every run. * NLAlib.SmallEig.smallEig_algorithm_measureReal_not_accepts_le: the headline, on one run.

Declarations