NLA-lib Explorer

NLAlib.Deflation.deflate_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). Every matrix is admitted. The accuracy of the basis holds with probability over the draws: NLAlib.Deflation.measureReal_not_accepts_le_of_reference.

NLAlib.Deflation.deflate_checked {K : Type} [Inhabited K] (M : Ops.Machine K) (dec : K → ℝ)
  (mm : MatMulMap (K × K)) (qr : QRMap (K × K)) (domain : (Fin 2 → ℕ) → Prop)
  (admitted : ∃ d, domain d) (matrixWork matrixWorkspace : Ops.MatrixOp → List ℕ → ℕ)
  (hRank : ∀ (d : Fin 2 → ℕ), domain d → d 1 ≤ d 0) :
  (Deflation.inputs domain admitted).Checked
    (Deflation.deflateAlgorithm M dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) domain admitted matrixWork
      matrixWorkspace hRank)

Full source on GitHub

Import NLAlib.Eigensolvers.Deflation.Certification.