NLA-lib Explorer

NLAlib.submatrix_eq_fromBlocks_of_isolated_coordinate

Library · theorem

Isolating row and column i of \mathbf{M} at \mu gives the scalar direct-sum block [\mu]\oplus\mathbf{B}, where \mathbf{B} deletes row and column i. This derives the paired deflation block from the existing one-column block decomposition. Adapted from NLAlib.submatrix_eq_fromBlocks_of_isolated_coordinate in tchen-research/NLAlib at 77514ce42a0e437d837797a063ac161f41022730.

NLAlib.submatrix_eq_fromBlocks_of_isolated_coordinate.{u_1, u_4} {K : Type u_1} [Field K]
  {n : Type u_4} [DecidableEq n] (M : Matrix n n K) (i : n) (μ : K)
  (hcol : ∀ (j : n), M j i = if j = i then μ else 0)
  (hrow : ∀ (j : n), M i j = if j = i then μ else 0) :
  M.submatrix ⇑(Equiv.sumCompl fun j ↦ j = i) ⇑(Equiv.sumCompl fun j ↦ j = i) =
    fromBlocks (diagonal fun x ↦ μ) 0 0 (M.submatrix (fun j ↦ ↑j) fun j ↦ ↑j)

Full source on GitHub

Import NLAlib.Matrix.Spectral.EigenvalueListing.