Proof (quotient groups)

The main thing is to show that this group operation is well-defined. Suppose $$\begin{align*} g_1 H &= g_1' H \\ g_2 H &= g_2' H \end{align*}$$ for some $g_1,g_1',g_2,g_2'\in G$. Since $H$ is a normal subgroup, $$ Hg_2 = Hg_2'. $$ This implies that $$\begin{align*} g_1 &= g_1' h_1, \\ g_2 &= h_2 g_2' \end{align*}$$ for some $h_1,h_2\in H$.

Then $$\begin{align*} g_1 g_2 &= g_1'(h_1h_2 g_2') \\ &= g_1'(g_2'h_3) \\ &\in g_1'g_2'H \end{align*}$$ for some $h_3\in H$ since $h_1h_2g_2' \in Hg_2' = g_2'H$ as $H$ is normal.

Hence since $g_1g_2H\cap g_1'g_2'H\neq\emptyset$ and cosets partition, $$ g_1g_2 H = g_1'g_2'H, $$ so $\phi$ is well-defined.

Next, we will check the axioms for a group.