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.Data.Matrix.Basic

210 declarations. Mathlib docs · Source

Matrices

This file contains basic results on matrices including bundled versions of matrix operators.

Implementation notes

For convenience, Matrix m n α is defined as m → n → α, as this allows elements of the matrix to be accessed with A i j. However, it is not advisable to construct matrices using terms of the form fun i j ↦ _ or even (fun i j ↦ _ : Matrix m n α), as these are not recognized by Lean as having the right type. Instead, Matrix.of should be used.

TODO

Under various conditions, multiplication of infinite matrices makes sense. These have not yet been implemented.

Bundled versions of Matrix.map

instance Matrix.decidableEq E0 #

{m : Type u_2} →
  {n : Type u_3} → {α : Type u_8} → [DecidableEq α] → [Fintype m] → [Fintype n] → DecidableEq (Matrix m n α)

instance Matrix.instFintypeOfDecidableEq E0 #

{n : Type u_11} →
  {m : Type u_12} →
    [Fintype m] →
      [DecidableEq m] → [Fintype n] → [DecidableEq n] → (α : Type u_13) → [Fintype α] → Fintype (Matrix m n α)

instance Matrix.instFinite E0 #

∀ {n : Type u_11} {m : Type u_12} [Finite m] [Finite n] (α : Type u_13) [Finite α], Finite (Matrix m n α)

instance Matrix.instIsStablyFiniteRingOfFinite E0 #

∀ {α : Type u_8} [inst : Semiring α] [Finite α], IsStablyFiniteRing α

def Matrix.ofLinearEquiv E1 #

{m : Type u_2} →
  {n : Type u_3} →
    (R : Type u_4) →
      {α : Type u_8} →
        [inst : Semiring R] → [inst_1 : AddCommMonoid α] → [inst_2 : Module R α] → (m → n → α) ≃ₗ[R] Matrix m n α

This is Matrix.of bundled as a linear equivalence.

theorem Matrix.coe_ofLinearEquiv E0 #

∀ {m : Type u_2} {n : Type u_3} (R : Type u_4) {α : Type u_8} [inst : Semiring R] [inst_1 : AddCommMonoid α]
  [inst_2 : Module R α], ⇑(Matrix.ofLinearEquiv R) = ⇑Matrix.of

theorem Matrix.coe_ofLinearEquiv_symm E0 #

∀ {m : Type u_2} {n : Type u_3} (R : Type u_4) {α : Type u_8} [inst : Semiring R] [inst_1 : AddCommMonoid α]
  [inst_2 : Module R α], ⇑(Matrix.ofLinearEquiv R).symm = ⇑Matrix.of.symm

theorem Matrix.sum_apply E0 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} {β : Type u_9} [inst : AddCommMonoid α] (i : m) (j : n) (s : Finset β)
  (g : β → Matrix m n α), (∑ c ∈ s, g c) i j = ∑ c ∈ s, g c i j

theorem Matrix.row_sum E0 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} {β : Type u_9} [inst : AddCommMonoid α] (s : Finset β)
  (M : β → Matrix m n α), (∑ i ∈ s, M i).row = ∑ i ∈ s, (M i).row

theorem Matrix.col_sum E0 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} {β : Type u_9} [inst : AddCommMonoid α] (s : Finset β)
  (M : β → Matrix m n α), (∑ i ∈ s, M i).col = ∑ i ∈ s, (M i).col

def Matrix.diagonalAddMonoidHom E1 #

(n : Type u_3) → (α : Type u_8) → [DecidableEq n] → [inst : AddZeroClass α] → (n → α) →+ Matrix n n α

Matrix.diagonal as an AddMonoidHom.

theorem Matrix.diagonalAddMonoidHom_apply E0 #

∀ (n : Type u_3) (α : Type u_8) [inst : DecidableEq n] [inst_1 : AddZeroClass α] (d : n → α),
  (Matrix.diagonalAddMonoidHom n α) d = Matrix.diagonal d

def Matrix.diagonalLinearMap E1 #

(n : Type u_3) →
  (R : Type u_4) →
    (α : Type u_8) →
      [DecidableEq n] →
        [inst : Semiring R] → [inst_1 : AddCommMonoid α] → [inst_2 : Module R α] → (n → α) →ₗ[R] Matrix n n α

Matrix.diagonal as a LinearMap.

theorem Matrix.diagonalLinearMap_apply E0 #

∀ (n : Type u_3) (R : Type u_4) (α : Type u_8) [inst : DecidableEq n] [inst_1 : Semiring R] [inst_2 : AddCommMonoid α]
  [inst_3 : Module R α] (a : n → α), (Matrix.diagonalLinearMap n R α) a = (↑(Matrix.diagonalAddMonoidHom n α)).toFun a

theorem Matrix.zero_le_one_elem E1 #

∀ {n : Type u_3} {α : Type u_8} [inst : DecidableEq n] [inst_1 : Zero α] [inst_2 : One α] [inst_3 : Preorder α]
  [ZeroLEOneClass α] (i j : n), 0 ≤ 1 i j

theorem Matrix.zero_le_one_row E1 #

∀ {n : Type u_3} {α : Type u_8} [inst : DecidableEq n] [inst_1 : Zero α] [inst_2 : One α] [inst_3 : Preorder α]
  [ZeroLEOneClass α] (i : n), 0 ≤ 1 i

def Matrix.diagAddMonoidHom E1 #

(n : Type u_3) → (α : Type u_8) → [inst : AddZeroClass α] → Matrix n n α →+ n → α

Matrix.diag as an AddMonoidHom.

theorem Matrix.diagAddMonoidHom_apply E0 #

∀ (n : Type u_3) (α : Type u_8) [inst : AddZeroClass α] (A : Matrix n n α) (i : n),
  (Matrix.diagAddMonoidHom n α) A i = A.diag i

def Matrix.diagLinearMap E1 #

(n : Type u_3) →
  (R : Type u_4) →
    (α : Type u_8) → [inst : Semiring R] → [inst_1 : AddCommMonoid α] → [inst_2 : Module R α] → Matrix n n α →ₗ[R] n → α

Matrix.diag as a LinearMap.

theorem Matrix.diagLinearMap_apply E0 #

∀ (n : Type u_3) (R : Type u_4) (α : Type u_8) [inst : Semiring R] [inst_1 : AddCommMonoid α] [inst_2 : Module R α]
  (a : Matrix n n α) (a_1 : n), (Matrix.diagLinearMap n R α) a a_1 = (↑(Matrix.diagAddMonoidHom n α)).toFun a a_1

theorem Matrix.diag_list_sum E0 #

∀ {n : Type u_3} {α : Type u_8} [inst : AddMonoid α] (l : List (Matrix n n α)),
  l.sum.diag = (List.map Matrix.diag l).sum

theorem Matrix.diag_multiset_sum E0 #

∀ {n : Type u_3} {α : Type u_8} [inst : AddCommMonoid α] (s : Multiset (Matrix n n α)),
  s.sum.diag = (Multiset.map Matrix.diag s).sum

theorem Matrix.diag_sum E0 #

∀ {n : Type u_3} {α : Type u_8} {ι : Type u_11} [inst : AddCommMonoid α] (s : Finset ι) (f : ι → Matrix n n α),
  (∑ i ∈ s, f i).diag = ∑ i ∈ s, (f i).diag

def Matrix.diagonalRingHom E1 #

(n : Type u_3) →
  (α : Type u_8) →
    [inst : NonAssocSemiring α] → [inst_1 : Fintype n] → [inst_2 : DecidableEq n] → (n → α) →+* Matrix n n α

Matrix.diagonal as a RingHom.

theorem Matrix.diagonalRingHom_apply E0 #

∀ (n : Type u_3) (α : Type u_8) [inst : NonAssocSemiring α] [inst_1 : Fintype n] [inst_2 : DecidableEq n] (d : n → α),
  (Matrix.diagonalRingHom n α) d = Matrix.diagonal d

theorem Matrix.diagonal_pow E1 #

∀ {n : Type u_3} {α : Type u_8} [inst : Semiring α] [inst_1 : Fintype n] [inst_2 : DecidableEq n] (v : n → α) (k : ℕ),
  Matrix.diagonal v ^ k = Matrix.diagonal (v ^ k)

def Matrix.scalar E1 #

{α : Type u_8} →
  [inst : Semiring α] → (n : Type u) → [inst_1 : DecidableEq n] → [inst_2 : Fintype n] → α →+* Matrix n n α

The ring homomorphism α →+* Matrix n n α sending a to the diagonal matrix with a on the diagonal.

This is available in bundled forms as:

  • Matrix.scalarAlgHom
  • Matrix.GeneralLinearGroup.scalar

theorem Matrix.scalar_apply E0 #

∀ {n : Type u_3} {α : Type u_8} [inst : Semiring α] [inst_1 : DecidableEq n] [inst_2 : Fintype n] (a : α),
  (Matrix.scalar n) a = Matrix.diagonal fun x ↦ a

theorem Matrix.scalar_inj E1 #

∀ {n : Type u_3} {α : Type u_8} [inst : Semiring α] [inst_1 : DecidableEq n] [inst_2 : Fintype n] [Nonempty n]
  {r s : α}, (Matrix.scalar n) r = (Matrix.scalar n) s ↔ r = s

theorem Matrix.scalar_comm_iff E0 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} [inst : Semiring α] [inst_1 : DecidableEq n] [inst_2 : Fintype n]
  [inst_3 : DecidableEq m] [inst_4 : Fintype m] {r : α} {M : Matrix m n α},
  (Matrix.scalar m) r * M = M * (Matrix.scalar n) r ↔ r • M = MulOpposite.op r • M

A version of Matrix.scalar_commute_iff for rectangular matrices.

theorem Matrix.scalar_commute_iff E0 #

∀ {n : Type u_3} {α : Type u_8} [inst : Semiring α] [inst_1 : DecidableEq n] [inst_2 : Fintype n] {r : α}
  {M : Matrix n n α}, Commute ((Matrix.scalar n) r) M ↔ r • M = MulOpposite.op r • M

