Discriminants, indices and local self-duality of Hermitian lattices
Let $K$ be a number field with involution $a\mapsto\bar a$ satisfying the conditions below, let $V$ be finite-dimensional over $K$, and let $h:V\times V\to K$ be nondegenerate Hermitian, conjugate-linear in the first variable. For an integral full $\mathcal O_K$-lattice $M$, put $$M^\#=\{y\in V:h(x,y)\in\mathcal O_K\text{ for all }x\in M\},\qquad d(M)=[M^\#:M].$$ Then $d(M)\ne0$, and $d(M)=1$ if and only if $M=M^\#$. If $M\subseteq M'$ is another integral full lattice, then $[M':M]\ne0$ and $$d(M)=d(M')[M':M]^2.$$ Every lattice in the genus of $M$ is integral and has discriminant $d(M)$. For every maximal ideal $P\subseteq\mathcal O_K$, if $d(M)\notin P$ then $M$ is self-dual after the localization described below. If $M\subseteq M'$ are integral full lattices and $M$ is self-dual at $P$, their localizations at $P$ agree.
Assume $K$ is totally complex, every embedding $\tau:K\hookrightarrow\mathbb C$ satisfies $\tau(\bar a)=\overline{\tau(a)}$, and for every maximal $P$ there is $\theta\in\mathcal O_K$ with $\theta-\bar\theta\notin P$. Integral means $h(M,M)\subseteq\mathcal O_K$. Localization at $P$ inverts the elements $s$ with $s\notin P$ and $\bar s\notin P$; self-duality uses the induced localized coefficient ring. Lattices have the same genus when their localizations at every maximal $P$ are carried to one another by a $K$-linear isometry of $V$.