The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V07. Linear algebra

Mathlib.LinearAlgebra.Matrix.BilinearForm

80 declarations and 7 deprecated aliases. Mathlib docs · Source

Bilinear form

This file defines the conversion between bilinear forms and matrices.

Main definitions

  • Matrix.toBilin given a basis define a bilinear form
  • Matrix.toBilin' define the bilinear form on n → R
  • BilinForm.toMatrix: calculate the matrix coefficients of a bilinear form
  • BilinForm.toMatrix': calculate the matrix coefficients of a bilinear form on n → R

Notation

In this file we use the following type variables:

  • M₁ is a module over the commutative semiring R₁,
  • M₂ is a module over the commutative ring R₂.

Tags

bilinear form, bilin form, BilinearForm, matrix, basis

ToMatrix' section

This section deals with the conversion between matrices and bilinear forms on n → R₂.

ToMatrix section

This section deals with the conversion between matrices and bilinear forms on a module with a fixed basis.

Lemmas transferring nondegeneracy between a matrix and its associated bilinear form.

These are just aliases of lemmas about Matrix.toLinearMap₂ specialized to the cases where the left and right spaces are the same.

Lemmas transferring nondegeneracy between a bilinear form and its associated matrix

These are just aliases of lemmas about LinearMap.toMatrix₂ specialized to the cases where the left and right spaces are the same.

Some shorthands for combining the above with Matrix.Nondegenerate.of_det_ne_zero

def Matrix.toBilin'Aux E0 #

{R₁ : Type u_1} →
  [inst : CommSemiring R₁] → {n : Type u_5} → [Fintype n] → Matrix n n R₁ → LinearMap.BilinForm R₁ (n → R₁)

The map from Matrix n n R to bilinear forms on n → R.

This is an auxiliary definition for the equivalence Matrix.toBilin'.

theorem Matrix.toBilin'Aux_single E1 #

∀ {R₁ : Type u_1} [inst : CommSemiring R₁] {n : Type u_5} [inst_1 : Fintype n] [inst_2 : DecidableEq n]
  (M : Matrix n n R₁) (i j : n), (M.toBilin'Aux (Pi.single i 1)) (Pi.single j 1) = M i j

def LinearMap.BilinForm.toMatrixAux E0 #

{R₁ : Type u_1} →
  {M₁ : Type u_2} →
    [inst : CommSemiring R₁] →
      [inst_1 : AddCommMonoid M₁] →
        [inst_2 : Module R₁ M₁] → {n : Type u_5} → (n → M₁) → LinearMap.BilinForm R₁ M₁ →ₗ[R₁] Matrix n n R₁

The linear map from bilinear forms to Matrix n n R given an n-indexed basis.

This is an auxiliary definition for the equivalence Matrix.toBilin'.

theorem LinearMap.BilinForm.toMatrixAux_apply E0 #

∀ {R₁ : Type u_1} {M₁ : Type u_2} [inst : CommSemiring R₁] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R₁ M₁]
  {n : Type u_5} (B : LinearMap.BilinForm R₁ M₁) (b : n → M₁) (i j : n),
  (LinearMap.BilinForm.toMatrixAux b) B i j = (B (b i)) (b j)

theorem LinearMap.toBilin'Aux_toMatrixAux E0 #

∀ {R₁ : Type u_1} [inst : CommSemiring R₁] {n : Type u_5} [inst_1 : Fintype n] [inst_2 : DecidableEq n]
  (B₂ : LinearMap.BilinForm R₁ (n → R₁)), ((LinearMap.BilinForm.toMatrixAux fun j ↦ Pi.single j 1) B₂).toBilin'Aux = B₂

def LinearMap.BilinForm.toMatrix' E3 #

{R₁ : Type u_1} →
  [inst : CommSemiring R₁] →
    {n : Type u_5} → [Fintype n] → [DecidableEq n] → LinearMap.BilinForm R₁ (n → R₁) ≃ₗ[R₁] Matrix n n R₁

The linear equivalence between bilinear forms on n → R and n × n matrices

def Matrix.toBilin' E3 #

{R₁ : Type u_1} →
  [inst : CommSemiring R₁] →
    {n : Type u_5} → [Fintype n] → [DecidableEq n] → Matrix n n R₁ ≃ₗ[R₁] LinearMap.BilinForm R₁ (n → R₁)

The linear equivalence between n × n matrices and bilinear forms on n → R

theorem Matrix.toBilin'Aux_eq E0 #

∀ {R₁ : Type u_1} [inst : CommSemiring R₁] {n : Type u_5} [inst_1 : Fintype n] [inst_2 : DecidableEq n]
  (M : Matrix n n R₁), M.toBilin'Aux = Matrix.toBilin' M

theorem Matrix.toBilin'_apply E0 #

