$\textbf{Definition:}$ Let $P$ be a matrix. We say is diagonalizable matrix iff
$\exists$ an invertible matrix $A$: $\exists$ a diagonal matrix $D$: $A^{-1}PA=D$.
I asked a question earlier as to how to prove the following proposition. I am on a mission to get to the end of the full proof as I have listed everything below to help see where I am going. I put the part where I am stuck currently.
$\textbf{Proposition:}$ Let $P$ be an $n\times n$ matrix.
If $P^2=P$, then $P$ is diagonalizable. Link to help for future reference.
$\textbf{Proof:}$ Let $P$ be an $n\times n$ matrix. Assume $P^2=P$. [First, show $Im(I-P)=ker(P)$.]
$\subseteq$ Let $y\in Im(I-P)$ [Show $y\in ker(P)$. It suffices to show $P(y)=0$.] Then, $y=(I-P)(z)$ for some $z\in \mathbb{R}^n$. Thus, the following holds true:
$$\begin{equation}\begin{aligned} P(y)&=P((I-P)(z)) \text{ as } y=(I-P)(z)\\ &=P(z-P(z)) \\ &=P(z)-\underbrace{P^2}_{=P}(z)) \\ &=P(z)-P(z) \\ &=0. \end{aligned}\end{equation}$$
$\supseteq$ Let $y\in ker(P)$. [Show $y\in Im(I-P)$.] Then,
$$\begin{equation}\begin{aligned} (I-P)(y)&=I(y)-P(y)\\ &=I(y)-0\\ &=y. \end{aligned}\end{equation}$$ As $y=(I-P)(y)$, $y\in Im(I-P)$.
Thus, it has been shown that $ker(P)=Im(I-P)$.
$\textbf{Question/Part Stuck On:}$ In the case $P\neq I$, since $Im(I-P)=ker(P)$, there must be an eigenspace that corresponds to an eigenvalue zero. Why must there be an eigenspace that corresponds to an eigenvalue of zero and also an eigenspace that corresponds to an eigenvalue of one here? It does not make sense to me as to why $X^2-X=X(X-1)=0$ gives us our eigenvalues of $1$ and $0$. I have also seen others go from knowing $v=(v-P(v))+P(v)$ to all of the sudden knowing the direct sum of these Eigenvalues yields the whole space which is also quite a jump for me. I am lost as to where to go next in this proof, and any help would be greatly appreciated.