NLA-lib Explorer

Canonical exact certificate of the block Golub–Kahan program

Library · Source module

Canonical exact certificate of the block Golub–Kahan program

The program NLAlib.Krylov.GolubKahan.Band.solveProgram is certified against a closed operation model whose operations are the two products with a matrix \mathbf{A}, the extension of a stored basis by a block and scalar draws. The matrix is the semantic datum of the problem and is reached only through the two products (the matrix-free form of the Lanczos certificates); the five supplied buffers are the uninitialized output blocks. The contract of the basis extension is the exact relation NLAlib.Ops.exactExtendRel, not a function: the certificate holds for every interpretation that meets it, hence for every exact orthogonalization scheme after linking (NLAlib/Krylov/GolubKahan/Band/Linked.lean).

Realization. An operation model carries a joint realization of its contracts (NLAlib.Ops.AccessModel.realize), so the model can only be defined with one exact scheme at hand. Here it is the block function NLAlib.Krylov.GolubKahan.Band.Certification.exactExtendFn, which returns an extension chosen by NLAlib.exists_isBasisExtension; it is a witness of consistency and appears in no contract. Every dimension (m, n, \mathbf{b}, q) is admitted.

Declared oracle. The pair of products NLAlib.Ops.OperatorPairOp is the declared oracle of the certificate: its contracts name the matrix of the input. The model is therefore confined (NLAlib.Krylov.GolubKahan.Band.Certification.confined_model: every contract is in operand form) and not uniform. It is not charged: the work of the primitives is a parameter.

Resources. The budget is the static count of the fixed tree, a manifest. Its primitive part is NLAlib.Krylov.GolubKahan.Band.solveCount: n\mathbf{b} draws, q\mathbf{b} products with \mathbf{A}, q\mathbf{b} products with \mathbf{A}^{\mathsf{H}} and 2q + 1 basis extensions. The scratch is closed: NLAlib.Krylov.GolubKahan.Band.solvePeak, the block of \max(m, n)\,\mathbf{b} words of the products plus the largest workspace of a primitive call of the run, plus the reservation of the queries. Design: docs/design/LowRank-BlockLanczos.md §4.1.

Main definitions

* NLAlib.Krylov.GolubKahan.Band.solveCount: the primitive counts of a run. * NLAlib.Krylov.GolubKahan.Band.primitivePeak, NLAlib.Krylov.GolubKahan.Band.solvePeak: the scratch of a run in closed form. * NLAlib.Krylov.GolubKahan.Band.Certification.Operation, NLAlib.Krylov.GolubKahan.Band.Certification.contract, NLAlib.Krylov.GolubKahan.Band.Certification.resources, NLAlib.Krylov.GolubKahan.Band.Certification.model: the operation model. * NLAlib.Krylov.GolubKahan.Band.Certification.exactExtension, NLAlib.Krylov.GolubKahan.Band.Certification.stackCoef, NLAlib.Krylov.GolubKahan.Band.Certification.exactExtendFn, NLAlib.Krylov.GolubKahan.Band.Certification.functions: the realization. * NLAlib.Krylov.GolubKahan.Band.Certification.slots, NLAlib.Krylov.GolubKahan.Band.Certification.problem, NLAlib.Krylov.GolubKahan.Band.Certification.matrix, NLAlib.Krylov.GolubKahan.Band.Certification.outputs: the supplied buffers. * NLAlib.Krylov.GolubKahan.Band.Certification.storedProduct, NLAlib.Krylov.GolubKahan.Band.Certification.Good, NLAlib.Krylov.GolubKahan.Band.Certification.staticBudget, NLAlib.Krylov.GolubKahan.Band.Certification.specification, NLAlib.Krylov.GolubKahan.Band.Certification.algorithm: the specification and the certificate.

Main results

* NLAlib.Krylov.GolubKahan.Band.stmtCost_applyColumns, NLAlib.Krylov.GolubKahan.Band.stmtCost_step, NLAlib.Krylov.GolubKahan.Band.stmtCost_solve, NLAlib.Krylov.GolubKahan.Band.stmtPeak_solve_le, NLAlib.Krylov.GolubKahan.Band.stmtPeak_solve_le_solvePeak: the static count and scratch of the program. * NLAlib.Krylov.GolubKahan.Band.Certification.coefTop_stackCoef, NLAlib.Krylov.GolubKahan.Band.Certification.coefBot_stackCoef, NLAlib.Krylov.GolubKahan.Band.Certification.decodeMatrix_packFinMatrix: the packed round trip. * NLAlib.Krylov.GolubKahan.Band.Certification.isBasisExtension_exactExtension, NLAlib.Krylov.GolubKahan.Band.Certification.satisfies_exactExtendFn: the chosen extension realizes the exact contract. * NLAlib.Krylov.GolubKahan.Band.Certification.confined_contract, NLAlib.Krylov.GolubKahan.Band.Certification.confined_model: the model is confined. * NLAlib.Krylov.GolubKahan.Band.Certification.laws: the contracts of an interpretation of the model. * NLAlib.Krylov.GolubKahan.Band.Certification.initial_len, NLAlib.Krylov.GolubKahan.Band.Certification.initial_room, NLAlib.Krylov.GolubKahan.Band.Certification.initialBytes_problem: the initial memory. * NLAlib.Krylov.GolubKahan.Band.Certification.wellTyped_solveProgram, NLAlib.Krylov.GolubKahan.Band.Certification.original_staticBudget, NLAlib.Krylov.GolubKahan.Band.Certification.staticPeak_solveProgram_le, NLAlib.Krylov.GolubKahan.Band.Certification.staticPeak_solveProgram_le_solvePeak: formats, counts, scratch. * NLAlib.Krylov.GolubKahan.Band.Certification.Good.storedProduct_eq_rsvd: the stored factors. * NLAlib.Krylov.GolubKahan.Band.Certification.solveProgram_wp, NLAlib.Krylov.GolubKahan.Band.Certification.certifies: total execution and certification.

Declarations