NLA-lib Explorer

NLAlib.Ops.Examples.WorkedInstances.Matvec.run

Library · theorem

At every size, for every matrix and vector and every interpretation of the exact scalar model, the execution rules derive an outcome of the program from the supplied buffers, and the third buffer then holds the product \mathbf{A} \mathbf{x}. The outcome comes from the judgment of the routine (NLAlib.Ops.StoredDense.implRoutine_meets) through the counted certificate of the routine on its problem.

NLAlib.Ops.Examples.WorkedInstances.Matvec.run (d : Fin 2 → ℕ)
  (A : Matrix (Fin (d 0)) (Fin (d 1)) ℝ) (x : Fin (d 1) → ℝ)
  (I : Ops.Interp Ops.ScalarOp Ops.CmpTst ℝ)
  (hI :
    Ops.Examples.WorkedInstances.Matvec.model.contracts d
      (Ops.Examples.WorkedInstances.Matvec.domain.input d (A, x) trivial) I)
  (τ : Ops.Tape ℝ) :
  ∃ st,
    Ops.Reference.Execution Ops.Examples.WorkedInstances.Matvec.program I
        Ops.Examples.WorkedInstances.Matvec.model.resources
        Ops.Examples.WorkedInstances.Matvec.domain.formats τ d
        (Ops.Examples.WorkedInstances.Matvec.domain.memory d (A, x)) st ∧
      st.mem.store.readBlock 2 0 (d 0) = some (List.ofFn (A *ᵥ x))

Full source on GitHub

Import NLAlib.Ops.Examples.WorkedInstances.Matvec.