NLA-lib Explorer

NLAlib.Krylov.GolubKahan.Band.linked_certifies

Library · theorem

The linked program is certified in total mode over every lower model whose interpretations have the exact products with the supplied matrix, draws from the tape, and certify the scheme E against the exact contract of a basis extension. For all sizes (m, n, \mathbf{b}, q), every real m \times n matrix and every tape, the counted run of the linked program succeeds within its static budget, scratch, work, span and memory, consumes n\mathbf{b} words of the tape, releases its scratch and leaves five output blocks that decode to an exact run. The only hypothesis on the linked tree is that it is well typed for the lower resources, a decidable property of the scheme.

NLAlib.Krylov.GolubKahan.Band.linked_certifies {Lo : Type} [Ops.Has Ops.OperatorPairOp Lo]
  [Ops.Has Ops.SampleOp Lo]
  (L : Ops.AccessModel Lo Ops.CmpTst Krylov.GolubKahan.Band.Certification.problem)
  (E : Ops.Stmt Lo Ops.CmpTst) (stream : ℕ)
  (ht :
    (Krylov.GolubKahan.Band.linkedSolveProgram E stream).wellTyped L.resources
        Krylov.GolubKahan.Band.Certification.problem.formats =
      true)
  (hA :
    ∀ (d : Fin 4 → ℕ) (x : Krylov.GolubKahan.Band.Certification.problem.Input d)
      (I : Ops.Interp Lo Ops.CmpTst ℝ), L.contracts d x I → Ops.IsExactMatvecPair id (↑x).1 I)
  (hSample :
    ∀ (d : Fin 4 → ℕ) (x : Krylov.GolubKahan.Band.Certification.problem.Input d)
      (I : Ops.Interp Lo Ops.CmpTst ℝ), L.contracts d x I → Ops.IsSample I)
  (hE :
    ∀ (d : Fin 4 → ℕ) (x : Krylov.GolubKahan.Band.Certification.problem.Input d)
      (I : Ops.Interp Lo Ops.CmpTst ℝ),
      L.contracts d x I → (Ops.extendRoutine E).Meets I (Ops.exactExtendSpec id)) :
  (Krylov.GolubKahan.Band.linkedSolveProgram E stream).Certifies L
    (Krylov.GolubKahan.Band.linkedSolveSpecification L.resources E stream)

Full source on GitHub

Import NLAlib.Krylov.GolubKahan.Band.Linked.