theorem Matrix.scalar_comm E1 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} [inst : Semiring α] [inst_1 : DecidableEq n] [inst_2 : Fintype n]
  [inst_3 : DecidableEq m] [inst_4 : Fintype m] (r : α),
  (∀ (r' : α), Commute r r') → ∀ (M : Matrix m n α), (Matrix.scalar m) r * M = M * (Matrix.scalar n) r

A version of Matrix.scalar_commute for rectangular matrices.

theorem Matrix.scalar_commute E1 #

∀ {n : Type u_3} {α : Type u_8} [inst : Semiring α] [inst_1 : DecidableEq n] [inst_2 : Fintype n] (r : α),
  (∀ (r' : α), Commute r r') → ∀ (M : Matrix n n α), Commute ((Matrix.scalar n) r) M

instance Matrix.instAlgebra E0 #

{n : Type u_3} →
  {R : Type u_4} →
    {α : Type u_8} →
      [inst : Fintype n] →
        [inst_1 : DecidableEq n] →
          [inst_2 : CommSemiring R] → [inst_3 : Semiring α] → [Algebra R α] → Algebra R (Matrix n n α)

theorem Matrix.algebraMap_matrix_apply E0 #

∀ {n : Type u_3} {R : Type u_4} {α : Type u_8} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : CommSemiring R]
  [inst_3 : Semiring α] [inst_4 : Algebra R α] {r : R} {i j : n},
  (algebraMap R (Matrix n n α)) r i j = if i = j then (algebraMap R α) r else 0

theorem Matrix.algebraMap_eq_diagonal E1 #

∀ {n : Type u_3} {R : Type u_4} {α : Type u_8} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : CommSemiring R]
  [inst_3 : Semiring α] [inst_4 : Algebra R α] (r : R),
  (algebraMap R (Matrix n n α)) r = Matrix.diagonal ((algebraMap R (n → α)) r)

theorem Matrix.algebraMap_eq_diagonalRingHom E1 #

∀ {n : Type u_3} {R : Type u_4} {α : Type u_8} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : CommSemiring R]
  [inst_3 : Semiring α] [inst_4 : Algebra R α],
  algebraMap R (Matrix n n α) = (Matrix.diagonalRingHom n α).comp (algebraMap R (n → α))

theorem Matrix.map_algebraMap E0 #

∀ {n : Type u_3} {R : Type u_4} {α : Type u_8} {β : Type u_9} [inst : Fintype n] [inst_1 : DecidableEq n]
  [inst_2 : CommSemiring R] [inst_3 : Semiring α] [inst_4 : Semiring β] [inst_5 : Algebra R α] [inst_6 : Algebra R β]
  (r : R) (f : α → β),
  f 0 = 0 →
    f ((algebraMap R α) r) = (algebraMap R β) r →
      ((algebraMap R (Matrix n n α)) r).map f = (algebraMap R (Matrix n n β)) r

def Matrix.diagonalAlgHom E1 #

{n : Type u_3} →
  (R : Type u_4) →
    {α : Type u_8} →
      [inst : Fintype n] →
        [inst_1 : DecidableEq n] →
          [inst_2 : CommSemiring R] → [inst_3 : Semiring α] → [inst_4 : Algebra R α] → (n → α) →ₐ[R] Matrix n n α

Matrix.diagonal as an AlgHom.

theorem Matrix.diagonalAlgHom_apply E0 #

∀ {n : Type u_3} (R : Type u_4) {α : Type u_8} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : CommSemiring R]
  [inst_3 : Semiring α] [inst_4 : Algebra R α] (d : n → α), (Matrix.diagonalAlgHom R) d = Matrix.diagonal d

def Matrix.scalarAlgHom E1 #

(n : Type u_3) →
  (R : Type u_4) →
    {α : Type u_8} →
      [inst : Fintype n] →
        [inst_1 : DecidableEq n] →
          [inst_2 : CommSemiring R] → [inst_3 : Semiring α] → [inst_4 : Algebra R α] → α →ₐ[R] Matrix n n α

Matrix.scalar as an AlgHom.

theorem Matrix.scalarAlgHom_apply E0 #

∀ (n : Type u_3) (R : Type u_4) {α : Type u_8} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : CommSemiring R]
  [inst_3 : Semiring α] [inst_4 : Algebra R α] (a : α), (Matrix.scalarAlgHom n R) a = (Matrix.scalar n) a

def Matrix.entryAddHom E1 #

{m : Type u_2} → {n : Type u_3} → (α : Type u_8) → [inst : Add α] → m → n → Matrix m n α →ₙ+ α

Extracting entries from a matrix as an additive homomorphism.

See also Matrix.entryAddMonoidHom and Matrix.entryLinearMap.

theorem Matrix.entryAddHom_apply E0 #

∀ {m : Type u_2} {n : Type u_3} (α : Type u_8) [inst : Add α] (i : m) (j : n) (M : Matrix m n α),
  (Matrix.entryAddHom α i j) M = M i j

theorem Matrix.entryAddHom_eq_comp E1 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} [inst : Add α] {i : m} {j : n},
  Matrix.entryAddHom α i j =
    ((Pi.evalAddHom (fun x ↦ α) j).comp (Pi.evalAddHom (fun i ↦ n → α) i)).comp ↑Matrix.ofAddEquiv.symm

def Matrix.entryAddMonoidHom E1 #

{m : Type u_2} → {n : Type u_3} → (α : Type u_8) → [inst : AddZeroClass α] → m → n → Matrix m n α →+ α

Extracting entries from a matrix as an additive monoid homomorphism. Note this cannot be upgraded to a ring homomorphism, as it does not respect multiplication.

See also Matrix.entryAddHom and Matrix.entryLinearMap.

theorem Matrix.entryAddMonoidHom_apply E0 #

∀ {m : Type u_2} {n : Type u_3} (α : Type u_8) [inst : AddZeroClass α] (i : m) (j : n) (M : Matrix m n α),
  (Matrix.entryAddMonoidHom α i j) M = M i j

theorem Matrix.entryAddMonoidHom_eq_comp E1 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} [inst : AddZeroClass α] {i : m} {j : n},
  Matrix.entryAddMonoidHom α i j =
    ((Pi.evalAddMonoidHom (fun x ↦ α) j).comp (Pi.evalAddMonoidHom (fun i ↦ n → α) i)).comp ↑Matrix.ofAddEquiv.symm

theorem Matrix.evalAddMonoidHom_comp_diagAddMonoidHom E0 #

∀ {m : Type u_2} {α : Type u_8} [inst : AddZeroClass α] (i : m),
  (Pi.evalAddMonoidHom (fun i ↦ α) i).comp (Matrix.diagAddMonoidHom m α) = Matrix.entryAddMonoidHom α i i

theorem Matrix.entryAddMonoidHom_toAddHom E0 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} [inst : AddZeroClass α] {i : m} {j : n},
  ↑(Matrix.entryAddMonoidHom α i j) = Matrix.entryAddHom α i j

def Matrix.entryLinearMap E1 #

{m : Type u_2} →
  {n : Type u_3} →
    (R : Type u_4) →
      (α : Type u_8) →
        [inst : Semiring R] → [inst_1 : AddCommMonoid α] → [inst_2 : Module R α] → m → n → Matrix m n α →ₗ[R] α

Extracting entries from a matrix as a linear map. Note this cannot be upgraded to an algebra homomorphism, as it does not respect multiplication.

See also Matrix.entryAddHom and Matrix.entryAddMonoidHom.

theorem Matrix.entryLinearMap_apply E0 #

∀ {m : Type u_2} {n : Type u_3} (R : Type u_4) (α : Type u_8) [inst : Semiring R] [inst_1 : AddCommMonoid α]
  [inst_2 : Module R α] (i : m) (j : n) (M : Matrix m n α), (Matrix.entryLinearMap R α i j) M = M i j

theorem Matrix.entryLinearMap_eq_comp E1 #

∀ {m : Type u_2} {n : Type u_3} {R : Type u_4} {α : Type u_8} [inst : Semiring R] [inst_1 : AddCommMonoid α]
  [inst_2 : Module R α] {i : m} {j : n},
  Matrix.entryLinearMap R α i j = LinearMap.proj j ∘ₗ LinearMap.proj i ∘ₗ ↑(Matrix.ofLinearEquiv R).symm

theorem Matrix.proj_comp_diagLinearMap E0 #

∀ {m : Type u_2} {R : Type u_4} {α : Type u_8} [inst : Semiring R] [inst_1 : AddCommMonoid α] [inst_2 : Module R α]
  (i : m), LinearMap.proj i ∘ₗ Matrix.diagLinearMap m R α = Matrix.entryLinearMap R α i i

theorem Matrix.entryLinearMap_toAddMonoidHom E0 #

∀ {m : Type u_2} {n : Type u_3} {R : Type u_4} {α : Type u_8} [inst : Semiring R] [inst_1 : AddCommMonoid α]
  [inst_2 : Module R α] {i : m} {j : n}, ↑(Matrix.entryLinearMap R α i j) = Matrix.entryAddMonoidHom α i j

theorem Matrix.entryLinearMap_toAddHom E0 #

∀ {m : Type u_2} {n : Type u_3} {R : Type u_4} {α : Type u_8} [inst : Semiring R] [inst_1 : AddCommMonoid α]
  [inst_2 : Module R α] {i : m} {j : n}, ↑(Matrix.entryLinearMap R α i j) = Matrix.entryAddHom α i j

def Equiv.mapMatrix E1 #

{m : Type u_2} → {n : Type u_3} → {α : Type u_8} → {β : Type u_9} → α ≃ β → Matrix m n α ≃ Matrix m n β

The Equiv between spaces of matrices induced by an Equiv between their coefficients. This is Matrix.map as an Equiv.

theorem Equiv.mapMatrix_apply E0 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} {β : Type u_9} (f : α ≃ β) (M : Matrix m n α), f.mapMatrix M = M.map ⇑f

theorem Equiv.mapMatrix_refl E0 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8}, (Equiv.refl α).mapMatrix = Equiv.refl (Matrix m n α)

theorem Equiv.mapMatrix_symm E0 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} {β : Type u_9} (f : α ≃ β), f.mapMatrix.symm = f.symm.mapMatrix

theorem Equiv.mapMatrix_trans E0 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} {β : Type u_9} {γ : Type u_10} (f : α ≃ β) (g : β ≃ γ),
  f.mapMatrix.trans g.mapMatrix = (f.trans g).mapMatrix

def AddMonoidHom.mapMatrix E1 #

{m : Type u_2} →
  {n : Type u_3} →
    {α : Type u_8} →
      {β : Type u_9} → [inst : AddZeroClass α] → [inst_1 : AddZeroClass β] → (α →+ β) → Matrix m n α →+ Matrix m n β

The AddMonoidHom between spaces of matrices induced by an AddMonoidHom between their coefficients. This is Matrix.map as an AddMonoidHom.

theorem AddMonoidHom.mapMatrix_apply E0 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} {β : Type u_9} [inst : AddZeroClass α] [inst_1 : AddZeroClass β]
  (f : α →+ β) (M : Matrix m n α), f.mapMatrix M = M.map ⇑f

