The areas / V07. Linear algebra
Mathlib.LinearAlgebra.Matrix.Invertible
27 declarations. Mathlib docs · Source
Extra lemmas about invertible matrices
A few of the Invertible lemmas generalize to multiplication of rectangular matrices.
For lemmas about the matrix inverse in terms of the determinant and adjugate, see Matrix.inv
in Mathlib/LinearAlgebra/Matrix/NonsingularInverse.lean.
Main results
Matrix.invertibleConjTransposeMatrix.invertibleTransposeMatrix.isUnit_conjTransposeMatrix.isUnit_transpose
theorem Matrix.invOf_mul_cancel_left E1 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : Semiring α]
(A : Matrix n n α) (B : Matrix n m α) [inst_3 : Invertible A], ⅟A * (A * B) = B
A copy of invOf_mul_cancel_left for rectangular matrices.
theorem Matrix.mul_invOf_cancel_left E1 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : Semiring α]
(A : Matrix n n α) (B : Matrix n m α) [inst_3 : Invertible A], A * (⅟A * B) = B
A copy of mul_invOf_cancel_left for rectangular matrices.
theorem Matrix.invOf_mul_cancel_right E1 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : Semiring α]
(A : Matrix m n α) (B : Matrix n n α) [inst_3 : Invertible B], A * ⅟B * B = A
A copy of invOf_mul_cancel_right for rectangular matrices.
theorem Matrix.mul_invOf_cancel_right E1 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : Semiring α]
(A : Matrix m n α) (B : Matrix n n α) [inst_3 : Invertible B], A * B * ⅟B = A
A copy of mul_invOf_cancel_right for rectangular matrices.
theorem Matrix.invOf_mul_eq_iff_eq_mul_left E1 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : Semiring α]
{A B : Matrix n m α} {C : Matrix n n α} [inst_3 : Invertible C], ⅟C * A = B ↔ A = C * B
A copy oy of invOf_mul_eq_iff_eq_mul_left for rectangular matrices.
theorem Matrix.mul_left_eq_iff_eq_invOf_mul E1 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : Semiring α]
{A B : Matrix n m α} {C : Matrix n n α} [inst_3 : Invertible C], C * A = B ↔ A = ⅟C * B
A copy oy of mul_left_eq_iff_eq_invOf_mul for rectangular matrices.
theorem Matrix.mul_invOf_eq_iff_eq_mul_right E1 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : Semiring α]
{A B : Matrix m n α} {C : Matrix n n α} [inst_3 : Invertible C], A * ⅟C = B ↔ A = B * C
A copy oy of mul_invOf_eq_iff_eq_mul_right for rectangular matrices.
theorem Matrix.mul_right_eq_iff_eq_mul_invOf E1 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : Semiring α]
{A B : Matrix m n α} {C : Matrix n n α} [inst_3 : Invertible C], A * C = B ↔ A = B * ⅟C
A copy oy of mul_right_eq_iff_eq_mul_invOf for rectangular matrices.
instance Matrix.invertibleConjTranspose E3 #
{n : Type u_2} →
{α : Type u_3} →
[inst : Fintype n] →
[inst_1 : DecidableEq n] →
[inst_2 : Semiring α] → [inst_3 : StarRing α] → (A : Matrix n n α) → [Invertible A] → Invertible A.conjTranspose
The conjugate transpose of an invertible matrix is invertible.
theorem Matrix.conjTranspose_invOf E1 #
∀ {n : Type u_2} {α : Type u_3} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : Semiring α] [inst_3 : StarRing α]
(A : Matrix n n α) [inst_4 : Invertible A] [inst_5 : Invertible A.conjTranspose],
(⅟A).conjTranspose = ⅟A.conjTranspose
def Matrix.invertibleOfInvertibleConjTranspose E1 #
{n : Type u_2} →
{α : Type u_3} →
[inst : Fintype n] →
[inst_1 : DecidableEq n] →
[inst_2 : Semiring α] → [inst_3 : StarRing α] → (A : Matrix n n α) → [Invertible A.conjTranspose] → Invertible A
A matrix is invertible if the conjugate transpose is invertible.
theorem Matrix.isUnit_conjTranspose E3 #
∀ {n : Type u_2} {α : Type u_3} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : Semiring α] [inst_3 : StarRing α]
(A : Matrix n n α), IsUnit A.conjTranspose ↔ IsUnit A
instance Matrix.invertibleTranspose E3 #
{n : Type u_2} →
{α : Type u_3} →
[inst : Fintype n] →
[inst_1 : DecidableEq n] →
[inst_2 : CommSemiring α] → (A : Matrix n n α) → [Invertible A] → Invertible A.transpose
The transpose of an invertible matrix is invertible.
theorem Matrix.transpose_invOf E1 #
∀ {n : Type u_2} {α : Type u_3} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : CommSemiring α] (A : Matrix n n α)
[inst_3 : Invertible A] [inst_4 : Invertible A.transpose], (⅟A).transpose = ⅟A.transpose
def Matrix.invertibleOfInvertibleTranspose E1 #
{n : Type u_2} →
{α : Type u_3} →
[inst : Fintype n] →
[inst_1 : DecidableEq n] →
[inst_2 : CommSemiring α] → (A : Matrix n n α) → [Invertible A.transpose] → Invertible A
Aᵀ is invertible when A is.
def Matrix.transposeInvertibleEquivInvertible E1 #
{n : Type u_2} →
{α : Type u_3} →
[inst : Fintype n] →
[inst_1 : DecidableEq n] → [inst_2 : CommSemiring α] → (A : Matrix n n α) → Invertible A.transpose ≃ Invertible A
Together Matrix.invertibleTranspose and Matrix.invertibleOfInvertibleTranspose form an
equivalence, although both sides of the equiv are subsingleton anyway.
theorem Matrix.transposeInvertibleEquivInvertible_symm_apply E0 #
∀ {n : Type u_2} {α : Type u_3} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : CommSemiring α] (A : Matrix n n α)
[inst_3 : Invertible A], A.transposeInvertibleEquivInvertible.symm inst_3 = A.invertibleTranspose
theorem Matrix.transposeInvertibleEquivInvertible_apply E0 #
∀ {n : Type u_2} {α : Type u_3} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : CommSemiring α] (A : Matrix n n α)
[inst_3 : Invertible A.transpose], A.transposeInvertibleEquivInvertible inst_3 = A.invertibleOfInvertibleTranspose
theorem Matrix.isUnit_transpose E3 #
∀ {n : Type u_2} {α : Type u_3} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : CommSemiring α]
(A : Matrix n n α), IsUnit A.transpose ↔ IsUnit A
theorem Matrix.add_mul_mul_invOf_mul_eq_one E1 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : Fintype m]
[inst_3 : DecidableEq m] [inst_4 : Ring α] (A : Matrix n n α) (U : Matrix n m α) (C : Matrix m m α) (V : Matrix m n α)
[inst_5 : Invertible A] [inst_6 : Invertible C] [inst_7 : Invertible (⅟C + V * ⅟A * U)],
(A + U * C * V) * (⅟A - ⅟A * U * ⅟(⅟C + V * ⅟A * U) * V * ⅟A) = 1
theorem Matrix.add_mul_mul_invOf_mul_eq_one' E1 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : Fintype m]
[inst_3 : DecidableEq m] [inst_4 : Ring α] (A : Matrix n n α) (U : Matrix n m α) (C : Matrix m m α) (V : Matrix m n α)
[inst_5 : Invertible A] [inst_6 : Invertible C] [inst_7 : Invertible (⅟C + V * ⅟A * U)],
(⅟A - ⅟A * U * ⅟(⅟C + V * ⅟A * U) * V * ⅟A) * (A + U * C * V) = 1
Like add_mul_mul_invOf_mul_eq_one, but with multiplication reversed.
def Matrix.invertibleAddMulMul E1 #
{m : Type u_1} →
{n : Type u_2} →
{α : Type u_3} →
[inst : Fintype n] →
[inst_1 : DecidableEq n] →
[inst_2 : Fintype m] →
[inst_3 : DecidableEq m] →
[inst_4 : Ring α] →
(A : Matrix n n α) →
(U : Matrix n m α) →
(C : Matrix m m α) →
(V : Matrix m n α) →
[inst_5 : Invertible A] →
[inst_6 : Invertible C] → [Invertible (⅟C + V * ⅟A * U)] → Invertible (A + U * C * V)
If matrices A, C, and C⁻¹ + V * A⁻¹ * U are invertible, then so is A + U * C * V.
theorem Matrix.invOf_add_mul_mul E3 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : Fintype m]
[inst_3 : DecidableEq m] [inst_4 : Ring α] (A : Matrix n n α) (U : Matrix n m α) (C : Matrix m m α) (V : Matrix m n α)
[inst_5 : Invertible A] [inst_6 : Invertible C] [inst_7 : Invertible (⅟C + V * ⅟A * U)]
[inst_8 : Invertible (A + U * C * V)], ⅟(A + U * C * V) = ⅟A - ⅟A * U * ⅟(⅟C + V * ⅟A * U) * V * ⅟A
The Woodbury Identity (⅟ version).
See Matrix.invOf_add_mul_mul' for the Binomial Inverse Theorem.
theorem Matrix.add_mul_mul_mul_invOf_eq_one E1 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : Fintype m]
[inst_3 : DecidableEq m] [inst_4 : Ring α] (A : Matrix n n α) (U : Matrix n m α) (C : Matrix m m α) (V : Matrix m n α)
[inst_5 : Invertible A] [inst_6 : Invertible (C + C * V * ⅟A * U * C)],
(A + U * C * V) * (⅟A - ⅟A * U * C * ⅟(C + C * V * ⅟A * U * C) * C * V * ⅟A) = 1
theorem Matrix.add_mul_mul_mul_invOf_eq_one' E1 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : Fintype m]
[inst_3 : DecidableEq m] [inst_4 : Ring α] (A : Matrix n n α) (U : Matrix n m α) (C : Matrix m m α) (V : Matrix m n α)
[inst_5 : Invertible A] [inst_6 : Invertible (C + C * V * ⅟A * U * C)],
(⅟A - ⅟A * U * C * ⅟(C + C * V * ⅟A * U * C) * C * V * ⅟A) * (A + U * C * V) = 1
def Matrix.invertibleAddMulMul' E1 #
{m : Type u_1} →
{n : Type u_2} →
{α : Type u_3} →
[inst : Fintype n] →
[inst_1 : DecidableEq n] →
[inst_2 : Fintype m] →
[inst_3 : DecidableEq m] →
[inst_4 : Ring α] →
(A : Matrix n n α) →
(U : Matrix n m α) →
(C : Matrix m m α) →
(V : Matrix m n α) →
[inst_5 : Invertible A] → [Invertible (C + C * V * ⅟A * U * C)] → Invertible (A + U * C * V)
If matrices A and C + C * V * A⁻¹ * U * C are invertible, then so is A + U * C * V.
theorem Matrix.invOf_add_mul_mul' E2 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : Fintype m]
[inst_3 : DecidableEq m] [inst_4 : Ring α] (A : Matrix n n α) (U : Matrix n m α) (C : Matrix m m α) (V : Matrix m n α)
[inst_5 : Invertible A] [inst_6 : Invertible (C + C * V * ⅟A * U * C)] [inst_7 : Invertible (A + U * C * V)],
⅟(A + U * C * V) = ⅟A - ⅟A * U * C * ⅟(C + C * V * ⅟A * U * C) * C * V * ⅟A
The Binomial Inverse Theorem (⅟ version).
See Matrix.invOf_add_mul_mul for the Woodbury identity.