Let $L$ be a semisimple Lie algebra. I am trying to understand root space decomposition of $L$ on my own. Since $L$ is semisimple, $L$ possesses an abelian maximal toral subalgebra i.e. an abelian subalgebra $H$ which is $\text {ad}$-semisimple, known as Cartan subalgebra. But then $\text {ad} (H)$ is a commuting family of semisimple operators on $L$ and hence they are simultaneously diagonalizable. So there exists a basis $\{e_1, \cdots, e_n \}$ of $L$ and $\lambda_i \in H^{\ast}$ corresponding to each basis element $e_i$ such that $$[h, e_i] = \lambda_i (h) e_i$$ for all $h \in H.$ Define $$L_{\lambda_i} : = \left \{x \in L\ |\ [h, x] = \lambda_i (h) x\ \text {for all}\ h \in H \right \}.$$
Then it's clear that $L = \sum\limits_{i = 1}^{n} L_{\lambda_i}.$ But I can't see why the sum is direct. First of all how can conclude that all the $\lambda_i$'s are distinct? Because if for some $i \neq j$ we have $\lambda_i = \lambda_j$ then clearly $L_{\lambda_i} = L_{\lambda_j}.$ But then the sum won't be direct. So at first we have to somehow show that all $\lambda_i$'s are distinct. If they are distinct they are all one dimensional.
In particular, if the sum is direct then $H$ is also one-dimensional. Is it always the case?
Could anyone please answer the questions? Also please let me know where I am going wrong if there is any.
Thanks for your time.