theorem AddMonoidHom.mapMatrix_id E0 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} [inst : AddZeroClass α],
  (AddMonoidHom.id α).mapMatrix = AddMonoidHom.id (Matrix m n α)

theorem AddMonoidHom.mapMatrix_comp E0 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} {β : Type u_9} {γ : Type u_10} [inst : AddZeroClass α]
  [inst_1 : AddZeroClass β] [inst_2 : AddZeroClass γ] (f : β →+ γ) (g : α →+ β),
  f.mapMatrix.comp g.mapMatrix = (f.comp g).mapMatrix

theorem AddMonoidHom.entryAddMonoidHom_comp_mapMatrix E0 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} {β : Type u_9} [inst : AddZeroClass α] [inst_1 : AddZeroClass β]
  (f : α →+ β) (i : m) (j : n),
  (Matrix.entryAddMonoidHom β i j).comp f.mapMatrix = f.comp (Matrix.entryAddMonoidHom α i j)

theorem AddMonoidHom.mapMatrix_zero E0 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} {β : Type u_9} [inst : AddZeroClass α] [inst_1 : AddZeroClass β],
  AddMonoidHom.mapMatrix 0 = 0

theorem AddMonoidHom.mapMatrix_add E0 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} {β : Type u_9} [inst : AddZeroClass α] [inst_1 : AddCommMonoid β]
  (f g : α →+ β), (f + g).mapMatrix = f.mapMatrix + g.mapMatrix

theorem AddMonoidHom.mapMatrix_sub E0 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} {β : Type u_9} [inst : AddZeroClass α] [inst_1 : AddCommGroup β]
  (f g : α →+ β), (f - g).mapMatrix = f.mapMatrix - g.mapMatrix

theorem AddMonoidHom.mapMatrix_neg E0 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} {β : Type u_9} [inst : AddZeroClass α] [inst_1 : AddCommGroup β]
  (f : α →+ β), (-f).mapMatrix = -f.mapMatrix

theorem AddMonoidHom.mapMatrix_smul E0 #

∀ {m : Type u_2} {n : Type u_3} {A : Type u_7} {α : Type u_8} {β : Type u_9} [inst : Monoid A] [inst_1 : AddZeroClass α]
  [inst_2 : AddMonoid β] [inst_3 : DistribMulAction A β] (a : A) (f : α →+ β), (a • f).mapMatrix = a • f.mapMatrix

def AddEquiv.mapMatrix E1 #

{m : Type u_2} →
  {n : Type u_3} →
    {α : Type u_8} → {β : Type u_9} → [inst : Add α] → [inst_1 : Add β] → α ≃+ β → Matrix m n α ≃+ Matrix m n β

The AddEquiv between spaces of matrices induced by an AddEquiv between their coefficients. This is Matrix.map as an AddEquiv.

theorem AddEquiv.mapMatrix_apply E0 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} {β : Type u_9} [inst : Add α] [inst_1 : Add β] (f : α ≃+ β)
  (M : Matrix m n α), f.mapMatrix M = M.map ⇑f

theorem AddEquiv.mapMatrix_refl E0 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} [inst : Add α],
  (AddEquiv.refl α).mapMatrix = AddEquiv.refl (Matrix m n α)

theorem AddEquiv.mapMatrix_symm E0 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} {β : Type u_9} [inst : Add α] [inst_1 : Add β] (f : α ≃+ β),
  f.mapMatrix.symm = f.symm.mapMatrix

theorem AddEquiv.mapMatrix_trans E0 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} {β : Type u_9} {γ : Type u_10} [inst : Add α] [inst_1 : Add β]
  [inst_2 : Add γ] (f : α ≃+ β) (g : β ≃+ γ), f.mapMatrix.trans g.mapMatrix = (f.trans g).mapMatrix

theorem AddEquiv.entryAddHom_comp_mapMatrix E0 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} {β : Type u_9} [inst : Add α] [inst_1 : Add β] (f : α ≃+ β) (i : m)
  (j : n), (Matrix.entryAddHom β i j).comp ↑f.mapMatrix = (↑f).comp (Matrix.entryAddHom α i j)

def LinearMap.mapMatrix E1 #

{m : Type u_2} →
  {n : Type u_3} →
    {R : Type u_4} →
      {S : Type u_5} →
        {α : Type u_8} →
          {β : Type u_9} →
            [inst : Semiring R] →
              [inst_1 : Semiring S] →
                {σᵣₛ : R →+* S} →
                  [inst_2 : AddCommMonoid α] →
                    [inst_3 : AddCommMonoid β] →
                      [inst_4 : Module R α] →
                        [inst_5 : Module S β] → (α →ₛₗ[σᵣₛ] β) → Matrix m n α →ₛₗ[σᵣₛ] Matrix m n β

The LinearMap between spaces of matrices induced by a LinearMap between their coefficients. This is Matrix.map as a LinearMap.

theorem LinearMap.mapMatrix_apply E0 #

∀ {m : Type u_2} {n : Type u_3} {R : Type u_4} {S : Type u_5} {α : Type u_8} {β : Type u_9} [inst : Semiring R]
  [inst_1 : Semiring S] {σᵣₛ : R →+* S} [inst_2 : AddCommMonoid α] [inst_3 : AddCommMonoid β] [inst_4 : Module R α]
  [inst_5 : Module S β] (f : α →ₛₗ[σᵣₛ] β) (M : Matrix m n α), f.mapMatrix M = M.map ⇑f

theorem LinearMap.mapMatrix_id E0 #

∀ {m : Type u_2} {n : Type u_3} {R : Type u_4} {α : Type u_8} [inst : Semiring R] [inst_1 : AddCommMonoid α]
  [inst_2 : Module R α], LinearMap.id.mapMatrix = LinearMap.id

theorem LinearMap.mapMatrix_comp E0 #

∀ {m : Type u_2} {n : Type u_3} {R : Type u_4} {S : Type u_5} {T : Type u_6} {α : Type u_8} {β : Type u_9}
  {γ : Type u_10} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Semiring T] {σᵣₛ : R →+* S} {σₛₜ : S →+* T}
  {σᵣₜ : R →+* T} [inst_3 : RingHomCompTriple σᵣₛ σₛₜ σᵣₜ] [inst_4 : AddCommMonoid α] [inst_5 : AddCommMonoid β]
  [inst_6 : AddCommMonoid γ] [inst_7 : Module R α] [inst_8 : Module S β] [inst_9 : Module T γ] (f : β →ₛₗ[σₛₜ] γ)
  (g : α →ₛₗ[σᵣₛ] β), f.mapMatrix ∘ₛₗ g.mapMatrix = (f ∘ₛₗ g).mapMatrix

theorem LinearMap.entryLinearMap_comp_mapMatrix E0 #

∀ {m : Type u_2} {n : Type u_3} {R : Type u_4} {S : Type u_5} {α : Type u_8} {β : Type u_9} [inst : Semiring R]
  [inst_1 : Semiring S] {σᵣₛ : R →+* S} [inst_2 : AddCommMonoid α] [inst_3 : AddCommMonoid β] [inst_4 : Module R α]
  [inst_5 : Module S β] (f : α →ₛₗ[σᵣₛ] β) (i : m) (j : n),
  Matrix.entryLinearMap S β i j ∘ₛₗ f.mapMatrix = f ∘ₛₗ Matrix.entryLinearMap R α i j

theorem LinearMap.mapMatrix_zero E0 #

∀ {m : Type u_2} {n : Type u_3} {R : Type u_4} {S : Type u_5} {α : Type u_8} {β : Type u_9} [inst : Semiring R]
  [inst_1 : Semiring S] {σᵣₛ : R →+* S} [inst_2 : AddCommMonoid α] [inst_3 : AddCommMonoid β] [inst_4 : Module R α]
  [inst_5 : Module S β], LinearMap.mapMatrix 0 = 0

theorem LinearMap.mapMatrix_add E0 #

∀ {m : Type u_2} {n : Type u_3} {R : Type u_4} {S : Type u_5} {α : Type u_8} {β : Type u_9} [inst : Semiring R]
  [inst_1 : Semiring S] {σᵣₛ : R →+* S} [inst_2 : AddCommMonoid α] [inst_3 : AddCommMonoid β] [inst_4 : Module R α]
  [inst_5 : Module S β] (f g : α →ₛₗ[σᵣₛ] β), (f + g).mapMatrix = f.mapMatrix + g.mapMatrix

theorem LinearMap.mapMatrix_smul E0 #

∀ {m : Type u_2} {n : Type u_3} {R : Type u_4} {S : Type u_5} {A : Type u_7} {α : Type u_8} {β : Type u_9}
  [inst : Semiring R] [inst_1 : Semiring S] {σᵣₛ : R →+* S} [inst_2 : AddCommMonoid α] [inst_3 : AddCommMonoid β]
  [inst_4 : Module R α] [inst_5 : Module S β] [inst_6 : Monoid A] [inst_7 : DistribMulAction A β]
  [inst_8 : SMulCommClass S A β] (a : A) (f : α →ₛₗ[σᵣₛ] β), (a • f).mapMatrix = a • f.mapMatrix

def LinearMap.mapMatrixLinear E1 #

{m : Type u_2} →
  {n : Type u_3} →
    {R : Type u_4} →
      {S : Type u_5} →
        (A : Type u_7) →
          {α : Type u_8} →
            {β : Type u_9} →
              [inst : Semiring R] →
                [inst_1 : Semiring S] →
                  {σᵣₛ : R →+* S} →
                    [inst_2 : AddCommMonoid α] →
                      [inst_3 : AddCommMonoid β] →
                        [inst_4 : Module R α] →
                          [inst_5 : Module S β] →
                            [inst_6 : Semiring A] →
                              [inst_7 : Module A β] →
                                [inst_8 : SMulCommClass S A β] → (α →ₛₗ[σᵣₛ] β) →ₗ[A] Matrix m n α →ₛₗ[σᵣₛ] Matrix m n β

LinearMap.mapMatrix is itself linear in the map being applied.

Alternative, this is Matrix.map as a bilinear map.

theorem LinearMap.mapMatrixLinear_apply E0 #

∀ {m : Type u_2} {n : Type u_3} {R : Type u_4} {S : Type u_5} (A : Type u_7) {α : Type u_8} {β : Type u_9}
  [inst : Semiring R] [inst_1 : Semiring S] {σᵣₛ : R →+* S} [inst_2 : AddCommMonoid α] [inst_3 : AddCommMonoid β]
  [inst_4 : Module R α] [inst_5 : Module S β] [inst_6 : Semiring A] [inst_7 : Module A β] [inst_8 : SMulCommClass S A β]
  (f : α →ₛₗ[σᵣₛ] β), (LinearMap.mapMatrixLinear A) f = f.mapMatrix

