Local matching determines an irreducible algebraic modular representation
Let $L$ be a CM number field, $F=L^+$, $n\ge0$, and $G=U(I_n)$ over $F$. Let $W$ be a finite-dimensional complex vector space with an irreducible representation $\rho$ of $G(F)$ whose matrix coefficients, in some basis, are polynomials in the complex-embedding coordinates of rational matrices. Let $S_1,S_2$ be nonzero irreducible right-translation subspaces of the algebraic modular forms with coefficients $W$.
Assume the following local matching conditions.
- For every split-place embedding $L\hookrightarrow F_v$, choose the associated place $w$ of $L$. There are isomorphic smooth irreducible representations $\sigma_1,\sigma_2$ of $\operatorname{GL}_n(L_w)$, each admitting an injective linear map into $S_i$ that intertwines the action of every adelic element supported at $v$, using a continuous identification $F_v\simeq L_w$ extending the chosen embedding.
- For every finite place $v$ of $F$ with no such embedding, there are $w\mid v$, local coordinates as below, and $\alpha\in\mathbb C^{\lfloor n/2\rfloor}$ such that each $S_i$ contains a nonzero vector $f_i$ fixed by a subgroup $U_i\subseteq G(\mathbb A_{F,f})$. On elements supported at $v$, membership in $U_i$ is exactly membership in the standard integral subgroup. Every spherical local Hecke function $h$ acts on $f_i$ by the same scalar $\mathcal S_\alpha(h)$.
Then $S_1\simeq S_2$ as representations of $G(\mathbb A_{F,f})$.
An algebraic modular form satisfies $f(\gamma g)=\rho(\gamma)f(g)$ and is fixed by a principal congruence subgroup of some positive integer level. Right translation is $R(h)f(g)=f(gh)$.
The local coordinates in condition 2 comprise a ring isomorphism $e:L\otimes_FF_v\simeq L_w$ carrying conjugation to an involution $\sigma_w$ and the integral tensor coefficient ring to $\mathcal O_{L_w}$; a uniformizer $\varpi\in L_w$ fixed by $\sigma_w$; and $P\in\operatorname{GL}_n(\mathcal O_{L_w})$ with $\sigma_w(P)^tP=J_n$, where $J_n$ is the antidiagonal identity. The involution preserves the valuation, acts nontrivially on the residue field, and the residue cardinality of $L_w$ is $q_v^2$, where $q_v=\#k_v\ge2$. These identify the local group with $H=U(J_n)$ and its integral subgroup with $K=H\cap\operatorname{GL}_n(\mathcal O_{L_w})$.
Put $m=\lfloor n/2\rfloor$, let $N$ be the upper unipotent subgroup of $H$, and let $t(a)$ have diagonal $(\varpi^{a_1},\ldots,\varpi^{a_m},\varpi^{-a_m},\ldots,\varpi^{-a_1})$, with a central $1$ if $n$ is odd. The common Hecke scalar is $$\mathcal S_\alpha(h)=\sum_{a\in\mathbb Z^m}\left(\prod_{i=1}^m\alpha_i^{a_i}q_v^{-a_i(n+1-2i)}\right)\sum_{xK\in t(a)NK/K}h(x).$$ Hecke actions use sums over right cosets, with no extra volume factor; negative powers of zero are assigned value zero. At a split place both embeddings into $S_i$ use the indicated completion identification.