NLA-lib Explorer

NLAlib.SpectralBisection.bisection_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 accuracy of the stored diagonalization holds with probability over the draws: NLAlib.SpectralBisection.countedBisectionClaim.

NLAlib.SpectralBisection.bisection_checked {K : Type} [Inhabited K] (M : Ops.Machine K)
  (dec : K → ℝ) (mm : MatMulMap (K × K)) (qr : QRMap (K × K)) (domain : (Fin 3 → ℕ) → Prop)
  (admitted : ∃ d, domain d) (matrixWork matrixWorkspace : Ops.MatrixOp → List ℕ → ℕ)
  (hLit : ∀ (d : Fin 3 → ℕ), domain d → Ops.IsExactNatLit dec M (max (d 0) 4)) :
  (SpectralBisection.inputs domain admitted).Checked
    (SpectralBisection.bisectionAlgorithm M dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) domain admitted
      matrixWork matrixWorkspace hLit)

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.Certification.