NLA-lib Explorer

NLAlib.ShiftedQR.readBlock_flatMap_pair_window

Library · theorem

A window of the pairs of a stored list of complex numbers.

NLAlib.ShiftedQR.readBlock_flatMap_pair_window {s : Ops.Store ℝ} {b o : ℕ} {l : List ℂ}
  (hl : s.readBlock b o (2 * l.length) = some (List.flatMap (fun z ↦ [z.re, z.im]) l)) {a h : ℕ}
  (hah : a + h ≤ l.length) :
  s.readBlock b (o + 2 * a) (2 * h) =
    some (List.flatMap (fun z ↦ [z.re, z.im]) (List.take h (List.drop a l)))

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.PairBlocks.