∀ {R₁ : Type u_1} [inst : CommSemiring R₁] {n : Type u_5} [inst_1 : Fintype n] [inst_2 : DecidableEq n]
  (M : Matrix n n R₁) (x y : n → R₁), ((Matrix.toBilin' M) x) y = ∑ i, ∑ j, x i * M i j * y j

theorem Matrix.toBilin'_apply' E1 #

∀ {R₁ : Type u_1} [inst : CommSemiring R₁] {n : Type u_5} [inst_1 : Fintype n] [inst_2 : DecidableEq n]
  (M : Matrix n n R₁) (v w : n → R₁), ((Matrix.toBilin' M) v) w = v ⬝ᵥ M.mulVec w

theorem Matrix.toBilin'_single E0 #

∀ {R₁ : Type u_1} [inst : CommSemiring R₁] {n : Type u_5} [inst_1 : Fintype n] [inst_2 : DecidableEq n]
  (M : Matrix n n R₁) (i j : n), ((Matrix.toBilin' M) (Pi.single i 1)) (Pi.single j 1) = M i j

theorem LinearMap.BilinForm.toMatrix'_symm E0 #

∀ {R₁ : Type u_1} [inst : CommSemiring R₁] {n : Type u_5} [inst_1 : Fintype n] [inst_2 : DecidableEq n],
  LinearMap.BilinForm.toMatrix'.symm = Matrix.toBilin'

theorem Matrix.toBilin'_symm E0 #

∀ {R₁ : Type u_1} [inst : CommSemiring R₁] {n : Type u_5} [inst_1 : Fintype n] [inst_2 : DecidableEq n],
  Matrix.toBilin'.symm = LinearMap.BilinForm.toMatrix'

theorem Matrix.toBilin'_toMatrix' E0 #

∀ {R₁ : Type u_1} [inst : CommSemiring R₁] {n : Type u_5} [inst_1 : Fintype n] [inst_2 : DecidableEq n]
  (B : LinearMap.BilinForm R₁ (n → R₁)), Matrix.toBilin' (LinearMap.BilinForm.toMatrix' B) = B

theorem LinearMap.BilinForm.toMatrix'_toBilin' E0 #

∀ {R₁ : Type u_1} [inst : CommSemiring R₁] {n : Type u_5} [inst_1 : Fintype n] [inst_2 : DecidableEq n]
  (M : Matrix n n R₁), LinearMap.BilinForm.toMatrix' (Matrix.toBilin' M) = M

theorem LinearMap.BilinForm.toMatrix'_apply E0 #

∀ {R₁ : Type u_1} [inst : CommSemiring R₁] {n : Type u_5} [inst_1 : Fintype n] [inst_2 : DecidableEq n]
  (B : LinearMap.BilinForm R₁ (n → R₁)) (i j : n),
  LinearMap.BilinForm.toMatrix' B i j = (B (Pi.single i 1)) (Pi.single j 1)

theorem LinearMap.BilinForm.toMatrix'_comp E0 #

∀ {R₁ : Type u_1} [inst : CommSemiring R₁] {n : Type u_5} {o : Type u_6} [inst_1 : Fintype n] [inst_2 : Fintype o]
  [inst_3 : DecidableEq n] [inst_4 : DecidableEq o] (B : LinearMap.BilinForm R₁ (n → R₁))
  (l r : (o → R₁) →ₗ[R₁] n → R₁),
  LinearMap.BilinForm.toMatrix' (B.comp l r) =
    (LinearMap.toMatrix' l).transpose * LinearMap.BilinForm.toMatrix' B * LinearMap.toMatrix' r

theorem LinearMap.BilinForm.toMatrix'_compLeft E1 #

∀ {R₁ : Type u_1} [inst : CommSemiring R₁] {n : Type u_5} [inst_1 : Fintype n] [inst_2 : DecidableEq n]
  (B : LinearMap.BilinForm R₁ (n → R₁)) (f : (n → R₁) →ₗ[R₁] n → R₁),
  LinearMap.BilinForm.toMatrix' (B.compLeft f) = (LinearMap.toMatrix' f).transpose * LinearMap.BilinForm.toMatrix' B

theorem LinearMap.BilinForm.toMatrix'_compRight E1 #

∀ {R₁ : Type u_1} [inst : CommSemiring R₁] {n : Type u_5} [inst_1 : Fintype n] [inst_2 : DecidableEq n]
  (B : LinearMap.BilinForm R₁ (n → R₁)) (f : (n → R₁) →ₗ[R₁] n → R₁),
  LinearMap.BilinForm.toMatrix' (B.compRight f) = LinearMap.BilinForm.toMatrix' B * LinearMap.toMatrix' f

theorem LinearMap.BilinForm.mul_toMatrix'_mul E1 #

∀ {R₁ : Type u_1} [inst : CommSemiring R₁] {n : Type u_5} {o : Type u_6} [inst_1 : Fintype n] [inst_2 : Fintype o]
  [inst_3 : DecidableEq n] [inst_4 : DecidableEq o] (B : LinearMap.BilinForm R₁ (n → R₁)) (M : Matrix o n R₁)
  (N : Matrix n o R₁),
  M * LinearMap.BilinForm.toMatrix' B * N =
    LinearMap.BilinForm.toMatrix' (B.comp (Matrix.toLin' M.transpose) (Matrix.toLin' N))

theorem LinearMap.BilinForm.mul_toMatrix' E1 #

∀ {R₁ : Type u_1} [inst : CommSemiring R₁] {n : Type u_5} [inst_1 : Fintype n] [inst_2 : DecidableEq n]
  (B : LinearMap.BilinForm R₁ (n → R₁)) (M : Matrix n n R₁),
  M * LinearMap.BilinForm.toMatrix' B = LinearMap.BilinForm.toMatrix' (B.compLeft (Matrix.toLin' M.transpose))

theorem LinearMap.BilinForm.toMatrix'_mul E1 #

∀ {R₁ : Type u_1} [inst : CommSemiring R₁] {n : Type u_5} [inst_1 : Fintype n] [inst_2 : DecidableEq n]
  (B : LinearMap.BilinForm R₁ (n → R₁)) (M : Matrix n n R₁),
  LinearMap.BilinForm.toMatrix' B * M = LinearMap.BilinForm.toMatrix' (B.compRight (Matrix.toLin' M))

theorem Matrix.toBilin'_comp E1 #

∀ {R₁ : Type u_1} [inst : CommSemiring R₁] {n : Type u_5} {o : Type u_6} [inst_1 : Fintype n] [inst_2 : Fintype o]
  [inst_3 : DecidableEq n] [inst_4 : DecidableEq o] (M : Matrix n n R₁) (P Q : Matrix n o R₁),
  (Matrix.toBilin' M).comp (Matrix.toLin' P) (Matrix.toLin' Q) = Matrix.toBilin' (P.transpose * M * Q)

def LinearMap.BilinForm.toMatrix E3 #

{R₁ : Type u_1} →
  {M₁ : Type u_2} →
    [inst : CommSemiring R₁] →
      [inst_1 : AddCommMonoid M₁] →
        [inst_2 : Module R₁ M₁] →
          {n : Type u_5} →
            [Fintype n] → [DecidableEq n] → Module.Basis n R₁ M₁ → LinearMap.BilinForm R₁ M₁ ≃ₗ[R₁] Matrix n n R₁

BilinForm.toMatrix b is the equivalence between R-bilinear forms on M and n-by-n matrices with entries in R, if b is an R-basis for M.

def Matrix.toBilin E3 #

{R₁ : Type u_1} →
  {M₁ : Type u_2} →
    [inst : CommSemiring R₁] →
      [inst_1 : AddCommMonoid M₁] →
        [inst_2 : Module R₁ M₁] →
          {n : Type u_5} →
            [Fintype n] → [DecidableEq n] → Module.Basis n R₁ M₁ → Matrix n n R₁ ≃ₗ[R₁] LinearMap.BilinForm R₁ M₁

BilinForm.toMatrix b is the equivalence between R-bilinear forms on M and n-by-n matrices with entries in R, if b is an R-basis for M.

theorem LinearMap.BilinForm.toMatrix_apply E0 #

∀ {R₁ : Type u_1} {M₁ : Type u_2} [inst : CommSemiring R₁] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R₁ M₁]
  {n : Type u_5} [inst_3 : Fintype n] [inst_4 : DecidableEq n] (b : Module.Basis n R₁ M₁)
  (B : LinearMap.BilinForm R₁ M₁) (i j : n), (LinearMap.BilinForm.toMatrix b) B i j = (B (b i)) (b j)

theorem LinearMap.BilinForm.dotProduct_toMatrix_mulVec E1 #

∀ {R₁ : Type u_1} {M₁ : Type u_2} [inst : CommSemiring R₁] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R₁ M₁]
  {n : Type u_5} [inst_3 : Fintype n] [inst_4 : DecidableEq n] (b : Module.Basis n R₁ M₁)
  (B : LinearMap.BilinForm R₁ M₁) (x y : n → R₁),
  x ⬝ᵥ ((LinearMap.BilinForm.toMatrix b) B).mulVec y = (B (b.equivFun.symm x)) (b.equivFun.symm y)

theorem LinearMap.BilinForm.apply_eq_dotProduct_toMatrix_mulVec E1 #

∀ {R₁ : Type u_1} {M₁ : Type u_2} [inst : CommSemiring R₁] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R₁ M₁]
  {n : Type u_5} [inst_3 : Fintype n] [inst_4 : DecidableEq n] (b : Module.Basis n R₁ M₁)
  (B : LinearMap.BilinForm R₁ M₁) (x y : M₁),
  (B x) y = ⇑(b.repr x) ⬝ᵥ ((LinearMap.BilinForm.toMatrix b) B).mulVec ⇑(b.repr y)

theorem Matrix.toBilin_apply E0 #

∀ {R₁ : Type u_1} {M₁ : Type u_2} [inst : CommSemiring R₁] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R₁ M₁]
  {n : Type u_5} [inst_3 : Fintype n] [inst_4 : DecidableEq n] (b : Module.Basis n R₁ M₁) (M : Matrix n n R₁)
  (x y : M₁), (((Matrix.toBilin b) M) x) y = ∑ i, ∑ j, (b.repr x) i * M i j * (b.repr y) j

theorem LinearMap.BilinForm.toMatrixAux_eq E0 #

∀ {R₁ : Type u_1} {M₁ : Type u_2} [inst : CommSemiring R₁] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R₁ M₁]
  {n : Type u_5} [inst_3 : Fintype n] [inst_4 : DecidableEq n] (b : Module.Basis n R₁ M₁)
  (B : LinearMap.BilinForm R₁ M₁), (LinearMap.BilinForm.toMatrixAux ⇑b) B = (LinearMap.BilinForm.toMatrix b) B

theorem LinearMap.BilinForm.toMatrix_symm E0 #

∀ {R₁ : Type u_1} {M₁ : Type u_2} [inst : CommSemiring R₁] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R₁ M₁]
  {n : Type u_5} [inst_3 : Fintype n] [inst_4 : DecidableEq n] (b : Module.Basis n R₁ M₁),
  (LinearMap.BilinForm.toMatrix b).symm = Matrix.toBilin b

theorem Matrix.toBilin_symm E0 #

∀ {R₁ : Type u_1} {M₁ : Type u_2} [inst : CommSemiring R₁] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R₁ M₁]
  {n : Type u_5} [inst_3 : Fintype n] [inst_4 : DecidableEq n] (b : Module.Basis n R₁ M₁),
  (Matrix.toBilin b).symm = LinearMap.BilinForm.toMatrix b

theorem Matrix.toBilin_basisFun E1 #

∀ {R₁ : Type u_1} [inst : CommSemiring R₁] {n : Type u_5} [inst_1 : Fintype n] [inst_2 : DecidableEq n],
  Matrix.toBilin (Pi.basisFun R₁ n) = Matrix.toBilin'

theorem LinearMap.BilinForm.toMatrix_basisFun E1 #

∀ {R₁ : Type u_1} [inst : CommSemiring R₁] {n : Type u_5} [inst_1 : Fintype n] [inst_2 : DecidableEq n],
  LinearMap.BilinForm.toMatrix (Pi.basisFun R₁ n) = LinearMap.BilinForm.toMatrix'

theorem Matrix.toBilin_toMatrix E0 #

∀ {R₁ : Type u_1} {M₁ : Type u_2} [inst : CommSemiring R₁] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R₁ M₁]
  {n : Type u_5} [inst_3 : Fintype n] [inst_4 : DecidableEq n] (b : Module.Basis n R₁ M₁)
  (B : LinearMap.BilinForm R₁ M₁), (Matrix.toBilin b) ((LinearMap.BilinForm.toMatrix b) B) = B

theorem LinearMap.BilinForm.toMatrix_toBilin E0 #

∀ {R₁ : Type u_1} {M₁ : Type u_2} [inst : CommSemiring R₁] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R₁ M₁]
  {n : Type u_5} [inst_3 : Fintype n] [inst_4 : DecidableEq n] (b : Module.Basis n R₁ M₁) (M : Matrix n n R₁),
  (LinearMap.BilinForm.toMatrix b) ((Matrix.toBilin b) M) = M

