Orbit weights and local loss definitions
Hypothesis (orbit weights). Use the arithmetic fields, ranks, scale and weight data of (Local congruence tablesDefinition GC.D249) and the local quantities of (Local size and support dataDefinition PHT.D147). Write $\mathcal I,\mathcal S_{\rm sig}$ for the inert and signal prime classes of (Family fields and Galois dataDefinition ANT.D111). All natural-number arguments below include zero; logarithms, division, natural ceiling and natural supremum use the total conventions in (Local congruence tablesDefinition GC.D249) and (Local lattice, orbit-count and gain conditionsDefinition PHT.D108).
Choose fifteen nonnegative real constants, in this order, $$g_\Lambda,g_\rho,g_{k,II},g_{t,II},g_{D,II},g_{s,II},g'_{k,II},g_{D,I},g_{\kappa,1},g_{\kappa,2},g_{k,I},d_1,d_2,g_{P,1},g_N.$$ Choose a function $\beta:A\times A\to A$ satisfying $$\forall h,t\in A\quad\exists i\in\mathbb Z_{\ge0}:\quad\beta(h,t)+ih=t,\qquad\beta(h,t+h)=\beta(h,t).$$ For every natural stage $j$ choose $\omega_j:\{0,1\}\times A\to\mathbb R$. Let $T_2^*=\{sa_0+a_*:s\in T_2\}$, using the cyclic generator $a_0$ and member shift $a_*$ of (Local congruence tablesDefinition GC.D249). Require, for every $j$, $$\omega_j(0,h)\in[b'/x,b'/x+\eta]\quad(h\in T),\qquad\omega_j(1,h)\in[b,b+\eta+1]\quad(h\in T_2^*),$$ and $\omega_j(\epsilon,h)\in[w_0,w_0+\eta]$ at all remaining pairs. Extend $a_h,b_h$ by zero off $T$, and put $$\mathfrak w_j(\epsilon,h)=\mathbf1_{\{\epsilon=0\}}b_h+\omega_j(\epsilon,h),\qquad q_j=\{k+(2j-1)(t+1)\}/2,\qquad W_j=\mathfrak w_j-q_j.$$ For members above the family starting scale, impose the following identifications. For $1\le j\le m$, $\mathfrak w_j(0,h)$ and $\mathfrak w_j(1,h)$ equal the Hermitian weight $E_{\tau,j-1}$ at the embeddings labeled respectively $(1,1,h)$ and $(-1,1,h)$.
For every natural $p$, choose an arithmetic Frobenius label $g_p\in\operatorname{Gal}(E/\mathbb Q)$ at a prime above $p$ if one exists, with an arbitrary label otherwise, and let $h_p\in A$ be its $A$-coordinate. Define $$P_p(h,e)=\left(\mathbf1_{\{p\in\mathcal S_{\rm sig},\ e\text{ odd}\}},h+eh_p\right).$$ At every coefficient place $w$ with residue prime $p$, for all natural $j,e$ and $h\in T$, require the partner weight of (Local size and support dataDefinition PHT.D147) to satisfy $$w_{j,h,p,e}=\mathfrak w_j(P_p(h,e)).$$ Choose a natural function $e(p)$ and a real function $\kappa^I(p,n',T',a',b')$ on the inputs of (Local loss from polynomial latticesDefinition PHT.D146). For family members above the starting scale, require $\kappa^I$ to equal the infimum specified in (Local loss from polynomial latticesDefinition PHT.D146). The prescribed equation for $e(p)$ and its comparison with the local lattice exponent are part of (Integral and theta compatibility for familiesDefinition ARAK.D115).
Here are the sets and real quantities needed to identify the local losses and gains. Put $$d_p=\begin{cases}2h_p,&p\in\mathcal S_{\rm sig},\\h_p,&p\notin\mathcal S_{\rm sig},\end{cases}\qquad n_p=\begin{cases}2\operatorname{ord}(2h_p),&p\in\mathcal S_{\rm sig},\\\operatorname{ord}(h_p),&p\notin\mathcal S_{\rm sig},\end{cases}$$ where $\operatorname{ord}$ denotes additive order. Let $$\mathcal R_p=\{\beta(d_p,h):h\in A\},\quad T_p(v)=\{h\in T:\beta(d_p,h)=v\},\quad N_p(v)=|T_p(v)|.$$ An element $h$ has even position when $h=\beta(d_p,h)+ih_p$ for some even $0\le i<n_p$. Let $\mathcal R_p^{\rm good}$ consist of those representatives for which the distinguished positions $\{0\le i<\operatorname{ord}(h_p):v+ih_p\in T\}$ pass the orbit test in (Local lattice, orbit-count and gain conditionsDefinition PHT.D108). Put $c_G=4S$, $p_0=k^2x^{26}$, $N_*=2n\delta_1$, and $$\Lambda_G=g_\Lambda N_1^2\log(xb),\qquad\rho_B=\frac{4N_*x^\varepsilon\Lambda_G+g_\rho g_N\log x\,\Lambda_G}{k}.$$ A candidate prime is a prime $p<X'$ in $\mathcal I$ with $\operatorname{ord}(h_p)\ge x^{\varepsilon/4}$ and, if $p\ge p_0$, no positive integer $a$ satisfying $X'(1-\rho_B)\le p^a\le X'(1+\rho_B)$. Define $$\kappa_{p,v}=\begin{cases}\min\{1,g_{k,II}|T_{p,v}|r_o^2kx^{-26}\},&p<p_0,\\ \kappa^I(p,\operatorname{ord}(h_p),T_{p,v},a_{p,v},b_{p,v}),&p\ge p_0, \end{cases}$$ where $T_{p,v}=\{0\le i<\operatorname{ord}(h_p):v+ih_p\in T\}$ and $a_{p,v},b_{p,v}$ are the restrictions along that orbit. Put $$\Sigma_p=m\sum_{v\in\mathcal R_p^{\rm good}}\kappa_{p,v},\qquad \mathcal V_p=\begin{cases}\mathcal R_p^{\rm good},&p\text{ is a candidate and }\Sigma_p\le x^{-\varepsilon},\\\varnothing,&\text{otherwise}.\end{cases}$$
For all $p,j,v$, let $A_h=a_h-2c_G$, $C_j(h,e)=W_j(P_p(h,e))+c_G$, and $$D_{p,v}=d_1n_pN^2\log_p(2a)+d_2N_p(v)(\log_p(2a))^2.$$ In the next odd-power sum, exclude an exponent $e$ precisely when $P_p(h,e)=(0,h')$ for a distinct $h'\in T$ and $e$ is the least positive exponent reaching $(0,h')$. Define $$g^0_{p,j,v}=\sum_{h\in T_p(v)}\sum_{\substack{e\ge0\text{ odd}\\e\text{ not excluded}}}\left(\frac{A_h}{p^e}-C_j(h,e)\right)_+-D_{p,v},$$ $$g^U_{p,j,v}=\frac p{p^2-1}\sum_{h\in T_p(v)}A_h-\sum_{\substack{h\in T_p(v)\\h\text{ has no even position}}}\sum_{e\ge0\text{ odd}}\min\left\{\frac{A_h}{p^e},C_j(h,e)\right\}-D_{p,v}.$$ Here $(z)_+=\max(z,0)$; infinite sums use the value zero if they are not summable. Define the projection loss by $$R_{p,j,v}=\begin{cases} \displaystyle\sum_{\substack{h\in T_p(v)\\h\text{ has no even position}}}(W_j(0,h)-b_h)+g_{P,1}n_p(w_0+\eta+c_G+N),&p\ge p_0,\\ r_o\{N_p(v)(2b'+c_G)+n_p(w_0+\eta+c_G+N)\},&p<p_0, \end{cases}$$ and put $$S_p(v)=\left\lceil\sum_{j=1}^m\max\{0,g^U_{p,j,v}-R_{p,j,v}-\max(g^0_{p,j,v},0)\}\right\rceil.$$ This ceiling is an integer, with no truncation at zero beyond the maximum already displayed.
For $N^+_p=40n_p\delta_1$, set $$D^{II}_p=\left\lceil g_{D,II}N^+_p(N_1^3+r_o^5+k^2)\log_p a+2r_on_pc_G+r_oN^+_p(2b'+2c_G)\right\rceil_+,$$ $$t^{II}_{p,v}=g_{t,II}r_oN_p(v)\left\{\frac{\Lambda_Ga}{pk}+ap^{-L_1(p)}+2b'+2c_G+kp^{G'}\right\}+2r_on_pc_G,$$ where $L_1(p)=\lceil\log_p((kx^{26})^4)\rceil_+$. For $p\ge p_0$, let $D^I_p$ be $D_I$ from (Local loss from polynomial latticesDefinition PHT.D146) with dimension input $n_p$, and let $t^I_{p,v}$ be $t_I$ with dimension input $\operatorname{ord}(h_p)$ and the actual restricted orbit weights. Put $D_p=D_p^{II}$ below $p_0$, and $D_p=D_p^I$ otherwise; define $t_{p,v}$ by the same cases. Then require at every coefficient place $w$ above $p$, $$\tau_w=\begin{cases}0,&\mathcal V_p=\varnothing,\\e(p)+m\displaystyle\sum_{v\in\mathcal V_p}(\lceil t_{p,v}\rceil_++D_p+1),&\mathcal V_p\ne\varnothing,\end{cases}$$ $$\iota_w=\begin{cases}0,&\mathcal V_p=\varnothing,\\2\Sigma_p\displaystyle\max_{v\in\mathcal V_p}S_p(v),&\mathcal V_p\ne\varnothing.\end{cases}$$ Require $T_w=T$ at signal primes and at $p\ge X'$, and otherwise $$T_w=\{h\in T:\beta(d_p,h)\in\mathcal V_p\}.$$ At supported places in either $\mathcal I$ or $\mathcal S_{\rm sig}$, for $1\le j\le m$, require $\gamma_{j,w}=0$ if $(p\in\mathcal I\text{ and }h_p=0)$ or $p>X''$; otherwise require $$\gamma_{j,w}=\sum_{v\in\mathcal V_p}\max\{g^U_{p,j,v}-R_{p,j,v},\max(g^0_{p,j,v},0)\}+\sum_{v\in\mathcal R_p\setminus\mathcal V_p}\max(g^0_{p,j,v},0).$$ Also require $\mathcal G=\Lambda_G$.
For each family member above its starting scale, require $\rho_B\le x^{-2}$ and impose all the preceding identifications at every coefficient place. Choose a family constant $C_r\ge1$. The discarded-prime set $\mathcal D$ of (Local size and support dataDefinition PHT.D147) consists, among primes, exactly of those $p$ different from every source prime $T_u$ for which at least one of the following holds: $$p<X'(1+C_r\rho_B),\quad p\in\mathcal I,\quad\left[\operatorname{ord}(h_p)<x^{\varepsilon/4}\ \text{or}\ (p\ge p_0\text{ and }\exists a\ge1:\ |p^a-X'|\le\rho_BX')\ \text{or}\ (p\text{ candidate and }\Sigma_p>x^{-\varepsilon})\right];$$ $$p>X'';\qquad p\notin\mathcal I\cup\mathcal S_{\rm sig};\qquad p\in\mathcal I,\ \operatorname{ord}(h_p)\text{ odd},\ h_p\ne0.$$ The first display is one conjunction; the other three displayed conditions are alternatives to it. The global sharing and fixed normalizations of the constants are imposed in (Fixed constants in an arithmetic familyDefinition AGR.D112).