NLA-lib Explorer

NLAlib.ShiftedQR.Store.exists_readBlock_flatMap_pair

Library · theorem

A stored block of 2k words holds k complex numbers as interleaved pairs.

NLAlib.ShiftedQR.Store.exists_readBlock_flatMap_pair {s : Ops.Store ℝ} {b off k : ℕ} {xs : List ℝ}
  (h : s.readBlock b off (2 * k) = some xs) :
  ∃ zs,
    zs.length = k ∧
      s.readBlock b off (2 * zs.length) = some (List.flatMap (fun z ↦ [z.re, z.im]) zs)

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.StableStepTermination.