Given the structure $(\mathbb Z,+,-,\times,0,1)$, what's the easiest way to write "$x\ge0$" in that structure?
I know that this works: $$\exists a\exists b\exists c\exists d,a^2+b^2+c^2+d^2=x$$ because of Lagrange's four-square theorem, but this seems like an unnecessarily complicated way to do it (because the theorem is such a nontrivial result). Is there an easier way?
An integer $d$ is $\ge 0$ if it is a perfect square or there exist integers $x$ and $y$ such that $xy\ne 0$ and $x^2-dy^2=1$. Here we are appealing to the theory of the Pell equation instead of the Lagrange four squares theorem. Arguably more complicated!