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.SesquilinearForm

111 declarations and 3 deprecated aliases. Mathlib docs · Source

Sesquilinear form

This file defines the conversion between sesquilinear maps and matrices.

Main definitions

  • Matrix.toLinearMap₂ given a basis define a bilinear map
  • Matrix.toLinearMap₂' define the bilinear map on n → R
  • LinearMap.toMatrix₂: calculate the matrix coefficients of a bilinear map
  • LinearMap.toMatrix₂': calculate the matrix coefficients of a bilinear map on n → R

TODO

At the moment this is quite a literal port from Matrix.BilinearForm. Everything should be generalized to fully semi-bilinear forms.

Tags

Sesquilinear form, Sesquilinear map, matrix, basis

Bilinear maps over n → R

This section deals with the conversion between matrices and sesquilinear maps on n → R.

Bilinear maps over arbitrary vector spaces

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

Adjoint pairs

Nondegenerate bilinear forms

Lemmas transferring nondegeneracy (or left/right separating) between a matrix and its associated bilinear form (for the standard basis)

Lemmas transferring nondegeneracy (or left/right separating) between a matrix and its associated bilinear form (for an arbitrary basis of a free module)

Some shorthands for combining the above with Matrix.Nondegenerate.of_det_ne_zero in the case of a domain

def Matrix.toLinearMap₂'Aux E0 #

{R₁ : Type u_2} →
  {S₁ : Type u_3} →
    {R₂ : Type u_4} →
      {S₂ : Type u_5} →
        {N₂ : Type u_10} →
          {n : Type u_11} →
            {m : Type u_12} →
              [inst : Semiring R₁] →
                [inst_1 : Semiring S₁] →
                  [inst_2 : Semiring R₂] →
                    [inst_3 : Semiring S₂] →
                      [inst_4 : AddCommMonoid N₂] →
                        [inst_5 : Module S₁ N₂] →
                          [inst_6 : Module S₂ N₂] →
                            [inst_7 : SMulCommClass S₂ S₁ N₂] →
                              [Fintype n] →
                                [Fintype m] →
                                  (σ₁ : R₁ →+* S₁) →
                                    (σ₂ : R₂ →+* S₂) → Matrix n m N₂ → (n → R₁) →ₛₗ[σ₁] (m → R₂) →ₛₗ[σ₂] N₂

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

This is an auxiliary definition for the equivalence Matrix.toLinearMap₂'.

theorem Matrix.toLinearMap₂'Aux_single E1 #

