\teamanchor{proof.weighted-fit-denominators}% \subsection{Split Hecke tests at the selected reading} \teamanchor{proof.weighted-fit-hecke-packets}% Fix an auxiliary pair and the corresponding power of the common fitted twist. Let \(\xi_w=(A_wq_w^{t'-1})^{-1}\) be the test parameter at an eligible split place. The \hyperlink{proof.weighted-genuine-theta-annihilator}{spherical kernel identity} gives \(H_w(\xi_w)=0\) on the genuine lift image. We prove a local determinant bound for this image \(Z\) and label idempotent \(e_c\). The left vectors are integral at all readings above \(\ell\) and the right vectors are integral at \(j_\iota\). Each right vector is orthogonal to \(Z^\perp\cap\operatorname{im}e_c\cap\ker H_w(\xi_w)\) at the applicable split tests. \paragraph{The local Hecke polynomial.} \teamanchor{proof.weighted-fit-string-orthogonality}% At a split place \(w\) write \(q=\operatorname{N}w\) and let \(\pi\) be the unitary local action of \(\mathrm{GL}_n(E_w)\). Let \(I_w\) be the upper pro-\(p_w\) Iwahori, where \(p_w=\operatorname{char}k_w\), and \(P_I\) its orthogonal averaging operator. For a uniformizer \(\varpi\), put \(t_w=\operatorname{diag}(\varpi,1,\ldots,1)\). On \(I_w\)-fixed vectors the unnormalized Hecke operator \(U\) of \(I_wt_wI_w\) is \(q^{n-1}P_I\pi(t_w)\). The \(q^{n-1}\) translations are indexed by the freely varying first-row entries of \(I_w/(I_w\cap t_wI_wt_w^{-1})\). Let \(x\) be a nonzero spherical eigenvector at \(w\), and \(s_j\) the eigenvalue of the sum of the translations indexed by sublattices of \(\mathcal O_w^n\) containing \(\varpi\mathcal O_w^n\) and having residue codimension \(j\). For a lattice \(L\), its translate \(x_L\) is well defined because \(x\) is spherical. Write \(T_j\) for the corresponding partial sum over the lattices whose reduction contains the first line. Thus \(T_0=x\), \(T_n=0\), and \(s_n\pi(t_w^{-1})x=T_{n-1}\), since the full top spherical translation is by \(\varpi I_n\). It follows that \(s_n\ne0\). These sums are \(I_w\)-fixed. For \(0\le j4r'+2\) for \(y\). The auxiliary twist and its conjugate conductor avoid all the chosen level primes, and \(\chi\) is unramified at this prime. Thus \(\psi(\gamma_{\mathrm{sc}})=\chi(\gamma_{\mathrm{sc}})=1\). The powers \(y^{i\ell^\nu}\), \(0\le i\le r'\), have distinct residues for every \(\nu\), since taking an \(\ell^\nu\)-power is injective in the residue field. For any \(g\in G_E\), the residual polynomial \(\det(1-ZU_0(g))\) has degree at most \(r'\) and constant term \(1\). Choose \(i\) for which its value at the residue of \(y^{i\ell^\nu}\) is nonzero. Then \(\delta=\gamma_{\mathrm{sc}}^i\) lies in \(\ker\chi\), and \(\det(1-U_0(\delta^{\ell^\nu}g))\) is an \(\ell\)-adic unit. This unit condition persists throughout an open neighborhood of \(\delta^{\ell^\nu}g\). For each weak packet, the string gives \(C_{x,w}=B_w T_{x,w}\), where \(B_w(X)=\prod_{0\le ih_2^2\) the base is unramified over \(\mathbf Q_\ell\) because its cyclotomic conductor is smaller than \(h_2\). Use cyclotomic inertia with residue order \(\ell-1>t-1\) and \(h_0=0\). Set \(a=\gamma_{\rm cyc}^{-1}\) and \(h_*=H=h_2h_0\). The assembled auxiliary primes have \(q_w\equiv1\bmod\ell^\nu\) and avoid the conductor of the fitted twist. \paragraph{Separating the test from the unwanted packets.} \teamanchor{proof.weighted-fit-hecke-separator}% For the fixed tuple label \(c\), use the base space containing the image of its idempotent \(e_c\). The finite group character formula shows that \(G e_c\) preserves the integral smooth forms at \(j_\iota\): the group order divides \(G\), the character values are algebraic integers, and the tame factors are units. Work packetwise on this base level and then at the indicated Taylor--Wiles level. Take the Ribet normalizer \[ B_x=N_x(\gamma_0 a)-I-y_0(N_x(a)-I) +\ell^{M_\ell+h_*}\sum_g \lambda_g(N_x(g)-I), \qquad b_x=\det B_x , \] where \(\gamma_0,y_0\) are the scalar data on \(x_0\) in its short Selmer condition and \(a=\gamma_{\rm cyc}^{-1}\). For every genuine packet \(b_x=0\) by the trivial summand in \eqref{eq:weighted-fit-galois-string}. For every nonweak base packet there is \(g\) with \(\det(N_x(g)-I)\ne0\). One can choose the finitely supported nonnegative integers \(\lambda_g\) so \(b_x\ne0\) on all such packets. Add the terms successively: at the next packet the determinant as a polynomial in the new integer coefficient has nonzero leading term, and the determinants on the previous packets are nonzero at coefficient zero. Avoid their finitely many roots. Each \(b_x\) is integral by the stable lattice. The polynomial \[ p(T)=\prod_{x\ {\rm nonweak}}(T-b_x) \] is integral and \(p(0)\ne0\), with the empty product equal to \(1\). The base normalizer and \(p(0)\) here are fixed before choosing the depth of the triangular primes. The locus \(p(b_x)\ne0\) on the base is contained in the weak packets. Thus the fixed base function \(T=Ap(b)\) is supported on weak packets residually congruent to \(x_0\). Write \(l=e_c\Xi'\) and \(w=e_cP_Z\Xi'\). The commuting normal Hecke actions and \(e_c\) preserve the orthogonal decomposition by packets, and \(Z\) is an invariant subspace. Thus the weak-packet components of \(l-w\) lie in \(\operatorname{im}e_c\cap Z^\perp\cap\ker H_v(\xi_v)\) for an eligible split \(v\). The right-hand test makes \(\Xi'\) orthogonal to each such component. Since the component lies in \(\operatorname{im}e_c\), it is also orthogonal to \(l\) by self-adjointness of \(e_c\), and to \(w\) because \(w\) lies in \(Z\). Thus these components vanish, and \(l,w\) agree after every diagonal operation supported where \(p(b_x)\ne0\). The form \(w\) is supported on the genuine packets.% \paragraph{Uniform detection of the unramified Tate cocycles.} \teamanchor{proof.weighted-fit-triangle-detection}% Let \(E\subseteq\mathbf Q(\zeta_N)\) and let \(\chi\) be the \(\ell\)-adic cyclotomic character on \(G_E\). There is a finite set \(S_{\rm det}\subset G_E\) that detects every continuous \(O/\ell^\nu O\)-valued cocycle for \(\chi^{-e}\) unramified off \(\ell\), for every \(\nu\ge1\), \(e\ge0\), and ring of integers \(O\) of a finite extension of \(\mathbf Q_\ell\). Each such cocycle is zero on the inertia groups outside the allowed set, and vanishing on \(S_{\rm det}\) forces it to vanish everywhere. The same set satisfies \(\#S_{\rm det}\le y^{20}\) for \(N\le y\) and \(\ell\le y^2\). Put \(M'=N\ell^2\), \(F=\mathbf Q(\zeta_{M'})\), and \(d=[F:\mathbf Q]\le M'\). Since \(M'\ge4\), the field \(F\) is totally imaginary. Take coset representatives for \(G_E/G_F\) and lifts in \(G_F\) of a basis of the maximal elementary abelian \(\ell\)-quotient of \(G_F\) unramified away from \(\ell\). Global Artin reciprocity \cite[Ch.~VII, \S3 and Ch.~VIII, \S\S1--2]{fitting-artin-tate} bounds the dimension of that quotient by \[ \dim_{\mathbf F_\ell}\operatorname{Cl}(F)/\ell+ \sum_{v\mid\ell}\dim_{\mathbf F_\ell} \mathcal O_{F_v}^{\times}/(\mathcal O_{F_v}^{\times})^\ell \ \le\ \log_\ell h_F+2d. \] Indeed, in the inverse limit of the ray class groups for moduli supported above \(\ell\), the kernel of passage to the ordinary class group is the image of the product of local unit groups. At \(v\mid\ell\) the deep principal units are isomorphic by the local logarithm to a full additive lattice of rank \([F_v:\mathbf Q_\ell]\). The pro-\(\ell\) unit group has this rank and cyclic torsion (the local \(\ell\)-power roots of unity). Summing its generator bounds uses \(\sum_{v\mid\ell}[F_v:\mathbf Q_\ell]=d\) and \(\#\{v\mid\ell\}\le d\). The cyclotomic different gives \(|\operatorname{disc}(F)|\le(M')^d\). Use the \hyperlink{proof.weighted-definite-class-count}{Minkowski and zeta bound for the class number} with \(X_F=(4/\pi)^{d/2} \sqrt{|\operatorname{disc}(F)|}\). It gives \[ h_F\le X_F^2\zeta_F(2)\le\bigl((4/\pi)\zeta(2)M'\bigr)^d \le (M')^{2d}. \] Thus \(\#S_{\rm det}\le d+2d\log_\ell M'+2d\le3(M')^3\), using \(d\le M'\), \(M'\ge4\) and \(\log_\ell M'\le M'\). If \(N\le y\) and \(\ell\le y^2\), then \(M'\le y^5\) and \(3y^{15}\le y^{20}\). For detection, fix the module \(M=O/\ell^\nu O\) and induct on \(k\) for cocycles with values in \(M[\ell^k]\), starting with the zero module at \(k=0\). If \(z\) vanishes on \(S_{\rm det}\), so does \(\ell z\), which takes values in \(M[\ell^{k-1}]\) and is zero by induction. The resulting \(\ell\)-torsion-valued restriction to \(G_F\) is a homomorphism, since \(F\) contains \(\mu_\ell\). It is unramified off \(\ell\) and vanishes on the chosen generators, hence is zero. For \(b\in G_F\) and a chosen coset representative \(s\), the identity \(z(sb)=z(s)+\chi(s)^{-e}z(b)\) gives \(z=0\). \paragraph{Triangular primes from the primitive reciprocity laws.} \teamanchor{proof.weighted-fit-triangle-assembly}% Fix the field \(E\), selected coefficient prime \(\ell\), denominator test and fitted twist of this application. Here \(E\) is the CM field containing \(\mu_{5040}\). The number of complex places is at least \(\varphi(5040)/2\ge4\). The extension \(E/E^+\) is \hyperlink{proof.weighted-datum-characters} {unramified at finite places}. Use \(N\) equal to the cyclotomic conductor used for \(E\), \(y=h_2\), and \(t_{\mathrm a}>0\) equal to the rank difference of the auxiliary pair in the current denominator test. Use the cyclotomic separator \(\gamma_{\rm cyc}\) and loss \(h_0\) described above. Thus \(N+t_{\mathrm a}1\) one also has \(v_\ell(4)\le h_0\). At \(\ell=2\) this uses \(\mu_4\subset E\) and the nonzero difference at exponent \(1\); at odd \(\ell\) it holds because \(v_\ell(4)=0\). It follows for \(00\), unramified off \(\ell\), and zero at every \(\phi_j\) of type \(e\). Then \(2b(g_s)=0\) for each test point \(s\). Put \(d_e(g)=\chi(g)^{-e}-1\). The identity \((as)g_s=sa\) and the cocycle law give \[ d_e(a)(2b)(s)-d_e(s)(2b)(a) =-\chi(as)^{-e}(2b)(g_s)=0 . \] The expression \(d_e(a)(2b)(g)-d_e(g)(2b)(a)\) is an unramified-off-\(\ell\) cocycle, so detection makes it zero on \(G_E\). The argument works integrally at \(2\), and is paired with \(4d_e(a)^2\mid\ell^H\), already proved. Finally \[ (\#J+\#S_{\rm det})H=t_{\mathrm a}\#S_{\rm det}\,y h_0 \le y^{22}h_0 . \] For \(h_0=0\) the cost is zero at every prime with a finite detecting set. The ordered types and their count are independent of \(\nu\). These are the triangular inputs to the Tate-block argument on the current packet at the actual depth. Each prime and its inverse-conjugate reading use the same variable and the already chosen fitted character. For a Tate character \(\xi=\chi^{-e}\), the paired differences at \(\tau,\phi\) read \(c+c\circ\operatorname{conj}\), since \(\xi(\tau)=\xi(\phi)=1\) modulo \(\ell^\nu\) and the conjugate arguments are inverses. This even cocycle is subject to the triangular relation. On the module left after all the prescribed tame zeros and Frobenius equalities, the odd map \(c\mapsto c\circ\operatorname{conj}-c\) has kernel killed by \(C=\ell^{h_*}\) when \(e>0\). In its kernel \(c\) is even. The triangle applied to \(c+c\circ\operatorname{conj}\) says \(4(\xi(a)-1)c\) is a coboundary; the Ribet normalizer's coboundary condition kills it on multiplying by \(\xi(a)-1\). The factor \(4(\xi(a)-1)^2\) divides \(C\). This works at \(2\) without a parity projector. The strict local condition away from the ramified places follows from the local crystalline relations: at \(\ell\), crystalline cocycles in \(O(-e)\) vanish on the cyclotomic kernel for \(e>0\), since their rational classes are coboundaries. For \(e=0\) the finite condition is unramified and the final everywhere-unramified group is bounded by the class number. Therefore the quotient used in the Tate-block cost is bounded by the local defect and the already established odd or class-number bound. Adjoin one variable \(X_i\) per pair to the integral Hecke algebra. The generators of the trace ideal include \(\ell^\nu\operatorname{tr}N_x(g)\) and \[ \operatorname{tr}((N_x(\tau_i)-1)N_x(g))- X_i\operatorname{tr}(((X-1)e_i)(N_x(\phi_i))N_x(g)). \] To compare the inverse-conjugate reading in the same variable, write \(\bar h=chc\). Polarization gives \[ \operatorname{tr}N_x((\bar h^{-1})^a g)= \chi(g)^{1-t'}\chi(h)^{a(t'-1)} \operatorname{tr}N_x\bigl(h^a(cgc)^{-1}\bigr). \] The factor \(\chi(h)^{a(t'-1)}\) is \(1\) modulo \(\ell^\nu\) for \(h=\tau_i,\phi_i\). Its error is thus in the trace ideal. \paragraph{The first-order Ribet polynomial.} \teamanchor{proof.weighted-fit-ribet-fitting}% Fix the coefficient reading, auxiliary pair, tuple, fitted twist and triangular primes of the preceding test. Write \(x_0\) for its distinguished genuine packet, \(\mathcal X\subseteq Y\) for the genuine packets, and \(Y\) for the finite catalogue at the deeper level. Put \(P=\ell^\nu\), \(P_0=\ell^{M_\ell}\), \(C=\ell^{h_*}\), and \(\Lambda=O[X_j:j\in J]\), where \(O\) is a common finite coefficient DVR. On \(\mathcal X\) take the direct-sum lattice \(U_x=\rho_x\oplus\bigoplus_{0\le er b_\ell\). By \eqref{eq:weighted-smith-kernel}, every Smith exponent contributes in full because the truncated sum is below \(v_O(P_0)\). Hence \(L\) has full rank and its cokernel length is at most \(b_{\mathrm{main}}\). Full matrix span means \(\rho_{x_0}(\Lambda[G_E])|_{X=0} =M_{r'}(O)\). Left multiplication by preimages of matrix units permits placing any ordinary row of \(L\) in any one position of an evaluated block row, with the other positions zero. Group a basis of \(L\) into \(r'\)-row blocks and lift them in this way to rows of a square matrix \(M_0\) over \(A\), all in \(\mathcal N\). For \(x\in\mathcal X\) write \(D_x=\det\rho_x(M_0)\), the determinant of the flattened main blocks over \(\Lambda\). Then \(v_O(D_{x_0}(0))\le b_{\mathrm{main}}\). \emph{The scalar rows and their relations.} Apply \(\eta_e\) to the rows, discarding the first, old-tame coordinates. Any \(O\)-linear form on the constant coordinate space with values in \(O/P\) annihilating an indicated projected relation module gives a scalar cocycle \(u(g)\) by evaluation at \(z(g)\). Here and below annihilation means that the form kills constant vectors whose images belong to the module. The displayed rows supply the cocycle and tuple relations. The old-tame coordinates have been discarded, so the generator relations give \(u(\delta_v)=0\). The cocycles are therefore continuous and unramified away from \(\ell\) and the new pairs. If one of these cocycles is a coboundary \(u(g)=(\xi_e(g)-1)m\), the row \(([g]-1)\omega\) gives \((\xi_e(g)-1)u(\omega)=0\), where \(u(\omega)\) is the form applied to \(\omega\). For \(e>0\), the triangular separation gives \(\xi_e(a)-1\mid C\). Since \(\xi_e(\gamma_0)=1\), \[ u(\omega)= \left(1-y_0+ P_0\,\frac{C}{\xi_e(a)-1}\sum_g\lambda_g(\xi_e(g)-1)\right)u(a). \] The scalar in parentheses is a unit. It follows that \((\xi_e(a)-1)u(g)=0\) for every \(g\). For \(e=0\) every coboundary is zero. These are the hypotheses of the Tate-block length argument. On every projected module used below, that argument gives the triangular cost at type \(e\) with constant \(C\) and length bound \(b_e=v_O(\ell)(L_e+v_\ell(X))\). In this expression \(X\) is the integer bounding the odd cocycle modules in the budget calculation, including the class-number bound for \(e=0\). If all the last coordinates are also discarded, the cocycle vanishes on \(s\), hence on both tame readings, so it is unramified outside \(\ell\). The detecting condition now makes the cocycle zero. Duality for \(O/P\) shows that the projection of \(\eta_e(\mathcal N)\) to the middle coordinates contains each standard basis row. Indeed a constant row outside this projection has nonzero image detected by an \(O/P\)-valued form, by Smith normal form applied to the preimage of the projection in the constant coordinate lattice, which contains \(P\) times that lattice. For a middle generator such a form would have a nonzero value on the corresponding \(g_i\). Choose rows \(m_{e,i}\in\mathcal N\) projecting to the middle unit rows under \(\eta_e\). They can be made simultaneous. Starting with a zero row for each \(i\), correct a row \(w\) at the next \(e\) by adding \(\sum_j(\mathbf e_i(j)-w_j)m_{e,j}\), with \(j\) running over the middle coordinates. At the already treated characters these coefficients evaluate to zero. Call the resulting rows \(\nu_i\). For each \(e\), use the rows \(\eta_e(\nu_i)\) to clear the middle coordinates and keep the last coordinates \(s\). Let \(N_e\subseteq\Lambda^s\) be the image of \(\mathcal N\) under this linear operation after \(\eta_e\), and \(\Phi_e\) its restriction to constant rows. The image of \(z(g)\) for \(g\in s\) is the corresponding standard basis vector modulo \(N_e\). Also \[ \Phi_e(z(\tau_{j,\pm}))- X_j\Phi_e(z(\phi_{j,\pm}))\in N_e. \] Here one can remove \(e_j\) because its value on \(\xi_e(\phi_{j,\pm})\) is \(1\bmod P\) and \(P\Lambda^s\subseteq N_e\). Every form on the constant lattice vanishing on \(\Phi_e^{-1}(N_e)\) still gives one of the cocycles just examined. \begin{lemma}[Cost of adjoining constant Fitting relations] \label{lem:weighted-fitting-constant-rows} \teamanchor{proof.weighted-fit-constant-fitting-rows}% Let \(O\) be a DVR with uniformizer \(\varpi\), \(\Lambda\) a commutative Noetherian \(O\)-algebra, and \(E_0\) a finite free \(O\)-module. Let \(\Phi:E_0\to\Lambda^s\) be \(O\)-linear and let \(H\subseteq\Lambda^s\) be a \(\Lambda\)-submodule containing \(P\Lambda^s\) for a nonzero \(P\in O\). Write \(I(H)=\operatorname{Fitt}_0(\Lambda^s/H)\). For an \(O\)-submodule \(U\subseteq E_0\), put \[ H_U=H+\Lambda\Phi(U),\qquad J_H=\Phi^{-1}(H),\qquad d_U=\operatorname{length}_O((U+J_H)/J_H). \] Then \(\varpi^{d_U} I(H_U)\subseteq I(H)\). The exponent \(d_U\) is the length of the quotient of the forms in \(\operatorname{Hom}_O(E_0/J_H,O/PO)\) by those that kill \(U\). \end{lemma} \begin{proof} The constant quotient \(E_0/J_H\) is killed by \(P\) and has finite length. Choose lifts \(v_i\in U\) of cyclic generators of \((U+J_H)/J_H\) with annihilators \((\varpi^{a_i})\). The rows \(\Phi(v_i)\) generate \(H_U/H\) over \(\Lambda\), and \(\varpi^{a_i}\Phi(v_i)\in H\). Expand a full square determinant from \(H_U\) in these rows and rows of \(H\). A term uses each added row at most once by alternation. Multiplication by \(\prod_i\varpi^{a_i}=\varpi^{d_U}\) puts the determinant in \(I(H)\). On \(P\)-killed modules, the dual with values in \(O/PO\) is the dual with values in \(\operatorname{Frac}(O)/O\), using \(x\mapsto x/P\bmod O\). This dual is exact because \(\operatorname{Frac}(O)/O\) is divisible over the DVR. It preserves finite length, as one sees on cyclic modules. Restriction of forms to \((U+J_H)/J_H\) therefore has image of length \(d_U\) and kernel the forms killing \(U\). \end{proof} \emph{Fitting determinants for the types.} Let \(\mathfrak q=(X_j^2:j\in J)\), \(I_e=\{j:\mathrm{ty}(j)=e\}\), \(P_e=\prod_{j\in I_e}X_j\), and \(P_{