Consider the algebraic set $Z(x^2 + y^2) \subseteq \mathbb{R}[x, y]$. Set $A = \mathbb{R}[x, y]/(x^2 + y^2)$. In this ring, we have a chain of prime ideals $(0) \subseteq (x,y) $: the ring has dimension $1$. Hence the algebraic set has dimension $1$ when viewed as the (closed points of the) scheme $ \mathrm{Spec}\ A$. By Definition 2.8.1 on p.50 of Bochnak/Coste/Roy, this is also the dimension of the set as a real algebraic variety.
Question. As a scheme, the algebraic set has dimension 1. On the other hand, it is a real algebraic variety consisting of a single real closed point. Is there an algebraic way of defining a `dimension' so that this real algebraic variety has dimension $0$?
I fully expect the answer might be 'no', as the polynomial we look at here inherently has 'dimension 1-ness' built into it intrinsically (it is a conic) and I think we get dim = 1 here because we are in some sense detecting an infinitsimal tangent vector pointing in the imaginary direction(?).
Some context: I am studying a large family of complicated polynomials defined over $\mathbb{Q}$ and I am trying to detect whether given polynomials in the family have discrete zeros over $\mathbb{R}^n$; to do this, I was using Macaulay2 to compute the dimension of the hypersurface generated by each polynomial and looking for polynomials where this quantity was zero. Of course, this did not work as there were many polynomials with discrete zeros but generating an ideal with positive Krull dimension! I chose the example above as it is the simplest polynomial I could think of which has this "defect" in the hopes that the answers would be enlightening when dealing with the more complicated case.
Related: Two-variable polynomials over $\mathbb{Q}$ with finitely many roots in $\mathbb{R}^2$ (but I am interested in checking for discreteness of roots, not finiteness; I am also interested in studying the embedding of the real points of the varieties inside the complex points, so I'm more interested in algebraic results as opposed to the analytic ones in the answers to that question)