NLA-lib Explorer

NLAlib.Sign.sign_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 and pair of parameters is admitted.

NLAlib.Sign.sign_checked {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)) :
  (Sign.inputs domain admitted).Checked
    (Sign.signAlgorithm M dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) unif normal domain admitted
      matrixWork matrixWorkspace h01)

Full source on GitHub

Import NLAlib.Eigensolvers.Sign.Certification.