NLA-lib Explorer

NLAlib.Krylov.CG.HSPCG.Certification.algorithm_checked

Library · theorem

What the certificate states: at every admitted size, for every admitted input, every interpretation satisfying the contracts of the model and every tape, the run of the fixed program from the supplied buffers succeeds within the scratch, the budget, the work, the span and the memory of the specification, and its final memory satisfies the output condition (NLAlib.Ops.Inputs.Checked). The matrix and the preconditioner are in no buffer: they are reached only through the two product operations, and the work is counted in calls of them (NLAlib.Krylov.CG.HSPCG.Certification.oracles).

NLAlib.Krylov.CG.HSPCG.Certification.algorithm_checked (domain : (Fin 2 → ℕ) → Prop)
  (admitted : ∃ d, domain d)
  (supply : ∀ (d : Fin 2 → ℕ), domain d → ∃ x, Krylov.CG.HSPCG.Certification.accepts d x)
  (cost : Ops.Standard.Costing) (aw ap sw sp : List ℕ → ℕ) :
  (Krylov.CG.HSPCG.Certification.inputs domain admitted supply).Checked
    (Krylov.CG.HSPCG.Certification.algorithm domain admitted supply cost aw ap sw sp)

Full source on GitHub

Import NLAlib.Krylov.CG.HSPCG.Certification.