Some obvious lemmas on matrices #
This file includes some necessary and obvious results for matrices,
such as matrix.mul_vec_eq
.
We also show that the trace of a symmetric matrix is equal to the sum of its eigenvalues.
two matrices $a,b \in M_n$ are equal iff for all vectors $c \in \mathbb{k}^n$ we have $a c = b c$, essentially, treat them as linear maps on $\mathbb{k}^n$ so you can have extentionality with vectors
the outer product of two nonzero vectors is nonzero
the transpose of vec_mul_vec x y
is simply vec_mul_vec y x
the identity written as a sum of the standard basis
$\textnormal{Tr}(A\otimes_k B)=\textnormal{Tr}(A)\textnormal{Tr}(B)$
the trace of a Hermitian matrix is the sum of its eigenvalues
a Hermitian matrix applied to its eigenvector basis element equals the basis element scalar-ed by its respective eigenvalue
for any matrix $x\in M_{n_1 \times n_2}$, we have $$x=\sum_{i,j,k,l}x_{ik}^{jl}(e_{ij} \otimes_k e_{kl}) $$
$(x \otimes_k y)^* = x^* \otimes_k y^*$
$e_{ij}^*=e_{ji}$
Equations
- x.to_invertible_matrix = {inv_of := ⇑linear_map.to_matrix' ↑(x.symm), inv_of_mul_self := _, mul_inv_of_self := _}