1 version of the statement of Integral level lattices and their class representatives, 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 1 , first version
Hypothesis (integral levels). Use Family fields and Galois data, Hermitian spaces in the theta constructions, and Column chains and period pairings. Write $E/F$ for the CM extension, $h$ for the initial rank-$k$ Hermitian form in the specified basis, $G=\mathrm U(h)$, $\mathcal C_0$ for the initial class set, $\Gamma_c$ for its stabilizer and $T_z$ for the prime belonging to a source $z$. The following data and conditions are required separately for every source.
There is a finitely generated $\mathcal O_E$-submodule $L_b\subset E^k$ spanning $E^k$. Its Hermitian dual is
$$L_b^\#=\{y\in E^k:h(x,y)\in\mathcal O_E\text{ for every }x\in L_b\}.$$
Require
$$L_b\subseteq L_b^\#,\qquad T_zL_b^\#\subseteq L_b,\qquad [\mathcal O_E L_b^\#:L_b]=T_z^{2f}.$$
Here $f=[E:\mathbb Q]/2$ and $\mathcal O_E L_b^\#$ denotes the integral span.
For each finite place $v$ of $F$, choose $U_v\subseteq G(F_v)$ contained in the stabilizer of the completed lattice $L_{b,v}$. Away from $g_0,g_1,T_z$, it is this full stabilizer. At $v\mid g_a$, choose a splitting $E\otimes_F F_v\simeq F_v\times F_v$ carrying conjugation to exchange of factors, and $h_{a,v}\in\mathrm{GL}_k(F_v)$. For $g\in G(F_v)$, require $g\in U_v$ if and only if $h_{a,v}^{-1}\operatorname{pr}_1(g)h_{a,v}$ is integral and reduces to an upper triangular matrix with diagonal entries one.
At $v\mid T_z$, let $R_v$ be the subring of $E\otimes_F F_v$ generated by $\mathcal O_E$ and $\mathcal O_{F_v}$. There is an $R_v$-module $Q_v$ of cardinality $T_z$ and a nonzero $R_v$-linear map
$$q_v:\mathcal O_E L_{b,v}^\#\longrightarrow Q_v$$
that kills $L_{b,v}$ and $T_z\mathcal O_E L_{b,v}^\#$. Require $U_v$ to be the intersection of the full lattice stabilizer with the subgroup fixing this map. For a rational lattice, completion here means the $R_v$-span of its image.
There is a subgroup $U\subset\mathrm{GL}_k(E\otimes_F\mathbb A_{F,f})$ consisting exactly of the unitary adeles whose component at every $v$ belongs to $U_v$. It is compact and open in $G(\mathbb A_{F,f})$. Choose a place $v_1\mid g_0$ and representatives $y_c\in G(\mathbb A_{F,f})$ such that
$$\mathcal C_0\longrightarrow G(F)\backslash G(\mathbb A_{F,f})/U,\qquad c\longmapsto[y_c]$$
is a bijection. The completed coordinate lattice of class $c$ is $y_c\widehat L_b$. There is an injective homomorphism $\Gamma_c\to G(F)$ with image exactly $G(F)\cap y_cUy_c^{-1}$; this homomorphism preserves the rational coordinate lattice of $c$.