NLA-lib Explorer

NLAlib.Sign.signAlgorithm

Library · def

Uniform model Work: program manifest

Functional scalar, index, matrix and comparison contracts suffice for total execution at every admitted raw input and cap. The distinct decoded zero and one premise makes the matrix stopping predicate agree with its mathematical definition. No success or numerical accuracy assumption is needed for this exact word-result certificate.

NLAlib.Sign.signAlgorithm {K Su Sg : Type} [Inhabited K] (M : Ops.Machine K) (dec : K → ℝ)
  (mm : MatMulMap (K × K)) (qr : QRMap (K × K)) (unif : K → Su → K) (normal : Sg → K × K)
  (domain : (Fin 2 → ℕ) → Prop) (admitted : ∃ d, domain d)
  (matrixWork matrixWorkspace : Ops.MatrixOp → List ℕ → ℕ) (h01 : dec (M.lit 0) ≠ dec (M.lit 1)) :
  Ops.Algorithm
    (Ops.Dense.functionalModel (Sign.problem domain admitted) M dec (Ops.EntryCodec.pair K)
      (fun {l m n} ↦ mm) (fun {m n} ↦ qr) (Ops.Dense.resources matrixWork matrixWorkspace))
    (Sign.wordSpecification M dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) unif normal domain admitted
      matrixWork matrixWorkspace)

Full source on GitHub

Import NLAlib.Eigensolvers.Sign.Certification.