According to an answer in this question the set of rational non-squares is diophantine over the rationals: there is polynomial $P(a,x_1,\dots,x_n)$ which for $a\in\mathbb{Q}$ has a rational solution iff $a$ is a rational non-square. For the variety take the hypersurface with equation $P^2+(x_{n+1}^2-a)^2=0$ in $n+2$ coordinates $(a,x_1,\dots,x_{n+1}$).
5 of 6
fix one more integer, and fix link so that it does not go to an irrelevant comment
Emil Jeřábek
- 47.1k
- 4
- 147
- 208
joro
- 25.4k
- 10
- 66
- 121