The areas / V07. Linear algebra
Mathlib.LinearAlgebra.Matrix.Module
14 declarations. Mathlib docs · Source
Mₙ(R)-module structure on Mⁿ
Main Results
Matrix.Module.matrixModule: This instance showsι → Mis a module overMatrix ι ι R, and the action of it is a generalization ofMatrix.mulVec, this is only available in theMatrix.Modulenamespace.LinearMap.mapMatrixModule: This defines a linear map fromι → Mtoι → NoverMatrix ι ι Rinduced by a linear map fromMtoNand together withMatrix.matrixModuleit gives a functor from the category ofR-modules to the category ofMatrix ι ι R-modules.
Tags
matrix, module
def Matrix.Module.matrixModule E3 #
{ι : Type u_1} →
{R : Type u_2} →
{M : Type u_3} →
[inst : Ring R] →
[inst_1 : Fintype ι] →
[inst_2 : DecidableEq ι] → [inst_3 : AddCommGroup M] → [Module R M] → Module (Matrix ι ι R) (ι → M)
Mⁿ is a Mₙ(R) module, note that this creates a diamond when M is Matrix ι ι R or when
M is R.
theorem Matrix.Module.smul_def E0 #
∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} [inst : Ring R] [inst_1 : Fintype ι] [inst_2 : DecidableEq ι]
[inst_3 : AddCommGroup M] [inst_4 : Module R M] (N : Matrix ι ι R) (v : ι → M), N • v = fun i ↦ ∑ j, N i j • v j
theorem Matrix.Module.smul_def' E1 #
∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} [inst : Ring R] [inst_1 : Fintype ι] [inst_2 : DecidableEq ι]
[inst_3 : AddCommGroup M] [inst_4 : Module R M] (N : Matrix ι ι R) (v : ι → M), N • v = ∑ j, fun i ↦ N i j • v j
theorem Matrix.Module.smul_apply E0 #
∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} [inst : Ring R] [inst_1 : Fintype ι] [inst_2 : DecidableEq ι]
[inst_3 : AddCommGroup M] [inst_4 : Module R M] (N : Matrix ι ι R) (v : ι → M) (i : ι), (N • v) i = ∑ j, N i j • v j
theorem Matrix.Module.single_smul E0 #
∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} [inst : Ring R] [inst_1 : Fintype ι] [inst_2 : DecidableEq ι]
[inst_3 : AddCommGroup M] [inst_4 : Module R M] (i j : ι) (r : R) (v : ι → M),
Matrix.single i j r • v = Pi.single i (r • v j)
theorem Matrix.Module.diagonal_const_smul E0 #
∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} [inst : Ring R] [inst_1 : Fintype ι] [inst_2 : DecidableEq ι]
[inst_3 : AddCommGroup M] [inst_4 : Module R M] (r : R) (v : ι → M), (Matrix.diagonal fun x ↦ r) • v = r • v
theorem Matrix.Module.scalar_smul E1 #
∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} [inst : Ring R] [inst_1 : Fintype ι] [inst_2 : DecidableEq ι]
[inst_3 : AddCommGroup M] [inst_4 : Module R M] (r : R) (v : ι → M), (Matrix.scalar ι) r • v = r • v
theorem Matrix.Module.instIsScalarTowerForall E1 #
∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} [inst : Ring R] [inst_1 : Fintype ι] [inst_2 : DecidableEq ι]
[inst_3 : AddCommGroup M] [inst_4 : Module R M] (S : Type u_6) [inst_5 : Ring S] [inst_6 : SMul R S]
[inst_7 : Module S M] [IsScalarTower R S M], IsScalarTower R (Matrix ι ι S) (ι → M)
def LinearMap.mapMatrixModule E3 #
(ι : Type u_1) →
{R : Type u_2} →
{M : Type u_3} →
{N : Type u_4} →
[inst : Ring R] →
[inst_1 : Fintype ι] →
[inst_2 : DecidableEq ι] →
[inst_3 : AddCommGroup M] →
[inst_4 : Module R M] →
[inst_5 : AddCommGroup N] → [inst_6 : Module R N] → (M →ₗ[R] N) → (ι → M) →ₗ[Matrix ι ι R] ι → N
The induced linear map from Mⁿ to Nⁿ by a linear map f : M → N, this is the matrix linear
version of LinearMap.compLeft.
theorem LinearMap.mapMatrixModule_apply E0 #
∀ (ι : Type u_1) {R : Type u_2} {M : Type u_3} {N : Type u_4} [inst : Ring R] [inst_1 : Fintype ι]
[inst_2 : DecidableEq ι] [inst_3 : AddCommGroup M] [inst_4 : Module R M] [inst_5 : AddCommGroup N]
[inst_6 : Module R N] (f : M →ₗ[R] N) (a : ι → M) (a_1 : ι),
(LinearMap.mapMatrixModule ι f) a a_1 = (f.compLeft ι) a a_1
theorem LinearMap.mapMatrixModule_id E0 #
∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} [inst : Ring R] [inst_1 : Fintype ι] [inst_2 : DecidableEq ι]
[inst_3 : AddCommGroup M] [inst_4 : Module R M], LinearMap.mapMatrixModule ι LinearMap.id = LinearMap.id
theorem LinearMap.mapMatrixModule_id_apply E0 #
∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} [inst : Ring R] [inst_1 : Fintype ι] [inst_2 : DecidableEq ι]
[inst_3 : AddCommGroup M] [inst_4 : Module R M] (v : ι → M), (LinearMap.mapMatrixModule ι LinearMap.id) v = v
theorem LinearMap.mapMatrixModule_comp E1 #
∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} {N : Type u_4} {P : Type u_5} [inst : Ring R] [inst_1 : Fintype ι]
[inst_2 : DecidableEq ι] [inst_3 : AddCommGroup M] [inst_4 : Module R M] [inst_5 : AddCommGroup N]
[inst_6 : Module R N] [inst_7 : AddCommGroup P] [inst_8 : Module R P] (f : M →ₗ[R] N) (g : N →ₗ[R] P),
LinearMap.mapMatrixModule ι (g ∘ₗ f) = LinearMap.mapMatrixModule ι g ∘ₗ LinearMap.mapMatrixModule ι f
theorem LinearMap.mapMatrixModule_comp_apply E0 #
∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} {N : Type u_4} {P : Type u_5} [inst : Ring R] [inst_1 : Fintype ι]
[inst_2 : DecidableEq ι] [inst_3 : AddCommGroup M] [inst_4 : Module R M] [inst_5 : AddCommGroup N]
[inst_6 : Module R N] [inst_7 : AddCommGroup P] [inst_8 : Module R P] (f : M →ₗ[R] N) (g : N →ₗ[R] P) (v : ι → M),
(LinearMap.mapMatrixModule ι (g ∘ₗ f)) v = (LinearMap.mapMatrixModule ι g) ((LinearMap.mapMatrixModule ι f) v)