NLA-lib Explorer

NLAlib.Krylov.GolubKahan.Band.ExtAt.exists_blocks

Library · theorem

Readback of a stored extension from the whole stored basis and from a longer coefficient buffer. If the basis of the extension is the first i blocks of b columns of a readable block full of N columns, and its coefficient block starts at the offset o of a readable block cfull, the extension predicate holds of the first i blocks and of block i of the decoded full and of the decoded coefficient words from the offset o on.

NLAlib.Krylov.GolubKahan.Band.ExtAt.exists_blocks {K : Type} [Inhabited K] {dec : K → ℝ}
  {Ext : Ops.ExtendPred ℝ} {s : Ops.Store K} {r k b i N o L : ℕ} {Q C : ℕ × ℕ}
  {P : Matrix (Fin r) (Fin b) ℝ → Prop} {full cfull : List K}
  (h : Krylov.GolubKahan.Band.ExtAt dec Ext s r k b Q (C.1, C.2 + o) P) (hk : k = i * b)
  (hN : i * b + b ≤ N) (hq : s.readBlock Q.1 Q.2 (N * r) = some full)
  (hc : s.readBlock C.1 C.2 L = some cfull) (hL : o + (k + b) * b ≤ L) :
  ∃ W,
    P W ∧
      Ext r (i * b) b (blockPrefix b (Ops.decodeMatrix dec r N full) i) W
        (blockCols b (Ops.decodeMatrix dec r N full) i)
        (Ops.coefTop (Ops.decodeMatrix dec (i * b + b) b (List.drop o cfull)))
        (Ops.coefBot (Ops.decodeMatrix dec (i * b + b) b (List.drop o cfull)))

Full source on GitHub

Import NLAlib.Krylov.GolubKahan.Band.StoredExtension.