According to an answer in this questionthis answer by Laurent Moret-Bailly, the set of rational non-squares is diophantine over the rationals (a result of Bjorn Poonen): there is a 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}$)$(a,x_1,\dots,x_{n+1})$.
Actually, it's better to link directly to the specific answer, in case more will come in the future. Also, give credit where credit is due.
Emil Jeřábek
- 47.1k
- 4
- 147
- 208
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