My question is essentially I know that the diagonalization theorem is:
The diagonalization theorem states that an $n \times n$ matrix $A$ is diagonalizable if and only if $A$ has $n$ linearly independent eigenvectors, i.e., if the matrix rank of the matrix formed by the eigenvectors is $n$