Extending an integral Hermitian lattice to a unimodular lattice
Let $K$ be a totally complex number field with involution $x\mapsto\bar x$, with $\varphi(\bar x)=\overline{\varphi(x)}$ for every complex embedding. Suppose that for every maximal ideal $\mathfrak P\subset\mathcal O_K$ some $\theta\in\mathcal O_K$ satisfies $\theta-\bar\theta\notin\mathfrak P$. Let $F$ be a number field contained in $K$ whose image is exactly the fixed field of the involution. Let $(V,h)$ be a finite-dimensional nondegenerate Hermitian space over $K$, conjugate-linear in the first variable. Let $U\subseteq V$ satisfy $$V=U\oplus U^\perp,$$ and suppose $h$ is positive definite on $U^\perp$ at every complex embedding. Assume $V$ admits a full unimodular $\mathcal O_K$-lattice. Let $M\subset U$ be a finitely generated full $\mathcal O_K$-lattice in $U$ with $h(M,M)\subseteq\mathcal O_K$. If $$c_{\mathfrak p}(M)<\dim_KU^\perp\qquad(\mathfrak p\subset\mathcal O_F\text{ maximal}),$$ then there is a full unimodular lattice $\Lambda\subset V$ such that $\Lambda\cap U=M$.
A lattice is unimodular if it equals its $h$-dual. Localize $\mathcal O_K$-modules by the elements of $\mathcal O_F\setminus\mathfrak p$. Among orthogonal bases $b_1,\ldots,b_d$ of the localized lattice $M_{\mathfrak p}$, taken in $U$, whose nonzero diagonal values are elements $a_i\in\mathcal O_F$, let $c_{\mathfrak p}(M)$ be the least number of $a_i$ lying in $\mathfrak p$. Its value is zero if there is no such basis.