$\DeclareMathOperator\GL{GL}\DeclareMathOperator\PSL{PSL}$I want to ask the following, Given $X \in n \times n$ matrix that all the elements are integers and $X=X^{T}$ is symmetric.
Can one always find a matrix $W$ an $n \times n$ matrix that all the elements are integers and $K \in \PSL(n, \mathbb{Z})$ i.e. $\det(K)=\pm 1$ such that $ X=W^{T}KW $ ?
For example, if $X=\begin{pmatrix} 0 & m\\ m & 0 \end{pmatrix}, m \geq 2.$ One can write
$X=\begin{pmatrix} 0 & m\\ 1 & 0 \end{pmatrix}\begin{pmatrix} 0 & 1\\ 1 & 0 \end{pmatrix}\begin{pmatrix} 0 & 1\\ m & 0 \end{pmatrix}$ which satisfy the requirements.
I believe this is true (when $\det(X)=\pm 1$ or $n=1$ it is trivial). But I can not prove it.
This is very close to the Smith normal form. But I can not find such decomposition in the literature.
Is there any literature or comments? Very appreciated.