1 version of the statement of Approximation by smooth compact-finite functions, newest first, as written in TeX. Only the paragraphs that changed are shown; words added since the version before are marked like this and words removed like this. Times are those of the commits, in your local time.
Version 1 , first version
Let $F$ be a number field, $n\ge0$, and
$$G=\prod_{v\mid\infty}\operatorname{GL}_n(F_v),\qquad K=\prod_{v\text{ real}}O(n)\times\prod_{v\text{ complex}}U(n).$$
For every compact set $C\subseteq G$, continuous $f:G\to\mathbb C$, and $\varepsilon>0$, there is a smooth $P:G\to\mathbb C$ such that
$$|P(x)-f(x)|<\varepsilon\qquad(x\in C),$$
and the complex span of the functions $g\mapsto P(kg)$, $k\in K$, is finite-dimensional.