Let $f : X \to Y$ be a finite surjective morphism of smooth affine algebraic varieties over the complex numbers. Is it true that a function on $Y$ whose pullback via $f$ is an analytic function on $X$, is itself analytic?
I ask because I am interested in knowing that, for a reductive complex algebraic group $G$, an analytic $W$-invariant function on a Cartan subalgebra $\mathfrak{h}$ lifts to an analytic $G$-invariant function on the Lie algebra $\mathfrak{g}$. So, if I am not mistaken, it is enough for me to know that an analytic function on $\mathfrak{h}$, invariant under $W$, gives rise to an analytic function on $W \backslash \mathfrak{h}$.
Thanks, Sasha