Density of compact-finite vectors in an automorphic subrepresentation
Let $E$ be a totally complex number field and $a\ge0$. Let $G=\mathrm{GL}_a(\mathbb A_E)$ and let $\Gamma$ be the subgroup generated by the diagonally embedded $\mathrm{GL}_a(E)$ and the central element that is the identity at finite places and $e\operatorname{id}$ at every infinite place. Fix a Haar measure $\mu$ on $G$ that is also right invariant, and let $L^2(\Gamma\backslash G,\mu)$ denote the square-integrable left-$\Gamma$-invariant realization. Let $H$ be a complex linear subspace invariant under right translation; it need not be closed.
If $K_\infty$ is the product of the standard unitary groups at infinity, then $$H\subseteq\overline{\operatorname{span}_{\mathbb C}\{f\in H:f\text{ has open finite-adelic stabilizer and }\dim_{\mathbb C}\operatorname{span}(K_\infty f)<\infty\}}.$$ The closure is taken in the ambient $L^2$ norm.
This supplies compact-finite approximations inside the invariant spaces used in the cohomological argument.