NLA-lib Explorer

Jacobi's complementary minor formula

Library · Result group

Theorem (Matrix.det_inv_submatrix_inr). 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.

Headline (provisional)

Lean statement and details
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

Copy link

Other forms

Theorem (Matrix.det_inv_toBlocks₂₂). Jacobi's complementary minor formula, block form. For an invertible block matrix \mathbf{M} indexed by p \oplus q, the determinant of the lower right block of \mathbf{M}^{-1} is the determinant of the upper left block of \mathbf{M} divided by \det \mathbf{M}: \det\bigl((\mathbf{M}^{-1})_{22}\bigr) = \frac{\det(\mathbf{M}_{11})}{\det \mathbf{M}}\,. The upper left block may be singular and either block may be empty. [HornJohnson2013, §0.8.4]; here over any field.

Lean statement and details
Matrix.det_inv_toBlocks₂₂.{u_1, u_3, u_4} {K : Type u_1} [Field K] {p : Type u_3} {q : Type u_4}
  [Fintype p] [Fintype q] [DecidableEq p] [DecidableEq q] (M : Matrix (p ⊕ q) (p ⊕ q) K)
  (hM : IsUnit M) : M⁻¹.toBlocks₂₂.det = M.toBlocks₁₁.det / M.det

Full source on GitHub

Copy link