Diagonal matrices: products with matrix units, and commutation #
This file records generic identities about diagonal matrices. Multiplying a rectangular matrix unit on both sides by diagonal matrices of the corresponding row and column sizes rescales its one nonzero entry. And a matrix commuting with a diagonal matrix has no entry away from the diagonal wherever that diagonal matrix separates two coordinates, so a matrix commuting with a diagonal matrix of pairwise distinct entries is itself diagonal.
Neither statement needs a unit or an associative multiplication in the entries: the first holds
over a NonUnitalNonAssocSemiring, and the second adds commutativity and cancellation by nonzero
elements, which is what forces the off-diagonal entries to vanish.
Main results #
TauCeti.diagonal_mul_single_mul_diagonal: multiplyingEᵢⱼ(c)on the left and right by diagonal matrices rescales its entry by the corresponding diagonal coefficients.TauCeti.apply_eq_zero_of_commute_diagonal: a matrix commuting with a diagonal matrix has vanishing(i, j)entry wherever that diagonal matrix separatesifromj.TauCeti.isDiag_of_commute_diagonal: a matrix commuting with a diagonal matrix of pairwise distinct entries is itself diagonal.
Multiplying a matrix unit on the left and right by diagonal matrices rescales its nonzero entry by the corresponding diagonal entries.
A matrix commuting with a diagonal matrix has vanishing (i, j) entry whenever the diagonal
matrix separates the coordinates i and j.
A matrix commuting with a diagonal matrix of pairwise distinct entries is diagonal.
A map diagonal on a basis has that diagonal matrix in the basis coordinates.