theorem LinearMap.BilinForm.toMatrix_comp E3 #

∀ {R₁ : Type u_1} {M₁ : Type u_2} [inst : CommSemiring R₁] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R₁ M₁]
  {n : Type u_5} {o : Type u_6} [inst_3 : Fintype n] [inst_4 : Fintype o] [inst_5 : DecidableEq n]
  (b : Module.Basis n R₁ M₁) {M₂' : Type u_7} [inst_6 : AddCommMonoid M₂'] [inst_7 : Module R₁ M₂']
  (c : Module.Basis o R₁ M₂') [inst_8 : DecidableEq o] (B : LinearMap.BilinForm R₁ M₁) (l r : M₂' →ₗ[R₁] M₁),
  (LinearMap.BilinForm.toMatrix c) (B.comp l r) =
    ((LinearMap.toMatrix c b) l).transpose * (LinearMap.BilinForm.toMatrix b) B * (LinearMap.toMatrix c b) r

theorem LinearMap.BilinForm.toMatrix_compLeft E1 #

∀ {R₁ : Type u_1} {M₁ : Type u_2} [inst : CommSemiring R₁] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R₁ M₁]
  {n : Type u_5} [inst_3 : Fintype n] [inst_4 : DecidableEq n] (b : Module.Basis n R₁ M₁)
  (B : LinearMap.BilinForm R₁ M₁) (f : M₁ →ₗ[R₁] M₁),
  (LinearMap.BilinForm.toMatrix b) (B.compLeft f) =
    ((LinearMap.toMatrix b b) f).transpose * (LinearMap.BilinForm.toMatrix b) B