theorem LinearMap.mapMatrix_sub E0 #

∀ {m : Type u_2} {n : Type u_3} {R : Type u_4} {S : Type u_5} {α : Type u_8} {β : Type u_9} [inst : Semiring R]
  [inst_1 : Semiring S] {σᵣₛ : R →+* S} [inst_2 : AddCommMonoid α] [inst_3 : AddCommGroup β] [inst_4 : Module R α]
  [inst_5 : Module S β] (f g : α →ₛₗ[σᵣₛ] β), (f - g).mapMatrix = f.mapMatrix - g.mapMatrix

theorem LinearMap.mapMatrix_neg E0 #

∀ {m : Type u_2} {n : Type u_3} {R : Type u_4} {S : Type u_5} {α : Type u_8} {β : Type u_9} [inst : Semiring R]
  [inst_1 : Semiring S] {σᵣₛ : R →+* S} [inst_2 : AddCommMonoid α] [inst_3 : AddCommGroup β] [inst_4 : Module R α]
  [inst_5 : Module S β] (f : α →ₛₗ[σᵣₛ] β), (-f).mapMatrix = -f.mapMatrix

def LinearEquiv.mapMatrix E1 #

{m : Type u_2} →
  {n : Type u_3} →
    {R : Type u_4} →
      {S : Type u_5} →
        {α : Type u_8} →
          {β : Type u_9} →
            [inst : Semiring R] →
              [inst_1 : Semiring S] →
                [inst_2 : AddCommMonoid α] →
                  [inst_3 : AddCommMonoid β] →
                    [inst_4 : Module R α] →
                      [inst_5 : Module S β] →
                        {σᵣₛ : R →+* S} →
                          {σₛᵣ : S →+* R} →
                            [inst_6 : RingHomInvPair σᵣₛ σₛᵣ] →
                              [inst_7 : RingHomInvPair σₛᵣ σᵣₛ] → (α ≃ₛₗ[σᵣₛ] β) → Matrix m n α ≃ₛₗ[σᵣₛ] Matrix m n β

The LinearEquiv between spaces of matrices induced by a LinearEquiv between their coefficients. This is Matrix.map as a LinearEquiv.

theorem LinearEquiv.mapMatrix_apply E0 #

∀ {m : Type u_2} {n : Type u_3} {R : Type u_4} {S : Type u_5} {α : Type u_8} {β : Type u_9} [inst : Semiring R]
  [inst_1 : Semiring S] [inst_2 : AddCommMonoid α] [inst_3 : AddCommMonoid β] [inst_4 : Module R α]
  [inst_5 : Module S β] {σᵣₛ : R →+* S} {σₛᵣ : S →+* R} [inst_6 : RingHomInvPair σᵣₛ σₛᵣ]
  [inst_7 : RingHomInvPair σₛᵣ σᵣₛ] (f : α ≃ₛₗ[σᵣₛ] β) (M : Matrix m n α), f.mapMatrix M = M.map ⇑f

theorem LinearEquiv.mapMatrix_refl E0 #

∀ {m : Type u_2} {n : Type u_3} {R : Type u_4} {α : Type u_8} [inst : Semiring R] [inst_1 : AddCommMonoid α]
  [inst_2 : Module R α], (LinearEquiv.refl R α).mapMatrix = LinearEquiv.refl R (Matrix m n α)

theorem LinearEquiv.mapMatrix_symm E0 #

∀ {m : Type u_2} {n : Type u_3} {R : Type u_4} {S : Type u_5} {α : Type u_8} {β : Type u_9} [inst : Semiring R]
  [inst_1 : Semiring S] [inst_2 : AddCommMonoid α] [inst_3 : AddCommMonoid β] [inst_4 : Module R α]
  [inst_5 : Module S β] {σᵣₛ : R →+* S} {σₛᵣ : S →+* R} [inst_6 : RingHomInvPair σᵣₛ σₛᵣ]
  [inst_7 : RingHomInvPair σₛᵣ σᵣₛ] (f : α ≃ₛₗ[σᵣₛ] β), f.mapMatrix.symm = f.symm.mapMatrix

theorem LinearEquiv.mapMatrix_trans E0 #

∀ {m : Type u_2} {n : Type u_3} {R : Type u_4} {S : Type u_5} {T : Type u_6} {α : Type u_8} {β : Type u_9}
  {γ : Type u_10} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Semiring T] [inst_3 : AddCommMonoid α]
  [inst_4 : AddCommMonoid β] [inst_5 : AddCommMonoid γ] [inst_6 : Module R α] [inst_7 : Module S β]
  [inst_8 : Module T γ] {σᵣₛ : R →+* S} {σₛₜ : S →+* T} {σᵣₜ : R →+* T} [inst_9 : RingHomCompTriple σᵣₛ σₛₜ σᵣₜ]
  {σₛᵣ : S →+* R} {σₜₛ : T →+* S} {σₜᵣ : T →+* R} [inst_10 : RingHomCompTriple σₜₛ σₛᵣ σₜᵣ]
  [inst_11 : RingHomInvPair σᵣₛ σₛᵣ] [inst_12 : RingHomInvPair σₛᵣ σᵣₛ] [inst_13 : RingHomInvPair σₛₜ σₜₛ]
  [inst_14 : RingHomInvPair σₜₛ σₛₜ] [inst_15 : RingHomInvPair σᵣₜ σₜᵣ] [inst_16 : RingHomInvPair σₜᵣ σᵣₜ]
  (f : α ≃ₛₗ[σᵣₛ] β) (g : β ≃ₛₗ[σₛₜ] γ), f.mapMatrix.trans g.mapMatrix = (f.trans g).mapMatrix

theorem LinearEquiv.mapMatrix_toLinearMap E0 #

∀ {m : Type u_2} {n : Type u_3} {R : Type u_4} {S : Type u_5} {α : Type u_8} {β : Type u_9} [inst : Semiring R]
  [inst_1 : Semiring S] [inst_2 : AddCommMonoid α] [inst_3 : AddCommMonoid β] [inst_4 : Module R α]
  [inst_5 : Module S β] {σᵣₛ : R →+* S} {σₛᵣ : S →+* R} [inst_6 : RingHomInvPair σᵣₛ σₛᵣ]
  [inst_7 : RingHomInvPair σₛᵣ σᵣₛ] (f : α ≃ₛₗ[σᵣₛ] β), ↑f.mapMatrix = (↑f).mapMatrix

theorem LinearEquiv.entryLinearMap_comp_mapMatrix E1 #

∀ {m : Type u_2} {n : Type u_3} {R : Type u_4} {S : Type u_5} {α : Type u_8} {β : Type u_9} [inst : Semiring R]
  [inst_1 : Semiring S] [inst_2 : AddCommMonoid α] [inst_3 : AddCommMonoid β] [inst_4 : Module R α]
  [inst_5 : Module S β] {σᵣₛ : R →+* S} {σₛᵣ : S →+* R} [inst_6 : RingHomInvPair σᵣₛ σₛᵣ]
  [inst_7 : RingHomInvPair σₛᵣ σᵣₛ] (f : α ≃ₛₗ[σᵣₛ] β) (i : m) (j : n),
  Matrix.entryLinearMap S β i j ∘ₛₗ ↑f.mapMatrix = ↑f ∘ₛₗ Matrix.entryLinearMap R α i j

def RingHom.mapMatrix E1 #

{m : Type u_2} →
  {α : Type u_8} →
    {β : Type u_9} →
      [inst : Fintype m] →
        [inst_1 : DecidableEq m] →
          [inst_2 : NonAssocSemiring α] → [inst_3 : NonAssocSemiring β] → (α →+* β) → Matrix m m α →+* Matrix m m β

The RingHom between spaces of square matrices induced by a RingHom between their coefficients. This is Matrix.map as a RingHom.

theorem RingHom.mapMatrix_apply E0 #

∀ {m : Type u_2} {α : Type u_8} {β : Type u_9} [inst : Fintype m] [inst_1 : DecidableEq m] [inst_2 : NonAssocSemiring α]
  [inst_3 : NonAssocSemiring β] (f : α →+* β) (M : Matrix m m α), f.mapMatrix M = M.map ⇑f

theorem RingHom.mapMatrix_id E0 #

∀ {m : Type u_2} {α : Type u_8} [inst : Fintype m] [inst_1 : DecidableEq m] [inst_2 : NonAssocSemiring α],
  (RingHom.id α).mapMatrix = RingHom.id (Matrix m m α)

theorem RingHom.mapMatrix_comp E0 #

∀ {m : Type u_2} {α : Type u_8} {β : Type u_9} {γ : Type u_10} [inst : Fintype m] [inst_1 : DecidableEq m]
  [inst_2 : NonAssocSemiring α] [inst_3 : NonAssocSemiring β] [inst_4 : NonAssocSemiring γ] (f : β →+* γ) (g : α →+* β),
  f.mapMatrix.comp g.mapMatrix = (f.comp g).mapMatrix

theorem Matrix.map_pow E0 #

∀ {m : Type u_2} [inst : Fintype m] [inst_1 : DecidableEq m] {α : Type u_11} {β : Type u_12} [inst_2 : Semiring α]
  [inst_3 : Semiring β] (M : Matrix m m α) (f : α →+* β) (a : ℕ), (M ^ a).map ⇑f = M.map ⇑f ^ a

def RingEquiv.mapMatrix E1 #

{m : Type u_2} →
  {α : Type u_8} →
    {β : Type u_9} →
      [inst : Fintype m] →
        [DecidableEq m] →
          [inst_2 : NonAssocSemiring α] → [inst_3 : NonAssocSemiring β] → α ≃+* β → Matrix m m α ≃+* Matrix m m β

The RingEquiv between spaces of square matrices induced by a RingEquiv between their coefficients. This is Matrix.map as a RingEquiv.

theorem RingEquiv.mapMatrix_apply E0 #

∀ {m : Type u_2} {α : Type u_8} {β : Type u_9} [inst : Fintype m] [inst_1 : DecidableEq m] [inst_2 : NonAssocSemiring α]
  [inst_3 : NonAssocSemiring β] (f : α ≃+* β) (M : Matrix m m α), f.mapMatrix M = M.map ⇑f

theorem RingEquiv.mapMatrix_refl E0 #

∀ {m : Type u_2} {α : Type u_8} [inst : Fintype m] [inst_1 : DecidableEq m] [inst_2 : NonAssocSemiring α],
  (RingEquiv.refl α).mapMatrix = RingEquiv.refl (Matrix m m α)

theorem RingEquiv.mapMatrix_symm E0 #

