Let $A, B \in K^{n \times n}$.
I found that $2$ and $0$ are the eigenvalues of $A$. Then I tried to prove that $rank(2I-A)=rank(A)$ if so the $nul(A) + nul(2I-A) = n$ and that means $A$ is diagonalizable. But I cant prove it. Does anyone have any ideas ?
The assumptions can be rewritten as $AB=2A$ and $BA=2B.$ Therefore $Bx=0$ iff $Ax=0.$ Hence $\dim \ker A=\dim \ker B.$ The identity $B(A-2I)=0$ implies that $$\dim \ker B\ge \dim{\rm Im} (A-2I)=n-\dim\ker(A-2I)$$ Hence $$\dim\ker A+\dim\ker (A-2I)\ge n$$ Therefore the whole space can be decomposed into the direct sum of $\ker A$ and $\ker (A-2I).$