Let $G$ be a locally compact group and $I$ the set of matrix coefficient of irreducible unitary matrix coefficients of $G$. By Gelfand-Raikov's theorem and Stone-Weirestrass's theorem, for a compact $K$ of $G$, the algebra generated by $I$ is dense in $C(K)$ the space of continuous functions on $K$, so in particular the space of all matrix coefficient is dense.
I was wondering if we can get a stronger result : is the vector space $V$ generated by $I$ dense ?
For compact groups this is true by Peter-Weyl, since the vector space and the algebra coïncide.
The idea I had was a proof by contradiction. If we assume that $V$ is not dense, we can consider a nonzero continuous linear form $f$ on $C(K)$ which is $0$ on $V$. By density of all matrix coefficients, there is $\varphi$ a matrix coefficient such that $f(\varphi)\neq 0$.
Then, if we assume that $G$ is second countable, there is a standard Borel space $X$ and a $\sigma$-finite measure $\mu$ on $X$ such that for any $g\in G$, $$\varphi(g)=\int_X \varphi_x(g)d\mu(x)$$where $\varphi_x\in S$. Since $\varphi_x\in S$, we have $f(\varphi_x)=0$ for all $x\in X$.
But then is there a way to exchange the integral and $f$ ?