∀ {m : Type u_2} {α : Type u_8} {β : Type u_9} [inst : Fintype m] [inst_1 : DecidableEq m] [inst_2 : NonAssocSemiring α]
  [inst_3 : NonAssocSemiring β] (f : α ≃+* β), f.mapMatrix.symm = f.symm.mapMatrix

theorem RingEquiv.mapMatrix_trans E0 #

∀ {m : Type u_2} {α : Type u_8} {β : Type u_9} {γ : Type u_10} [inst : Fintype m] [inst_1 : DecidableEq m]
  [inst_2 : NonAssocSemiring α] [inst_3 : NonAssocSemiring β] [inst_4 : NonAssocSemiring γ] (f : α ≃+* β) (g : β ≃+* γ),
  f.mapMatrix.trans g.mapMatrix = (f.trans g).mapMatrix

def RingEquiv.mopMatrix E1 #

{m : Type u_2} →
  [inst : Fintype m] →
    {α : Type u_11} → [inst_1 : Mul α] → [inst_2 : AddCommMonoid α] → Matrix m m αᵐᵒᵖ ≃+* (Matrix m m α)ᵐᵒᵖ

For any ring α, we have ring isomorphism Matₙₓₙ(αᵒᵖ) ≅ (Matₙₓₙ(α))ᵒᵖ given by transpose.

See also Matrix.transposeRingEquiv for a version that doesn't take the opposite of α, given that its multiplication is commutative.

theorem RingEquiv.mopMatrix_symm_apply E0 #

∀ {m : Type u_2} [inst : Fintype m] {α : Type u_11} [inst_1 : Mul α] [inst_2 : AddCommMonoid α] (M : (Matrix m m α)ᵐᵒᵖ),
  RingEquiv.mopMatrix.symm M = (MulOpposite.unop M).transpose.map MulOpposite.op

theorem RingEquiv.mopMatrix_apply E0 #

∀ {m : Type u_2} [inst : Fintype m] {α : Type u_11} [inst_1 : Mul α] [inst_2 : AddCommMonoid α] (M : Matrix m m αᵐᵒᵖ),
  RingEquiv.mopMatrix M = MulOpposite.op (M.transpose.map MulOpposite.unop)

instance instIsStablyFiniteRingMulOpposite E0 #

∀ (α : Type u_11) [inst : MulOne α] [inst_1 : AddCommMonoid α] [IsStablyFiniteRing α], IsStablyFiniteRing αᵐᵒᵖ

theorem MulOpposite.isStablyFiniteRing_iff E0 #

∀ (α : Type u_11) [inst : MulOne α] [inst_1 : AddCommMonoid α], IsStablyFiniteRing αᵐᵒᵖ ↔ IsStablyFiniteRing α

def AlgHom.mapMatrix E1 #

{m : Type u_2} →
  {R : Type u_4} →
    {α : Type u_8} →
      {β : Type u_9} →
        [inst : Fintype m] →
          [inst_1 : DecidableEq m] →
            [inst_2 : CommSemiring R] →
              [inst_3 : Semiring α] →
                [inst_4 : Semiring β] →
                  [inst_5 : Algebra R α] → [inst_6 : Algebra R β] → (α →ₐ[R] β) → Matrix m m α →ₐ[R] Matrix m m β

The AlgHom between spaces of square matrices induced by an AlgHom between their coefficients. This is Matrix.map as an AlgHom.

theorem AlgHom.mapMatrix_apply E0 #

∀ {m : Type u_2} {R : Type u_4} {α : Type u_8} {β : Type u_9} [inst : Fintype m] [inst_1 : DecidableEq m]
  [inst_2 : CommSemiring R] [inst_3 : Semiring α] [inst_4 : Semiring β] [inst_5 : Algebra R α] [inst_6 : Algebra R β]
  (f : α →ₐ[R] β) (M : Matrix m m α), f.mapMatrix M = M.map ⇑f

theorem AlgHom.mapMatrix_id E0 #

∀ {m : Type u_2} {R : Type u_4} {α : Type u_8} [inst : Fintype m] [inst_1 : DecidableEq m] [inst_2 : CommSemiring R]
  [inst_3 : Semiring α] [inst_4 : Algebra R α], (AlgHom.id R α).mapMatrix = AlgHom.id R (Matrix m m α)

theorem AlgHom.mapMatrix_comp E0 #

∀ {m : Type u_2} {R : Type u_4} {α : Type u_8} {β : Type u_9} {γ : Type u_10} [inst : Fintype m]
  [inst_1 : DecidableEq m] [inst_2 : CommSemiring R] [inst_3 : Semiring α] [inst_4 : Semiring β] [inst_5 : Semiring γ]
  [inst_6 : Algebra R α] [inst_7 : Algebra R β] [inst_8 : Algebra R γ] (f : β →ₐ[R] γ) (g : α →ₐ[R] β),
  f.mapMatrix.comp g.mapMatrix = (f.comp g).mapMatrix

def AlgEquiv.mapMatrix E1 #

{m : Type u_2} →
  {R : Type u_4} →
    {α : Type u_8} →
      {β : Type u_9} →
        [inst : Fintype m] →
          [DecidableEq m] →
            [inst_2 : CommSemiring R] →
              [inst_3 : Semiring α] →
                [inst_4 : Semiring β] →
                  [inst_5 : Algebra R α] → [inst_6 : Algebra R β] → (α ≃ₐ[R] β) → Matrix m m α ≃ₐ[R] Matrix m m β

The AlgEquiv between spaces of square matrices induced by an AlgEquiv between their coefficients. This is Matrix.map as an AlgEquiv.

theorem AlgEquiv.mapMatrix_apply E0 #

∀ {m : Type u_2} {R : Type u_4} {α : Type u_8} {β : Type u_9} [inst : Fintype m] [inst_1 : DecidableEq m]
  [inst_2 : CommSemiring R] [inst_3 : Semiring α] [inst_4 : Semiring β] [inst_5 : Algebra R α] [inst_6 : Algebra R β]
  (f : α ≃ₐ[R] β) (M : Matrix m m α), f.mapMatrix M = M.map ⇑f

theorem AlgEquiv.mapMatrix_refl E0 #

∀ {m : Type u_2} {R : Type u_4} {α : Type u_8} [inst : Fintype m] [inst_1 : DecidableEq m] [inst_2 : CommSemiring R]
  [inst_3 : Semiring α] [inst_4 : Algebra R α], AlgEquiv.refl.mapMatrix = AlgEquiv.refl

theorem AlgEquiv.mapMatrix_symm E0 #

∀ {m : Type u_2} {R : Type u_4} {α : Type u_8} {β : Type u_9} [inst : Fintype m] [inst_1 : DecidableEq m]
  [inst_2 : CommSemiring R] [inst_3 : Semiring α] [inst_4 : Semiring β] [inst_5 : Algebra R α] [inst_6 : Algebra R β]
  (f : α ≃ₐ[R] β), f.mapMatrix.symm = f.symm.mapMatrix

theorem AlgEquiv.mapMatrix_trans E0 #

∀ {m : Type u_2} {R : Type u_4} {α : Type u_8} {β : Type u_9} {γ : Type u_10} [inst : Fintype m]
  [inst_1 : DecidableEq m] [inst_2 : CommSemiring R] [inst_3 : Semiring α] [inst_4 : Semiring β] [inst_5 : Semiring γ]
  [inst_6 : Algebra R α] [inst_7 : Algebra R β] [inst_8 : Algebra R γ] (f : α ≃ₐ[R] β) (g : β ≃ₐ[R] γ),
  f.mapMatrix.trans g.mapMatrix = (f.trans g).mapMatrix

def AlgEquiv.mopMatrix E1 #

{m : Type u_2} →
  {R : Type u_4} →
    {α : Type u_8} →
      [inst : Fintype m] →
        [inst_1 : CommSemiring R] →
          [inst_2 : Semiring α] → [inst_3 : Algebra R α] → Matrix m m αᵐᵒᵖ ≃ₐ[R] (Matrix m m α)ᵐᵒᵖ

For any algebra α over a ring R, we have an R-algebra isomorphism Matₙₓₙ(αᵒᵖ) ≅ (Matₙₓₙ(R))ᵒᵖ given by transpose.

See also Matrix.transposeAlgEquiv for a version that doesn't take the opposite of α, given that its multiplication is commutative.

theorem AlgEquiv.mopMatrix_apply E0 #

∀ {m : Type u_2} {R : Type u_4} {α : Type u_8} [inst : Fintype m] [inst_1 : CommSemiring R] [inst_2 : Semiring α]
  [inst_3 : Algebra R α] (M : Matrix m m αᵐᵒᵖ), AlgEquiv.mopMatrix M = MulOpposite.op (M.transpose.map MulOpposite.unop)

theorem AlgEquiv.mopMatrix_symm_apply E0 #

∀ {m : Type u_2} {R : Type u_4} {α : Type u_8} [inst : Fintype m] [inst_1 : CommSemiring R] [inst_2 : Semiring α]
  [inst_3 : Algebra R α] (M : (Matrix m m α)ᵐᵒᵖ),
  AlgEquiv.mopMatrix.symm M = (MulOpposite.unop M).transpose.map MulOpposite.op

def AddSubmonoid.matrix E1 #

{m : Type u_2} → {n : Type u_3} → {A : Type u_11} → [inst : AddMonoid A] → AddSubmonoid A → AddSubmonoid (Matrix m n A)

A version of Set.matrix for AddSubmonoids. Given an AddSubmonoid S, S.matrix is the AddSubmonoid of matrices m all of whose entries m i j belong to S.

theorem AddSubmonoid.coe_matrix E0 #

∀ {m : Type u_2} {n : Type u_3} {A : Type u_11} [inst : AddMonoid A] (S : AddSubmonoid A), ↑S.matrix = (↑S).matrix

def AddSubgroup.matrix E1 #

{m : Type u_2} → {n : Type u_3} → {A : Type u_11} → [inst : AddGroup A] → AddSubgroup A → AddSubgroup (Matrix m n A)

A version of Set.matrix for AddSubgroups. Given an AddSubgroup S, S.matrix is the AddSubgroup of matrices m all of whose entries m i j belong to S.

theorem AddSubgroup.coe_matrix E0 #

∀ {m : Type u_2} {n : Type u_3} {A : Type u_11} [inst : AddGroup A] (S : AddSubgroup A), ↑S.matrix = (↑S).matrix

def Subsemiring.matrix E1 #

{n : Type u_3} →
  {R : Type u_11} →
    [inst : NonAssocSemiring R] →
      [inst_1 : Fintype n] → [inst_2 : DecidableEq n] → Subsemiring R → Subsemiring (Matrix n n R)

