The areas / V08. Multilinear algebra and forms
Mathlib.LinearAlgebra.TensorProduct.Matrix
4 declarations. Mathlib docs · Source
theorem TensorProduct.toMatrix_map E1 #
∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {M' : Type u_5} {N' : Type u_6} {ι : Type u_7} {κ : Type u_8}
{ι' : Type u_10} {κ' : Type u_11} [inst : DecidableEq ι] [inst_1 : DecidableEq κ] [inst_2 : Fintype ι]
[inst_3 : Fintype κ] [inst_4 : Finite ι'] [inst_5 : Finite κ'] [inst_6 : CommRing R] [inst_7 : AddCommGroup M]
[inst_8 : AddCommGroup N] [inst_9 : AddCommGroup M'] [inst_10 : AddCommGroup N'] [inst_11 : Module R M]
[inst_12 : Module R N] [inst_13 : Module R M'] [inst_14 : Module R N'] (bM : Module.Basis ι R M)
(bN : Module.Basis κ R N) (bM' : Module.Basis ι' R M') (bN' : Module.Basis κ' R N') (f : M →ₗ[R] M') (g : N →ₗ[R] N'),
(LinearMap.toMatrix (bM.tensorProduct bN) (bM'.tensorProduct bN')) (TensorProduct.map f g) =
Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) ((LinearMap.toMatrix bM bM') f) ((LinearMap.toMatrix bN bN') g)
The linear map built from TensorProduct.map corresponds to the matrix built from
Matrix.kronecker.
theorem Matrix.toLin_kronecker E1 #
∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {M' : Type u_5} {N' : Type u_6} {ι : Type u_7} {κ : Type u_8}
{ι' : Type u_10} {κ' : Type u_11} [inst : DecidableEq ι] [inst_1 : DecidableEq κ] [inst_2 : Fintype ι]
[inst_3 : Fintype κ] [inst_4 : Finite ι'] [inst_5 : Finite κ'] [inst_6 : CommRing R] [inst_7 : AddCommGroup M]
[inst_8 : AddCommGroup N] [inst_9 : AddCommGroup M'] [inst_10 : AddCommGroup N'] [inst_11 : Module R M]
[inst_12 : Module R N] [inst_13 : Module R M'] [inst_14 : Module R N'] (bM : Module.Basis ι R M)
(bN : Module.Basis κ R N) (bM' : Module.Basis ι' R M') (bN' : Module.Basis κ' R N') (A : Matrix ι' ι R)
(B : Matrix κ' κ R),
(Matrix.toLin (bM.tensorProduct bN) (bM'.tensorProduct bN')) (Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) A B) =
TensorProduct.map ((Matrix.toLin bM bM') A) ((Matrix.toLin bN bN') B)
The matrix built from Matrix.kronecker corresponds to the linear map built from
TensorProduct.map.
theorem TensorProduct.toMatrix_comm E1 #
∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {ι : Type u_7} {κ : Type u_8} [inst : DecidableEq ι]
[inst_1 : DecidableEq κ] [inst_2 : Fintype ι] [inst_3 : Fintype κ] [inst_4 : CommRing R] [inst_5 : AddCommGroup M]
[inst_6 : AddCommGroup N] [inst_7 : Module R M] [inst_8 : Module R N] (bM : Module.Basis ι R M)
(bN : Module.Basis κ R N),
(LinearMap.toMatrix (bM.tensorProduct bN) (bN.tensorProduct bM)) ↑(TensorProduct.comm R M N) =
Matrix.submatrix 1 Prod.swap id
TensorProduct.comm corresponds to a permutation of the identity matrix.
theorem TensorProduct.toMatrix_assoc E1 #
∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {P : Type u_4} {ι : Type u_7} {κ : Type u_8} {τ : Type u_9}
[inst : DecidableEq ι] [inst_1 : DecidableEq κ] [inst_2 : DecidableEq τ] [inst_3 : Fintype ι] [inst_4 : Fintype κ]
[inst_5 : Fintype τ] [inst_6 : CommRing R] [inst_7 : AddCommGroup M] [inst_8 : AddCommGroup N]
[inst_9 : AddCommGroup P] [inst_10 : Module R M] [inst_11 : Module R N] [inst_12 : Module R P]
(bM : Module.Basis ι R M) (bN : Module.Basis κ R N) (bP : Module.Basis τ R P),
(LinearMap.toMatrix ((bM.tensorProduct bN).tensorProduct bP) (bM.tensorProduct (bN.tensorProduct bP)))
↑(TensorProduct.assoc R M N P) =
Matrix.submatrix 1 id ⇑(Equiv.prodAssoc ι κ τ)
TensorProduct.assoc corresponds to a permutation of the identity matrix.