Suppose $G$ is a discrete abelian group. Show that $\hat{G}$ is compact.
This exercise is the converse of this question: The Pontryagin dual of a compact abelian group is discrete An example of this statement (and its converse) is the relation between the discrete abelian group $\mathbb{Z}$ and the circle group $S^1$.
I did this exercise (as I did in the mentioned post above) when I read an introduction to Fourier analysis on locally compact abelian groups. I got stuck in the middle and a search in google only returned the statement in nLab: "In general, the dual of a discrete group is a compact group and conversely." I also did not find the statement on this site.
I eventually figured it out and put it as an answer below. Any alternative approach/reference will be welcome.
There are slightly different ways of defining the Pontryagin dual. The one I have in mind for doing the exercise is as follows.
A map $\chi:G\to S^1$ is called a character of $G$ if it is a group homomorphism: $$ \chi(g_1g_2) = \chi(g_1)\chi(g_2),\quad \ g_1,g_2\in G\;, $$ and it is continuous. Here $S^1$ donotes the circle group. (Again, there are different ways defining the circle group. I take it as the set $\{z\in\mathbb{C}:|z|=1\}$ together with multiplication of complex numbers.)
One can check that the (pointwise) product of two characters is again a character; the set $\hat{G}$ (together with the product) of all characters of $G$ is a group.
One introduces a topology on $\hat{G}$ by defining the neighborhoods of a given $\chi_0\in\hat{G}$ as follows. Let $K\subset G$ be a compact set and $\epsilon>0$. Then set the neighborhood $$ V_{K,\epsilon} = \{\chi \in \hat{G}:\sup_{g\in K}|\chi(g)-\chi_0(g)|<\epsilon\}\;. $$ So this is essentially the topology of uniform convergence on compact sets.