Ideal characters and period lattices
Hypothesis (ideal characters and periods). Use (Family fields and Galois dataDefinition ANT.D111) and (Identifications for arithmetic family membersDefinition THETA.D133). Write $E_0\subset E$ for the imaginary quadratic field, $\varphi_0:E\hookrightarrow\mathbb C$ for the distinguished embedding, $\mathcal T$ for the selected embedding labels, $e_\tau:E\hookrightarrow\mathbb C$ for their embeddings, $A_0\subset E$ for the prescribed integral module, and $d$ for the positive discriminant parameter. Choose an integral ideal $\mathfrak c\subset\mathcal O_{E_0}$ and $\delta\in\mathbb C$ satisfying $$\mathfrak c\ne0,\qquad (N\mathfrak c,2d)=1,\qquad \delta^{12}=\Delta(\varphi_0(\mathfrak c)).$$ For an additive subgroup $\Lambda\subset\mathbb C$, the normalization here is $$G_{2k}(\Lambda)=\sum_{0\ne w\in\Lambda}w^{-2k},\quad g_2=60G_4,\quad g_3=140G_6,\quad\Delta=g_2^3-27g_3^2.$$ Sums have the total summation convention: a nonconvergent sum has value zero. Put $\Lambda=\langle\delta\varphi_0(c):c\in\mathfrak c\rangle_{\rm add}$, where brackets denote the smallest additive subgroup containing the displayed set.
An ideal label is any $\mathcal O_E$-submodule $\mathfrak a\subset E$. Call it norm one if $\mathfrak a\overline{\mathfrak a}=\mathcal O_E$, with ideal multiplication defined by the integral span of products. For full self-dual integral lattices $L,L'\subset E^N$, define $$[L:L']_{\det}=\operatorname{span}_{\mathcal O_E}\{\det A:A\in M_N(E),\ A L\subseteq L'\}.$$ Here self-dual means that the lattice is finitely generated, spans $E^N$, and equals its dual for $\sum\bar x_i y_i$.
Choose a function $\chi$ from ideal labels to $\mathbb C$. It is multiplicative on pairs of norm-one labels, and for $z\in E$ with $z\bar z=1$ require $$\chi(z\mathcal O_E)=\prod_{\tau\in\mathcal T}e_\tau(z)^{-1}.$$ Let $D/U$ be the determinant quotient and $\chi_D:D\to\mathbb C^\times$ its prescribed character. Choose an injective map $a:D/U\to\{\mathcal O_E\text{-submodules of }E\}$ whose image is exactly the norm-one labels. Require $a(xy)=a(x)a(y)$, $a([e_1(z)])=z\mathcal O_E$ for every norm-one $z$, and $$a(\operatorname{relDet}(L,L'))=[L:L']_{\det}$$ for every rank and every pair of full self-dual lattices. The chosen function is exactly $$\chi(\mathfrak a)=\begin{cases}\chi_D(x),&a([x])=\mathfrak a,\\0,&\mathfrak a\notin\operatorname{im}(a).\end{cases}$$ The value in the first case uses the descended character on $D/U$; it is independent of the representative.
A torus datum consists of arbitrary functions $b_\tau:E\to\mathbb C$ and an additive subgroup $\Lambda\subset\mathbb C$. The datum used above has $b_\tau=e_\tau$ and the displayed $\Lambda$. For $L\subset E^N$, $L'\subset E^{N'}$, put $$Y(L,L')=\operatorname{span}_{\mathcal O_E}\{aA:a\in A_0,\ A\in\operatorname{span}_{\mathcal O_E}\{B:BL\subseteq L'\}\},$$ $$\mathcal L(L,L')=\langle w(b_\tau(A_{ij}))_{\tau,i,j}:w\in\Lambda,\ A\in Y(L,L')\rangle_{\rm add}.$$ Define $$\operatorname{area}(\Lambda)=\inf\{a>0:a=|\operatorname{Im}(\bar w_1w_2)|,\ w_1,w_2\in\Lambda\},\quad H(z,w)=\frac{\sum_{\tau,i,j}z_{\tau ij}\bar w_{\tau ij}}{\operatorname{area}(\Lambda)},$$ $$\alpha(x)=(-1)^{\operatorname{round}(\sqrt d\operatorname{Re}H(x,x)/2)},\qquad (U_xF)(z)=F(z+x)e^{-\pi H(z,x)-\pi H(x,x)/2}.$$ The normalized change from an additive subgroup $\mathcal L_1$ to $\mathcal L_2$ is $$I_{12}F=[\mathcal L_2:\mathcal L_1\cap\mathcal L_2]^{-1/2}\sum_{q\in\mathcal L_2/(\mathcal L_1\cap\mathcal L_2)}\alpha(\tilde q)U_{\tilde q}F,$$ using fixed representatives and the total finite-product and finite-sum convention. For an infinite index its natural-number index is zero. Inverses use the field convention $0^{-1}=0$.