Let $V$ be an $L$-module of a lie algebra $L$ (A representation of $L$). Prove that $V$ can be written as the direct sum of irreducible submodules if and only if every $L$-submodule $W \subseteq V$ has a complement.
I have an attempt at the solution but I am new to this subject so I have no confidence that it is correct. This is an exercise from Humphreys textbook on Lie algebra.
The forward direction: Let $W$ be an $L$-submodule of $V$. Then we have the exact sequence of vector spaces.
$$0 \to W \to V \to V/W \to 0$$
Note that $V/W$ is the set complement of $W$. This is an exact sequence of $L$-Modules if $V/W$ is a sub representation of $V$. By hypothesis this is true. By the splitting lemma, this short exact sequence of $L$-modules splits if the map from $V$ to $V/W$ has a section. Choose this section to be the inclusion of $V/W$ into $V$. Therefore this sequence splits and $V \cong W \oplus V/W$. Repeat this process until $V$ and $V/W$ have no submodules. I am not sure why this process should terminate.
The backward direction is relatively trivial. If $V \cong W_1 \oplus \ldots \oplus W_n$ where the $W_i$ for $i \in \{1,\ldots n\}$ are irreducible then every submodule corresponds to some choice irreducibles in the above direct product. The complement of those submodules correspond to the direct product of every irreducible you didn't choose.
The most important thing is the first convention in the beginning of the chapter
Thus your main concern about whether it terminates vanishes. I do not think it is true if $V$ is not finite dimensional, but I do not have a counter example.