A version of Set.matrix for Subsemirings. Given a Subsemiring S, S.matrix is the Subsemiring of square matrices m all of whose entries m i j belong to S.

theorem Subsemiring.coe_matrix E0 #

∀ {n : Type u_3} {R : Type u_11} [inst : NonAssocSemiring R] [inst_1 : Fintype n] [inst_2 : DecidableEq n]
  (S : Subsemiring R), ↑S.matrix = S.toAddSubmonoid.matrix.carrier

def Subring.matrix E1 #

{n : Type u_3} →
  {R : Type u_11} →
    [inst : NonAssocRing R] → [inst_1 : Fintype n] → [inst_2 : DecidableEq n] → Subring R → Subring (Matrix n n R)

A version of Set.matrix for Subrings. Given a Subring S, S.matrix is the Subring of square matrices m all of whose entries m i j belong to S.

theorem Subring.coe_matrix E0 #

∀ {n : Type u_3} {R : Type u_11} [inst : NonAssocRing R] [inst_1 : Fintype n] [inst_2 : DecidableEq n] (S : Subring R),
  ↑S.matrix = S.toAddSubmonoid.matrix.carrier

def Submodule.matrix E1 #

{m : Type u_2} →
  {n : Type u_3} →
    {R : Type u_11} →
      {M : Type u_12} →
        [inst : Semiring R] →
          [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → Submodule R M → Submodule R (Matrix m n M)

A version of Set.matrix for Submodules. Given a Submodule S, S.matrix is the Submodule of matrices m all of whose entries m i j belong to S.

theorem Submodule.coe_matrix E0 #

∀ {m : Type u_2} {n : Type u_3} {R : Type u_11} {M : Type u_12} [inst : Semiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] (S : Submodule R M), ↑S.matrix = (↑S).matrix

def Matrix.prodEquiv E1 #

(m : Type u_2) → (n : Type u_3) → (α : Type u_8) → (β : Type u_9) → Matrix m n (α × β) ≃ Matrix m n α × Matrix m n β

Matrices over a product are in canonical bijection with product of matrices.

This is available in bundled forms as:

  • Matrix.prodAddEquiv
  • Matrix.prodLinearEquiv
  • Matrix.prodRingEquiv
  • Matrix.prodAlgEquiv

theorem Matrix.prodEquiv_apply E0 #

∀ (m : Type u_2) (n : Type u_3) (α : Type u_8) (β : Type u_9) (a : Matrix m n (α × β)),
  (Matrix.prodEquiv m n α β) a = (a.map Prod.fst, a.map Prod.snd)

theorem Matrix.prodEquiv_symm_apply E0 #

∀ (m : Type u_2) (n : Type u_3) (α : Type u_8) (β : Type u_9) (a : Matrix m n α × Matrix m n β),
  (Matrix.prodEquiv m n α β).symm a = Matrix.of fun i j ↦ (a.1 i j, a.2 i j)

def Matrix.prodAddEquiv E1 #

(m : Type u_2) →
  (n : Type u_3) →
    (α : Type u_8) →
      (β : Type u_9) → [inst : Add α] → [inst_1 : Add β] → Matrix m n (α × β) ≃+ Matrix m n α × Matrix m n β

prodEquiv as an AddEquiv.

theorem Matrix.prodAddEquiv_symm_apply E0 #

∀ (m : Type u_2) (n : Type u_3) (α : Type u_8) (β : Type u_9) [inst : Add α] [inst_1 : Add β]
  (a : Matrix m n α × Matrix m n β), (Matrix.prodAddEquiv m n α β).symm a = Matrix.of fun i j ↦ (a.1 i j, a.2 i j)

theorem Matrix.prodAddEquiv_apply E0 #

∀ (m : Type u_2) (n : Type u_3) (α : Type u_8) (β : Type u_9) [inst : Add α] [inst_1 : Add β] (a : Matrix m n (α × β)),
  (Matrix.prodAddEquiv m n α β) a = (a.map Prod.fst, a.map Prod.snd)

theorem Matrix.toEquiv_prodAddEquiv E0 #

∀ (m : Type u_2) (n : Type u_3) (α : Type u_8) (β : Type u_9) [inst : Add α] [inst_1 : Add β],
  ↑(Matrix.prodAddEquiv m n α β) = Matrix.prodEquiv m n α β

def Matrix.prodLinearEquiv E1 #

(m : Type u_2) →
  (n : Type u_3) →
    (R : Type u_4) →
      (α : Type u_8) →
        (β : Type u_9) →
          [inst : Semiring R] →
            [inst_1 : AddCommMonoid α] →
              [inst_2 : AddCommMonoid β] →
                [inst_3 : Module R α] → [inst_4 : Module R β] → Matrix m n (α × β) ≃ₗ[R] Matrix m n α × Matrix m n β

prodEquiv as a LinearEquiv.

theorem Matrix.prodLinearEquiv_symm_apply E0 #

∀ (m : Type u_2) (n : Type u_3) (R : Type u_4) (α : Type u_8) (β : Type u_9) [inst : Semiring R]
  [inst_1 : AddCommMonoid α] [inst_2 : AddCommMonoid β] [inst_3 : Module R α] [inst_4 : Module R β]
  (a : Matrix m n α × Matrix m n β), (Matrix.prodLinearEquiv m n R α β).symm a = Matrix.of fun i j ↦ (a.1 i j, a.2 i j)

theorem Matrix.prodLinearEquiv_apply E0 #

∀ (m : Type u_2) (n : Type u_3) (R : Type u_4) (α : Type u_8) (β : Type u_9) [inst : Semiring R]
  [inst_1 : AddCommMonoid α] [inst_2 : AddCommMonoid β] [inst_3 : Module R α] [inst_4 : Module R β]
  (a : Matrix m n (α × β)), (Matrix.prodLinearEquiv m n R α β) a = (a.map Prod.fst, a.map Prod.snd)

theorem Matrix.toAddEquiv_prodLinearEquiv E0 #

∀ (m : Type u_2) (n : Type u_3) (R : Type u_4) (α : Type u_8) (β : Type u_9) [inst : Semiring R]
  [inst_1 : AddCommMonoid α] [inst_2 : AddCommMonoid β] [inst_3 : Module R α] [inst_4 : Module R β],
  ↑(Matrix.prodLinearEquiv m n R α β) = Matrix.prodAddEquiv m n α β

def Matrix.prodRingEquiv E1 #

(n : Type u_3) →
  (α : Type u_8) →
    (β : Type u_9) →
      [inst : Fintype n] →
        [inst_1 : AddCommMonoid α] →
          [inst_2 : AddCommMonoid β] →
            [inst_3 : Mul α] → [inst_4 : Mul β] → Matrix n n (α × β) ≃+* Matrix n n α × Matrix n n β

prodEquiv as a RingEquiv.

theorem Matrix.prodRingEquiv_symm_apply E0 #

∀ (n : Type u_3) (α : Type u_8) (β : Type u_9) [inst : Fintype n] [inst_1 : AddCommMonoid α] [inst_2 : AddCommMonoid β]
  [inst_3 : Mul α] [inst_4 : Mul β] (a : Matrix n n α × Matrix n n β),
  (Matrix.prodRingEquiv n α β).symm a = Matrix.of fun i j ↦ (a.1 i j, a.2 i j)

theorem Matrix.prodRingEquiv_apply E0 #

∀ (n : Type u_3) (α : Type u_8) (β : Type u_9) [inst : Fintype n] [inst_1 : AddCommMonoid α] [inst_2 : AddCommMonoid β]
  [inst_3 : Mul α] [inst_4 : Mul β] (a : Matrix n n (α × β)),
  (Matrix.prodRingEquiv n α β) a = (a.map Prod.fst, a.map Prod.snd)

theorem Matrix.toAddEquiv_prodRingEquiv E0 #

∀ (n : Type u_3) (α : Type u_8) (β : Type u_9) [inst : Fintype n] [inst_1 : AddCommMonoid α] [inst_2 : AddCommMonoid β]
  [inst_3 : Mul α] [inst_4 : Mul β], ↑(Matrix.prodRingEquiv n α β) = Matrix.prodAddEquiv n n α β

def Matrix.prodAlgEquiv E1 #

(n : Type u_3) →
  (R : Type u_4) →
    (α : Type u_8) →
      (β : Type u_9) →
        [inst : Fintype n] →
          [inst_1 : CommSemiring R] →
            [DecidableEq n] →
              [inst_3 : Semiring α] →
                [inst_4 : Algebra R α] →
                  [inst_5 : Semiring β] → [inst_6 : Algebra R β] → Matrix n n (α × β) ≃ₐ[R] Matrix n n α × Matrix n n β

prodEquiv as an AlgEquiv.

theorem Matrix.prodAlgEquiv_apply E0 #

∀ (n : Type u_3) (R : Type u_4) (α : Type u_8) (β : Type u_9) [inst : Fintype n] [inst_1 : CommSemiring R]
  [inst_2 : DecidableEq n] [inst_3 : Semiring α] [inst_4 : Algebra R α] [inst_5 : Semiring β] [inst_6 : Algebra R β]
  (a : Matrix n n (α × β)), (Matrix.prodAlgEquiv n R α β) a = (a.map Prod.fst, a.map Prod.snd)

theorem Matrix.prodAlgEquiv_symm_apply E0 #

∀ (n : Type u_3) (R : Type u_4) (α : Type u_8) (β : Type u_9) [inst : Fintype n] [inst_1 : CommSemiring R]
  [inst_2 : DecidableEq n] [inst_3 : Semiring α] [inst_4 : Algebra R α] [inst_5 : Semiring β] [inst_6 : Algebra R β]
  (a : Matrix n n α × Matrix n n β), (Matrix.prodAlgEquiv n R α β).symm a = Matrix.of fun i j ↦ (a.1 i j, a.2 i j)

theorem Matrix.toRingEquiv_prodAlgEquiv E0 #

∀ (n : Type u_3) (R : Type u_4) (α : Type u_8) (β : Type u_9) [inst : Fintype n] [inst_1 : CommSemiring R]
  [inst_2 : DecidableEq n] [inst_3 : Semiring α] [inst_4 : Algebra R α] [inst_5 : Semiring β] [inst_6 : Algebra R β],
  (Matrix.prodAlgEquiv n R α β).toRingEquiv = Matrix.prodRingEquiv n α β

theorem Matrix.toLinearEquiv_prodAlgEquiv E0 #

∀ (n : Type u_3) (R : Type u_4) (α : Type u_8) (β : Type u_9) [inst : Fintype n] [inst_1 : CommSemiring R]
  [inst_2 : DecidableEq n] [inst_3 : Semiring α] [inst_4 : Algebra R α] [inst_5 : Semiring β] [inst_6 : Algebra R β],
  ↑(Matrix.prodAlgEquiv n R α β) = Matrix.prodLinearEquiv n n R α β

def Matrix.piEquiv E1 #

{m : Type u_2} →
  {n : Type u_3} → {ι : Type u_11} → {β : ι → Type u_12} → Matrix m n ((i : ι) → β i) ≃ ((i : ι) → Matrix m n (β i))

Matrices over a Pi type are in canonical bijection with tuples of matrices.

This is available in bundled forms as:

  • Matrix.piAddEquiv
  • Matrix.piLinearEquiv
  • Matrix.piRingEquiv
  • Matrix.piAlgEquiv

theorem Matrix.piEquiv_symm_apply E0 #

∀ {m : Type u_2} {n : Type u_3} {ι : Type u_11} {β : ι → Type u_12} (f : (i : ι) → Matrix m n (β i)),
  Matrix.piEquiv.symm f = Matrix.of fun j k i ↦ f i j k

theorem Matrix.piEquiv_apply E0 #

∀ {m : Type u_2} {n : Type u_3} {ι : Type u_11} {β : ι → Type u_12} (f : Matrix m n ((i : ι) → β i)) (i : ι),
  Matrix.piEquiv f i = f.map fun x ↦ x i

def Matrix.piAddEquiv E1 #

{m : Type u_2} →
  {n : Type u_3} →
    {ι : Type u_11} →
      {β : ι → Type u_12} → [inst : (i : ι) → Add (β i)] → Matrix m n ((i : ι) → β i) ≃+ ((i : ι) → Matrix m n (β i))

piEquiv as an AddEquiv.

theorem Matrix.piAddEquiv_symm_apply E0 #

∀ {m : Type u_2} {n : Type u_3} {ι : Type u_11} {β : ι → Type u_12} [inst : (i : ι) → Add (β i)]
  (f : (i : ι) → Matrix m n (β i)), Matrix.piAddEquiv.symm f = Matrix.of fun j k i ↦ f i j k

theorem Matrix.piAddEquiv_apply E0 #

∀ {m : Type u_2} {n : Type u_3} {ι : Type u_11} {β : ι → Type u_12} [inst : (i : ι) → Add (β i)]
  (f : Matrix m n ((i : ι) → β i)) (i : ι), Matrix.piAddEquiv f i = f.map fun x ↦ x i

theorem Matrix.toEquiv_piAddEquiv E0 #

∀ {m : Type u_2} {n : Type u_3} {ι : Type u_11} {β : ι → Type u_12} [inst : (i : ι) → Add (β i)],
  ↑Matrix.piAddEquiv = Matrix.piEquiv

def Matrix.piLinearEquiv E1 #

{m : Type u_2} →
  {n : Type u_3} →
    {ι : Type u_11} →
      {β : ι → Type u_12} →
        (R : Type u_13) →
          [inst : Semiring R] →
            [inst_1 : (i : ι) → AddCommMonoid (β i)] →
              [inst_2 : (i : ι) → Module R (β i)] → Matrix m n ((i : ι) → β i) ≃ₗ[R] (i : ι) → Matrix m n (β i)

piEquiv as a LinearEquiv.

theorem Matrix.piLinearEquiv_apply E0 #

∀ {m : Type u_2} {n : Type u_3} {ι : Type u_11} {β : ι → Type u_12} (R : Type u_13) [inst : Semiring R]
  [inst_1 : (i : ι) → AddCommMonoid (β i)] [inst_2 : (i : ι) → Module R (β i)] (a : Matrix m n ((i : ι) → β i)) (i : ι),
  (Matrix.piLinearEquiv R) a i = Matrix.piAddEquiv.toFun a i

theorem Matrix.piLinearEquiv_symm_apply E0 #

∀ {m : Type u_2} {n : Type u_3} {ι : Type u_11} {β : ι → Type u_12} (R : Type u_13) [inst : Semiring R]
  [inst_1 : (i : ι) → AddCommMonoid (β i)] [inst_2 : (i : ι) → Module R (β i)] (a : (i : ι) → Matrix m n (β i)),
  (Matrix.piLinearEquiv R).symm a = Matrix.piAddEquiv.invFun a

theorem Matrix.toAddEquiv_piLinearEquiv E0 #

∀ {m : Type u_2} {n : Type u_3} {ι : Type u_11} {β : ι → Type u_12} (R : Type u_13) [inst : Semiring R]
  [inst_1 : (i : ι) → AddCommMonoid (β i)] [inst_2 : (i : ι) → Module R (β i)],
  ↑(Matrix.piLinearEquiv R) = Matrix.piAddEquiv

def Matrix.piRingEquiv E1 #

{n : Type u_3} →
  {ι : Type u_11} →
    {β : ι → Type u_12} →
      [inst : (i : ι) → AddCommMonoid (β i)] →
        [inst_1 : (i : ι) → Mul (β i)] →
          [inst_2 : Fintype n] → Matrix n n ((i : ι) → β i) ≃+* ((i : ι) → Matrix n n (β i))

piEquiv as a RingEquiv.

theorem Matrix.piRingEquiv_apply E0 #

∀ {n : Type u_3} {ι : Type u_11} {β : ι → Type u_12} [inst : (i : ι) → AddCommMonoid (β i)]
  [inst_1 : (i : ι) → Mul (β i)] [inst_2 : Fintype n] (f : Matrix n n ((i : ι) → β i)) (i : ι),
  Matrix.piRingEquiv f i = f.map fun x ↦ x i

theorem Matrix.piRingEquiv_symm_apply E0 #

∀ {n : Type u_3} {ι : Type u_11} {β : ι → Type u_12} [inst : (i : ι) → AddCommMonoid (β i)]
  [inst_1 : (i : ι) → Mul (β i)] [inst_2 : Fintype n] (f : (i : ι) → Matrix n n (β i)),
  Matrix.piRingEquiv.symm f = Matrix.of fun j k i ↦ f i j k

theorem Matrix.toAddEquiv_piRingEquiv E0 #

∀ {n : Type u_3} {ι : Type u_11} {β : ι → Type u_12} [inst : (i : ι) → AddCommMonoid (β i)]
  [inst_1 : (i : ι) → Mul (β i)] [inst_2 : Fintype n], ↑Matrix.piRingEquiv = Matrix.piAddEquiv

def Matrix.piAlgEquiv E1 #

{n : Type u_3} →
  (R : Type u_4) →
    {ι : Type u_11} →
      {β : ι → Type u_12} →
        [inst : CommSemiring R] →
          [inst_1 : (i : ι) → Semiring (β i)] →
            [inst_2 : (i : ι) → Algebra R (β i)] →
              [inst_3 : Fintype n] → [DecidableEq n] → Matrix n n ((i : ι) → β i) ≃ₐ[R] (i : ι) → Matrix n n (β i)

piEquiv as an AlgEquiv.

theorem Matrix.piAlgEquiv_symm_apply E0 #

∀ {n : Type u_3} (R : Type u_4) {ι : Type u_11} {β : ι → Type u_12} [inst : CommSemiring R]
  [inst_1 : (i : ι) → Semiring (β i)] [inst_2 : (i : ι) → Algebra R (β i)] [inst_3 : Fintype n] [inst_4 : DecidableEq n]
  (f : (i : ι) → Matrix n n (β i)), (Matrix.piAlgEquiv R).symm f = Matrix.of fun j k i ↦ f i j k

theorem Matrix.piAlgEquiv_apply E0 #

∀ {n : Type u_3} (R : Type u_4) {ι : Type u_11} {β : ι → Type u_12} [inst : CommSemiring R]
  [inst_1 : (i : ι) → Semiring (β i)] [inst_2 : (i : ι) → Algebra R (β i)] [inst_3 : Fintype n] [inst_4 : DecidableEq n]
  (f : Matrix n n ((i : ι) → β i)) (i : ι), (Matrix.piAlgEquiv R) f i = f.map fun x ↦ x i

theorem Matrix.toRingEquiv_piAlgEquiv E0 #

∀ {n : Type u_3} (R : Type u_4) {ι : Type u_11} {β : ι → Type u_12} [inst : CommSemiring R]
  [inst_1 : (i : ι) → Semiring (β i)] [inst_2 : (i : ι) → Algebra R (β i)] [inst_3 : Fintype n]
  [inst_4 : DecidableEq n], (Matrix.piAlgEquiv R).toRingEquiv = Matrix.piRingEquiv

theorem Matrix.toLinearEquiv_piAlgEquiv E0 #

∀ {n : Type u_3} (R : Type u_4) {ι : Type u_11} {β : ι → Type u_12} [inst : CommSemiring R]
  [inst_1 : (i : ι) → Semiring (β i)] [inst_2 : (i : ι) → Algebra R (β i)] [inst_3 : Fintype n]
  [inst_4 : DecidableEq n], ↑(Matrix.piAlgEquiv R) = Matrix.piLinearEquiv R

def Matrix.transposeAddEquiv E1 #

(m : Type u_2) → (n : Type u_3) → (α : Type u_8) → [inst : Add α] → Matrix m n α ≃+ Matrix n m α

Matrix.transpose as an AddEquiv.

theorem Matrix.transposeAddEquiv_apply E0 #

∀ (m : Type u_2) (n : Type u_3) (α : Type u_8) [inst : Add α] (M : Matrix m n α),
  (Matrix.transposeAddEquiv m n α) M = M.transpose

theorem Matrix.transposeAddEquiv_symm E0 #

∀ (m : Type u_2) (n : Type u_3) (α : Type u_8) [inst : Add α],
  (Matrix.transposeAddEquiv m n α).symm = Matrix.transposeAddEquiv n m α

theorem Matrix.transpose_list_sum E1 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} [inst : AddMonoid α] (l : List (Matrix m n α)),
  l.sum.transpose = (List.map Matrix.transpose l).sum

