NLA-lib Explorer

NLAlib.ShiftedQR.exists_flatMap_pair_eq

Library · theorem

A list of 2k words is the interleaved pair list of k complex numbers.

NLAlib.ShiftedQR.exists_flatMap_pair_eq {xs : List ℝ} {k : ℕ} (h : xs.length = 2 * k) :
  ∃ zs, zs.length = k ∧ List.flatMap (fun z ↦ [z.re, z.im]) zs = xs

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.StableStepTermination.