(Exercise C.1 Lee’s Introduction to Topological Manifolds) Suppose $G$ is a group and $S\subseteq G$. Prove that the subgroup generated by $S$ is equivalent to the set of all finite products of integral powers of elements of $S$.
My attempt: Let $H$ be defined as $$H = \left\{\prod_{i=1}^n a_i^{k_i} \ \bigl\vert \ \{a_i\}_{i\in\Bbb N}\in S, \{k_i\}_{i\in\Bbb N}\in\Bbb Z\right\}.$$ Obviously, we have $a_i^{k_i}\in \langle S\rangle, \ \forall i\in \Bbb N_0$ since any group is closed under its operation and thus, $H\subseteq \langle S\rangle$.
Now, we must show that $\langle S\rangle \subseteq H$. It suffices to prove that $S\subseteq H \le G$, since $\langle S\rangle$ is the smallest subgroup containing $S$. Note $H$ must contain the identity since in the case that $i\equiv 0$, $$\left\{\prod_{i\in\varnothing}a_i^{k_i} \ \bigl\vert \ \{a_i\}_{i\in\Bbb N}\in S, \{k_i\}_{i\in\Bbb N}\in \Bbb Z\right\} = \{1\},$$ thus $H\le G$. Too, $S\subseteq H$ [insert explanation here]. $\quad \square$
Why should $S\subseteq H$ — how can I complete my proof?
Also, I saw this recommended question and noticed that the answers gave a similar proof to my attempt above. The only difference is, they restrict their attention to powers in the set $\{-1,1\}$, while my exercise concerns itself with all integral powers. So, I wonder, is Exercise C.1 a corollary to wmnorth’s problem? Clearly, mine implies his, but is the converse true?
Thanks in advance.