theorem LinearMap.BilinForm.toMatrix_compRight E1 #

∀ {R₁ : Type u_1} {M₁ : Type u_2} [inst : CommSemiring R₁] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R₁ M₁]
  {n : Type u_5} [inst_3 : Fintype n] [inst_4 : DecidableEq n] (b : Module.Basis n R₁ M₁)
  (B : LinearMap.BilinForm R₁ M₁) (f : M₁ →ₗ[R₁] M₁),
  (LinearMap.BilinForm.toMatrix b) (B.compRight f) = (LinearMap.BilinForm.toMatrix b) B * (LinearMap.toMatrix b b) f

theorem LinearMap.BilinForm.toMatrix_mul_basis_toMatrix E0 #

∀ {R₁ : Type u_1} {M₁ : Type u_2} [inst : CommSemiring R₁] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R₁ M₁]
  {n : Type u_5} {o : Type u_6} [inst_3 : Fintype n] [inst_4 : Fintype o] [inst_5 : DecidableEq n]
  (b : Module.Basis n R₁ M₁) [inst_6 : DecidableEq o] (c : Module.Basis o R₁ M₁) (B : LinearMap.BilinForm R₁ M₁),
  (b.toMatrix ⇑c).transpose * (LinearMap.BilinForm.toMatrix b) B * b.toMatrix ⇑c = (LinearMap.BilinForm.toMatrix c) B

theorem LinearMap.BilinForm.mul_toMatrix_mul E1 #

