TITLE: Continuous version of the fundamental theorem of invariant theory for the orthogonal group
QUESTION [11 upvotes]: A standard result in the invariant theory of the orthogonal group states the following.
Theorem
Let $(E, \langle .,. \rangle)$ be an n-dimensional euclidean vector space,
let $f : E^m \rightarrow {\bf R}$
a polynomial function satisfying
$f(g(v_1), ... g(v_m)) = f(v_1,...,v_m)$
for all isometries $g$ of $E$ and $v_1$,..., $v_m \in E$.
Then such a function is a polynomial function
in the quantities $\{\langle{v_i}{v_j}\rangle\}_{i,j = 1...m}$.
Does the theorem holds in the topological setting,
namely when polynomial is replaced by continuous ?
My guess is that it should be true and the proof should be simpler than its algebraic counterpart, maybe a short computation using SVD.
All references I know present the algebraic proof though. Same question in the differential setting.

REPLY [3 votes]: Reflecting on the answer of Terence Tao, I guess it boils down to
the fact that an injective proper map between locally compact spaces
is a homeomorphism onto its image. Since we are working with
${\bf R}^n$ here, there is a simple characterisation of proper maps
that leads to the following statement.
Let $\Phi : {\bf R}^n \longrightarrow {\bf R}^k$ be a continuous
map satisfying
$$
\|\Phi(x)\| \longrightarrow \infty \quad when \quad  {\|x\| \rightarrow \infty}.
$$
Let us define the fiber relation on ${\bf R}^n$ by
$x \sim x' \iff \Phi(x) = \Phi(x').$
Then  $({\bf R}^n/\sim)$ is a locally compact metric space and
$\bar{\Phi} : ({\bf R}^n/\sim) \longrightarrow \Phi({\bf R}^n)$
is a homeomorphism.
The condition on the norm is there to ensure that
for all compact set $K \subset {\bf R}^k$, $\Phi^{-1}(K)$ is
closed and bounded (hence compact). In particular, the fibers
$\Phi^{-1}(\{y\})$ are compact and thus we can define
a distance on the quotient as follows:
$$
d(\bar{x}, \bar{x}') = d(\Phi^{-1}(\{\bar{\Phi}(\bar{x})\}), \Phi^{-1}(\{\bar{\Phi}(\bar{x}')\})).
$$
For the problem at hand, we take
$\Phi(v_1,...,v_l) = (\langle v_i, v_j \rangle)$
and note that the fibers of $\Phi$ are the orbits of the elements
of ${\bf R}^n$ under the action of the orthogonal group.
Then, for any invariant $f$, we have
$$
f(v_1,...,v_l) = \bar{f}(\bar{\Phi}^{-1}(\bar{\Phi}(\pi(v_1),..., \pi(v_l))))
               = \bar{f} \circ \bar{\Phi}^{-1}(\langle v_i, v_j\rangle).
$$
The norm condition also ensures that $\Phi({\bf R}^n)$ is closed,
so $\bar{f} \circ \bar{\Phi}^{-1}$ can be extended to all ${\bf R}^k$ if needed.