2 versions of the statement of Local error functions and weight normalizations, newest first, as written in TeX. Only the paragraphs that changed are shown; words added since the version before are marked like this and words removed like this. Times are those of the commits, in your local time.
Version 2 , changes from version 1 are marked
7 unchanged paragraphs
Hypothesis (theta indices and scalars). For every $\mu$, let $T_{\mu,j}$ be the $\mathcal O_K$-span of the rational vectors whose complex images belong to the specified integral theta-input set. Its Hermitian dual inside $KT_{\mu,j}$ is
$$T_{\mu,j}^\#=\{x\in KT_{\mu,j}:\langle a,x\rangle\in\mathcal O_K\text{ for every }a\in T_{\mu,j}\}.$$
The local index of two integral submodules $A,B$ is $\operatorname{length}(A_w/(A_w\cap B_w))-\operatorname{length}(B_w/(A_w\cap B_w))$, taking each extended module length to its natural-number value, zero when infinite. TheFor every twist $\mu$, finite place $w$ and stage $1\le j\le m$, the supplied local quantities $I_{\mu,j,w}$ and $J_{\mu,j,w}$ are exactly these local lattice indices of $(M_j,\theta_{\mu,j}T_{\mu,j})$ and $(T_{\mu,j},T_{\mu,j}^\#)$, respectively. These modules, their rational realizations and their theta maps are those of Complex vector spaces and integral spans and Identifications for arithmetic family members. For every nonzero $\pi$-isotypic subspace $M_{j,\pi}$ of $M_j$, require
$$\lambda_{\mu,j,\pi}=\frac{\Re\operatorname{tr}(\theta_{\mu,j}\theta_{\mu,j}^*\operatorname{pr}_{M_{j,\pi}})}{\dim_{\mathbb C}M_{j,\pi}}\qquad(1\le j\le m).$$
Version 1 , first version
Hypothesis (local errors). Use Family fields and Galois data, Integral level lattices and their class representatives, Integral forms on column representations, Complex vector spaces and integral spans, Adjusted source lattices and explicit heights, Orbit weights and local loss definitions, and Fixed constants in an arithmetic family. Write $E_0=\mathbb Q(\sqrt{-d})\subset E$, $K$ for the coefficient field, $z$ for a source, $T_z$ for its prime, $w$ for a finite place of $K$, $p=p_w$ and $e_w=v_w(p)$. Let $\Sigma$ be the CM type, $N=N_m$ and $\eta,S$ the weight-width parameters.
Choose real constants $c_6,c_{\rm dig},g_{\rm err}$ with $c_6\ge12$, $c_{\rm dig}\ge3$, $g_{\rm err}\ge10$. There are integral elements $\pi_0,\pi_1,\pi_z\in\mathcal O_E\cap E_0$ such that
$$\pi_a\bar\pi_a=g_a\quad(a=0,1),\qquad \pi_z\bar\pi_z=T_z,\qquad \pi_z\equiv1\pmod{Q_Sqd(g_0g_1)^2\mathcal O_E}.$$
For each source $z$, its finite set of selected $T_z$-level labels embeds injectively into the places of $F$ dividing $T_z$; denote the place belonging to a label $v$ by $v_z$.
At every place of $F$ over $g_a$, the first component of $\bar\pi_a$ in the selected splitting of Integral level lattices and their class representatives has absolute value less than one. At every selected $v_z\mid T_z$, the scalar $\pi_z$ annihilates the quotient module $Q_{v_z}$. For $p_w=T_z$, the Boolean flag $b_{z,w}$ equals one exactly when
$$v_w(\tau_K(\pi_z))>0\qquad\text{for every }\tau\in\Sigma,$$
where $\tau_K:E\to K$ is the lift of $\tau$ specified by Identifications for arithmetic family members. When $p_w=T_z$, the embedding $\tau_{w,v}$ assigned to a selected label identifies its place by
$$x\in\mathfrak p_{v_z}\quad\Longleftrightarrow\quad v_w(\tau_{w,v,K}(x))>0\qquad(x\in\mathcal O_F).$$
Every stabilizer order at every class of every twisted chain through stage $m$ divides that chain's integer $D_\Gamma$, and these integers all equal the distinguished initial value $D_\Gamma$.
The supplied weight blocks have the following prescribed values. With $p_j=k+j-1$, $q_j=m-j$, and $a^+_{j,\tau,i}$ defined in Adjusted source lattices and explicit heights, put
$$a^-_{j,\tau,c}=B_{\tau,j+c}-e_{\tau,j-1}-\frac{t+1+2c}{2}\quad(0\le c<q_j).$$
For every $1\le j\le m$, the large block is $(a^+_{j,\tau,i})_{0\le i<p_j}$ and the small block is $(-a^-_{j,\tau,c})_{0\le c<q_j}$. Thus the prescribed real expressions equal the supplied integer blocks. Put
$$d_{\rm Fock}(j)=\sum_{\tau\in\Sigma}\left(\sum_{i<p_j}|a^+_{j,\tau,i}|+\sum_{c<q_j}|a^-_{j,\tau,c}|\right),\qquad F_G(j)=-d_{\rm Fock}(j)/2.$$
Here are the forced corrections. On the finite set $\{0,1\}\times A$, write $w_j(\beta,h)$ for the Hermitian weight at its corresponding embedding. If $h_p$ is the Frobenius step, define
$$\rho_p(\beta,h)=(\beta+\mathbf1_{p\in\mathcal S},h+h_p),\qquad n_p=\begin{cases}2\operatorname{ord}(2h_p),&p\in\mathcal S,\\\operatorname{ord}(h_p),&p\notin\mathcal S,\end{cases}$$
where the first coordinate is modulo two and $\mathcal S$ is the signal prime class. For a real array $(D_s)_{s\in\mathbb Z/n\mathbb Z}$, let
$$\mathcal F(p,n,D)=\frac p{p^2-1}\sum_sD_s-\sup\left\{\sum_s\sum_{i=0}^{n-1}x_{s,i}:\begin{array}{l}x_{s,i}\ge0,\ x_{s,i}=0\text{ unless }i<n\text{ is odd},\\\sum_{i<n}p^ix_{s,i}+\sum_{i<n}x_{s-i,i}\le D_s\ (s\in\mathbb Z/n\mathbb Z)\end{array}\right\}.$$
Set
$$F_{\rm orb}(j,p,z')=\mathcal F\bigl(p,n_p,((k-1)w_j(\rho_p^sz'))_{s\in\mathbb Z/n_p\mathbb Z}\bigr),$$
$$F_I(j,p)=\begin{cases}\displaystyle\sum_{\tau\in\Sigma}\frac{(k-1)w_j(\tau)}{p^2-1},&p\in\mathcal I,\ h_p=0,\\\displaystyle\frac1{n_p}\sum_{z'\in\{0,1\}\times A}F_{\rm orb}(j,p,z'),&\text{otherwise},\end{cases}$$
$$F_d(j)=-\frac{k-1}{2}\sum_{h\in A}\min\{w_j(0,h),w_j(1,h)\}.$$
For every $1\le j\le m$ and every finite $w$, require
$$F_{j,w}=\begin{cases}F_G(j),&p\in\{g_0,g_1\},\\F_d(j),&p\text{ is in the class ramified at }d,\\F_I(j,p),&p\in\mathcal I\cup\mathcal S,\ p\le X'',\\0,&\text{otherwise}.\end{cases}$$
The alternatives are taken in this order. The sets $\mathcal I,\mathcal S$ and the ramified class are those in Family fields and Galois data.
Define the following quantities for the error itself. The arrays $\nu^z_{j,\tau,i}$ are those in Adjusted source lattices and explicit heights. Write
$$u^z_{j,\tau}=\sum_{i=0}^{N_{j-1}-1}\nu^z_{j,\tau,i},\qquad
V_{a,z,j,w}=\frac1{e_w}\sum_{\tau\in\Sigma}u^z_{j,\tau}v_w(\tau_K(\bar\pi_a)).$$
If $\lambda^z_{i,\tau,l}$ is the integer coefficient weight in Integral forms on column representations, let
$$W^z_\tau=\max_{\substack{0\le i\le m\\0\le l<N_i}}\begin{cases}0,&l=0,\ \tau\in\Sigma_{\rm top},\\|\lambda^z_{i,\tau,l}-\lfloor i(t+1)/2\rfloor|,&\text{otherwise}.
\end{cases}$$
The maximum uses the finite nonempty set of displayed indices. Put
$$E_G(a,z,j,w)=F_G(j)+V_{a,z,j,w}+g_{\rm err}f(N^2+m^2\eta),$$
$$E_T(z,w)=b_{z,w}\left(2\sum_{\tau\in\Sigma}W^z_\tau+fN+|T|(t+1)(m+1)/4\right).$$
For $h\in A$, set
$$c^z_{j,h}=u^z_{j,(0,h)}-\mathbf1_{h\in T}(\nu^z_{j,(0,h),0}-\nu^z_{j,(0,h),1})+\mathbf1_{h\in T}\nu^z_{j,(1,h),0},$$
$$E_d(j)=F_d(j)+\tfrac12\max_z\sum_{h\in A}c^z_{j,h},\qquad E_C(j,p)=c_{\rm dig}fN^2\log_pa+\frac{\sum_\tau w_j(\tau)}{p^2-1}.$$
The source set is nonempty, so the maximum over $z$ is defined.
Let
$$A_p=\{(0,h):h\in A,\ p\notin\mathcal S\},\quad B_p=\{(\beta,h):p\in\mathcal S\text{ or }\beta=1\},\quad T_p=B_p\cap(\{0\}\times T).$$
Let $\mathcal C$ be the set of inert-class primes for which $h_p\ne0$ has odd order. Define
$$E_X(j,p)=\mathbf1_{p\in\mathcal C}\left(\frac{k-1}{p^3}\sum_{z'\in B_p}w_j(z')+c_6fN^2\log_pa\right),$$
$$\begin{aligned}E_I(j,p)={}&\max\left(0,\frac1{n_p}\sum_{z'\in A_p}F_{\rm orb}(j,p,z')\right)+\frac p{p^2-1}|T_p|(b+\eta+1+3S)\\
&+\frac{c_6}{p}\sum_{z'\in B_p}w_j(z')+|B_p|N_{j-1}N_j\{\log_p(4n_pNa)+1\}\\
&+g_{\rm dl1}|B_p|N^2\log_p(2a)+g_{\rm dl2}|T_p|\{\log_p(2a)\}^2+E_X(j,p).
\end{aligned}$$
The constants $g_{\rm dl1},g_{\rm dl2}$ are the selected-prime constants in Fixed constants in an arithmetic family. Finally, for every source $z$, $1\le j\le m$ and finite $w$, require
$$E_{z,j,w}=\begin{cases}E_T(z,w),&p=T_z,\\v_p(D_\Gamma)+E_G(a,z,j,w),&p\ne T_z,\ p=g_a,\\v_p(D_\Gamma)+E_d(j),&p\ne T_z,g_0,g_1,\ p\text{ ramified at }d,\\v_p(D_\Gamma)+E_C(j,p),&p\text{ in neither previous case},\ p\in\mathcal I,\ h_p=0,\ p\le X'',\\v_p(D_\Gamma)+E_I(j,p),&p\text{ in neither previous case},\ p\in\mathcal I\cup\mathcal S,\ p\le X'',\\v_p(D_\Gamma),&\text{otherwise}.
\end{cases}$$
All real logarithms, division, finite-dimensional traces and real suprema use their total values; in particular $\log0=0$ and $a/0=0$.
Hypothesis (theta indices and scalars). For every $\mu$, let $T_{\mu,j}$ be the $\mathcal O_K$-span of the rational vectors whose complex images belong to the specified integral theta-input set. Its Hermitian dual inside $KT_{\mu,j}$ is
$$T_{\mu,j}^\#=\{x\in KT_{\mu,j}:\langle a,x\rangle\in\mathcal O_K\text{ for every }a\in T_{\mu,j}\}.$$
The local index of two integral submodules $A,B$ is $\operatorname{length}(A_w/(A_w\cap B_w))-\operatorname{length}(B_w/(A_w\cap B_w))$, taking each extended module length to its natural-number value, zero when infinite. The supplied local quantities $I_{\mu,j,w}$ and $J_{\mu,j,w}$ are exactly these local lattice indices of $(M_j,\theta_{\mu,j}T_{\mu,j})$ and $(T_{\mu,j},T_{\mu,j}^\#)$, respectively. These modules, their rational realizations and their theta maps are those of Complex vector spaces and integral spans and Identifications for arithmetic family members. For every nonzero $\pi$-isotypic subspace $M_{j,\pi}$ of $M_j$, require
$$\lambda_{\mu,j,\pi}=\frac{\Re\operatorname{tr}(\theta_{\mu,j}\theta_{\mu,j}^*\operatorname{pr}_{M_{j,\pi}})}{\dim_{\mathbb C}M_{j,\pi}}\qquad(1\le j\le m).$$