I'm working on a proof to show that for a group $G$ and an abelian group $H$, the set of all homomorphisms $\def\Hom{\operatorname{Hom}}\Hom(G,H)$ from $G$ to $H$ is an abelian group. I just want to verify that my proof is valid. I proceed by trying to show this group satisfies 4 conditions.
First, I defined the operation on $\Hom(G,H)$ as $(f+g)(u)$, $u \in G$, $f(u) + g(u)$. Is this a valid first move?
Then, associativity is easy to show. $((f+g)+h)(u) = (f+g)(u) + h(u) = f(u) + g(u) + h(u) = (f+(g+h))(u)$.
It is similarly easy to verify that this group is abelian: $(f+g)(u) = f(u) + g(u) = g(u) + f(u)$ since $H$ is abelian, so $(f+g)(u) = (g+f)(u)$.
Is it necessary to show closure, i.e. the product of homomorphisms into an abelian group is a homomorphism? This also follows since $H$ is abelian.
The trivial (zero) homomorphism is the homomorphism that maps every element of G to the identity element of $H$. Since $\Hom(G,H)$ includes all homomorphisms, the identity homomorphism is also in $\Hom(G,H)$.
I'm having trouble finding the inverse homomorphism. Let's say $f$ is in $\Hom(G,H)$. If we take $g$ to be $-f$, $(f+g)(u) = f(u) - f(u) = 1$? What does it mean for a homomorphism to be an inverse of another?
Thanks for your help.