Given $G,H_1,H_2$ finite abelian groups and $G\times H_1 \cong G\times H_2$
Show $H_1 \cong H_2$
I think the proof would go something like this:
$H_1\cong(G\times H_1)/(G\times\{e_{H_1}\})\cong(G\times H_2)/(G\times\{e_{H_2}\})\cong H_2$
Though the first and third isomorphisms are somewhat obvious, I'm doubtful about the second isomorphism because
Given $\Phi:G_1 \to G_2$ is an isomorphism, I only know that (this is a guess) $G_1/H\cong G_2/\Phi(H)$ (is this true? I have not verified)
But $\Phi((G,e_{H_1}))$ may not be equal to $(G, e_{H_2})$
So how do I show this?
Let $G,H_1,H_2$ be finite abelian groups. Let $\Phi$ be an isomorphism as follows $$\Phi:G\times H_1\to G\times H_2$$ We write $\Phi$ as its components: $\Phi=(\Phi_1,\Phi_2)$ where $$\Phi_1:G\times H_1\to G,\quad\Phi_2:G\times H_1\to H_2$$ are surjective group homomorphisms. Then they induce isomorphisms $$G\cong\frac{G\times H_1}{\ker\Phi_1},\quad H_2\cong\frac{G\times H_1}{\ker\Phi_2}$$
$\quad$
Now we write elements in $G\times H_1$ as in Lemma 2 and define this mapping $$G\times H_1\to G\times H_1$$ $$xy\mapsto(\phi_1(y),\phi_2(x))$$ This is easily verified to be an automorphism that carries $\ker\Phi_2$ to $G$. By my comments above $$\frac{G\times H_1}{\ker\Phi_2}\cong\frac{G\times H_1}{G}$$ Combined with (obtained above Lemma 1) $$H_2\cong\frac{G\times H_1}{\ker\Phi_2}$$ we have $$H_2\cong\frac{G\times H_1}{\ker\Phi_2}\cong\frac{G\times H_1}{G}\cong H_1$$