NLA-lib Explorer

Matrix.det_inv_submatrix_inr

Library · theorem

Headline of jacobi-complementary-minors (provisional)

Jacobi's complementary minor formula. Let the bijections e_r, e_c : p \oplus q \simeq n split the index type of an invertible \mathbf{A} into a selected part p and its complement q, for rows and for columns. The minor of \mathbf{A}^{-1} on rows e_c(q) and columns e_r(q) is the minor of \mathbf{A} on rows e_r(p) and columns e_c(p), times the sign of the permutation e_r^{-1} \circ e_c (ec.trans er.symm), divided by \det \mathbf{A}. [HornJohnson2013, §0.8.4]; stated there for increasing index sets with the sign (-1)^s, s the sum of the selected indices, here for any finite index types over any field. Result: jacobi-complementary-minors

Matrix.det_inv_submatrix_inr.{u_1, u_2, u_3, u_4} {K : Type u_1} [Field K] {n : Type u_2}
  {p : Type u_3} {q : Type u_4} [Fintype n] [Fintype p] [Fintype q] [DecidableEq n] [DecidableEq p]
  [DecidableEq q] (A : Matrix n n K) (hA : IsUnit A) (er ec : p ⊕ q ≃ n) :
  (A⁻¹.submatrix (fun i ↦ ec (Sum.inr i)) fun j ↦ er (Sum.inr j)).det =
    ↑↑(Equiv.Perm.sign (ec.trans er.symm)) *
        (A.submatrix (fun i ↦ er (Sum.inl i)) fun j ↦ ec (Sum.inl j)).det /
      A.det

Full source on GitHub

Import NLAlib.ForMathlib.LinearAlgebra.Matrix.SchurComplement.