NLA-lib Explorer

NLAlib.Krylov.GolubKahan.Band.solveSpecOf_post

Library · theorem

The postcondition of the specification of the driver, read on five operands holding the reported blocks: the blocks decode to a run from the start block drawn at the position p of the call.

NLAlib.Krylov.GolubKahan.Band.solveSpecOf_post {K : Type} [Inhabited K] {stream : ℕ} {dec : K → ℝ}
  {m n b q p : ℕ} {ok : ℕ → ℕ → ℕ → Prop} {Run : (b q : ℕ) → Krylov.GolubKahan.Band.RunPred m n b q}
  {τ : Ops.Tape K} {μ : Ops.Mem K} {U V G R S : ℕ × ℕ} {ys : List (List K)}
  (hys : μ.readBlocks [U, V, G, R, S] (Krylov.GolubKahan.Band.outLens m n b q) = some ys)
  (hpost :
    (Krylov.GolubKahan.Band.solveSpecOf stream dec m n ok Run).post [m, n, b, q] (τ.shift p) []
      ys) :
  ∃ us vs gs rs ss,
    μ.readBlocks [U, V, G, R, S] (Krylov.GolubKahan.Band.outLens m n b q) =
        some [us, vs, gs, rs, ss] ∧
      Krylov.GolubKahan.Band.StoredOut dec m n b q (Run b q) (τ.window stream p (n * b)) us vs gs rs
        ss

Full source on GitHub

Import NLAlib.Krylov.GolubKahan.Band.Solve.