1 version of the statement of Smooth vectors and integration over a compact subgroup, 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
Assume the following local chart property for every pair of complex matrices $G,s$ with $s^2=1$, $s^*Gs=G$ and $Gs$ positive definite: finitely many $Y_i$ in $\mathfrak g=\{X:X^*G+GX=0\}$ give products $\prod_i\exp(t_iY_i)$ covering some identity neighborhood with arbitrarily small real parameters $t_i$. Fix such $G,s$, put $U(G)=\{g:g^*Gg=G\}$, and let $K$ be its subgroup commuting with $s$. Let $\pi$ be a strongly continuous unitary representation of this matrix group on a complex Hilbert space, and let $\mu$ be a probability measure on the ambient matrix space, supported on $K$, left invariant by $K$, and positive on every open set meeting $K$.
Let $p$ be a continuous complex-valued function on the ambient matrix space and let $w$ be a smooth vector. Then
$$w_p=\int_Kp(k)\pi(k)w\,d\mu(k)$$
is smooth. For every list $X_1,\ldots,X_r\in\mathfrak g$, the differentiated integrand is integrable and
$$d\pi(X_1)\cdots d\pi(X_r)w_p
=\int_Kp(k)d\pi(X_1)\cdots d\pi(X_r)(\pi(k)w)\,d\mu(k).$$