1 version of the statement of Finite order in a compact finite-adelic stabilizer of a definite form, 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
Let $F$ be a totally real number field, let $E/F$ be a number-field extension, let $\sigma:E\to E$ be an $F$-algebra endomorphism, and let $J\in M_k(E)$ satisfy $\sigma(J)^t=J$. Put $h(x,y)=\sigma(x)^tJy$. Assume that for every embedding $v:F\hookrightarrow\mathbb R$, either every nonzero $x\in E^k$ has $h(x,x)\in F$ and $v(h(x,x))>0$, or every such $x$ has $h(x,x)\in F$ and $v(h(x,x))<0$.
For an $F$-algebra $R$, put
$$G(R)=\{g\in\operatorname{GL}_k(E\otimes_FR):(\sigma\otimes1)(g)^tJg=J\}.$$
Let $U\subseteq G(\mathbb A_{F,f})$ be a subgroup compact in the ambient general linear group, and let $y\in G(\mathbb A_{F,f})$. Every $\gamma\in G(F)$ whose finite adelic image belongs to $yUy^{-1}$ has finite order.