I know that ${\Bbb Q}[x,y]/(x^2+y^2-1)$ is not a PID, because it is not a UFD.
But ${\Bbb Q}[x,y]/(x^2+y^2+1)$ is a PID.
I heard about some proof using Hochschild-Serre spectral sequence. I was wondering if there an elementary proof? Here's my attempt:
Let $A=\Bbb Q[x]$, $B=\Bbb Q[x,y]/(x^2+y^2+1)$, $\phi:A\to B$ the natural inclusion homomorphism. For a nonzero prime ideal $I$ of $B$, we have that $\phi^{-1}(I)$ is a prime ideal of $A$.
- $\phi^{-1}(I)$ is a nonzero prime ideal of $A$. If $g(x)+yf(x)\in I$, then $(g(x)-yf(x))(g(x)+yf(x)) = g(x)^2-y^2f(x)^2=g(x)^2+(1+x^2)(f(x)^2\in A$.
- $\phi^{-1}(I)=(h(x))$, where $h(x)$ is irreducible in $\Bbb Q[x]$.
- $F=\Bbb Q[x]/(h(x))$ is a field.
- $\phi$ induces a ring homomorphism $F=A/(h(x)) \to B/(h(x)) \to B/I$.
- $B/(h(x))\cong F[y]/(y^2+x^2+1)$.
- If $y^2+x^2+1$ is irreducible in $F[y]$, then $F[y]/(y^2+x^2+1)$ is a field, so $(h(x))$ is a maximal ideal of $B$, so $I=(h(x))$ is principal.
- Otherwise, $y^2+x^2+1$ is reducible in $F[y]$, so $y^2+x^2+1=(y-k(x))(y+k(x)) \in F[y]$. This is equivalent to $h(x)\mid 1+x^2+k(x)^2\in \Bbb Q[x]$.
- Claim (hard): If $h(x)\mid 1+x^2+k(x)^2 \in \Bbb Q[x]$, then $h(x)=f(x)^2+(1+x^2)g(x)^2$ for some $f,g\in\Bbb Q[x]$.
- $(f(x)+yg(x))(f(x)-yg(x)) = h(x)\in I\subset B$, $I$ being prime implies WLOG $f-yg\in I$.
- $B/(f-yg)\cong F[y]/(f-yg,y^2+x^2+q)\cong F$, so $(f-yg)$ is a maximal ideal, so $I=(f-yg)$ is principal.
But I was not sure about the step 8.
If we replace $\Bbb Q$ by $\Bbb R$, then the problem become easier because the only field extension of $\Bbb R$ is $\Bbb C$. But for $\Bbb Q$, it is much harder.