Let $G$ be a topological group. For each $n \in \mathbb{Z}$, consider the continuous functions $f_{n} \colon G \to G : x \mapsto x^{n}$, and set $F := \{f_{n} \mid n \in \mathbb{Z}\}$.
Is there a nice/easy description of the closure of the set $F$ in $C(G,G)$ with respect to the topology of pointwise convergence? And what is the induced subspace topology on this closure?
Example: If $G$ is the (topological) circle group, then $F = Hom(G,G)$ is closed in $C(G,G)$ with respect to the topology of pointwise convergence. However, I do not know how the induced subspace topology on $F$ can be described. (It is known from Pontrjagin Duality that compactness of $G$ implies that the compact-open topology on $F$ coincides with the discrete topology, but this does not tell anything about the topology of pointwise convergence.)
Ideally, I would like to have a general statement, e.g, for compact Hausdorff groups. Does anybody know a suitable reference?
Edit:
I originally stated the example differently, namely
Example: If $G$ is the group associated to one-dimensional sphere, then $F$ is closed in $C(G,G)$ and the topology of pointwise convergence on $F$ coincides with the discrete topology.
However, in this example, the topology of pointwise convergence on $F$ does not coincide with the discrete topology. The proof that I had mind requires this topology to be frist-countable on $F$, but I cannot find an argument for this. In general, topological spaces with countable underlying set need not be first-countable (see Arens-Fort Space), so the second statement of the example is just not true.
Best Answer
Here is what I think happens in the category of compact (Hausdorff) groups. I know it is true in the category of profinite groups and I assume the argument carries over. First of all I believe the closure in the compact-open topology and the pointwise convergence topology are the same. The closure should be described this way.Let $C$ be the free compact group on 1-generator $a$. To each element $\nu$ of $C$ and compact group $G$, we get a cts map $\nu_G\colon G\to G$ as follows. Let $x\in G$. By the universal property of $C$ there is a unique cts map $C\to G$ sending $a$ to $x$. Define $\nu_G(x)$ to be the image of $\nu$ under this map. This gives a cts mapping $C\to Cts(G,G)$ (natural in $G$) in the compact open topology. The closure of the family $F$ of mappings in the OP's question is the image of $C$ in $Cts(G,G)$.
To make this clearer, the mapping on $G$ associated to $a^n$ with $n\in \mathbb Z$ is $x\mapsto x^n$.