NLA-lib Explorer

NLAlib.CGS2.exists_readBlock_column

Library · theorem

A block of r cells whose first j cells hold a, whose cell j holds d and whose later cells hold z is read back as a list with those entries.

NLAlib.CGS2.exists_readBlock_column {K : Type} [Inhabited K] {s : Ops.Store K} {bC o j r : ℕ}
  {a : ℕ → K} {d z : K} (hjr : j < r) (ha : ∀ i < j, s.get bC (o + i) = some (a i))
  (hd : s.get bC (o + j) = some d) (hz : ∀ (i : ℕ), j < i → i < r → s.get bC (o + i) = some z) :
  ∃ cc,
    s.readBlock bC o r = some cc ∧
      (∀ i < j, Ops.vec cc i = a i) ∧ Ops.vec cc j = d ∧ ∀ (i : ℕ), j < i → i < r → Ops.vec cc i = z

Full source on GitHub

Import NLAlib.Krylov.Orthogonalization.CGS2.ExtendColumn.