∀ {R₁ : Type u_2} {S₁ : Type u_3} {R₂ : Type u_4} {S₂ : Type u_5} {N₂ : Type u_10} {n : Type u_11} {m : Type u_12}
  [inst : Semiring R₁] [inst_1 : Semiring S₁] [inst_2 : Semiring R₂] [inst_3 : Semiring S₂] [inst_4 : AddCommMonoid N₂]
  [inst_5 : Module S₁ N₂] [inst_6 : Module S₂ N₂] [inst_7 : SMulCommClass S₂ S₁ N₂] [inst_8 : Fintype n]
  [inst_9 : Fintype m] (σ₁ : R₁ →+* S₁) (σ₂ : R₂ →+* S₂) [inst_10 : DecidableEq n] [inst_11 : DecidableEq m]
  (f : Matrix n m N₂) (i : n) (j : m), ((Matrix.toLinearMap₂'Aux σ₁ σ₂ f) (Pi.single i 1)) (Pi.single j 1) = f i j

def LinearMap.toMatrix₂Aux E0 #

(R : Type u_1) →
  {R₁ : Type u_2} →
    {S₁ : Type u_3} →
      {R₂ : Type u_4} →
        {S₂ : Type u_5} →
          {M₁ : Type u_6} →
            {M₂ : Type u_7} →
              {N₂ : Type u_10} →
                {n : Type u_11} →
                  {m : Type u_12} →
                    [inst : CommSemiring R] →
                      [inst_1 : Semiring R₁] →
                        [inst_2 : Semiring S₁] →
                          [inst_3 : Semiring R₂] →
                            [inst_4 : Semiring S₂] →
                              [inst_5 : AddCommMonoid M₁] →
                                [inst_6 : Module R₁ M₁] →
                                  [inst_7 : AddCommMonoid M₂] →
                                    [inst_8 : Module R₂ M₂] →
                                      [inst_9 : AddCommMonoid N₂] →
                                        [inst_10 : Module R N₂] →
                                          [inst_11 : Module S₁ N₂] →
                                            [inst_12 : Module S₂ N₂] →
                                              [inst_13 : SMulCommClass S₁ R N₂] →
                                                [inst_14 : SMulCommClass S₂ R N₂] →
                                                  [inst_15 : SMulCommClass S₂ S₁ N₂] →
                                                    {σ₁ : R₁ →+* S₁} →
                                                      {σ₂ : R₂ →+* S₂} →
                                                        (n → M₁) →
                                                          (m → M₂) → (M₁ →ₛₗ[σ₁] M₂ →ₛₗ[σ₂] N₂) →ₗ[R] Matrix n m N₂

The linear map from sesquilinear maps to Matrix n m N₂ given an n-indexed basis for M₁ and an m-indexed basis for M₂.

This is an auxiliary definition for the equivalence Matrix.toLinearMapₛₗ₂'.

theorem LinearMap.toMatrix₂Aux_apply E0 #

∀ (R : Type u_1) {R₁ : Type u_2} {S₁ : Type u_3} {R₂ : Type u_4} {S₂ : Type u_5} {M₁ : Type u_6} {M₂ : Type u_7}
  {N₂ : Type u_10} {n : Type u_11} {m : Type u_12} [inst : CommSemiring R] [inst_1 : Semiring R₁] [inst_2 : Semiring S₁]
  [inst_3 : Semiring R₂] [inst_4 : Semiring S₂] [inst_5 : AddCommMonoid M₁] [inst_6 : Module R₁ M₁]
  [inst_7 : AddCommMonoid M₂] [inst_8 : Module R₂ M₂] [inst_9 : AddCommMonoid N₂] [inst_10 : Module R N₂]
  [inst_11 : Module S₁ N₂] [inst_12 : Module S₂ N₂] [inst_13 : SMulCommClass S₁ R N₂] [inst_14 : SMulCommClass S₂ R N₂]
  [inst_15 : SMulCommClass S₂ S₁ N₂] {σ₁ : R₁ →+* S₁} {σ₂ : R₂ →+* S₂} (f : M₁ →ₛₗ[σ₁] M₂ →ₛₗ[σ₂] N₂) (b₁ : n → M₁)
  (b₂ : m → M₂) (i : n) (j : m), (LinearMap.toMatrix₂Aux R b₁ b₂) f i j = (f (b₁ i)) (b₂ j)

theorem LinearMap.toLinearMap₂'Aux_toMatrix₂Aux E0 #

∀ (R : Type u_1) {R₁ : Type u_2} {S₁ : Type u_3} {R₂ : Type u_4} {S₂ : Type u_5} {N₂ : Type u_10} {n : Type u_11}
  {m : Type u_12} [inst : CommSemiring R] [inst_1 : Semiring R₁] [inst_2 : Semiring S₁] [inst_3 : Semiring R₂]
  [inst_4 : Semiring S₂] [inst_5 : AddCommMonoid N₂] [inst_6 : Module R N₂] [inst_7 : Module S₁ N₂]
  [inst_8 : Module S₂ N₂] [inst_9 : SMulCommClass S₁ R N₂] [inst_10 : SMulCommClass S₂ R N₂]
  [inst_11 : SMulCommClass S₂ S₁ N₂] {σ₁ : R₁ →+* S₁} {σ₂ : R₂ →+* S₂} [inst_12 : Fintype n] [inst_13 : Fintype m]
  [inst_14 : DecidableEq n] [inst_15 : DecidableEq m] (f : (n → R₁) →ₛₗ[σ₁] (m → R₂) →ₛₗ[σ₂] N₂),
  Matrix.toLinearMap₂'Aux σ₁ σ₂ ((LinearMap.toMatrix₂Aux R (fun i ↦ Pi.single i 1) fun j ↦ Pi.single j 1) f) = f

theorem Matrix.toMatrix₂Aux_toLinearMap₂'Aux E0 #

∀ (R : Type u_1) {R₁ : Type u_2} {S₁ : Type u_3} {R₂ : Type u_4} {S₂ : Type u_5} {N₂ : Type u_10} {n : Type u_11}
  {m : Type u_12} [inst : CommSemiring R] [inst_1 : Semiring R₁] [inst_2 : Semiring S₁] [inst_3 : Semiring R₂]
  [inst_4 : Semiring S₂] [inst_5 : AddCommMonoid N₂] [inst_6 : Module R N₂] [inst_7 : Module S₁ N₂]
  [inst_8 : Module S₂ N₂] [inst_9 : SMulCommClass S₁ R N₂] [inst_10 : SMulCommClass S₂ R N₂]
  [inst_11 : SMulCommClass S₂ S₁ N₂] {σ₁ : R₁ →+* S₁} {σ₂ : R₂ →+* S₂} [inst_12 : Fintype n] [inst_13 : Fintype m]
  [inst_14 : DecidableEq n] [inst_15 : DecidableEq m] (f : Matrix n m N₂),
  (LinearMap.toMatrix₂Aux R (fun i ↦ Pi.single i 1) fun j ↦ Pi.single j 1) (Matrix.toLinearMap₂'Aux σ₁ σ₂ f) = f

def LinearMap.toMatrixₛₗ₂' E1 #

(R : Type u_1) →
  {R₁ : Type u_2} →
    {S₁ : Type u_3} →
      {R₂ : Type u_4} →
        {S₂ : Type u_5} →
          {N₂ : Type u_10} →
            {n : Type u_11} →
              {m : Type u_12} →
                [inst : CommSemiring R] →
                  [inst_1 : AddCommMonoid N₂] →
                    [inst_2 : Module R N₂] →
                      [inst_3 : Semiring R₁] →
                        [inst_4 : Semiring R₂] →
                          [inst_5 : Semiring S₁] →
                            [inst_6 : Semiring S₂] →
                              [inst_7 : Module S₁ N₂] →
                                [inst_8 : Module S₂ N₂] →
                                  [inst_9 : SMulCommClass S₁ R N₂] →
                                    [inst_10 : SMulCommClass S₂ R N₂] →
                                      [inst_11 : SMulCommClass S₂ S₁ N₂] →
                                        {σ₁ : R₁ →+* S₁} →
                                          {σ₂ : R₂ →+* S₂} →
                                            [Fintype n] →
                                              [Fintype m] →
                                                [DecidableEq n] →
                                                  [DecidableEq m] →
                                                    ((n → R₁) →ₛₗ[σ₁] (m → R₂) →ₛₗ[σ₂] N₂) ≃ₗ[R] Matrix n m N₂

The linear equivalence between sesquilinear maps and n × m matrices

def LinearMap.toMatrix₂' E3 #

(R : Type u_1) →
  {S₁ : Type u_3} →
    {S₂ : Type u_5} →
      {N₂ : Type u_10} →
        {n : Type u_11} →
          {m : Type u_12} →
            [inst : CommSemiring R] →
              [inst_1 : AddCommMonoid N₂] →
                [inst_2 : Module R N₂] →
                  [inst_3 : Semiring S₁] →
                    [inst_4 : Semiring S₂] →
                      [inst_5 : Module S₁ N₂] →
                        [inst_6 : Module S₂ N₂] →
                          [inst_7 : SMulCommClass S₁ R N₂] →
                            [inst_8 : SMulCommClass S₂ R N₂] →
                              [inst_9 : SMulCommClass S₂ S₁ N₂] →
                                [Fintype n] →
                                  [Fintype m] →
                                    [DecidableEq n] →
                                      [DecidableEq m] → ((n → S₁) →ₗ[S₁] (m → S₂) →ₗ[S₂] N₂) ≃ₗ[R] Matrix n m N₂

The linear equivalence between bilinear maps and n × m matrices

def Matrix.toLinearMapₛₗ₂' E1 #

(R : Type u_1) →
  {R₁ : Type u_2} →
    {S₁ : Type u_3} →
      {R₂ : Type u_4} →
        {S₂ : Type u_5} →
          {N₂ : Type u_10} →
            {n : Type u_11} →
              {m : Type u_12} →
                [inst : CommSemiring R] →
                  [inst_1 : AddCommMonoid N₂] →
                    [inst_2 : Module R N₂] →
                      [inst_3 : Semiring R₁] →
                        [inst_4 : Semiring R₂] →
                          [inst_5 : Semiring S₁] →
                            [inst_6 : Semiring S₂] →
                              [inst_7 : Module S₁ N₂] →
                                [inst_8 : Module S₂ N₂] →
                                  [inst_9 : SMulCommClass S₁ R N₂] →
                                    [inst_10 : SMulCommClass S₂ R N₂] →
                                      [inst_11 : SMulCommClass S₂ S₁ N₂] →
                                        (σ₁ : R₁ →+* S₁) →
                                          (σ₂ : R₂ →+* S₂) →
                                            [Fintype n] →
                                              [Fintype m] →
                                                [DecidableEq n] →
                                                  [DecidableEq m] →
                                                    Matrix n m N₂ ≃ₗ[R] (n → R₁) →ₛₗ[σ₁] (m → R₂) →ₛₗ[σ₂] N₂

The linear equivalence between n × n matrices and sesquilinear maps on n → R

def Matrix.toLinearMap₂' E3 #

(R : Type u_1) →
  {S₁ : Type u_3} →
    {S₂ : Type u_5} →
      {N₂ : Type u_10} →
        {n : Type u_11} →
          {m : Type u_12} →
            [inst : CommSemiring R] →
              [inst_1 : AddCommMonoid N₂] →
                [inst_2 : Module R N₂] →
                  [inst_3 : Semiring S₁] →
                    [inst_4 : Semiring S₂] →
                      [inst_5 : Module S₁ N₂] →
                        [inst_6 : Module S₂ N₂] →
                          [inst_7 : SMulCommClass S₁ R N₂] →
                            [inst_8 : SMulCommClass S₂ R N₂] →
                              [inst_9 : SMulCommClass S₂ S₁ N₂] →
                                [Fintype n] →
                                  [Fintype m] →
                                    [DecidableEq n] →
                                      [DecidableEq m] → Matrix n m N₂ ≃ₗ[R] (n → S₁) →ₗ[S₁] (m → S₂) →ₗ[S₂] N₂

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

theorem Matrix.toLinearMapₛₗ₂'_aux_eq E0 #

∀ {R : Type u_1} {R₁ : Type u_2} {S₁ : Type u_3} {R₂ : Type u_4} {S₂ : Type u_5} {N₂ : Type u_10} {n : Type u_11}
  {m : Type u_12} [inst : CommSemiring R] [inst_1 : AddCommMonoid N₂] [inst_2 : Module R N₂] [inst_3 : Semiring R₁]
  [inst_4 : Semiring R₂] [inst_5 : Semiring S₁] [inst_6 : Semiring S₂] [inst_7 : Module S₁ N₂] [inst_8 : Module S₂ N₂]
  [inst_9 : SMulCommClass S₁ R N₂] [inst_10 : SMulCommClass S₂ R N₂] [inst_11 : SMulCommClass S₂ S₁ N₂] (σ₁ : R₁ →+* S₁)
  (σ₂ : R₂ →+* S₂) [inst_12 : Fintype n] [inst_13 : Fintype m] [inst_14 : DecidableEq n] [inst_15 : DecidableEq m]
  (M : Matrix n m N₂), Matrix.toLinearMap₂'Aux σ₁ σ₂ M = (Matrix.toLinearMapₛₗ₂' R σ₁ σ₂) M

theorem Matrix.toLinearMapₛₗ₂'_apply E0 #

∀ {R : Type u_1} {R₁ : Type u_2} {S₁ : Type u_3} {R₂ : Type u_4} {S₂ : Type u_5} {N₂ : Type u_10} {n : Type u_11}
  {m : Type u_12} [inst : CommSemiring R] [inst_1 : AddCommMonoid N₂] [inst_2 : Module R N₂] [inst_3 : Semiring R₁]
  [inst_4 : Semiring R₂] [inst_5 : Semiring S₁] [inst_6 : Semiring S₂] [inst_7 : Module S₁ N₂] [inst_8 : Module S₂ N₂]
  [inst_9 : SMulCommClass S₁ R N₂] [inst_10 : SMulCommClass S₂ R N₂] [inst_11 : SMulCommClass S₂ S₁ N₂] (σ₁ : R₁ →+* S₁)
  (σ₂ : R₂ →+* S₂) [inst_12 : Fintype n] [inst_13 : Fintype m] [inst_14 : DecidableEq n] [inst_15 : DecidableEq m]
  (M : Matrix n m N₂) (x : n → R₁) (y : m → R₂),
  (((Matrix.toLinearMapₛₗ₂' R σ₁ σ₂) M) x) y = ∑ i, ∑ j, σ₁ (x i) • σ₂ (y j) • M i j

theorem Matrix.toLinearMap₂'_apply E0 #

∀ {R : Type u_1} {S₁ : Type u_3} {S₂ : Type u_5} {N₂ : Type u_10} {n : Type u_11} {m : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid N₂] [inst_2 : Module R N₂] [inst_3 : Semiring S₁]
  [inst_4 : Semiring S₂] [inst_5 : Module S₁ N₂] [inst_6 : Module S₂ N₂] [inst_7 : SMulCommClass S₁ R N₂]
  [inst_8 : SMulCommClass S₂ R N₂] [inst_9 : SMulCommClass S₂ S₁ N₂] [inst_10 : Fintype n] [inst_11 : Fintype m]
  [inst_12 : DecidableEq n] [inst_13 : DecidableEq m] (M : Matrix n m N₂) (x : n → S₁) (y : m → S₂),
  (((Matrix.toLinearMap₂' R) M) x) y = ∑ i, ∑ j, x i • y j • M i j

theorem Matrix.toLinearMap₂'_apply' E1 #

∀ {n : Type u_11} {m : Type u_12} [inst : Fintype n] [inst_1 : Fintype m] [inst_2 : DecidableEq n]
  [inst_3 : DecidableEq m] {T : Type u_16} [inst_4 : CommSemiring T] (M : Matrix n m T) (v : n → T) (w : m → T),
  (((Matrix.toLinearMap₂' T) M) v) w = v ⬝ᵥ M.mulVec w

theorem Matrix.toLinearMapₛₗ₂'_single E0 #

∀ {R : Type u_1} {R₁ : Type u_2} {S₁ : Type u_3} {R₂ : Type u_4} {S₂ : Type u_5} {N₂ : Type u_10} {n : Type u_11}
  {m : Type u_12} [inst : CommSemiring R] [inst_1 : AddCommMonoid N₂] [inst_2 : Module R N₂] [inst_3 : Semiring R₁]
  [inst_4 : Semiring R₂] [inst_5 : Semiring S₁] [inst_6 : Semiring S₂] [inst_7 : Module S₁ N₂] [inst_8 : Module S₂ N₂]
  [inst_9 : SMulCommClass S₁ R N₂] [inst_10 : SMulCommClass S₂ R N₂] [inst_11 : SMulCommClass S₂ S₁ N₂] (σ₁ : R₁ →+* S₁)
  (σ₂ : R₂ →+* S₂) [inst_12 : Fintype n] [inst_13 : Fintype m] [inst_14 : DecidableEq n] [inst_15 : DecidableEq m]
  (M : Matrix n m N₂) (i : n) (j : m), (((Matrix.toLinearMapₛₗ₂' R σ₁ σ₂) M) (Pi.single i 1)) (Pi.single j 1) = M i j

theorem Matrix.toLinearMap₂'_single E0 #

∀ {R : Type u_1} {N₂ : Type u_10} {n : Type u_11} {m : Type u_12} [inst : CommSemiring R] [inst_1 : AddCommMonoid N₂]
  [inst_2 : Module R N₂] [inst_3 : Fintype n] [inst_4 : Fintype m] [inst_5 : DecidableEq n] [inst_6 : DecidableEq m]
  (M : Matrix n m N₂) (i : n) (j : m), (((Matrix.toLinearMap₂' R) M) (Pi.single i 1)) (Pi.single j 1) = M i j

theorem LinearMap.toMatrixₛₗ₂'_symm E0 #

∀ {R : Type u_1} {R₁ : Type u_2} {S₁ : Type u_3} {R₂ : Type u_4} {S₂ : Type u_5} {N₂ : Type u_10} {n : Type u_11}
  {m : Type u_12} [inst : CommSemiring R] [inst_1 : AddCommMonoid N₂] [inst_2 : Module R N₂] [inst_3 : Semiring R₁]
  [inst_4 : Semiring R₂] [inst_5 : Semiring S₁] [inst_6 : Semiring S₂] [inst_7 : Module S₁ N₂] [inst_8 : Module S₂ N₂]
  [inst_9 : SMulCommClass S₁ R N₂] [inst_10 : SMulCommClass S₂ R N₂] [inst_11 : SMulCommClass S₂ S₁ N₂] (σ₁ : R₁ →+* S₁)
  (σ₂ : R₂ →+* S₂) [inst_12 : Fintype n] [inst_13 : Fintype m] [inst_14 : DecidableEq n] [inst_15 : DecidableEq m],
  (LinearMap.toMatrixₛₗ₂' R).symm = Matrix.toLinearMapₛₗ₂' R σ₁ σ₂

theorem Matrix.toLinearMapₛₗ₂'_symm E0 #

∀ {R : Type u_1} {R₁ : Type u_2} {S₁ : Type u_3} {R₂ : Type u_4} {S₂ : Type u_5} {N₂ : Type u_10} {n : Type u_11}
  {m : Type u_12} [inst : CommSemiring R] [inst_1 : AddCommMonoid N₂] [inst_2 : Module R N₂] [inst_3 : Semiring R₁]
  [inst_4 : Semiring R₂] [inst_5 : Semiring S₁] [inst_6 : Semiring S₂] [inst_7 : Module S₁ N₂] [inst_8 : Module S₂ N₂]
  [inst_9 : SMulCommClass S₁ R N₂] [inst_10 : SMulCommClass S₂ R N₂] [inst_11 : SMulCommClass S₂ S₁ N₂] (σ₁ : R₁ →+* S₁)
  (σ₂ : R₂ →+* S₂) [inst_12 : Fintype n] [inst_13 : Fintype m] [inst_14 : DecidableEq n] [inst_15 : DecidableEq m],
  (Matrix.toLinearMapₛₗ₂' R σ₁ σ₂).symm = LinearMap.toMatrixₛₗ₂' R

theorem Matrix.toLinearMapₛₗ₂'_toMatrix' E0 #

∀ {R : Type u_1} {R₁ : Type u_2} {S₁ : Type u_3} {R₂ : Type u_4} {S₂ : Type u_5} {N₂ : Type u_10} {n : Type u_11}
  {m : Type u_12} [inst : CommSemiring R] [inst_1 : AddCommMonoid N₂] [inst_2 : Module R N₂] [inst_3 : Semiring R₁]
  [inst_4 : Semiring R₂] [inst_5 : Semiring S₁] [inst_6 : Semiring S₂] [inst_7 : Module S₁ N₂] [inst_8 : Module S₂ N₂]
  [inst_9 : SMulCommClass S₁ R N₂] [inst_10 : SMulCommClass S₂ R N₂] [inst_11 : SMulCommClass S₂ S₁ N₂] (σ₁ : R₁ →+* S₁)
  (σ₂ : R₂ →+* S₂) [inst_12 : Fintype n] [inst_13 : Fintype m] [inst_14 : DecidableEq n] [inst_15 : DecidableEq m]
  (B : (n → R₁) →ₛₗ[σ₁] (m → R₂) →ₛₗ[σ₂] N₂), (Matrix.toLinearMapₛₗ₂' R σ₁ σ₂) ((LinearMap.toMatrixₛₗ₂' R) B) = B

theorem Matrix.toLinearMap₂'_toMatrix' E0 #

∀ {R : Type u_1} {S₁ : Type u_3} {S₂ : Type u_5} {N₂ : Type u_10} {n : Type u_11} {m : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid N₂] [inst_2 : Module R N₂] [inst_3 : Semiring S₁]
  [inst_4 : Semiring S₂] [inst_5 : Module S₁ N₂] [inst_6 : Module S₂ N₂] [inst_7 : SMulCommClass S₁ R N₂]
  [inst_8 : SMulCommClass S₂ R N₂] [inst_9 : SMulCommClass S₂ S₁ N₂] [inst_10 : Fintype n] [inst_11 : Fintype m]
  [inst_12 : DecidableEq n] [inst_13 : DecidableEq m] (B : (n → S₁) →ₗ[S₁] (m → S₂) →ₗ[S₂] N₂),
  (Matrix.toLinearMap₂' R) ((LinearMap.toMatrix₂' R) B) = B

theorem LinearMap.toMatrix'_toLinearMapₛₗ₂' E0 #

∀ {R : Type u_1} {R₁ : Type u_2} {S₁ : Type u_3} {R₂ : Type u_4} {S₂ : Type u_5} {N₂ : Type u_10} {n : Type u_11}
  {m : Type u_12} [inst : CommSemiring R] [inst_1 : AddCommMonoid N₂] [inst_2 : Module R N₂] [inst_3 : Semiring R₁]
  [inst_4 : Semiring R₂] [inst_5 : Semiring S₁] [inst_6 : Semiring S₂] [inst_7 : Module S₁ N₂] [inst_8 : Module S₂ N₂]
  [inst_9 : SMulCommClass S₁ R N₂] [inst_10 : SMulCommClass S₂ R N₂] [inst_11 : SMulCommClass S₂ S₁ N₂] (σ₁ : R₁ →+* S₁)
  (σ₂ : R₂ →+* S₂) [inst_12 : Fintype n] [inst_13 : Fintype m] [inst_14 : DecidableEq n] [inst_15 : DecidableEq m]
  (M : Matrix n m N₂), (LinearMap.toMatrixₛₗ₂' R) ((Matrix.toLinearMapₛₗ₂' R σ₁ σ₂) M) = M

theorem LinearMap.toMatrix'_toLinearMap₂' E0 #

∀ {R : Type u_1} {S₁ : Type u_3} {S₂ : Type u_5} {N₂ : Type u_10} {n : Type u_11} {m : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid N₂] [inst_2 : Module R N₂] [inst_3 : Semiring S₁]
  [inst_4 : Semiring S₂] [inst_5 : Module S₁ N₂] [inst_6 : Module S₂ N₂] [inst_7 : SMulCommClass S₁ R N₂]
  [inst_8 : SMulCommClass S₂ R N₂] [inst_9 : SMulCommClass S₂ S₁ N₂] [inst_10 : Fintype n] [inst_11 : Fintype m]
  [inst_12 : DecidableEq n] [inst_13 : DecidableEq m] (M : Matrix n m N₂),
  (LinearMap.toMatrix₂' R) ((Matrix.toLinearMap₂' R) M) = M

theorem LinearMap.toMatrixₛₗ₂'_apply E0 #

∀ {R : Type u_1} {R₁ : Type u_2} {S₁ : Type u_3} {R₂ : Type u_4} {S₂ : Type u_5} {N₂ : Type u_10} {n : Type u_11}
  {m : Type u_12} [inst : CommSemiring R] [inst_1 : AddCommMonoid N₂] [inst_2 : Module R N₂] [inst_3 : Semiring R₁]
  [inst_4 : Semiring R₂] [inst_5 : Semiring S₁] [inst_6 : Semiring S₂] [inst_7 : Module S₁ N₂] [inst_8 : Module S₂ N₂]
  [inst_9 : SMulCommClass S₁ R N₂] [inst_10 : SMulCommClass S₂ R N₂] [inst_11 : SMulCommClass S₂ S₁ N₂] (σ₁ : R₁ →+* S₁)
  (σ₂ : R₂ →+* S₂) [inst_12 : Fintype n] [inst_13 : Fintype m] [inst_14 : DecidableEq n] [inst_15 : DecidableEq m]
  (B : (n → R₁) →ₛₗ[σ₁] (m → R₂) →ₛₗ[σ₂] N₂) (i : n) (j : m),
  (LinearMap.toMatrixₛₗ₂' R) B i j = (B (Pi.single i 1)) (Pi.single j 1)

theorem LinearMap.toMatrix₂'_apply E0 #

∀ {R : Type u_1} {S₁ : Type u_3} {S₂ : Type u_5} {N₂ : Type u_10} {n : Type u_11} {m : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid N₂] [inst_2 : Module R N₂] [inst_3 : Semiring S₁]
  [inst_4 : Semiring S₂] [inst_5 : Module S₁ N₂] [inst_6 : Module S₂ N₂] [inst_7 : SMulCommClass S₁ R N₂]
  [inst_8 : SMulCommClass S₂ R N₂] [inst_9 : SMulCommClass S₂ S₁ N₂] [inst_10 : Fintype n] [inst_11 : Fintype m]
  [inst_12 : DecidableEq n] [inst_13 : DecidableEq m] (B : (n → S₁) →ₗ[S₁] (m → S₂) →ₗ[S₂] N₂) (i : n) (j : m),
  (LinearMap.toMatrix₂' R) B i j = (B (Pi.single i 1)) (Pi.single j 1)

theorem LinearMap.toMatrix₂'_compl₁₂ E0 #

∀ {n : Type u_11} {m : Type u_12} {n' : Type u_13} {m' : Type u_14} {R : Type u_16} [inst : CommSemiring R]
  [inst_1 : Fintype n] [inst_2 : Fintype m] [inst_3 : DecidableEq n] [inst_4 : DecidableEq m] [inst_5 : Fintype n']
  [inst_6 : Fintype m'] [inst_7 : DecidableEq n'] [inst_8 : DecidableEq m'] (B : (n → R) →ₗ[R] (m → R) →ₗ[R] R)
  (l : (n' → R) →ₗ[R] n → R) (r : (m' → R) →ₗ[R] m → R),
  (LinearMap.toMatrix₂' R) (B.compl₁₂ l r) =
    (LinearMap.toMatrix' l).transpose * (LinearMap.toMatrix₂' R) B * LinearMap.toMatrix' r

theorem LinearMap.toMatrix₂'_comp E1 #

∀ {n : Type u_11} {m : Type u_12} {n' : Type u_13} {R : Type u_16} [inst : CommSemiring R] [inst_1 : Fintype n]
  [inst_2 : Fintype m] [inst_3 : DecidableEq n] [inst_4 : DecidableEq m] [inst_5 : Fintype n'] [inst_6 : DecidableEq n']
  (B : (n → R) →ₗ[R] (m → R) →ₗ[R] R) (f : (n' → R) →ₗ[R] n → R),
  (LinearMap.toMatrix₂' R) (B ∘ₗ f) = (LinearMap.toMatrix' f).transpose * (LinearMap.toMatrix₂' R) B

theorem LinearMap.toMatrix₂'_compl₂ E1 #

∀ {n : Type u_11} {m : Type u_12} {m' : Type u_14} {R : Type u_16} [inst : CommSemiring R] [inst_1 : Fintype n]
  [inst_2 : Fintype m] [inst_3 : DecidableEq n] [inst_4 : DecidableEq m] [inst_5 : Fintype m'] [inst_6 : DecidableEq m']
  (B : (n → R) →ₗ[R] (m → R) →ₗ[R] R) (f : (m' → R) →ₗ[R] m → R),
  (LinearMap.toMatrix₂' R) (B.compl₂ f) = (LinearMap.toMatrix₂' R) B * LinearMap.toMatrix' f

theorem LinearMap.mul_toMatrix₂'_mul E1 #

∀ {n : Type u_11} {m : Type u_12} {n' : Type u_13} {m' : Type u_14} {R : Type u_16} [inst : CommSemiring R]
  [inst_1 : Fintype n] [inst_2 : Fintype m] [inst_3 : DecidableEq n] [inst_4 : DecidableEq m] [inst_5 : Fintype n']
  [inst_6 : Fintype m'] [inst_7 : DecidableEq n'] [inst_8 : DecidableEq m'] (B : (n → R) →ₗ[R] (m → R) →ₗ[R] R)
  (M : Matrix n' n R) (N : Matrix m m' R),
  M * (LinearMap.toMatrix₂' R) B * N =
    (LinearMap.toMatrix₂' R) (B.compl₁₂ (Matrix.toLin' M.transpose) (Matrix.toLin' N))

theorem LinearMap.mul_toMatrix' E1 #

∀ {n : Type u_11} {m : Type u_12} {n' : Type u_13} {R : Type u_16} [inst : CommSemiring R] [inst_1 : Fintype n]
  [inst_2 : Fintype m] [inst_3 : DecidableEq n] [inst_4 : DecidableEq m] [inst_5 : Fintype n'] [inst_6 : DecidableEq n']
  (B : (n → R) →ₗ[R] (m → R) →ₗ[R] R) (M : Matrix n' n R),
  M * (LinearMap.toMatrix₂' R) B = (LinearMap.toMatrix₂' R) (B ∘ₗ Matrix.toLin' M.transpose)

theorem LinearMap.toMatrix₂'_mul E1 #

∀ {n : Type u_11} {m : Type u_12} {m' : Type u_14} {R : Type u_16} [inst : CommSemiring R] [inst_1 : Fintype n]
  [inst_2 : Fintype m] [inst_3 : DecidableEq n] [inst_4 : DecidableEq m] [inst_5 : Fintype m'] [inst_6 : DecidableEq m']
  (B : (n → R) →ₗ[R] (m → R) →ₗ[R] R) (M : Matrix m m' R),
  (LinearMap.toMatrix₂' R) B * M = (LinearMap.toMatrix₂' R) (B.compl₂ (Matrix.toLin' M))

theorem Matrix.toLinearMap₂'_comp E1 #

∀ {n : Type u_11} {m : Type u_12} {n' : Type u_13} {m' : Type u_14} {R : Type u_16} [inst : CommSemiring R]
  [inst_1 : Fintype n] [inst_2 : Fintype m] [inst_3 : DecidableEq n] [inst_4 : DecidableEq m] [inst_5 : Fintype n']
  [inst_6 : Fintype m'] [inst_7 : DecidableEq n'] [inst_8 : DecidableEq m'] (M : Matrix n m R) (P : Matrix n n' R)
  (Q : Matrix m m' R),
  ((Matrix.toLinearMap₂' R) M).compl₁₂ (Matrix.toLin' P) (Matrix.toLin' Q) =
    (Matrix.toLinearMap₂' R) (P.transpose * M * Q)

def LinearMap.toMatrix₂ E3 #

{R : Type u_1} →
  {M₁ : Type u_6} →
    {M₂ : Type u_7} →
      {N₂ : Type u_10} →
        {n : Type u_11} →
          {m : Type u_12} →
            [inst : CommSemiring R] →
              [inst_1 : AddCommMonoid M₁] →
                [inst_2 : Module R M₁] →
                  [inst_3 : AddCommMonoid M₂] →
                    [inst_4 : Module R M₂] →
                      [inst_5 : AddCommMonoid N₂] →
                        [inst_6 : Module R N₂] →
                          {σ₁ σ₂ : R →+* R} →
                            [Fintype n] →
                              [Fintype m] →
                                [DecidableEq m] →
                                  [DecidableEq n] →
                                    Module.Basis n R M₁ →
                                      Module.Basis m R M₂ → (M₁ →ₛₗ[σ₁] M₂ →ₛₗ[σ₂] N₂) ≃ₗ[R] Matrix n m N₂

LinearMap.toMatrix₂ b₁ b₂ is the equivalence between R-sesquilinear maps M₁ →ₛₗ[σ₁] M₂ →ₗ[σ₂] N₂ and n-by-m matrices with entries in N₂, if b₁ and b₂ are R-bases for M₁ and M₂, respectively.

def Matrix.toLinearMapₛₗ₂ E1 #

{R : Type u_1} →
  {M₁ : Type u_6} →
    {M₂ : Type u_7} →
      {N₂ : Type u_10} →
        {n : Type u_11} →
          {m : Type u_12} →
            [inst : CommSemiring R] →
              [inst_1 : AddCommMonoid M₁] →
                [inst_2 : Module R M₁] →
                  [inst_3 : AddCommMonoid M₂] →
                    [inst_4 : Module R M₂] →
                      [inst_5 : AddCommMonoid N₂] →
                        [inst_6 : Module R N₂] →
                          (σ₁ : R →+* R) →
                            [Fintype n] →
                              [Fintype m] →
                                [DecidableEq m] →
                                  [DecidableEq n] →
                                    Module.Basis n R M₁ →
                                      Module.Basis m R M₂ → Matrix n m N₂ ≃ₗ[R] M₁ →ₛₗ[σ₁] M₂ →ₗ[R] N₂

Matrix.toLinearMapₛₗ₂ b₁ b₂ is the equivalence between R-sesquilinear maps M₁ →ₛₗ[σ₁] M₂ →ₗ[R] N₂ and n-by-m matrices with entries in N₂, if b₁ and b₂ are R-bases for M₁ and M₂, respectively; this is the reverse direction of LinearMap.toMatrix₂ b₁ b₂.

def Matrix.toLinearMap₂ E3 #

{R : Type u_1} →
  {M₁ : Type u_6} →
    {M₂ : Type u_7} →
      {N₂ : Type u_10} →
        {n : Type u_11} →
          {m : Type u_12} →
            [inst : CommSemiring R] →
              [inst_1 : AddCommMonoid M₁] →
                [inst_2 : Module R M₁] →
                  [inst_3 : AddCommMonoid M₂] →
                    [inst_4 : Module R M₂] →
                      [inst_5 : AddCommMonoid N₂] →
                        [inst_6 : Module R N₂] →
                          [Fintype n] →
                            [Fintype m] →
                              [DecidableEq m] →
                                [DecidableEq n] →
                                  Module.Basis n R M₁ → Module.Basis m R M₂ → Matrix n m N₂ ≃ₗ[R] M₁ →ₗ[R] M₂ →ₗ[R] N₂

Matrix.toLinearMap₂ b₁ b₂ is the same as Matrix.toLinearMapₛₗ₂ b₁ b₂ but with σ₁ := RingHom.id R to avoid having to specify it.

theorem LinearMap.toMatrix₂_apply E0 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {N₂ : Type u_10} {n : Type u_11} {m : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁] [inst_3 : AddCommMonoid M₂]
  [inst_4 : Module R M₂] [inst_5 : AddCommMonoid N₂] [inst_6 : Module R N₂] {σ₁ σ₂ : R →+* R} [inst_7 : Fintype n]
  [inst_8 : Fintype m] [inst_9 : DecidableEq m] [inst_10 : DecidableEq n] (b₁ : Module.Basis n R M₁)
  (b₂ : Module.Basis m R M₂) (B : M₁ →ₛₗ[σ₁] M₂ →ₛₗ[σ₂] N₂) (i : n) (j : m),
  (LinearMap.toMatrix₂ b₁ b₂) B i j = (B (b₁ i)) (b₂ j)

theorem Matrix.toLinearMapₛₗ₂_apply E0 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {N₂ : Type u_10} {n : Type u_11} {m : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁] [inst_3 : AddCommMonoid M₂]
  [inst_4 : Module R M₂] [inst_5 : AddCommMonoid N₂] [inst_6 : Module R N₂] {σ₁ : R →+* R} [inst_7 : Fintype n]
  [inst_8 : Fintype m] [inst_9 : DecidableEq m] [inst_10 : DecidableEq n] (b₁ : Module.Basis n R M₁)
  (b₂ : Module.Basis m R M₂) (M : Matrix n m N₂) (x : M₁) (y : M₂),
  (((Matrix.toLinearMapₛₗ₂ σ₁ b₁ b₂) M) x) y = ∑ i, ∑ j, σ₁ ((b₁.repr x) i) • (b₂.repr y) j • M i j

theorem Matrix.toLinearMap₂_apply E0 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {N₂ : Type u_10} {n : Type u_11} {m : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁] [inst_3 : AddCommMonoid M₂]
  [inst_4 : Module R M₂] [inst_5 : AddCommMonoid N₂] [inst_6 : Module R N₂] [inst_7 : Fintype n] [inst_8 : Fintype m]
  [inst_9 : DecidableEq m] [inst_10 : DecidableEq n] (b₁ : Module.Basis n R M₁) (b₂ : Module.Basis m R M₂)
  (M : Matrix n m N₂) (x : M₁) (y : M₂),
  (((Matrix.toLinearMap₂ b₁ b₂) M) x) y = ∑ i, ∑ j, (b₁.repr x) i • (b₂.repr y) j • M i j

theorem Matrix.toLinearMapₛₗ₂_apply_basis E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {N₂ : Type u_10} {n : Type u_11} {m : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁] [inst_3 : AddCommMonoid M₂]
  [inst_4 : Module R M₂] [inst_5 : AddCommMonoid N₂] [inst_6 : Module R N₂] {σ₁ : R →+* R} [inst_7 : Fintype n]
  [inst_8 : Fintype m] [inst_9 : DecidableEq m] [inst_10 : DecidableEq n] (b₁ : Module.Basis n R M₁)
  (b₂ : Module.Basis m R M₂) (M : Matrix n m N₂) (i : n) (j : m),
  (((Matrix.toLinearMapₛₗ₂ σ₁ b₁ b₂) M) (b₁ i)) (b₂ j) = M i j

theorem Matrix.toLinearMap₂_apply_basis E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {N₂ : Type u_10} {n : Type u_11} {m : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁] [inst_3 : AddCommMonoid M₂]
  [inst_4 : Module R M₂] [inst_5 : AddCommMonoid N₂] [inst_6 : Module R N₂] [inst_7 : Fintype n] [inst_8 : Fintype m]
  [inst_9 : DecidableEq m] [inst_10 : DecidableEq n] (b₁ : Module.Basis n R M₁) (b₂ : Module.Basis m R M₂)
  (M : Matrix n m N₂) (i : n) (j : m), (((Matrix.toLinearMap₂ b₁ b₂) M) (b₁ i)) (b₂ j) = M i j

theorem dotProduct_toMatrix₂_mulVec E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {n : Type u_11} {m : Type u_12} [inst : CommSemiring R]
  [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R M₂]
  {σ₁ σ₂ : R →+* R} [inst_5 : Fintype n] [inst_6 : Fintype m] [inst_7 : DecidableEq m] [inst_8 : DecidableEq n]
  (b₁ : Module.Basis n R M₁) (b₂ : Module.Basis m R M₂) (B : M₁ →ₛₗ[σ₁] M₂ →ₛₗ[σ₂] R) (x : n → R) (y : m → R),
  ⇑σ₁ ∘ x ⬝ᵥ ((LinearMap.toMatrix₂ b₁ b₂) B).mulVec (⇑σ₂ ∘ y) = (B (b₁.equivFun.symm x)) (b₂.equivFun.symm y)

theorem apply_eq_dotProduct_toMatrix₂_mulVec E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {n : Type u_11} {m : Type u_12} [inst : CommSemiring R]
  [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R M₂]
  {σ₁ σ₂ : R →+* R} [inst_5 : Fintype n] [inst_6 : Fintype m] [inst_7 : DecidableEq m] [inst_8 : DecidableEq n]
  (b₁ : Module.Basis n R M₁) (b₂ : Module.Basis m R M₂) (B : M₁ →ₛₗ[σ₁] M₂ →ₛₗ[σ₂] R) (x : M₁) (y : M₂),
  (B x) y = ⇑σ₁ ∘ ⇑(b₁.repr x) ⬝ᵥ ((LinearMap.toMatrix₂ b₁ b₂) B).mulVec (⇑σ₂ ∘ ⇑(b₂.repr y))

theorem LinearMap.toMatrix₂Aux_eq E0 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {N₂ : Type u_10} {n : Type u_11} {m : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁] [inst_3 : AddCommMonoid M₂]
  [inst_4 : Module R M₂] [inst_5 : AddCommMonoid N₂] [inst_6 : Module R N₂] {σ₁ σ₂ : R →+* R} [inst_7 : Fintype n]
  [inst_8 : Fintype m] [inst_9 : DecidableEq m] [inst_10 : DecidableEq n] (b₁ : Module.Basis n R M₁)
  (b₂ : Module.Basis m R M₂) (B : M₁ →ₛₗ[σ₁] M₂ →ₛₗ[σ₂] N₂),
  (LinearMap.toMatrix₂Aux R ⇑b₁ ⇑b₂) B = (LinearMap.toMatrix₂ b₁ b₂) B

theorem LinearMap.toMatrix₂_symm' E0 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {N₂ : Type u_10} {n : Type u_11} {m : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁] [inst_3 : AddCommMonoid M₂]
  [inst_4 : Module R M₂] [inst_5 : AddCommMonoid N₂] [inst_6 : Module R N₂] {σ₁ : R →+* R} [inst_7 : Fintype n]
  [inst_8 : Fintype m] [inst_9 : DecidableEq m] [inst_10 : DecidableEq n] (b₁ : Module.Basis n R M₁)
  (b₂ : Module.Basis m R M₂), (LinearMap.toMatrix₂ b₁ b₂).symm = Matrix.toLinearMapₛₗ₂ σ₁ b₁ b₂

theorem LinearMap.toMatrix₂_symm E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {N₂ : Type u_10} {n : Type u_11} {m : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁] [inst_3 : AddCommMonoid M₂]
  [inst_4 : Module R M₂] [inst_5 : AddCommMonoid N₂] [inst_6 : Module R N₂] [inst_7 : Fintype n] [inst_8 : Fintype m]
  [inst_9 : DecidableEq m] [inst_10 : DecidableEq n] (b₁ : Module.Basis n R M₁) (b₂ : Module.Basis m R M₂),
  (LinearMap.toMatrix₂ b₁ b₂).symm = Matrix.toLinearMap₂ b₁ b₂

theorem Matrix.toLinearMapₛₗ₂_symm E0 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {N₂ : Type u_10} {n : Type u_11} {m : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁] [inst_3 : AddCommMonoid M₂]
  [inst_4 : Module R M₂] [inst_5 : AddCommMonoid N₂] [inst_6 : Module R N₂] {σ₁ : R →+* R} [inst_7 : Fintype n]
  [inst_8 : Fintype m] [inst_9 : DecidableEq m] [inst_10 : DecidableEq n] (b₁ : Module.Basis n R M₁)
  (b₂ : Module.Basis m R M₂), (Matrix.toLinearMapₛₗ₂ σ₁ b₁ b₂).symm = LinearMap.toMatrix₂ b₁ b₂

theorem Matrix.toLinearMap₂_symm E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {N₂ : Type u_10} {n : Type u_11} {m : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁] [inst_3 : AddCommMonoid M₂]
  [inst_4 : Module R M₂] [inst_5 : AddCommMonoid N₂] [inst_6 : Module R N₂] [inst_7 : Fintype n] [inst_8 : Fintype m]
  [inst_9 : DecidableEq m] [inst_10 : DecidableEq n] (b₁ : Module.Basis n R M₁) (b₂ : Module.Basis m R M₂),
  (Matrix.toLinearMap₂ b₁ b₂).symm = LinearMap.toMatrix₂ b₁ b₂

theorem Matrix.toLinearMap₂_basisFun E1 #

∀ {R : Type u_1} {N₂ : Type u_10} {n : Type u_11} {m : Type u_12} [inst : CommSemiring R] [inst_1 : AddCommMonoid N₂]
  [inst_2 : Module R N₂] [inst_3 : Fintype n] [inst_4 : Fintype m] [inst_5 : DecidableEq m] [inst_6 : DecidableEq n],
  Matrix.toLinearMap₂ (Pi.basisFun R n) (Pi.basisFun R m) = Matrix.toLinearMap₂' R

theorem LinearMap.toMatrix₂_basisFun E1 #

∀ {R : Type u_1} {N₂ : Type u_10} {n : Type u_11} {m : Type u_12} [inst : CommSemiring R] [inst_1 : AddCommMonoid N₂]
  [inst_2 : Module R N₂] [inst_3 : Fintype n] [inst_4 : Fintype m] [inst_5 : DecidableEq m] [inst_6 : DecidableEq n],
  LinearMap.toMatrix₂ (Pi.basisFun R n) (Pi.basisFun R m) = LinearMap.toMatrix₂' R

theorem Matrix.toLinearMapₛₗ₂_toMatrix₂ E0 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {N₂ : Type u_10} {n : Type u_11} {m : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁] [inst_3 : AddCommMonoid M₂]
  [inst_4 : Module R M₂] [inst_5 : AddCommMonoid N₂] [inst_6 : Module R N₂] {σ₁ : R →+* R} [inst_7 : Fintype n]
  [inst_8 : Fintype m] [inst_9 : DecidableEq m] [inst_10 : DecidableEq n] (b₁ : Module.Basis n R M₁)
  (b₂ : Module.Basis m R M₂) (B : M₁ →ₛₗ[σ₁] M₂ →ₗ[R] N₂),
  (Matrix.toLinearMapₛₗ₂ σ₁ b₁ b₂) ((LinearMap.toMatrix₂ b₁ b₂) B) = B

theorem Matrix.toLinearMap₂_toMatrix₂ E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {N₂ : Type u_10} {n : Type u_11} {m : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁] [inst_3 : AddCommMonoid M₂]
  [inst_4 : Module R M₂] [inst_5 : AddCommMonoid N₂] [inst_6 : Module R N₂] [inst_7 : Fintype n] [inst_8 : Fintype m]
  [inst_9 : DecidableEq m] [inst_10 : DecidableEq n] (b₁ : Module.Basis n R M₁) (b₂ : Module.Basis m R M₂)
  (B : M₁ →ₗ[R] M₂ →ₗ[R] N₂), (Matrix.toLinearMap₂ b₁ b₂) ((LinearMap.toMatrix₂ b₁ b₂) B) = B

theorem LinearMap.toMatrix₂_toLinearMapₛₗ₂ E0 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {N₂ : Type u_10} {n : Type u_11} {m : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁] [inst_3 : AddCommMonoid M₂]
  [inst_4 : Module R M₂] [inst_5 : AddCommMonoid N₂] [inst_6 : Module R N₂] {σ₁ : R →+* R} [inst_7 : Fintype n]
  [inst_8 : Fintype m] [inst_9 : DecidableEq m] [inst_10 : DecidableEq n] (b₁ : Module.Basis n R M₁)
  (b₂ : Module.Basis m R M₂) (M : Matrix n m N₂), (LinearMap.toMatrix₂ b₁ b₂) ((Matrix.toLinearMapₛₗ₂ σ₁ b₁ b₂) M) = M

theorem LinearMap.toMatrix₂_toLinearMap₂ E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {N₂ : Type u_10} {n : Type u_11} {m : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁] [inst_3 : AddCommMonoid M₂]
  [inst_4 : Module R M₂] [inst_5 : AddCommMonoid N₂] [inst_6 : Module R N₂] [inst_7 : Fintype n] [inst_8 : Fintype m]
  [inst_9 : DecidableEq m] [inst_10 : DecidableEq n] (b₁ : Module.Basis n R M₁) (b₂ : Module.Basis m R M₂)
  (M : Matrix n m N₂), (LinearMap.toMatrix₂ b₁ b₂) ((Matrix.toLinearMap₂ b₁ b₂) M) = M

theorem LinearMap.toMatrix₂_compl₁₂ E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {M₁' : Type u_8} {M₂' : Type u_9} {n : Type u_11} {m : Type u_12}
  {n' : Type u_13} {m' : Type u_14} [inst : CommSemiring R] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁]
  [inst_3 : AddCommMonoid M₂] [inst_4 : Module R M₂] [inst_5 : Fintype n] [inst_6 : Fintype m] [inst_7 : DecidableEq m]
  [inst_8 : DecidableEq n] (b₁ : Module.Basis n R M₁) (b₂ : Module.Basis m R M₂) [inst_9 : AddCommMonoid M₁']
  [inst_10 : Module R M₁'] [inst_11 : AddCommMonoid M₂'] [inst_12 : Module R M₂'] (b₁' : Module.Basis n' R M₁')
  (b₂' : Module.Basis m' R M₂') [inst_13 : Fintype n'] [inst_14 : Fintype m'] [inst_15 : DecidableEq n']
  [inst_16 : DecidableEq m'] (B : M₁ →ₗ[R] M₂ →ₗ[R] R) (l : M₁' →ₗ[R] M₁) (r : M₂' →ₗ[R] M₂),
  (LinearMap.toMatrix₂ b₁' b₂') (B.compl₁₂ l r) =
    ((LinearMap.toMatrix b₁' b₁) l).transpose * (LinearMap.toMatrix₂ b₁ b₂) B * (LinearMap.toMatrix b₂' b₂) r

theorem LinearMap.toMatrix₂_comp E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {M₁' : Type u_8} {n : Type u_11} {m : Type u_12} {n' : Type u_13}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁] [inst_3 : AddCommMonoid M₂]
  [inst_4 : Module R M₂] [inst_5 : Fintype n] [inst_6 : Fintype m] [inst_7 : DecidableEq m] [inst_8 : DecidableEq n]
  (b₁ : Module.Basis n R M₁) (b₂ : Module.Basis m R M₂) [inst_9 : AddCommMonoid M₁'] [inst_10 : Module R M₁']
  (b₁' : Module.Basis n' R M₁') [inst_11 : Fintype n'] [inst_12 : DecidableEq n'] (B : M₁ →ₗ[R] M₂ →ₗ[R] R)
  (f : M₁' →ₗ[R] M₁),
  (LinearMap.toMatrix₂ b₁' b₂) (B ∘ₗ f) = ((LinearMap.toMatrix b₁' b₁) f).transpose * (LinearMap.toMatrix₂ b₁ b₂) B

theorem LinearMap.toMatrix₂_compl₂ E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {M₂' : Type u_9} {n : Type u_11} {m : Type u_12} {m' : Type u_14}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁] [inst_3 : AddCommMonoid M₂]
  [inst_4 : Module R M₂] [inst_5 : Fintype n] [inst_6 : Fintype m] [inst_7 : DecidableEq m] [inst_8 : DecidableEq n]
  (b₁ : Module.Basis n R M₁) (b₂ : Module.Basis m R M₂) [inst_9 : AddCommMonoid M₂'] [inst_10 : Module R M₂']
  (b₂' : Module.Basis m' R M₂') [inst_11 : Fintype m'] [inst_12 : DecidableEq m'] (B : M₁ →ₗ[R] M₂ →ₗ[R] R)
  (f : M₂' →ₗ[R] M₂),
  (LinearMap.toMatrix₂ b₁ b₂') (B.compl₂ f) = (LinearMap.toMatrix₂ b₁ b₂) B * (LinearMap.toMatrix b₂' b₂) f

theorem LinearMap.toMatrix₂_mul_basis_toMatrix E0 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {n : Type u_11} {m : Type u_12} {n' : Type u_13} {m' : Type u_14}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁] [inst_3 : AddCommMonoid M₂]
  [inst_4 : Module R M₂] [inst_5 : Fintype n] [inst_6 : Fintype m] [inst_7 : DecidableEq m] [inst_8 : DecidableEq n]
  (b₁ : Module.Basis n R M₁) (b₂ : Module.Basis m R M₂) [inst_9 : Fintype n'] [inst_10 : Fintype m']
  [inst_11 : DecidableEq n'] [inst_12 : DecidableEq m'] (c₁ : Module.Basis n' R M₁) (c₂ : Module.Basis m' R M₂)
  (B : M₁ →ₗ[R] M₂ →ₗ[R] R),
  (b₁.toMatrix ⇑c₁).transpose * (LinearMap.toMatrix₂ b₁ b₂) B * b₂.toMatrix ⇑c₂ = (LinearMap.toMatrix₂ c₁ c₂) B

theorem LinearMap.mul_toMatrix₂_mul E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {M₁' : Type u_8} {M₂' : Type u_9} {n : Type u_11} {m : Type u_12}
  {n' : Type u_13} {m' : Type u_14} [inst : CommSemiring R] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁]
  [inst_3 : AddCommMonoid M₂] [inst_4 : Module R M₂] [inst_5 : Fintype n] [inst_6 : Fintype m] [inst_7 : DecidableEq m]
  [inst_8 : DecidableEq n] (b₁ : Module.Basis n R M₁) (b₂ : Module.Basis m R M₂) [inst_9 : AddCommMonoid M₁']
  [inst_10 : Module R M₁'] [inst_11 : AddCommMonoid M₂'] [inst_12 : Module R M₂'] (b₁' : Module.Basis n' R M₁')
  (b₂' : Module.Basis m' R M₂') [inst_13 : Fintype n'] [inst_14 : Fintype m'] [inst_15 : DecidableEq n']
  [inst_16 : DecidableEq m'] (B : M₁ →ₗ[R] M₂ →ₗ[R] R) (M : Matrix n' n R) (N : Matrix m m' R),
  M * (LinearMap.toMatrix₂ b₁ b₂) B * N =
    (LinearMap.toMatrix₂ b₁' b₂') (B.compl₁₂ ((Matrix.toLin b₁' b₁) M.transpose) ((Matrix.toLin b₂' b₂) N))

theorem LinearMap.mul_toMatrix₂ E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {M₁' : Type u_8} {n : Type u_11} {m : Type u_12} {n' : Type u_13}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁] [inst_3 : AddCommMonoid M₂]
  [inst_4 : Module R M₂] [inst_5 : Fintype n] [inst_6 : Fintype m] [inst_7 : DecidableEq m] [inst_8 : DecidableEq n]
  (b₁ : Module.Basis n R M₁) (b₂ : Module.Basis m R M₂) [inst_9 : AddCommMonoid M₁'] [inst_10 : Module R M₁']
  (b₁' : Module.Basis n' R M₁') [inst_11 : Fintype n'] [inst_12 : DecidableEq n'] (B : M₁ →ₗ[R] M₂ →ₗ[R] R)
  (M : Matrix n' n R),
  M * (LinearMap.toMatrix₂ b₁ b₂) B = (LinearMap.toMatrix₂ b₁' b₂) (B ∘ₗ (Matrix.toLin b₁' b₁) M.transpose)

theorem LinearMap.toMatrix₂_mul E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {M₂' : Type u_9} {n : Type u_11} {m : Type u_12} {m' : Type u_14}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁] [inst_3 : AddCommMonoid M₂]
  [inst_4 : Module R M₂] [inst_5 : Fintype n] [inst_6 : Fintype m] [inst_7 : DecidableEq m] [inst_8 : DecidableEq n]
  (b₁ : Module.Basis n R M₁) (b₂ : Module.Basis m R M₂) [inst_9 : AddCommMonoid M₂'] [inst_10 : Module R M₂']
  (b₂' : Module.Basis m' R M₂') [inst_11 : Fintype m'] [inst_12 : DecidableEq m'] (B : M₁ →ₗ[R] M₂ →ₗ[R] R)
  (M : Matrix m m' R),
  (LinearMap.toMatrix₂ b₁ b₂) B * M = (LinearMap.toMatrix₂ b₁ b₂') (B.compl₂ ((Matrix.toLin b₂' b₂) M))

theorem Matrix.toLinearMap₂_compl₁₂ E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {M₁' : Type u_8} {M₂' : Type u_9} {n : Type u_11} {m : Type u_12}
  {n' : Type u_13} {m' : Type u_14} [inst : CommSemiring R] [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁]
  [inst_3 : AddCommMonoid M₂] [inst_4 : Module R M₂] [inst_5 : Fintype n] [inst_6 : Fintype m] [inst_7 : DecidableEq m]
  [inst_8 : DecidableEq n] (b₁ : Module.Basis n R M₁) (b₂ : Module.Basis m R M₂) [inst_9 : AddCommMonoid M₁']
  [inst_10 : Module R M₁'] [inst_11 : AddCommMonoid M₂'] [inst_12 : Module R M₂'] (b₁' : Module.Basis n' R M₁')
  (b₂' : Module.Basis m' R M₂') [inst_13 : Fintype n'] [inst_14 : Fintype m'] [inst_15 : DecidableEq n']
  [inst_16 : DecidableEq m'] (M : Matrix n m R) (P : Matrix n n' R) (Q : Matrix m m' R),
  ((Matrix.toLinearMap₂ b₁ b₂) M).compl₁₂ ((Matrix.toLin b₁' b₁) P) ((Matrix.toLin b₂' b₂) Q) =
    (Matrix.toLinearMap₂ b₁' b₂') (P.transpose * M * Q)

def Matrix.IsAdjointPair E1 #

{R : Type u_1} →
  {n : Type u_11} →
    {n' : Type u_13} →
      [CommRing R] → [Fintype n] → [Fintype n'] → Matrix n n R → Matrix n' n' R → Matrix n' n R → Matrix n n' R → Prop

The condition for the matrices A, A' to be an adjoint pair with respect to the square matrices J, J₃.

def Matrix.IsSelfAdjoint E1 #

{R : Type u_1} → {n : Type u_11} → [CommRing R] → [Fintype n] → Matrix n n R → Matrix n n R → Prop

The condition for a square matrix A to be self-adjoint with respect to the square matrix J.

def Matrix.IsSkewAdjoint E1 #

{R : Type u_1} → {n : Type u_11} → [CommRing R] → [Fintype n] → Matrix n n R → Matrix n n R → Prop

The condition for a square matrix A to be skew-adjoint with respect to the square matrix J.

theorem isAdjointPair_toLinearMap₂' E0 #

∀ {R : Type u_1} {n : Type u_11} {n' : Type u_13} [inst : CommRing R] [inst_1 : Fintype n] [inst_2 : Fintype n']
  (J : Matrix n n R) (J' : Matrix n' n' R) (A : Matrix n' n R) (A' : Matrix n n' R) [inst_3 : DecidableEq n]
  [inst_4 : DecidableEq n'],
  ((Matrix.toLinearMap₂' R) J).IsAdjointPair ((Matrix.toLinearMap₂' R) J') ⇑(Matrix.toLin' A) ⇑(Matrix.toLin' A') ↔
    J.IsAdjointPair J' A A'

theorem isAdjointPair_toLinearMap₂ E0 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {n : Type u_11} {n' : Type u_13} [inst : CommRing R]
  [inst_1 : AddCommMonoid M₁] [inst_2 : Module R M₁] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R M₂]
  [inst_5 : Fintype n] [inst_6 : Fintype n'] (b₁ : Module.Basis n R M₁) (b₂ : Module.Basis n' R M₂) (J : Matrix n n R)
  (J' : Matrix n' n' R) (A : Matrix n' n R) (A' : Matrix n n' R) [inst_7 : DecidableEq n] [inst_8 : DecidableEq n'],
  ((Matrix.toLinearMap₂ b₁ b₁) J).IsAdjointPair ((Matrix.toLinearMap₂ b₂ b₂) J') ⇑((Matrix.toLin b₁ b₂) A)
      ⇑((Matrix.toLin b₂ b₁) A') ↔
    J.IsAdjointPair J' A A'

theorem Matrix.isAdjointPair_equiv E1 #

∀ {R : Type u_1} {n : Type u_11} [inst : CommRing R] [inst_1 : Fintype n] (J A₁ A₂ : Matrix n n R)
  [inst_2 : DecidableEq n] (P : Matrix n n R),
  IsUnit P →
    ((P.transpose * J * P).IsAdjointPair (P.transpose * J * P) A₁ A₂ ↔ J.IsAdjointPair J (P * A₁ * P⁻¹) (P * A₂ * P⁻¹))

def pairSelfAdjointMatricesSubmodule E1 #

{R : Type u_1} →
  {n : Type u_11} →
    [inst : CommRing R] → [Fintype n] → Matrix n n R → Matrix n n R → [DecidableEq n] → Submodule R (Matrix n n R)

The submodule of pair-self-adjoint matrices with respect to bilinear forms corresponding to given matrices J, J₂.

theorem mem_pairSelfAdjointMatricesSubmodule E0 #

∀ {R : Type u_1} {n : Type u_11} [inst : CommRing R] [inst_1 : Fintype n] (J J₂ A₁ : Matrix n n R)
  [inst_2 : DecidableEq n], A₁ ∈ pairSelfAdjointMatricesSubmodule J J₂ ↔ J.IsAdjointPair J₂ A₁ A₁

def selfAdjointMatricesSubmodule E1 #

{R : Type u_1} →
  {n : Type u_11} → [inst : CommRing R] → [Fintype n] → Matrix n n R → [DecidableEq n] → Submodule R (Matrix n n R)

The submodule of self-adjoint matrices with respect to the bilinear form corresponding to the matrix J.

theorem mem_selfAdjointMatricesSubmodule E0 #

∀ {R : Type u_1} {n : Type u_11} [inst : CommRing R] [inst_1 : Fintype n] (J A₁ : Matrix n n R)
  [inst_2 : DecidableEq n], A₁ ∈ selfAdjointMatricesSubmodule J ↔ J.IsSelfAdjoint A₁

def skewAdjointMatricesSubmodule E1 #

{R : Type u_1} →
  {n : Type u_11} → [inst : CommRing R] → [Fintype n] → Matrix n n R → [DecidableEq n] → Submodule R (Matrix n n R)

The submodule of skew-adjoint matrices with respect to the bilinear form corresponding to the matrix J.

theorem mem_skewAdjointMatricesSubmodule E0 #

∀ {R : Type u_1} {n : Type u_11} [inst : CommRing R] [inst_1 : Fintype n] (J A₁ : Matrix n n R)
  [inst_2 : DecidableEq n], A₁ ∈ skewAdjointMatricesSubmodule J ↔ J.IsSkewAdjoint A₁

theorem Matrix.SeparatingLeft.toLinearMap₂' E1 #

∀ {R : Type u_1} {n : Type u_11} {m : Type u_12} [inst : CommRing R] [inst_1 : DecidableEq m] [inst_2 : Fintype m]
  [inst_3 : DecidableEq n] [inst_4 : Fintype n] {M : Matrix m n R},
  M.SeparatingLeft → ((Matrix.toLinearMap₂' R) M).SeparatingLeft

theorem Matrix.SeparatingRight.toLinearMap₂' E1 #

∀ {R : Type u_1} {n : Type u_11} {m : Type u_12} [inst : CommRing R] [inst_1 : DecidableEq m] [inst_2 : Fintype m]
  [inst_3 : DecidableEq n] [inst_4 : Fintype n] {M : Matrix m n R},
  M.SeparatingRight → ((Matrix.toLinearMap₂' R) M).SeparatingRight

theorem Matrix.Nondegenerate.toLinearMap₂' E1 #

∀ {R : Type u_1} {n : Type u_11} {m : Type u_12} [inst : CommRing R] [inst_1 : DecidableEq m] [inst_2 : Fintype m]
  [inst_3 : DecidableEq n] [inst_4 : Fintype n] {M : Matrix m n R},
  M.Nondegenerate → ((Matrix.toLinearMap₂' R) M).Nondegenerate

theorem Matrix.separatingLeft_toLinearMap₂'_iff E0 #

∀ {R : Type u_1} {n : Type u_11} {m : Type u_12} [inst : CommRing R] [inst_1 : DecidableEq m] [inst_2 : Fintype m]
  [inst_3 : DecidableEq n] [inst_4 : Fintype n] {M : Matrix m n R},
  ((Matrix.toLinearMap₂' R) M).SeparatingLeft ↔ M.SeparatingLeft

theorem Matrix.separatingRight_toLinearMap₂'_iff E0 #

∀ {R : Type u_1} {n : Type u_11} {m : Type u_12} [inst : CommRing R] [inst_1 : DecidableEq m] [inst_2 : Fintype m]
  [inst_3 : DecidableEq n] [inst_4 : Fintype n] {M : Matrix m n R},
  ((Matrix.toLinearMap₂' R) M).SeparatingRight ↔ M.SeparatingRight

theorem Matrix.nondegenerate_toLinearMap₂'_iff E0 #

∀ {R : Type u_1} {n : Type u_11} {m : Type u_12} [inst : CommRing R] [inst_1 : DecidableEq m] [inst_2 : Fintype m]
  [inst_3 : DecidableEq n] [inst_4 : Fintype n] {M : Matrix m n R},
  ((Matrix.toLinearMap₂' R) M).Nondegenerate ↔ M.Nondegenerate

theorem LinearMap.separatingLeft_toMatrix₂'_iff E0 #

∀ {R : Type u_1} {n : Type u_11} {m : Type u_12} [inst : CommRing R] [inst_1 : DecidableEq m] [inst_2 : Fintype m]
  [inst_3 : DecidableEq n] [inst_4 : Fintype n] {B : (m → R) →ₗ[R] (n → R) →ₗ[R] R},
  ((LinearMap.toMatrix₂' R) B).SeparatingLeft ↔ B.SeparatingLeft

theorem LinearMap.separatingRight_toMatrix₂'_iff E0 #

∀ {R : Type u_1} {n : Type u_11} {m : Type u_12} [inst : CommRing R] [inst_1 : DecidableEq m] [inst_2 : Fintype m]
  [inst_3 : DecidableEq n] [inst_4 : Fintype n] {B : (m → R) →ₗ[R] (n → R) →ₗ[R] R},
  ((LinearMap.toMatrix₂' R) B).SeparatingRight ↔ B.SeparatingRight

theorem LinearMap.nondegenerate_toMatrix₂'_iff E0 #

∀ {R : Type u_1} {n : Type u_11} {m : Type u_12} [inst : CommRing R] [inst_1 : DecidableEq m] [inst_2 : Fintype m]
  [inst_3 : DecidableEq n] [inst_4 : Fintype n] {B : (m → R) →ₗ[R] (n → R) →ₗ[R] R},
  ((LinearMap.toMatrix₂' R) B).Nondegenerate ↔ B.Nondegenerate

theorem LinearMap.SeparatingLeft.toMatrix₂' E1 #

∀ {R : Type u_1} {n : Type u_11} {m : Type u_12} [inst : CommRing R] [inst_1 : DecidableEq m] [inst_2 : Fintype m]
  [inst_3 : DecidableEq n] [inst_4 : Fintype n] {B : (m → R) →ₗ[R] (n → R) →ₗ[R] R},
  B.SeparatingLeft → ((LinearMap.toMatrix₂' R) B).SeparatingLeft

theorem LinearMap.SeparatingRight.toMatrix₂' E1 #

∀ {R : Type u_1} {n : Type u_11} {m : Type u_12} [inst : CommRing R] [inst_1 : DecidableEq m] [inst_2 : Fintype m]
  [inst_3 : DecidableEq n] [inst_4 : Fintype n] {B : (m → R) →ₗ[R] (n → R) →ₗ[R] R},
  B.SeparatingRight → ((LinearMap.toMatrix₂' R) B).SeparatingRight

theorem LinearMap.Nondegenerate.toMatrix₂' E1 #

∀ {R : Type u_1} {n : Type u_11} {m : Type u_12} [inst : CommRing R] [inst_1 : DecidableEq m] [inst_2 : Fintype m]
  [inst_3 : DecidableEq n] [inst_4 : Fintype n] {B : (m → R) →ₗ[R] (n → R) →ₗ[R] R},
  B.Nondegenerate → ((LinearMap.toMatrix₂' R) B).Nondegenerate

theorem Matrix.separatingLeft_toLinearMap₂'_iff_separatingLeft_toLinearMap₂ E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {n : Type u_11} {m : Type u_12} [inst : CommRing R]
  [inst_1 : DecidableEq m] [inst_2 : Fintype m] [inst_3 : DecidableEq n] [inst_4 : Fintype n] {M : Matrix m n R}
  [inst_5 : AddCommMonoid M₁] [inst_6 : Module R M₁] [inst_7 : AddCommMonoid M₂] [inst_8 : Module R M₂]
  (b₁ : Module.Basis m R M₁) (b₂ : Module.Basis n R M₂),
  ((Matrix.toLinearMap₂' R) M).SeparatingLeft ↔ ((Matrix.toLinearMap₂ b₁ b₂) M).SeparatingLeft

theorem Matrix.separatingRight_toLinearMap₂'_iff_separatingRight_toLinearMap₂ E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {n : Type u_11} {m : Type u_12} [inst : CommRing R]
  [inst_1 : DecidableEq m] [inst_2 : Fintype m] [inst_3 : DecidableEq n] [inst_4 : Fintype n] {M : Matrix m n R}
  [inst_5 : AddCommMonoid M₁] [inst_6 : Module R M₁] [inst_7 : AddCommMonoid M₂] [inst_8 : Module R M₂]
  (b₁ : Module.Basis m R M₁) (b₂ : Module.Basis n R M₂),
  ((Matrix.toLinearMap₂' R) M).SeparatingRight ↔ ((Matrix.toLinearMap₂ b₁ b₂) M).SeparatingRight

theorem Matrix.nondegenerate_toLinearMap₂'_iff_nondegenerate_toLinearMap₂ E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {n : Type u_11} {m : Type u_12} [inst : CommRing R]
  [inst_1 : DecidableEq m] [inst_2 : Fintype m] [inst_3 : DecidableEq n] [inst_4 : Fintype n] {M : Matrix m n R}
  [inst_5 : AddCommMonoid M₁] [inst_6 : Module R M₁] [inst_7 : AddCommMonoid M₂] [inst_8 : Module R M₂]
  (b₁ : Module.Basis m R M₁) (b₂ : Module.Basis n R M₂),
  ((Matrix.toLinearMap₂' R) M).Nondegenerate ↔ ((Matrix.toLinearMap₂ b₁ b₂) M).Nondegenerate

theorem Matrix.separatingLeft_toLinearMap₂_iff E0 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {n : Type u_11} {m : Type u_12} [inst : CommRing R]
  [inst_1 : DecidableEq m] [inst_2 : Fintype m] [inst_3 : DecidableEq n] [inst_4 : Fintype n] {M : Matrix m n R}
  [inst_5 : AddCommMonoid M₁] [inst_6 : Module R M₁] [inst_7 : AddCommMonoid M₂] [inst_8 : Module R M₂]
  (b₁ : Module.Basis m R M₁) (b₂ : Module.Basis n R M₂),
  ((Matrix.toLinearMap₂ b₁ b₂) M).SeparatingLeft ↔ M.SeparatingLeft

theorem Matrix.separatingRight_toLinearMap₂_iff E0 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {n : Type u_11} {m : Type u_12} [inst : CommRing R]
  [inst_1 : DecidableEq m] [inst_2 : Fintype m] [inst_3 : DecidableEq n] [inst_4 : Fintype n] {M : Matrix m n R}
  [inst_5 : AddCommMonoid M₁] [inst_6 : Module R M₁] [inst_7 : AddCommMonoid M₂] [inst_8 : Module R M₂]
  (b₁ : Module.Basis m R M₁) (b₂ : Module.Basis n R M₂),
  ((Matrix.toLinearMap₂ b₁ b₂) M).SeparatingRight ↔ M.SeparatingRight

theorem Matrix.nondegenerate_toLinearMap₂_iff E0 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {n : Type u_11} {m : Type u_12} [inst : CommRing R]
  [inst_1 : DecidableEq m] [inst_2 : Fintype m] [inst_3 : DecidableEq n] [inst_4 : Fintype n] {M : Matrix m n R}
  [inst_5 : AddCommMonoid M₁] [inst_6 : Module R M₁] [inst_7 : AddCommMonoid M₂] [inst_8 : Module R M₂]
  (b₁ : Module.Basis m R M₁) (b₂ : Module.Basis n R M₂), ((Matrix.toLinearMap₂ b₁ b₂) M).Nondegenerate ↔ M.Nondegenerate

theorem Matrix.SeparatingLeft.toLinearMap₂ E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {n : Type u_11} {m : Type u_12} [inst : CommRing R]
  [inst_1 : DecidableEq m] [inst_2 : Fintype m] [inst_3 : DecidableEq n] [inst_4 : Fintype n] {M : Matrix m n R}
  [inst_5 : AddCommMonoid M₁] [inst_6 : Module R M₁] [inst_7 : AddCommMonoid M₂] [inst_8 : Module R M₂]
  (b₁ : Module.Basis m R M₁) (b₂ : Module.Basis n R M₂),
  M.SeparatingLeft → ((Matrix.toLinearMap₂ b₁ b₂) M).SeparatingLeft

theorem Matrix.SeparatingRight.toLinearMap₂ E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {n : Type u_11} {m : Type u_12} [inst : CommRing R]
  [inst_1 : DecidableEq m] [inst_2 : Fintype m] [inst_3 : DecidableEq n] [inst_4 : Fintype n] {M : Matrix m n R}
  [inst_5 : AddCommMonoid M₁] [inst_6 : Module R M₁] [inst_7 : AddCommMonoid M₂] [inst_8 : Module R M₂]
  (b₁ : Module.Basis m R M₁) (b₂ : Module.Basis n R M₂),
  M.SeparatingRight → ((Matrix.toLinearMap₂ b₁ b₂) M).SeparatingRight

theorem Matrix.Nondegenerate.toLinearMap₂ E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {n : Type u_11} {m : Type u_12} [inst : CommRing R]
  [inst_1 : DecidableEq m] [inst_2 : Fintype m] [inst_3 : DecidableEq n] [inst_4 : Fintype n] {M : Matrix m n R}
  [inst_5 : AddCommMonoid M₁] [inst_6 : Module R M₁] [inst_7 : AddCommMonoid M₂] [inst_8 : Module R M₂]
  (b₁ : Module.Basis m R M₁) (b₂ : Module.Basis n R M₂), M.Nondegenerate → ((Matrix.toLinearMap₂ b₁ b₂) M).Nondegenerate

theorem LinearMap.separatingLeft_toMatrix₂_iff E0 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {n : Type u_11} {m : Type u_12} [inst : CommRing R]
  [inst_1 : DecidableEq m] [inst_2 : Fintype m] [inst_3 : DecidableEq n] [inst_4 : Fintype n]
  [inst_5 : AddCommMonoid M₁] [inst_6 : Module R M₁] [inst_7 : AddCommMonoid M₂] [inst_8 : Module R M₂]
  (b₁ : Module.Basis m R M₁) (b₂ : Module.Basis n R M₂) {B : M₁ →ₗ[R] M₂ →ₗ[R] R},
  ((LinearMap.toMatrix₂ b₁ b₂) B).SeparatingLeft ↔ B.SeparatingLeft

theorem LinearMap.separatingRight_toMatrix₂_iff E0 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {n : Type u_11} {m : Type u_12} [inst : CommRing R]
  [inst_1 : DecidableEq m] [inst_2 : Fintype m] [inst_3 : DecidableEq n] [inst_4 : Fintype n]
  [inst_5 : AddCommMonoid M₁] [inst_6 : Module R M₁] [inst_7 : AddCommMonoid M₂] [inst_8 : Module R M₂]
  (b₁ : Module.Basis m R M₁) (b₂ : Module.Basis n R M₂) {B : M₁ →ₗ[R] M₂ →ₗ[R] R},
  ((LinearMap.toMatrix₂ b₁ b₂) B).SeparatingRight ↔ B.SeparatingRight

theorem LinearMap.nondegenerate_toMatrix₂_iff E0 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {n : Type u_11} {m : Type u_12} [inst : CommRing R]
  [inst_1 : DecidableEq m] [inst_2 : Fintype m] [inst_3 : DecidableEq n] [inst_4 : Fintype n]
  [inst_5 : AddCommMonoid M₁] [inst_6 : Module R M₁] [inst_7 : AddCommMonoid M₂] [inst_8 : Module R M₂]
  (b₁ : Module.Basis m R M₁) (b₂ : Module.Basis n R M₂) {B : M₁ →ₗ[R] M₂ →ₗ[R] R},
  ((LinearMap.toMatrix₂ b₁ b₂) B).Nondegenerate ↔ B.Nondegenerate

theorem LinearMap.SeparatingLeft.toMatrix₂ E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {n : Type u_11} {m : Type u_12} [inst : CommRing R]
  [inst_1 : DecidableEq m] [inst_2 : Fintype m] [inst_3 : DecidableEq n] [inst_4 : Fintype n]
  [inst_5 : AddCommMonoid M₁] [inst_6 : Module R M₁] [inst_7 : AddCommMonoid M₂] [inst_8 : Module R M₂]
  (b₁ : Module.Basis m R M₁) (b₂ : Module.Basis n R M₂) {B : M₁ →ₗ[R] M₂ →ₗ[R] R},
  B.SeparatingLeft → ((LinearMap.toMatrix₂ b₁ b₂) B).SeparatingLeft

theorem LinearMap.SeparatingRight.toMatrix₂ E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {n : Type u_11} {m : Type u_12} [inst : CommRing R]
  [inst_1 : DecidableEq m] [inst_2 : Fintype m] [inst_3 : DecidableEq n] [inst_4 : Fintype n]
  [inst_5 : AddCommMonoid M₁] [inst_6 : Module R M₁] [inst_7 : AddCommMonoid M₂] [inst_8 : Module R M₂]
  (b₁ : Module.Basis m R M₁) (b₂ : Module.Basis n R M₂) {B : M₁ →ₗ[R] M₂ →ₗ[R] R},
  B.SeparatingRight → ((LinearMap.toMatrix₂ b₁ b₂) B).SeparatingRight

theorem LinearMap.Nondegenerate.toMatrix₂ E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {M₂ : Type u_7} {n : Type u_11} {m : Type u_12} [inst : CommRing R]
  [inst_1 : DecidableEq m] [inst_2 : Fintype m] [inst_3 : DecidableEq n] [inst_4 : Fintype n]
  [inst_5 : AddCommMonoid M₁] [inst_6 : Module R M₁] [inst_7 : AddCommMonoid M₂] [inst_8 : Module R M₂]
  (b₁ : Module.Basis m R M₁) (b₂ : Module.Basis n R M₂) {B : M₁ →ₗ[R] M₂ →ₗ[R] R},
  B.Nondegenerate → ((LinearMap.toMatrix₂ b₁ b₂) B).Nondegenerate

theorem LinearMap.nondegenerate_toLinearMap₂'_iff_det_ne_zero E1 #

∀ {R : Type u_1} {n : Type u_11} [inst : CommRing R] [inst_1 : DecidableEq n] [inst_2 : Fintype n] [IsDomain R]
  {M : Matrix n n R}, ((Matrix.toLinearMap₂' R) M).Nondegenerate ↔ M.det ≠ 0

theorem LinearMap.separatingLeft_toLinearMap₂'_iff_det_ne_zero E1 #

∀ {R : Type u_1} {n : Type u_11} [inst : CommRing R] [inst_1 : DecidableEq n] [inst_2 : Fintype n] [IsDomain R]
  {M : Matrix n n R}, ((Matrix.toLinearMap₂' R) M).SeparatingLeft ↔ M.det ≠ 0

theorem LinearMap.separatingRight_toLinearMap₂'_iff_det_ne_zero E1 #

∀ {R : Type u_1} {n : Type u_11} [inst : CommRing R] [inst_1 : DecidableEq n] [inst_2 : Fintype n] [IsDomain R]
  {M : Matrix n n R}, ((Matrix.toLinearMap₂' R) M).SeparatingRight ↔ M.det ≠ 0

theorem LinearMap.separatingLeft_toLinearMap₂'_of_det_ne_zero' E1 #

∀ {R : Type u_1} {n : Type u_11} [inst : CommRing R] [inst_1 : DecidableEq n] [inst_2 : Fintype n] [IsDomain R]
  {M : Matrix n n R}, M.det ≠ 0 → ((Matrix.toLinearMap₂' R) M).SeparatingLeft

theorem LinearMap.separatingRight_toLinearMap₂'_of_det_ne_zero' E1 #

∀ {R : Type u_1} {n : Type u_11} [inst : CommRing R] [inst_1 : DecidableEq n] [inst_2 : Fintype n] [IsDomain R]
  {M : Matrix n n R}, M.det ≠ 0 → ((Matrix.toLinearMap₂' R) M).SeparatingRight

theorem LinearMap.nondegenerate_toLinearMap₂'_of_det_ne_zero' E1 #

∀ {R : Type u_1} {n : Type u_11} [inst : CommRing R] [inst_1 : DecidableEq n] [inst_2 : Fintype n] [IsDomain R]
  {M : Matrix n n R}, M.det ≠ 0 → ((Matrix.toLinearMap₂' R) M).Nondegenerate

theorem LinearMap.separatingLeft_iff_det_ne_zero E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {m : Type u_12} [inst : CommRing R] [inst_1 : DecidableEq m] [inst_2 : Fintype m]
  [IsDomain R] [inst_4 : AddCommMonoid M₁] [inst_5 : Module R M₁] (b : Module.Basis m R M₁) {B : M₁ →ₗ[R] M₁ →ₗ[R] R},
  B.SeparatingLeft ↔ ((LinearMap.toMatrix₂ b b) B).det ≠ 0

theorem LinearMap.SeparatingLeft.of_det_ne_zero E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {m : Type u_12} [inst : CommRing R] [inst_1 : DecidableEq m] [inst_2 : Fintype m]
  [IsDomain R] [inst_4 : AddCommMonoid M₁] [inst_5 : Module R M₁] (b : Module.Basis m R M₁) {B : M₁ →ₗ[R] M₁ →ₗ[R] R},
  ((LinearMap.toMatrix₂ b b) B).det ≠ 0 → B.SeparatingLeft

Alias of the reverse direction of LinearMap.separatingLeft_iff_det_ne_zero.

theorem LinearMap.separatingRight_iff_det_ne_zero E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {m : Type u_12} [inst : CommRing R] [inst_1 : DecidableEq m] [inst_2 : Fintype m]
  [IsDomain R] [inst_4 : AddCommMonoid M₁] [inst_5 : Module R M₁] (b : Module.Basis m R M₁) {B : M₁ →ₗ[R] M₁ →ₗ[R] R},
  B.SeparatingRight ↔ ((LinearMap.toMatrix₂ b b) B).det ≠ 0

theorem LinearMap.SeparatingRight.of_det_ne_zero E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {m : Type u_12} [inst : CommRing R] [inst_1 : DecidableEq m] [inst_2 : Fintype m]
  [IsDomain R] [inst_4 : AddCommMonoid M₁] [inst_5 : Module R M₁] (b : Module.Basis m R M₁) {B : M₁ →ₗ[R] M₁ →ₗ[R] R},
  ((LinearMap.toMatrix₂ b b) B).det ≠ 0 → B.SeparatingRight

Alias of the reverse direction of LinearMap.separatingRight_iff_det_ne_zero.

theorem LinearMap.nondegenerate_iff_det_ne_zero E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {m : Type u_12} [inst : CommRing R] [inst_1 : DecidableEq m] [inst_2 : Fintype m]
  [IsDomain R] [inst_4 : AddCommMonoid M₁] [inst_5 : Module R M₁] (b : Module.Basis m R M₁) {B : M₁ →ₗ[R] M₁ →ₗ[R] R},
  B.Nondegenerate ↔ ((LinearMap.toMatrix₂ b b) B).det ≠ 0

theorem LinearMap.Nondegenerate.of_det_ne_zero E1 #

∀ {R : Type u_1} {M₁ : Type u_6} {m : Type u_12} [inst : CommRing R] [inst_1 : DecidableEq m] [inst_2 : Fintype m]
  [IsDomain R] [inst_4 : AddCommMonoid M₁] [inst_5 : Module R M₁] (b : Module.Basis m R M₁) {B : M₁ →ₗ[R] M₁ →ₗ[R] R},
  ((LinearMap.toMatrix₂ b b) B).det ≠ 0 → B.Nondegenerate

Alias of the reverse direction of LinearMap.nondegenerate_iff_det_ne_zero.

Deprecated aliases

NameNew nameSince
LinearMap.nondegenerate_of_det_ne_zeroLinearMap.Nondegenerate.of_det_ne_zero2026-11-13
LinearMap.separatingLeft_of_det_ne_zeroLinearMap.SeparatingLeft.of_det_ne_zero2026-11-13
LinearMap.separatingRight_of_det_ne_zeroLinearMap.SeparatingRight.of_det_ne_zero2026-11-13