theorem Matrix.transpose_multiset_sum E1 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} [inst : AddCommMonoid α] (s : Multiset (Matrix m n α)),
  s.sum.transpose = (Multiset.map Matrix.transpose s).sum

theorem Matrix.transpose_sum E1 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} [inst : AddCommMonoid α] {ι : Type u_11} (s : Finset ι)
  (M : ι → Matrix m n α), (∑ i ∈ s, M i).transpose = ∑ i ∈ s, (M i).transpose

def Matrix.transposeLinearEquiv E1 #

(m : Type u_2) →
  (n : Type u_3) →
    (R : Type u_4) →
      (α : Type u_8) →
        [inst : Semiring R] → [inst_1 : AddCommMonoid α] → [inst_2 : Module R α] → Matrix m n α ≃ₗ[R] Matrix n m α

Matrix.transpose as a LinearEquiv.

theorem Matrix.transposeLinearEquiv_apply E0 #

∀ (m : Type u_2) (n : Type u_3) (R : Type u_4) (α : Type u_8) [inst : Semiring R] [inst_1 : AddCommMonoid α]
  [inst_2 : Module R α] (a : Matrix m n α),
  (Matrix.transposeLinearEquiv m n R α) a = (Matrix.transposeAddEquiv m n α).toFun a

theorem Matrix.toAddEquiv_transposeLinearEquiv E0 #

