NLA-lib Explorer

NLAlib.ShiftedQR.deflation_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).

NLAlib.ShiftedQR.deflation_checked (D : Ops.Stmt ShiftedQR.Op ShiftedQR.Tst)
  (kernelWork kernelWorkspace : ShiftedQR.EigenvalueKernelOp → List ℕ → ℕ)
  (hTyped :
    (ShiftedQR.deflationProgram D).wellTyped (ShiftedQR.resources kernelWork kernelWorkspace)
        ShiftedQR.deflationProblem.formats =
      true)
  (hD :
    ∀ (θ : ℝ) (hθ : 1 ≤ θ) (I : Ops.Interp ShiftedQR.Op ShiftedQR.Tst ℝ),
      Ops.IsScalar Ops.exactMachine I →
        Ops.IsIndexLit Ops.exactMachine I →
          Ops.IsCmp id I →
            Ops.IsToNat id I →
              ShiftedQR.IsEigenvalueKernels (ShiftedQR.exactRoutinesFor θ hθ) I →
                ShiftedQR.DecouplingContract θ D I) :
  (ShiftedQR.deflationInputs.cast (ShiftedQR.deflationRoutine D) ⋯ ⋯).Checked
    (ShiftedQR.deflationAlgorithm D kernelWork kernelWorkspace hTyped hD)

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.DeflationCertification.