NLA-lib Explorer

NLAlib.Ops.ContextDenseRounded.callS_source_fn_of_ne

Library · theorem

A selected context leaf supplies a functional matrix-vector call, including its actual rounded output, without requiring a local accuracy or whole-algorithm callback.

NLAlib.Ops.ContextDenseRounded.callS_source_fn_of_ne {Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
  {Src : Type} {I : Ops.Interp Op Tst ℝ} {M : Ops.Machine ℝ} (hS : Ops.IsScalar M I)
  (context : List (ℕ × ℕ)) (index : Fin context.length) {table : Ops.ContextTable Src Op Tst}
  {o : Src} (hTable : table o = Sum.inl (Ops.ContextDense.impl context.length ↑index)) {n : ℕ}
  (raw : List ℝ) {τ : Ops.Tape ℝ} {mem : Ops.Mem ℝ} (hLive : mem.Live context)
  (hData : mem.store.readBlock context[index].1 context[index].2 (n * n) = some raw) {d : List ℕ}
  {ins outs : List (ℕ × ℕ)} (hOut : ∀ z ∈ outs, z.1 ≠ context[index].1)
  (hp :
    (((Ops.matvecFn (Ops.ContextDenseRounded.wordKernel M n raw)).rel.spec
              (Ops.MatvecOperands n n)).on
          Ops.Mode.total d ins outs τ mem).pre
      mem) :
  Ops.Mode.total.Holds ((I.linkContext table context).callS o d ins outs τ mem)
    ((((Ops.matvecFn (Ops.ContextDenseRounded.wordKernel M n raw)).rel.spec
              (Ops.MatvecOperands n n)).on
          Ops.Mode.total d ins outs τ mem).post
      mem)

Full source on GitHub

Import NLAlib.Ops.Profiles.ContextLinearRoundedGuarded.