∀ {R₁ : Type u_1} {M₁ : Type u_2} [inst : CommSemiring R₁] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R₁ M₁]
  {n : Type u_5} {o : Type u_6} [inst_3 : Fintype n] [inst_4 : Fintype o] [inst_5 : DecidableEq n]
  (b : Module.Basis n R₁ M₁) {M₂' : Type u_7} [inst_6 : AddCommMonoid M₂'] [inst_7 : Module R₁ M₂']
  (c : Module.Basis o R₁ M₂') [inst_8 : DecidableEq o] (B : LinearMap.BilinForm R₁ M₁) (M : Matrix o n R₁)
  (N : Matrix n o R₁),
  M * (LinearMap.BilinForm.toMatrix b) B * N =
    (LinearMap.BilinForm.toMatrix c) (B.comp ((Matrix.toLin c b) M.transpose) ((Matrix.toLin c b) N))

theorem LinearMap.BilinForm.mul_toMatrix E1 #

∀ {R₁ : Type u_1} {M₁ : Type u_2} [inst : CommSemiring R₁] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R₁ M₁]
  {n : Type u_5} [inst_3 : Fintype n] [inst_4 : DecidableEq n] (b : Module.Basis n R₁ M₁)
  (B : LinearMap.BilinForm R₁ M₁) (M : Matrix n n R₁),
  M * (LinearMap.BilinForm.toMatrix b) B =
    (LinearMap.BilinForm.toMatrix b) (B.compLeft ((Matrix.toLin b b) M.transpose))

theorem LinearMap.BilinForm.toMatrix_mul E1 #

∀ {R₁ : Type u_1} {M₁ : Type u_2} [inst : CommSemiring R₁] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R₁ M₁]
  {n : Type u_5} [inst_3 : Fintype n] [inst_4 : DecidableEq n] (b : Module.Basis n R₁ M₁)
  (B : LinearMap.BilinForm R₁ M₁) (M : Matrix n n R₁),
  (LinearMap.BilinForm.toMatrix b) B * M = (LinearMap.BilinForm.toMatrix b) (B.compRight ((Matrix.toLin b b) M))

theorem Matrix.toBilin_comp E1 #

∀ {R₁ : Type u_1} {M₁ : Type u_2} [inst : CommSemiring R₁] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R₁ M₁]
  {n : Type u_5} {o : Type u_6} [inst_3 : Fintype n] [inst_4 : Fintype o] [inst_5 : DecidableEq n]
  (b : Module.Basis n R₁ M₁) {M₂' : Type u_7} [inst_6 : AddCommMonoid M₂'] [inst_7 : Module R₁ M₂']
  (c : Module.Basis o R₁ M₂') [inst_8 : DecidableEq o] (M : Matrix n n R₁) (P Q : Matrix n o R₁),
  ((Matrix.toBilin b) M).comp ((Matrix.toLin c b) P) ((Matrix.toLin c b) Q) = (Matrix.toBilin c) (P.transpose * M * Q)

theorem LinearMap.BilinForm.isSymm_toMatrix_iff_isSymm E0 #

∀ {R₁ : Type u_1} {M₁ : Type u_2} [inst : CommSemiring R₁] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R₁ M₁]
  {n : Type u_5} [inst_3 : Fintype n] [inst_4 : DecidableEq n] (b : Module.Basis n R₁ M₁)
  {B : LinearMap.BilinForm R₁ M₁}, ((LinearMap.BilinForm.toMatrix b) B).IsSymm ↔ B.IsSymm

theorem Matrix.isSymm_toBilin_iff_isSymm E0 #

∀ {R₁ : Type u_1} {M₁ : Type u_2} [inst : CommSemiring R₁] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R₁ M₁]
  {n : Type u_5} [inst_3 : Fintype n] [inst_4 : DecidableEq n] (b : Module.Basis n R₁ M₁) {M : Matrix n n R₁},
  ((Matrix.toBilin b) M).IsSymm ↔ M.IsSymm

theorem LinearMap.BilinForm.isSymm_toMatrix'_iff_isSymm E0 #