∀ (m : Type u_2) (n : Type u_3) (R : Type u_4) (α : Type u_8) [inst : Semiring R] [inst_1 : AddCommMonoid α]
  [inst_2 : Module R α], ↑(Matrix.transposeLinearEquiv m n R α) = Matrix.transposeAddEquiv m n α

theorem Matrix.transposeLinearEquiv_symm E0 #

∀ (m : Type u_2) (n : Type u_3) (R : Type u_4) (α : Type u_8) [inst : Semiring R] [inst_1 : AddCommMonoid α]
  [inst_2 : Module R α], (Matrix.transposeLinearEquiv m n R α).symm = Matrix.transposeLinearEquiv n m R α

def Matrix.transposeRingEquiv E1 #

(m : Type u_2) →
  (α : Type u_8) →
    [inst : AddCommMonoid α] → [inst_1 : CommMagma α] → [inst_2 : Fintype m] → Matrix m m α ≃+* (Matrix m m α)ᵐᵒᵖ

Matrix.transpose as a RingEquiv to the opposite ring.

See also RingEquiv.mopMatrix for a version that doesn't require α to have commutative multiplication, by taking its opposite.

theorem Matrix.transposeRingEquiv_symm_apply E0 #

∀ (m : Type u_2) (α : Type u_8) [inst : AddCommMonoid α] [inst_1 : CommMagma α] [inst_2 : Fintype m]
  (a : (Matrix m m α)ᵐᵒᵖ), (Matrix.transposeRingEquiv m α).symm a = (MulOpposite.unop a).transpose

theorem Matrix.transposeRingEquiv_apply E0 #

∀ (m : Type u_2) (α : Type u_8) [inst : AddCommMonoid α] [inst_1 : CommMagma α] [inst_2 : Fintype m] (a : Matrix m m α),
  (Matrix.transposeRingEquiv m α) a = MulOpposite.op a.transpose

theorem Matrix.transpose_pow E0 #

∀ {m : Type u_2} {α : Type u_8} [inst : CommSemiring α] [inst_1 : Fintype m] [inst_2 : DecidableEq m] (M : Matrix m m α)
  (k : ℕ), (M ^ k).transpose = M.transpose ^ k

theorem Matrix.transpose_list_prod E1 #

∀ {m : Type u_2} {α : Type u_8} [inst : CommSemiring α] [inst_1 : Fintype m] [inst_2 : DecidableEq m]
  (l : List (Matrix m m α)), l.prod.transpose = (List.map Matrix.transpose l).reverse.prod

def Matrix.transposeAlgEquiv E1 #

(m : Type u_2) →
  (R : Type u_4) →
    (α : Type u_8) →
      [inst : CommSemiring R] →
        [inst_1 : CommSemiring α] → [inst_2 : Fintype m] → [inst_3 : Algebra R α] → Matrix m m α ≃ₐ[R] (Matrix m m α)ᵐᵒᵖ

Matrix.transpose as an AlgEquiv to the opposite ring.

See also AlgEquiv.mopMatrix for a version that doesn't require α to have commutative multiplication, by taking its opposite.

theorem Matrix.transposeAlgEquiv_apply E0 #

∀ (m : Type u_2) (R : Type u_4) (α : Type u_8) [inst : CommSemiring R] [inst_1 : CommSemiring α] [inst_2 : Fintype m]
  [inst_3 : Algebra R α] (a : Matrix m m α), (Matrix.transposeAlgEquiv m R α) a = MulOpposite.op a.transpose

theorem Matrix.transposeAlgEquiv_symm_apply E0 #

∀ (m : Type u_2) (R : Type u_4) (α : Type u_8) [inst : CommSemiring R] [inst_1 : CommSemiring α] [inst_2 : Fintype m]
  [inst_3 : Algebra R α] (a : (Matrix m m α)ᵐᵒᵖ),
  (Matrix.transposeAlgEquiv m R α).symm a = (MulOpposite.unop a).transpose

theorem Matrix.toRingEquiv_transposeAlgEquiv E0 #

∀ (m : Type u_2) (R : Type u_4) (α : Type u_8) [inst : CommSemiring R] [inst_1 : CommSemiring α] [inst_2 : Fintype m]
  [inst_3 : Algebra R α], (Matrix.transposeAlgEquiv m R α).toRingEquiv = Matrix.transposeRingEquiv m α

def Matrix.rowAddEquiv E1 #

(m : Type u_2) → (n : Type u_3) → (α : Type u_8) → [inst : Add α] → Matrix m n α ≃+ (m → n → α)

Matrix.row as an AddEquiv

def Matrix.colAddEquiv E1 #

(m : Type u_2) → (n : Type u_3) → (α : Type u_8) → [inst : Add α] → Matrix m n α ≃+ (n → m → α)

Matrix.col as an AddEquiv

theorem Matrix.coe_rowAddEquiv E0 #

∀ (m : Type u_2) (n : Type u_3) (α : Type u_8) [inst : Add α], ⇑(Matrix.rowAddEquiv m n α) = Matrix.row

theorem Matrix.coe_colAddEquiv E0 #

∀ (m : Type u_2) (n : Type u_3) (α : Type u_8) [inst : Add α], ⇑(Matrix.colAddEquiv m n α) = Matrix.col

theorem Matrix.toEquiv_rowAddEquiv E0 #

∀ (m : Type u_2) (n : Type u_3) (α : Type u_8) [inst : Add α], ↑(Matrix.rowAddEquiv m n α) = Matrix.rowEquiv m n α

theorem Matrix.toEquiv_colAddEquiv E0 #

∀ (m : Type u_2) (n : Type u_3) (α : Type u_8) [inst : Add α], ↑(Matrix.colAddEquiv m n α) = Matrix.colEquiv m n α

def Matrix.rowLinearEquiv E1 #

(m : Type u_2) →
  (n : Type u_3) →
    (R : Type u_4) →
      (α : Type u_8) →
        [inst : Semiring R] → [inst_1 : AddCommMonoid α] → [inst_2 : Module R α] → Matrix m n α ≃ₗ[R] m → n → α

Matrix.row as a LinearMap

def Matrix.colLinearEquiv E1 #

(m : Type u_2) →
  (n : Type u_3) →
    (R : Type u_4) →
      (α : Type u_8) →
        [inst : Semiring R] → [inst_1 : AddCommMonoid α] → [inst_2 : Module R α] → Matrix m n α ≃ₗ[R] n → m → α

Matrix.col as a LinearMap

theorem Matrix.coe_rowLinearEquiv E0 #

∀ (m : Type u_2) (n : Type u_3) (R : Type u_4) (α : Type u_8) [inst : Semiring R] [inst_1 : AddCommMonoid α]
  [inst_2 : Module R α], ⇑(Matrix.rowLinearEquiv m n R α) = Matrix.row

theorem Matrix.coe_colLinearEquiv E0 #

∀ (m : Type u_2) (n : Type u_3) (R : Type u_4) (α : Type u_8) [inst : Semiring R] [inst_1 : AddCommMonoid α]
  [inst_2 : Module R α], ⇑(Matrix.colLinearEquiv m n R α) = Matrix.col

theorem Matrix.toEquiv_rowLinearEquiv E0 #

∀ (m : Type u_2) (n : Type u_3) (R : Type u_4) (α : Type u_8) [inst : Semiring R] [inst_1 : AddCommMonoid α]
  [inst_2 : Module R α], ↑(Matrix.rowLinearEquiv m n R α) = Matrix.rowEquiv m n α

theorem Matrix.toEquiv_colLinearEquiv E0 #

∀ (m : Type u_2) (n : Type u_3) (R : Type u_4) (α : Type u_8) [inst : Semiring R] [inst_1 : AddCommMonoid α]
  [inst_2 : Module R α], ↑(Matrix.colLinearEquiv m n R α) = Matrix.colEquiv m n α

theorem Matrix.toAddEquiv_rowLinearEquiv E0 #

∀ (m : Type u_2) (n : Type u_3) (R : Type u_4) (α : Type u_8) [inst : Semiring R] [inst_1 : AddCommMonoid α]
  [inst_2 : Module R α], ↑(Matrix.rowLinearEquiv m n R α) = Matrix.rowAddEquiv m n α

theorem Matrix.toAddEquiv_colLinearEquiv E0 #

∀ (m : Type u_2) (n : Type u_3) (R : Type u_4) (α : Type u_8) [inst : Semiring R] [inst_1 : AddCommMonoid α]
  [inst_2 : Module R α], ↑(Matrix.colLinearEquiv m n R α) = Matrix.colAddEquiv m n α

theorem Matrix.sum_mulVec E1 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} {ι : Type u_11} [inst : NonUnitalNonAssocSemiring α] [inst_1 : Fintype n]
  (s : Finset ι) (x : ι → Matrix m n α) (y : n → α), (∑ i ∈ s, x i).mulVec y = ∑ i ∈ s, (x i).mulVec y

theorem Matrix.mulVec_sum E1 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} {ι : Type u_11} [inst : NonUnitalNonAssocSemiring α] [inst_1 : Fintype n]
  (x : Matrix m n α) (s : Finset ι) (y : ι → n → α), x.mulVec (∑ i ∈ s, y i) = ∑ i ∈ s, x.mulVec (y i)

theorem Matrix.sum_vecMul E1 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} {ι : Type u_11} [inst : NonUnitalNonAssocSemiring α] [inst_1 : Fintype n]
  (s : Finset ι) (x : ι → n → α) (y : Matrix n m α), Matrix.vecMul (∑ i ∈ s, x i) y = ∑ i ∈ s, Matrix.vecMul (x i) y

theorem Matrix.vecMul_sum E1 #

∀ {m : Type u_2} {n : Type u_3} {α : Type u_8} {ι : Type u_11} [inst : NonUnitalNonAssocSemiring α] [inst_1 : Fintype n]
  (x : n → α) (s : Finset ι) (y : ι → Matrix n m α), Matrix.vecMul x (∑ i ∈ s, y i) = ∑ i ∈ s, Matrix.vecMul x (y i)