Finite types and idempotents for the family
Hypothesis (finite types and idempotents). Use $E/E_0$, $Q_S,q,d,r,m,g_0,g_1$, coefficient and type labels, finite-field polynomials $F_{a,\pi,v}$ and scalars $\chi_{a,v,j}$ of (Galois representations and coefficient twistsDefinition AGR.D131), and the local parameters and embeddings of (Local parameter systems for the familyDefinition AGR.D134). Choose a number field $M$ that is abelian and Galois over $E_0$. Every rational prime dividing $\operatorname{disc}M$ divides $Q_Sqd$. The primes $g_0,g_1$ split completely in $M$ and satisfy $g_a\equiv1\pmod{Q_Sqd}$.
Put $$\mathcal B(r,g)=\{g\}\cup\{\ell:\ell\text{ prime},\ \exists\,h\in\{1,\ldots,r\}:\ g^h<\ell^{4v_\ell(g^h-1)}\},$$ and require $\mathcal B(r,g_0)\cap\mathcal B(r,g_1)=\varnothing$. Choose for each type label $\pi$ a finite multiset of pairs of positive integers $(a,d)$ with $\sum ad=r$. Choose representations $$\bar\rho_{\pi,w}:G_E\to\mathrm{GL}_r(\overline{\mathbb F}_{\ell_w})$$ with open kernel at all coefficient places $w$. For every generator-place label $(a,v)$, choose $\tau_{a,v}\in I_{w_{a,v}}$ generating tame inertia topologically, in the precise sense specified in (Galois representations and coefficient twistsDefinition AGR.D131). Require $\gamma_{i,w_{a,v}}=\tau_{a,v}$ for every coefficient index $i$.
Choose maps preserving multiplication and one, $$\iota_{a,v,w}:\overline{\mathbb F}_{g_a}\to\overline{\mathbb F}_{\ell_w},\qquad \omega_a:\overline{\mathbb F}_{g_a}\to\mathbb C.$$ Require $\iota_{a,v,w}$ to be injective on the nonzero elements whose orders are prime to $\ell_w$, and $\omega_a$ to be injective on all nonzero elements.
The inertia polynomials are tied to these maps as follows. For a polynomial $f$, let $\deg_0 f$ be its usual degree if $f\ne0$, and set $\deg_0 0=0$. Let $\mathcal R(f)$ be its multiset of roots in the algebraic closure, counted with multiplicity for $f\ne0$, and set $\mathcal R(0)=\varnothing$. Whenever a parameter $A\in\mathscr P_{w_{a,v}}$ satisfies $\deg_0 F_{a,w_{a,v}}(A)=d(A)$, require $$I_A(\tau_{a,v})=\prod_{\alpha\in\mathcal R(F_{a,w_{a,v}}(A))}(X-\omega_a(\alpha)).$$ If $\ell_i\ne g_a$, require $\kappa_i\iota_i(\xi_{i,1}(\tau_{a,v}))$ to equal $\omega_a(\chi_{a,v,j_i-1})$ or $\omega_a(\chi_{a,v,j_i-1}^{-1})$.
For every polynomial $f\in\mathbb F_{g_a}[X]$, choose $e_{a,f}\in\mathbb C[\mathrm{GL}_r(\mathbb F_{g_a})]$. Require these elements to be central idempotents, with $e_{a,f}e_{a,f'}=0$ for $f\ne f'$, equal to zero unless $f$ is monic of degree $r$ with nonzero constant term, and summing to one over all such monic polynomials. Choose unital algebra actions of the center of $$\mathbb C[G_{\rm fin}],\qquad G_{\rm fin}=\prod_{a=0}^1\prod_{v\in\mathcal V_a}\mathrm{GL}_r(\mathbb F_{g_a}),$$ on every space $A_\mu$ and $T_{\mu,j}$ of (Complex vector spaces and integral spansDefinition THETA.D128).
Choose a set $\mathcal Q$, polynomials $F_{a,\sigma,v}\in\mathbb F_{g_a}[X]$ that are monic of degree $r$ for every $\sigma\in\mathcal Q$, local parameters $A_{\sigma,w}$ of dimension $r$ at all finite places, and subspaces $A_{\mu,\sigma}\subseteq A_\mu$, $T_{\mu,j,\sigma}\subseteq T_{\mu,j}$ for every $\mu$ and integer $j\ge0$. Require $$F_{a,\sigma,v}=F_{a,w_{a,v}}(A_{\sigma,w_{a,v}}).$$
The central idempotent used with these data is specified by the following finite sum. For a prime $\ell$ and a finite-order nonzero element $x$ of a field, let $x_{\ell'}$ be its unique component of order prime to $\ell$ in the decomposition of $\langle x\rangle$ into its $\ell$-primary and prime-to-$\ell$ subgroups.
A list $(f_v)_{v\in\mathcal V_a}$ is selected for the characters $(\chi_{a,v,j})$ when every $f_v$ is monic, squarefree, of degree $r$ and with nonzero constant term, and the following conditions hold. For every prime $\ell\notin\mathcal B(r,g_a)$, two roots of the same $f_v$ have equal prime-to-$\ell$ components only if they are equal. For every prime $\ell\ne g_a$, every $v,j$ and root $x$ of $f_v$, require $x_{\ell'}\ne(\chi_{a,v,j})_{\ell'}$. For every integer $h$ with $1\le h$ and $2h\le r$, some $f_v$ has no divisor of degree $h$. Some $f_v$ has an irreducible factor of prime degree $d'$ with $r<2d'$ and $d'+3\le r$.
Call a tuple $(f_{a,v})$ selected when, for each $a$, this definition holds both for $(\chi_{a,v,j})$ and for $(\chi_{a,v,j}^{-1})$. Define $e^{\rm sel}\in\mathbb C[G_{\rm fin}]$ by its coefficient at each $g=(g_{a,v})\in G_{\rm fin}$: $$e^{\rm sel}(g)=\sum_{\substack{(f_{a,v})\\\text{selected}}}\prod_{a=0}^1\prod_{v\in\mathcal V_a}e_{a,f_{a,v}}(g_{a,v}).$$ The sum ranges over all monic degree-$r$ polynomial tuples, and $e_{a,f}(g_{a,v})$ denotes the coefficient of $g_{a,v}$ in $e_{a,f}$. The chosen central actions give its endomorphisms on $A_\mu$ and $T_{\mu,j}$.