∀ {R₁ : Type u_1} [inst : CommSemiring R₁] {n : Type u_5} [inst_1 : Fintype n] [inst_2 : DecidableEq n]
  {B : LinearMap.BilinForm R₁ (n → R₁)}, (LinearMap.BilinForm.toMatrix' B).IsSymm ↔ B.IsSymm

theorem Matrix.isSymm_toBilin'_iff_isSymm E0 #

∀ {R₁ : Type u_1} [inst : CommSemiring R₁] {n : Type u_5} [inst_1 : Fintype n] [inst_2 : DecidableEq n]
  {M : Matrix n n R₁}, (Matrix.toBilin' M).IsSymm ↔ M.IsSymm

theorem Matrix.nondegenerate_toBilin'_iff_nondegenerate_toBilin E1 #

∀ {R₁ : Type u_1} {M₁ : Type u_2} [inst : CommSemiring R₁] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R₁ M₁]
  {ι : Type u_6} [inst_3 : DecidableEq ι] [inst_4 : Fintype ι] {M : Matrix ι ι R₁} (b : Module.Basis ι R₁ M₁),
  (Matrix.toBilin' M).Nondegenerate ↔ ((Matrix.toBilin b) M).Nondegenerate

theorem Matrix.Nondegenerate.toBilin' E1 #

∀ {R₂ : Type u_3} [inst : CommRing R₂] {ι : Type u_6} [inst_1 : DecidableEq ι] [inst_2 : Fintype ι] {M : Matrix ι ι R₂},
  M.Nondegenerate → (Matrix.toBilin' M).Nondegenerate

theorem Matrix.nondegenerate_toBilin'_iff E0 #

∀ {R₂ : Type u_3} [inst : CommRing R₂] {ι : Type u_6} [inst_1 : DecidableEq ι] [inst_2 : Fintype ι] {M : Matrix ι ι R₂},
  (Matrix.toBilin' M).Nondegenerate ↔ M.Nondegenerate

theorem Matrix.Nondegenerate.toBilin E1 #

∀ {R₂ : Type u_3} {M₂ : Type u_4} [inst : CommRing R₂] [inst_1 : AddCommGroup M₂] [inst_2 : Module R₂ M₂] {ι : Type u_6}
  [inst_3 : DecidableEq ι] [inst_4 : Fintype ι] {M : Matrix ι ι R₂},
  M.Nondegenerate → ∀ (b : Module.Basis ι R₂ M₂), ((Matrix.toBilin b) M).Nondegenerate

theorem Matrix.nondegenerate_toBilin_iff E0 #

∀ {R₂ : Type u_3} {M₂ : Type u_4} [inst : CommRing R₂] [inst_1 : AddCommGroup M₂] [inst_2 : Module R₂ M₂] {ι : Type u_6}
  [inst_3 : DecidableEq ι] [inst_4 : Fintype ι] {M : Matrix ι ι R₂} (b : Module.Basis ι R₂ M₂),
  ((Matrix.toBilin b) M).Nondegenerate ↔ M.Nondegenerate

theorem Matrix.SeparatingLeft.toBilin' E1 #

∀ {R₂ : Type u_3} [inst : CommRing R₂] {ι : Type u_6} [inst_1 : DecidableEq ι] [inst_2 : Fintype ι] {M : Matrix ι ι R₂},
  M.SeparatingLeft → LinearMap.SeparatingLeft (Matrix.toBilin' M)

theorem Matrix.separatingLeft_toBilin'_iff E0 #

∀ {R₂ : Type u_3} [inst : CommRing R₂] {ι : Type u_6} [inst_1 : DecidableEq ι] [inst_2 : Fintype ι] {M : Matrix ι ι R₂},
  LinearMap.SeparatingLeft (Matrix.toBilin' M) ↔ M.SeparatingLeft

theorem Matrix.SeparatingLeft.toBilin E1 #

∀ {R₂ : Type u_3} {M₂ : Type u_4} [inst : CommRing R₂] [inst_1 : AddCommGroup M₂] [inst_2 : Module R₂ M₂] {ι : Type u_6}
  [inst_3 : DecidableEq ι] [inst_4 : Fintype ι] {M : Matrix ι ι R₂},
  M.SeparatingLeft → ∀ (b : Module.Basis ι R₂ M₂), LinearMap.SeparatingLeft ((Matrix.toBilin b) M)

theorem Matrix.separatingLeft_toBilin_iff E0 #

∀ {R₂ : Type u_3} {M₂ : Type u_4} [inst : CommRing R₂] [inst_1 : AddCommGroup M₂] [inst_2 : Module R₂ M₂] {ι : Type u_6}
  [inst_3 : DecidableEq ι] [inst_4 : Fintype ι] {M : Matrix ι ι R₂} (b : Module.Basis ι R₂ M₂),
  LinearMap.SeparatingLeft ((Matrix.toBilin b) M) ↔ M.SeparatingLeft

theorem Matrix.SeparatingRight.toBilin' E1 #

∀ {R₂ : Type u_3} [inst : CommRing R₂] {ι : Type u_6} [inst_1 : DecidableEq ι] [inst_2 : Fintype ι] {M : Matrix ι ι R₂},
  M.SeparatingRight → LinearMap.SeparatingRight (Matrix.toBilin' M)

theorem Matrix.separatingRight_toBilin'_iff E0 #

∀ {R₂ : Type u_3} [inst : CommRing R₂] {ι : Type u_6} [inst_1 : DecidableEq ι] [inst_2 : Fintype ι] {M : Matrix ι ι R₂},
  LinearMap.SeparatingRight (Matrix.toBilin' M) ↔ M.SeparatingRight

theorem Matrix.SeparatingRight.toBilin E1 #

∀ {R₂ : Type u_3} {M₂ : Type u_4} [inst : CommRing R₂] [inst_1 : AddCommGroup M₂] [inst_2 : Module R₂ M₂] {ι : Type u_6}
  [inst_3 : DecidableEq ι] [inst_4 : Fintype ι] {M : Matrix ι ι R₂},
  M.SeparatingRight → ∀ (b : Module.Basis ι R₂ M₂), LinearMap.SeparatingRight ((Matrix.toBilin b) M)

theorem Matrix.separatingRight_toBilin_iff E0 #

∀ {R₂ : Type u_3} {M₂ : Type u_4} [inst : CommRing R₂] [inst_1 : AddCommGroup M₂] [inst_2 : Module R₂ M₂] {ι : Type u_6}
  [inst_3 : DecidableEq ι] [inst_4 : Fintype ι] {M : Matrix ι ι R₂} (b : Module.Basis ι R₂ M₂),
  LinearMap.SeparatingRight ((Matrix.toBilin b) M) ↔ M.SeparatingRight

theorem LinearMap.BilinForm.nondegenerate_toMatrix'_iff E0 #

∀ {R₂ : Type u_3} [inst : CommRing R₂] {ι : Type u_6} [inst_1 : DecidableEq ι] [inst_2 : Fintype ι]
  {B : LinearMap.BilinForm R₂ (ι → R₂)}, (LinearMap.BilinForm.toMatrix' B).Nondegenerate ↔ B.Nondegenerate

theorem LinearMap.BilinForm.Nondegenerate.toMatrix' E1 #

∀ {R₂ : Type u_3} [inst : CommRing R₂] {ι : Type u_6} [inst_1 : DecidableEq ι] [inst_2 : Fintype ι]
  {B : LinearMap.BilinForm R₂ (ι → R₂)}, B.Nondegenerate → (LinearMap.BilinForm.toMatrix' B).Nondegenerate

theorem LinearMap.BilinForm.nondegenerate_toMatrix_iff E0 #

∀ {R₂ : Type u_3} {M₂ : Type u_4} [inst : CommRing R₂] [inst_1 : AddCommGroup M₂] [inst_2 : Module R₂ M₂] {ι : Type u_6}
  [inst_3 : DecidableEq ι] [inst_4 : Fintype ι] {B : LinearMap.BilinForm R₂ M₂} (b : Module.Basis ι R₂ M₂),
  ((LinearMap.BilinForm.toMatrix b) B).Nondegenerate ↔ B.Nondegenerate

theorem LinearMap.BilinForm.Nondegenerate.toMatrix E1 #

∀ {R₂ : Type u_3} {M₂ : Type u_4} [inst : CommRing R₂] [inst_1 : AddCommGroup M₂] [inst_2 : Module R₂ M₂] {ι : Type u_6}
  [inst_3 : DecidableEq ι] [inst_4 : Fintype ι] {B : LinearMap.BilinForm R₂ M₂},
  B.Nondegenerate → ∀ (b : Module.Basis ι R₂ M₂), ((LinearMap.BilinForm.toMatrix b) B).Nondegenerate

theorem LinearMap.BilinForm.separatingLeft_toMatrix'_iff E0 #

∀ {R₂ : Type u_3} [inst : CommRing R₂] {ι : Type u_6} [inst_1 : DecidableEq ι] [inst_2 : Fintype ι]
  {B : LinearMap.BilinForm R₂ (ι → R₂)}, (LinearMap.BilinForm.toMatrix' B).SeparatingLeft ↔ LinearMap.SeparatingLeft B

theorem LinearMap.BilinForm.SeparatingLeft.toMatrix' E1 #

∀ {R₂ : Type u_3} [inst : CommRing R₂] {ι : Type u_6} [inst_1 : DecidableEq ι] [inst_2 : Fintype ι]
  {B : LinearMap.BilinForm R₂ (ι → R₂)}, LinearMap.SeparatingLeft B → (LinearMap.BilinForm.toMatrix' B).SeparatingLeft

theorem LinearMap.BilinForm.separatingLeft_toMatrix_iff E0 #

∀ {R₂ : Type u_3} {M₂ : Type u_4} [inst : CommRing R₂] [inst_1 : AddCommGroup M₂] [inst_2 : Module R₂ M₂] {ι : Type u_6}
  [inst_3 : DecidableEq ι] [inst_4 : Fintype ι] {B : LinearMap.BilinForm R₂ M₂} (b : Module.Basis ι R₂ M₂),
  ((LinearMap.BilinForm.toMatrix b) B).SeparatingLeft ↔ LinearMap.SeparatingLeft B

theorem LinearMap.BilinForm.SeparatingLeft.toMatrix E1 #

∀ {R₂ : Type u_3} {M₂ : Type u_4} [inst : CommRing R₂] [inst_1 : AddCommGroup M₂] [inst_2 : Module R₂ M₂] {ι : Type u_6}
  [inst_3 : DecidableEq ι] [inst_4 : Fintype ι] {B : LinearMap.BilinForm R₂ M₂},
  LinearMap.SeparatingLeft B → ∀ (b : Module.Basis ι R₂ M₂), ((LinearMap.BilinForm.toMatrix b) B).SeparatingLeft

theorem LinearMap.BilinForm.separatingRight_toMatrix'_iff E0 #

∀ {R₂ : Type u_3} [inst : CommRing R₂] {ι : Type u_6} [inst_1 : DecidableEq ι] [inst_2 : Fintype ι]
  {B : LinearMap.BilinForm R₂ (ι → R₂)}, (LinearMap.BilinForm.toMatrix' B).SeparatingRight ↔ LinearMap.SeparatingRight B

theorem LinearMap.BilinForm.SeparatingRight.toMatrix' E1 #

∀ {R₂ : Type u_3} [inst : CommRing R₂] {ι : Type u_6} [inst_1 : DecidableEq ι] [inst_2 : Fintype ι]
  {B : LinearMap.BilinForm R₂ (ι → R₂)}, LinearMap.SeparatingRight B → (LinearMap.BilinForm.toMatrix' B).SeparatingRight

theorem LinearMap.BilinForm.separatingRight_toMatrix_iff E0 #

∀ {R₂ : Type u_3} {M₂ : Type u_4} [inst : CommRing R₂] [inst_1 : AddCommGroup M₂] [inst_2 : Module R₂ M₂] {ι : Type u_6}
  [inst_3 : DecidableEq ι] [inst_4 : Fintype ι] {B : LinearMap.BilinForm R₂ M₂} (b : Module.Basis ι R₂ M₂),
  ((LinearMap.BilinForm.toMatrix b) B).SeparatingRight ↔ LinearMap.SeparatingRight B

theorem LinearMap.BilinForm.SeparatingRight.toMatrix E1 #

∀ {R₂ : Type u_3} {M₂ : Type u_4} [inst : CommRing R₂] [inst_1 : AddCommGroup M₂] [inst_2 : Module R₂ M₂] {ι : Type u_6}
  [inst_3 : DecidableEq ι] [inst_4 : Fintype ι] {B : LinearMap.BilinForm R₂ M₂},
  LinearMap.SeparatingRight B → ∀ (b : Module.Basis ι R₂ M₂), ((LinearMap.BilinForm.toMatrix b) B).SeparatingRight

theorem LinearMap.BilinForm.nondegenerate_toBilin'_iff_det_ne_zero E1 #

∀ {A : Type u_5} [inst : CommRing A] [IsDomain A] {ι : Type u_6} [inst_2 : DecidableEq ι] [inst_3 : Fintype ι]
  {M : Matrix ι ι A}, (Matrix.toBilin' M).Nondegenerate ↔ M.det ≠ 0

theorem LinearMap.BilinForm.nondegenerate_toBilin'_of_det_ne_zero' E1 #

∀ {A : Type u_5} [inst : CommRing A] [IsDomain A] {ι : Type u_6} [inst_2 : DecidableEq ι] [inst_3 : Fintype ι]
  (M : Matrix ι ι A), M.det ≠ 0 → (Matrix.toBilin' M).Nondegenerate

theorem LinearMap.BilinForm.nondegenerate_iff_det_ne_zero E1 #

∀ {M₂ : Type u_4} [inst : AddCommGroup M₂] {A : Type u_5} [inst_1 : CommRing A] [IsDomain A] [inst_3 : Module A M₂]
  {ι : Type u_6} [inst_4 : DecidableEq ι] [inst_5 : Fintype ι] {B : LinearMap.BilinForm A M₂} (b : Module.Basis ι A M₂),
  B.Nondegenerate ↔ ((LinearMap.BilinForm.toMatrix b) B).det ≠ 0

theorem LinearMap.BilinForm.Nondegenerate.of_det_ne_zero E1 #

∀ {M₂ : Type u_4} [inst : AddCommGroup M₂] {A : Type u_5} [inst_1 : CommRing A] [IsDomain A] [inst_3 : Module A M₂]
  (B₃ : LinearMap.BilinForm A M₂) {ι : Type u_6} [inst_4 : DecidableEq ι] [inst_5 : Fintype ι]
  (b : Module.Basis ι A M₂), ((LinearMap.BilinForm.toMatrix b) B₃).det ≠ 0 → B₃.Nondegenerate

theorem LinearMap.BilinForm.Nondegenerate.ofSeparatingLeft E1 #

∀ {R₂ : Type u_3} {M₂ : Type u_4} [inst : CommRing R₂] [inst_1 : AddCommGroup M₂] [inst_2 : Module R₂ M₂] [IsDomain R₂]
  [Module.Free R₂ M₂] [Module.Finite R₂ M₂] {B : LinearMap.BilinForm R₂ M₂},
  LinearMap.SeparatingLeft B → B.Nondegenerate

theorem LinearMap.BilinForm.Nondegenerate.ofSeparatingRight E1 #

∀ {R₂ : Type u_3} {M₂ : Type u_4} [inst : CommRing R₂] [inst_1 : AddCommGroup M₂] [inst_2 : Module R₂ M₂] [IsDomain R₂]
  [Module.Free R₂ M₂] [Module.Finite R₂ M₂] {B : LinearMap.BilinForm R₂ M₂},
  LinearMap.SeparatingRight B → B.Nondegenerate

theorem LinearMap.BilinForm.nondegenerate_iff_ker_eq_bot E1 #

∀ {R₂ : Type u_3} {M₂ : Type u_4} [inst : CommRing R₂] [inst_1 : AddCommGroup M₂] [inst_2 : Module R₂ M₂] [IsDomain R₂]
  [Module.Free R₂ M₂] [Module.Finite R₂ M₂] {B : LinearMap.BilinForm R₂ M₂}, B.Nondegenerate ↔ LinearMap.ker B = ⊥

Deprecated aliases

NameNew nameSince
LinearMap.BilinForm.nondegenerate_of_det_ne_zeroLinearMap.BilinForm.Nondegenerate.of_det_ne_zero2026-11-13
Matrix.isAdjointPair_equiv'Matrix.isAdjointPair_equiv2026-11-16
mem_pairSelfAdjointMatricesSubmodule'mem_pairSelfAdjointMatricesSubmodule2026-11-16
mem_selfAdjointMatricesSubmodule'mem_selfAdjointMatricesSubmodule2026-11-16
mem_skewAdjointMatricesSubmodule'mem_skewAdjointMatricesSubmodule2026-11-16
selfAdjointMatricesSubmodule'selfAdjointMatricesSubmodule2026-11-16
skewAdjointMatricesSubmodule'skewAdjointMatricesSubmodule2026-11-16