This is a cross-post! For the original post on SE (9 upvotes, no answer) see:
Let $X$ be a complex algebraic set, i.e. the (not necessarily irreducible) vanishing set of some polynomials in $\mathbb{C}[X_1,\ldots,X_n]$. If $X$ contains a Zariski dense subset of points with coordinates in the algebraric numbers $\bar{\mathbb{Q}}$, is it true that $X$ is defined over $\bar{\mathbb{Q}}$, i.e. that $X$ can be defined as the vanishing set of some polynomials in $\bar{\mathbb{Q}}[X_1,\ldots,X_n]$?
It seems to be the case that the converse of this stament holds, as discussed here. I read that the implication in my question follows from Lagrange interpolation, but it is not clear to me how Lagrange interpolation works in the present multivariable case and how it can be used to answer my question.
For context: I try to understand a proof of Mann's theorem in this survey on applications of o-minimality (from mathematical logic) to diophantine geometry. We want to prove the following:
Theorem. Let $Y\subseteq\mathbb{C}^n$ be an algebraic set and consider $\mathbb{G}=(\mathbb{C}^\times)^n$, the $n$th power of the multiplicative group of units in $\mathbb{C}$. Then the set $Y\cap\mathbb{G}^\mathrm{tor}$ of points on $Y$ such that each coordinate is a root of unity is a finite union of cosets of subgroups of $\mathbb{G}$.
At some point on page 15, we want to use bounds from Galois theory and need to reduce to the case that $Y$ is defined over a number field. In the paragraph in paranthesis on p. 15, the following argument is sketched: From basic properties of the Zariski topology using that $\mathbb{G}$ is open, we can see that $Y\cap\mathbb{G}^\mathrm{tor}=\overline{Y\cap\mathbb{G}^\mathrm{tor}}\cap\mathbb{G}^\mathrm{tor}$, and may thus assume that $Y=\overline{Y\cap\mathbb{G}^\mathrm{tor}}$. Then $Y$ contains a dense set of points with algebraic coordinates, since the elements of $\mathbb{G}^\mathrm{tor}$ have algebraic coordinates. Now the author Scanlon claims that it follows from Lagrange interpolation that $Y$ is defined over $\bar{\mathbb{Q}}$. The fact that $Y$ is defined over a number field then just follows from Noetherianess of $\bar{\mathbb{Q}}[X_1,\ldots,X_n]$.
A similar reduction also seems to work in the case of torsion points on abelian varieties defined over $\mathbb{C}$. I would also be grateful for details or references regarding this case.
Thanks for your help!