NLA-lib Explorer

NLAlib.det_add_vecMulVec

Library · theorem

The matrix determinant lemma: for invertible \mathbf{M} over a field, \det(\mathbf{M} + \mathbf{u}\mathbf{v}^{\mathsf{T}}) = \det \mathbf{M} \, (1 + \mathbf{v}^{\mathsf{T}}\mathbf{M}^{-1}\mathbf{u}). [HornJohnson2013, §0.8.5] (locator to check).

NLAlib.det_add_vecMulVec.{u_2, u_3} {n : Type u_2} [Fintype n] [DecidableEq n] {K : Type u_3}
  [Field K] {M : Matrix n n K} (hM : IsUnit M.det) (u v : n → K) :
  (M + vecMulVec u v).det = M.det * (1 + v ⬝ᵥ M⁻¹ *ᵥ u)

Full source on GitHub

Import NLAlib.Matrix.Spectral.RankOneUpdate.