In the proof for the Law of Total Variance, the following lemma seems to be appealed to (when going from the 2nd to the 3rd step of the proof):
$$ E[E[Y^2 \mid X]] = E[\text{Var}[Y \mid X] + [E[Y \mid X]]^2] $$
Where does this come from and/or what justifies it?
This is the expectation of
$$ E[Y^2\mid X]=\operatorname{Var}[Y\mid X]+E[Y\mid X]^2\;, $$
which is the conditional version of the definition of the variance,
$$ E[Y^2]=\operatorname{Var}[Y]+E[Y]^2\;. $$