NLA-lib Explorer

NLAlib.Krylov.GolubKahan.Band.readBlock_drop_take_eq

Library · theorem

A block read inside a longer block that was read is the corresponding part.

NLAlib.Krylov.GolubKahan.Band.readBlock_drop_take_eq {K : Type} {s : Ops.Store K} {B o N a n : ℕ}
  {full sub : List K} (hfull : s.readBlock B o N = some full)
  (hsub : s.readBlock B (o + a) n = some sub) (hn : a + n ≤ N) :
  sub = List.take n (List.drop a full)

Full source on GitHub

Import NLAlib.Krylov.GolubKahan.Band.StoredExtension.