Tensor-product basis coordinates #
This file records how contractions against one factor of a tensor product detect equality when that factor is free, and how coordinates in a basis of one factor commute with maps of the other. It also proves that the coordinates in bases obtained by scalar extension commute with a map of the scalar-extension algebras, and that over a basis with at most one index a scalar extension consists of pure tensors.
Main declarations #
TensorProduct.tensor_eq_of_forall_tensorComponent_eq: contractions against a projective right factor detect equality.Module.Basis.equivFinsuppOfBasisLeft_lTensor_applyandModule.Basis.lTensor_eq_zero_iff_forall_equivFinsuppOfBasisLeft: coordinates in a basis of the left factor commute with maps of the right factor, so such a map kills an element exactly when it kills every coordinate.Module.Basis.map_baseChange_repr: applying a scalar map to a coordinate in a base-changed basis agrees with first mapping the tensor and then taking its coordinate.Module.Basis.eq_baseChange_repr_tmul_of_subsingleton: over a basis with at most one index, every element of a scalar extension is the pure tensor of its unique coordinate with the corresponding basis vector.Module.Basis.baseChange_toMatrix_baseChange: change-of-basis matrices between base-changed bases are obtained by mapping entries.Module.Basis.map_toMatrixAlgEquiv_baseChange: matrices in base-changed bases commute with scalar maps when the represented endomorphisms are intertwined by tensor-product base change.Module.Basis.toMatrix_baseChange_baseChange: matrices of scalar-extended endomorphisms are obtained by mapping entries.
Equality of all contractions against the right factor detects equality in a tensor product over a commutative semiring when the right factor is projective.
Coordinates in a basis of the left factor commute with maps of the right factor.
Over a basis of the left factor, a map of the right factor kills an element of the tensor product exactly when it kills each of its coordinates.
Coordinates in a base-changed basis are natural in the scalar-extension algebra.
Over a basis with at most one index, every element of a scalar extension is the pure tensor of its unique coordinate with the corresponding basis vector. This isolates the tensor bookkeeping needed to reduce statements about rank-at-most-one scalar extensions to scalar multiples of a single vector.
The change-of-basis matrix between two base-changed bases is the entrywise scalar extension of the change-of-basis matrix between the original bases.
The matrix of a scalar-extended endomorphism is the entrywise scalar extension of its matrix in the original basis.
Matrices in base-changed bases commute with a scalar map when the corresponding endomorphisms are intertwined by tensor-product base change.