Documentation

Mathlib.LinearAlgebra.Matrix.Nondegenerate

Matrices associated with non-degenerate bilinear forms #

Note that while the definitions in this file could be made for NonUnitalNonAssocSemiring, we require associativity to avoid having to distinguish v ⬝ᵥ M *ᵥ w and v ᵥ* M ⬝ᵥ w.

Main definitions #

def Matrix.SeparatingRight {m : Type u_1} {n : Type u_2} {R : Type u_3} [NonUnitalSemiring R] [Finite m] [Finite n] (M : Matrix m n R) :

A matrix M is right-separating if for all w ≠ 0, there is a v with v * M * w ≠ 0.

Equations
Instances For
    def Matrix.SeparatingLeft {m : Type u_1} {n : Type u_2} {R : Type u_3} [NonUnitalSemiring R] [Finite m] [Finite n] (M : Matrix m n R) :

    A matrix M is left-separating if for all v ≠ 0, there is a w with v * M * w ≠ 0.

    Equations
    Instances For
      structure Matrix.Nondegenerate {m : Type u_1} {n : Type u_2} {R : Type u_3} [NonUnitalSemiring R] [Finite m] [Finite n] (M : Matrix m n R) :

      A matrix M is nondegenerate if it is both left-separating and right-separating.

      See also Matrix.Nonsingular.

      Instances For
        theorem Matrix.separatingRight_def {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Fintype m] [Fintype n] :
        M.SeparatingRight ↔ ∀ (w : n → R), (∀ (v : m → R), v ⬝ᵥ M.mulVec w = 0) → w = 0
        theorem Matrix.separatingLeft_def {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Fintype m] [Fintype n] :
        M.SeparatingLeft ↔ ∀ (v : m → R), (∀ (w : n → R), v ⬝ᵥ M.mulVec w = 0) → v = 0
        theorem Matrix.nondegenerate_def {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Fintype m] [Fintype n] :
        M.Nondegenerate ↔ (∀ (v : m → R), (∀ (w : n → R), v ⬝ᵥ M.mulVec w = 0) → v = 0) ∧ ∀ (w : n → R), (∀ (v : m → R), v ⬝ᵥ M.mulVec w = 0) → w = 0
        theorem Matrix.Nondegenerate.eq_zero_of_ortho {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Fintype m] [Fintype n] (hM : M.Nondegenerate) {v : m → R} (hv : ∀ (w : n → R), v ⬝ᵥ M.mulVec w = 0) :
        v = 0

        If M is nondegenerate and v * M * w = 0 for all w, then v = 0.

        theorem Matrix.Nondegenerate.exists_not_ortho_of_ne_zero {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Fintype m] [Fintype n] (hM : M.Nondegenerate) {v : m → R} (hv : v ≠ 0) :
        ∃ (w : n → R), v ⬝ᵥ M.mulVec w ≠ 0

        If M is nondegenerate and v ≠ 0, then there is some w such that v * M * w ≠ 0.

        theorem Matrix.Nondegenerate.eq_zero_of_ortho' {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Fintype m] [Fintype n] (hM : M.Nondegenerate) {w : n → R} (hw : ∀ (v : m → R), v ⬝ᵥ M.mulVec w = 0) :
        w = 0

        If M is nondegenerate and v * M * w = 0 for all v, then w = 0.

        theorem Matrix.Nondegenerate.exists_not_ortho_of_ne_zero' {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Fintype m] [Fintype n] (hM : M.Nondegenerate) {w : n → R} (hw : w ≠ 0) :
        ∃ (v : m → R), v ⬝ᵥ M.mulVec w ≠ 0

        If M is nondegenerate and w ≠ 0, then there is some v such that v * M * w ≠ 0.

        theorem Matrix.SeparatingLeft.eq_zero_of_vecMul_eq_zero {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Fintype m] [Finite n] (hM : M.SeparatingLeft) {v : m → R} (hv : vecMul v M = 0) :
        v = 0
        theorem Matrix.SeparatingRight.eq_zero_of_mulVec_eq_zero {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Finite m] [Fintype n] (hM : M.SeparatingRight) {v : n → R} (hv : M.mulVec v = 0) :
        v = 0
        theorem Matrix.Nondegenerate.conjTranspose {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Finite m] [Finite n] [StarRing R] :

        Alias of the reverse direction of Matrix.nondegenerate_conjTranspose_iff.

        theorem Matrix.SeparatingRight.of_submatrix {k : Type u_1} {l : Type u_2} {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Finite k] [Finite l] [Finite m] [Finite n] {r : k → m} {c : l → n} (hc : Function.Surjective c) (h : (M.submatrix r c).SeparatingRight) :
        theorem Matrix.SeparatingRight.submatrix {k : Type u_1} {l : Type u_2} {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Finite k] [Finite l] [Finite m] [Finite n] {r : k → m} {c : l → n} (hr : Function.Surjective r) (hc : Function.Injective c) (h : M.SeparatingRight) :
        theorem Matrix.separatingRight_submatrix_iff {k : Type u_1} {l : Type u_2} {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Finite k] [Finite l] [Finite m] [Finite n] {r : k → m} {c : l → n} (hr : Function.Surjective r) (hc : Function.Bijective c) :
        theorem Matrix.SeparatingLeft.of_submatrix {k : Type u_1} {l : Type u_2} {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Finite k] [Finite l] [Finite m] [Finite n] {r : k → m} {c : l → n} (hr : Function.Surjective r) (h : (M.submatrix r c).SeparatingLeft) :
        theorem Matrix.SeparatingLeft.submatrix {k : Type u_1} {l : Type u_2} {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Finite k] [Finite l] [Finite m] [Finite n] {r : k → m} {c : l → n} (hr : Function.Injective r) (hc : Function.Surjective c) (h : M.SeparatingLeft) :
        theorem Matrix.separatingLeft_submatrix_iff {k : Type u_1} {l : Type u_2} {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Finite k] [Finite l] [Finite m] [Finite n] {r : k → m} {c : l → n} (hr : Function.Bijective r) (hc : Function.Surjective c) :
        theorem Matrix.Nondegenerate.of_submatrix {k : Type u_1} {l : Type u_2} {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Finite k] [Finite l] [Finite m] [Finite n] {r : k → m} {c : l → n} (hr : Function.Surjective r) (hc : Function.Surjective c) (h : (M.submatrix r c).Nondegenerate) :
        theorem Matrix.Nondegenerate.submatrix {k : Type u_1} {l : Type u_2} {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Finite k] [Finite l] [Finite m] [Finite n] {r : k → m} {c : l → n} (hr : Function.Bijective r) (hc : Function.Bijective c) (h : M.Nondegenerate) :
        theorem Matrix.nondegenerate_submatrix_iff {k : Type u_1} {l : Type u_2} {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Finite k] [Finite l] [Finite m] [Finite n] {r : k → m} {c : l → n} (hr : Function.Bijective r) (hc : Function.Bijective c) :
        theorem Matrix.SeparatingRight.of_smul {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Finite m] [Finite n] {α : Type u_6} [DistribSMul α R] [SMulCommClass α R R] [IsScalarTower α R R] {t : α} (h : (t • M).SeparatingRight) :
        theorem Matrix.SeparatingRight.smul {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Finite m] [Finite n] {α : Type u_6} [DistribSMul α R] [SMulCommClass α R R] [IsScalarTower α R R] {t : α} (ht : IsSMulRegular R t) (h : M.SeparatingRight) :
        theorem Matrix.separatingRight_smul_iff {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Finite m] [Finite n] {α : Type u_6} [DistribSMul α R] [SMulCommClass α R R] [IsScalarTower α R R] {t : α} (ht : IsSMulRegular R t) :
        theorem Matrix.SeparatingLeft.of_smul {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Finite m] [Finite n] {α : Type u_6} [DistribSMul α R] [SMulCommClass α R R] [IsScalarTower α R R] {t : α} (h : (t • M).SeparatingLeft) :
        theorem Matrix.SeparatingLeft.smul {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Finite m] [Finite n] {α : Type u_6} [DistribSMul α R] [SMulCommClass α R R] [IsScalarTower α R R] {t : α} (ht : IsSMulRegular R t) (h : M.SeparatingLeft) :
        theorem Matrix.separatingLeft_smul_iff {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Finite m] [Finite n] {α : Type u_6} [DistribSMul α R] [SMulCommClass α R R] [IsScalarTower α R R] {t : α} (ht : IsSMulRegular R t) :
        theorem Matrix.Nondegenerate.of_smul {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Finite m] [Finite n] {α : Type u_6} [DistribSMul α R] [SMulCommClass α R R] [IsScalarTower α R R] {t : α} (h : (t • M).Nondegenerate) :
        theorem Matrix.Nondegenerate.smul {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Finite m] [Finite n] {α : Type u_6} [DistribSMul α R] [SMulCommClass α R R] [IsScalarTower α R R] {t : α} (ht : IsSMulRegular R t) (h : M.Nondegenerate) :
        theorem Matrix.nondegenerate_smul_iff {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Finite m] [Finite n] {α : Type u_6} [DistribSMul α R] [SMulCommClass α R R] [IsScalarTower α R R] {t : α} (ht : IsSMulRegular R t) :
        theorem Matrix.separatingLeft_iff_forall_vecMul_eq_zero {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Fintype m] [Finite n] :
        M.SeparatingLeft ↔ ∀ (v : m → R), vecMul v M = 0 → v = 0
        theorem Matrix.separatingRight_iff_forall_mulVec_eq_zero {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Finite m] [Fintype n] :
        M.SeparatingRight ↔ ∀ (v : n → R), M.mulVec v = 0 → v = 0
        theorem Matrix.nondegenerate_iff_forall_vecMul_and_mulVec_eq_zero {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Fintype m] [Fintype n] :
        M.Nondegenerate ↔ (∀ (v : m → R), vecMul v M = 0 → v = 0) ∧ ∀ (v : n → R), M.mulVec v = 0 → v = 0
        theorem Matrix.SeparatingLeft.of_vecMul_injective {m : Type u_3} {n : Type u_4} {R : Type u_5} [NonUnitalSemiring R] {M : Matrix m n R} [Fintype m] [Finite n] (hM : Function.Injective fun (v : m → R) => vecMul v M) :
        theorem Matrix.SeparatingLeft.vecMul_injective {m : Type u_1} {n : Type u_2} {R : Type u_3} [NonUnitalRing R] {M : Matrix m n R} [Fintype m] [Finite n] (hM : M.SeparatingLeft) :
        Function.Injective fun (v : m → R) => vecMul v M
        theorem Matrix.separatingLeft_iff_vecMul_injective {m : Type u_1} {n : Type u_2} {R : Type u_3} [NonUnitalRing R] {M : Matrix m n R} [Fintype m] [Finite n] :
        M.SeparatingLeft ↔ Function.Injective fun (v : m → R) => vecMul v M
        theorem Matrix.Nondegenerate.transpose {m : Type u_1} {n : Type u_2} {R : Type u_3} [NonUnitalCommSemiring R] {M : Matrix m n R} [Finite m] [Finite n] :

        Alias of the reverse direction of Matrix.nondegenerate_transpose_iff.

        theorem Matrix.Nondegenerate.of_det_ne_zero {m : Type u_1} {R : Type u_2} [CommRing R] [Fintype m] [DecidableEq m] {M : Matrix m m R} [NoZeroDivisors R] (hM : M.det ≠ 0) :

        If M is square and has nonzero determinant, then M as a bilinear form on n → R is nondegenerate. The "iff" implication, nondegenerate_iff_det_ne_zero, is proved in a later file.

        See also LinearMap.BilinForm.Nondegenerate.of_det_ne_zero.

        @[deprecated Matrix.Nondegenerate.of_det_ne_zero (since := "2026-11-13")]
        theorem Matrix.nondegenerate_of_det_ne_zero {m : Type u_1} {R : Type u_2} [CommRing R] [Fintype m] [DecidableEq m] {M : Matrix m m R} [NoZeroDivisors R] (hM : M.det ≠ 0) :

        Alias of Matrix.Nondegenerate.of_det_ne_zero.


        If M is square and has nonzero determinant, then M as a bilinear form on n → R is nondegenerate. The "iff" implication, nondegenerate_iff_det_ne_zero, is proved in a later file.

        See also LinearMap.BilinForm.Nondegenerate.of_det_ne_zero.

        theorem Matrix.eq_zero_of_det_mem_nonZeroDivisors_of_vecMul_eq_zero {m : Type u_1} {R : Type u_2} [CommRing R] [Fintype m] [DecidableEq m] {M : Matrix m m R} (hM : M.det ∈ nonZeroDivisors R) {v : m → R} (hv : vecMul v M = 0) :
        v = 0
        theorem Matrix.eq_zero_of_vecMul_eq_zero {m : Type u_1} {R : Type u_2} [CommRing R] [Fintype m] [DecidableEq m] {M : Matrix m m R} [NoZeroDivisors R] (hM : M.det ≠ 0) {v : m → R} (hv : vecMul v M = 0) :
        v = 0
        theorem Matrix.eq_zero_of_det_mem_nonZeroDivisors_of_mulVec_eq_zero {m : Type u_1} {R : Type u_2} [CommRing R] [Fintype m] [DecidableEq m] {M : Matrix m m R} (hM : M.det ∈ nonZeroDivisors R) {v : m → R} (hv : M.mulVec v = 0) :
        v = 0
        theorem Matrix.eq_zero_of_mulVec_eq_zero {m : Type u_1} {R : Type u_2} [CommRing R] [Fintype m] [DecidableEq m] {M : Matrix m m R} [NoZeroDivisors R] (hM : M.det ≠ 0) {v : m → R} (hv : M.mulVec v = 0) :
        v = 0
        theorem LinearIndependent.sum_smul_of_nondegenerate {ι : Type u_1} {κ : Type u_2} {R : Type u_3} {M : Type u_4} [Fintype ι] [Finite κ] [CommRing R] [AddCommGroup M] [Module R M] {v : ι → M} (hv : LinearIndependent R v) {A : Matrix κ ι R} (hA : A.Nondegenerate) :
        LinearIndependent R fun (i : κ) => ∑ j : ι, A i j • v j