\section{The product formula and the signed arithmetic estimate} \label{sec:signed-arithmetic} \teamanchor{proof.weighted-selected-coefficient-tests}% We finish the determinant argument on the fixed frame \(w\) of Section~\ref{sec:coefficient-choice}. Suppose first that \(|f_Y(0)|<1\) and take the place \((\ell,j_\iota)\) selected in Lemma~\ref{lem:one-denominator-place}. Use the single character \(\theta\) obtained at that place. Its added conductor is prime to \(\ell\). The chosen preimages of \(y\) therefore admit the two recombinations in \eqref{eq:weighted-A-paired-index}, at \(j_\iota\) and \(j_\iota^\#=j_\iota c\). Extend each recombination on the \(u\) completion rows by the scalar matrix \(\zeta_\theta I_u\). The endpoint construction gives integral coordinates for these added rows after the same multiplication. Write \(U_+,U_-\) for the recombinations on the first \(n\) rows, in the convention of \eqref{eq:weighted-A-paired-index}. In the Hermitian Gram determinant over \(\mathbf C\), the first frame is conjugated. After applying \(j_\iota\), its entries are therefore read at \(j_\iota^\#=j_\iota c\), and those of the second frame at \(j_\iota\). The resulting pairing is bilinear over \(\overline{\mathbf Q}_\ell\). Both frames have integral coordinates, the Weyl pairing is integral, and the terminal class stabilizers are trivial. The local mixed Gram matrix is consequently integral. Its determinant is \[ j_\iota\!\left(H_\theta |\zeta_\theta|^{2u}\right) j_\iota^\#(\det U_-)\,j_\iota(\det U_+) . \] Integrality of this determinant and the bound on the sum of the two negative log determinants give \(\log|j_\iota(H_\theta|\zeta_\theta|^{2u})|_\ell\le F_\ell\). The endpoint scalar bound \eqref{eq:weighted-completion-scalar} now gives \begin{equation}\label{eq:weighted-exact-completion-height} \log|j_\iota H_\theta|_\ell\le F_\ell+4u m^2t\,v_\ell . \end{equation} The norm comparison on the same basis gives \(H_\theta/H_1=Z_\theta/Z_1\). Multiplying \(H_\theta\) by the quantity \(D_0K_\Gamma^R Z_1/Z_\theta\) in \eqref{eq:weighted-volume-lift} thus gives exactly \(Y\). Adding the two log bounds gives \(\log|j_\iota Y|_\ell\le A_\ell\) of \eqref{eq:weighted-selected-place-cost}, as required for the chosen prime. \teamanchor{proof.weighted-selected-product-formula}% For either case of Lemma~\ref{lem:one-denominator-place}, apply the rational product formula to \((-1)^e f_Y(0)=\mathrm N_{\mathbf Q(Y)/\mathbf Q}(Y)\). Its archimedean logarithm divided by \(e\) is the mean of \(\log|\sigma Y|\) over the \(e\) conjugates. Its finite logarithms divided by \(e\) are \(q_\ell\), and their sum plus that archimedean mean is zero. Take a finite set of primes containing the divisors of \(b_Y\) and all primes at most \(\max(N,\lceil x_1\rceil)\). The sum of the normalized finite logarithms \(q_\ell\) is bounded above by the sum of \(A_\ell\) over this set, also when \(a_Y\ge b_Y\), because all \(A_\ell\) are nonnegative. In this sum the contributions of \(F_\ell,\sum_j\beta_{j,\ell}\) and \(v_\ell\) are bounded by \(2\delta,mB_0,x^{999}\), respectively, before taking the multipliers in \eqref{eq:weighted-selected-place-cost}. The sum contains the entire support of \(P_\ell\). By \eqref{eq:weighted-forced-rank-one}, \(\sum_\ell 2P_\ell\log\ell=\sum_\sigma \operatorname{Ask}(w(\sigma),\sigma)\). Its coefficient \(Rm\kappa\) combines with \(-Rm\kappa S_0\) in \eqref{eq:weighted-selected-place-arch} to give \(-Rm\kappa\mathcal U=-R h_{\rm main}\). Consequently the product formula gives \begin{equation}\label{eq:weighted-exact-lower} R(h_{\rm main}-B_*)\le V+2\delta+u(B_z+B_{\rm c}), \end{equation} where \[ \begin{aligned} B_{\rm c}&=4m^2t\,x^{999},\\ B_*&=2rmB_0+(r+\kappa)mB_0+3m\kappa B_0 +(2m\kappa+10m^2+m^2t)x^{999}. \end{aligned} \] Here \(r/\kappa\to1\), \(t=5r\), \(m=O(\sqrt x)\), \(r=O(x^5)\) and \(m\kappa B_0=\mathcal B\). Thus \(B_*=O(\mathcal B)+O(x^{1005})\le2L\) eventually, since \(L=\mathcal B\log b\), \(a\ge xb\) and \(\log b=x^\varepsilon\). Use \(u/R\le4b^{-3/2}\), \(B_z=x_1^2b^2+x^{99}\) and \(\log x_1/\log b=x^{-5\varepsilon/6}\) to obtain, for large \(x\), \begin{equation}\label{eq:weighted-volume-rows} u(B_z+B_{\rm c})\le Rb . \end{equation} In particular \(b\le L\) implies \begin{equation}\label{eq:weighted-long-forms} R(h_{\rm main}-3L)\le V+2\delta . \end{equation} \teamanchor{proof.weighted-height}% To use the signed remainder, we need \(h_{\rm main}\ge0\) on these data. Indeed, \(a/x_1\le w(\sigma)\le a\). A positive summand of \(\operatorname{Ask}(w(\sigma),\sigma)\) requires \(\nu\le x_1\). Since \(\Lambda(\nu)\le\log\nu\) and \(1-\chi_d(\nu)\le2\), uniformly in \(\sigma\) one has \[ \operatorname{Ask}(w(\sigma),\sigma) \le 2w(\sigma)\sum_{\nu\le x_1}\frac{\log\nu}{\nu} \ll w(\sigma)(1+\log^2 x_1) =o\bigl(w(\sigma)\log b\bigr). \] The final equality follows from \((\log x_1)^2/\log b=x^{-2\varepsilon/3}\). By \(g\ge b^{20}\), \(\operatorname{rd}_E\ge1\) and \(\Omega=(2\pi/\operatorname{rd}_E)e^{\ell_d}\), we have \(S(w_0(\sigma))\ge w_0(\sigma)(20\log b-O_d(1))\). Since the rounded value satisfies \(w_0(\sigma)\ge w(\sigma)\), summing over \(\sigma\) proves \(h_{\rm main}=m\kappa\mathcal U\ge0\) eventually. Substitute \(V=n(h_{\rm main}-m\operatorname{rem}+L)\) in \eqref{eq:weighted-long-forms}. With \(u=R-n\) this gives \[ nm\operatorname{rem}\le nL+3RL+2\delta-u h_{\rm main} . \] We may now drop the nonpositive term \(-u h_{\rm main}\). The rank estimate gives \(n\ge R/2>0\) for large \(x\). Divide by \(n\) and use \(R/n\le2\) and \(\delta\le5R\log(1+b^2)\mathcal B\) to get \[ m\operatorname{rem} \le 7L+20\log(1+b^2)\mathcal B \le (47\log b+20\log2)\mathcal B . \] Since \(\mathcal B=fa(\log b)^3\), this proves \begin{equation}\label{eq:weighted-star} m\operatorname{rem}\le fa(\log b)^5 \end{equation} on every sufficiently large selected square. Throughout, \(d\) and \(\varepsilon\) were fixed before the sequence of squares. The bounds used here are uniform in the row choices and the embeddings. The finite allowances were bounded by sums on each datum before the choice of the prime and character. Thus a common threshold at this precision applies to all the selected squares. Both the weights in \(\operatorname{rem}\) and the auxiliary scale \(x_1\) remain those of \eqref{eq:weighted-remainder} and \eqref{eq:weighted-data-scales}.