NLA-lib Explorer

NLAlib.LinearSystems.Refinement.ResidualPrefix.succ

Library · theorem

Standard rounding

Writing the accumulated word of row i extends the prefix of the residual.

NLAlib.LinearSystems.Refinement.ResidualPrefix.succ {K : Type} [Inhabited K] {M : Ops.Machine K}
  {u : ℝ} {dec : K → ℝ} (hM : Ops.StdModel u dec M) {n i : ℕ} {As bs xs : List K} {W : ℕ → K}
  (h : LinearSystems.Refinement.ResidualPrefix u dec n As bs xs W i) :
  LinearSystems.Refinement.ResidualPrefix u dec n As bs xs
    (Function.update W i
      (TriangularSolve.mulSubWord M (fun k ↦ Ops.vec As (k * n + i)) (Ops.vec xs) (Ops.vec bs i) n))
    (i + 1)

Full source on GitHub

Import NLAlib.LinearSystems.Refinement.Kernels.