NLA-lib Explorer

NLAlib.inv_aeval_shiftPoly_pow_apply_last

Library · theorem

The last row of an inverse power of a shift polynomial by successive row solves: \mathbf{e}_n^{\mathsf{H}}p(\mathbf{H})^{-e}, p(z) = \prod_{s \in \mathrm{ss}}(z - s), is \mathbf{e}_n^{\mathsf{H}} multiplied on the right by (\mathbf{H} - s\mathbf{I})^{-1} for each shift of ss, repeated e times. The factors commute; with a singular factor both sides are \mathbf{0} for e \ge 1 (Lean's inverse of a singular matrix is \mathbf{0}). [BanksGarzaVargasSrivastava2021, §4.3].

NLAlib.inv_aeval_shiftPoly_pow_apply_last {n : ℕ} (H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ)
  (ss : List ℂ) (e : ℕ) :
  (((Polynomial.aeval H) (shiftPoly ss))⁻¹ ^ e) (Fin.last n) =
    List.foldl (fun v s ↦ v ᵥ* (H - s • 1)⁻¹) (Pi.single (Fin.last n) 1)
      (List.replicate e ss).flatten

Full source on GitHub

Import NLAlib.Matrix.QRIteration.FindRitzSolve.