Let $X$ be some set such as $\{a,b,c\}$ or $\mathbb R^n$. We want to choose a vector $x=(x_0,x_1,...)\in X^\infty$ that maximizes the sum below. Interpret this as a value $x_t$ for each time period $t$. (Assume the sum exists for all $x$).
My question is, under what conditions can we "move the argmax inside the limit operator", as follows?
$$\arg\max_{x\in X^\infty}\lim_{T\to \infty}\sum_{t=0}^T \gamma^tf(x_t)=\lim_{T\to \infty}\arg\max_{x\in X^\infty}\sum_{t=0}^T \gamma^tf(x_t)$$
With $\gamma\in (0,1)$. This is essentially a "limit of a set" equation. I'm not sure where to start to find out an answer to this question.
EDIT: I don't necessarily want to assume that $f:X\to \mathbb R$ is continuous, or even that $X$ is an infinite set.
EDIT: I just realized that I mistyped the equation at first... I was too hasty, and now understand people's comments... I forgot to add the $\gamma$. Sorry for wasting people's time.