Matrix.det_add_single
Library · theorem
Adding a to the (i, j) entry of \mathbf{A} adds a times the (i, j) cofactor, which is \operatorname{adj}(\mathbf{A})_{j,i}, to the determinant: \det(\mathbf{A} + a \mathbf{e}_i \mathbf{e}_j^{\mathsf{T}}) = \det \mathbf{A} + a \operatorname{adj}(\mathbf{A})_{j,i}. No invertibility is assumed.
Matrix.det_add_single.{u_1, u_3} {R : Type u_1} [CommRing R] {n : Type u_3} [Fintype n]
[DecidableEq n] (A : Matrix n n R) (i j : n) (a : R) :
(A + single i j a).det = A.det + a * A.adjugate j iImport NLAlib.ForMathlib.LinearAlgebra.Matrix.Adjugate.