Let $S$ be the set of positive integer pairs $(x,y)$ such that $x^2 - d y^2 = -4$ or $x^2 - d y^2 = 4$, where $d$ is fixed as the discriminant of a real quadratic number field.
I'm trying to show that if $(x, y) \in S$ and $(a,b) \in S$ with $x \lt a$, then $y \lt b$. (or find a counterexample)
Graphing $x^2$ as a function of $y^2$ you can see that the points in $S$ lie on two possible parallel lines with slope $d$. It's conceivable then that a point may lie "above and to the left" of another point, which would disprove my conjecture.
Suppose we have two solutions $(a,b)$ and $(x,y)$ with $a\gt x$ and $y\gt b$. We note that we can choose $x,y,a,b \ge 0$ just by changing the sign.
Then $a^2\gt x^2$ so that $\pm 4+db^2\gt \pm 4+dy^2$ or $\pm 4\mp 4\gt d(y^2-b^2)=d(y-b)(y+b)\gt 0$ (since $y-b\gt 0$)
Hence we have $$8\gt d(y-b)(y+b)\gt 0$$ and the choice of signs is $+$ for $(a,b)$ and $-$ for $(x,y)$
... a product of three integers with $y\gt b$. This constraint alone reduces the possibilities to
$(d,y,b)=(1,1,0);(1,2,0); (1,2,1); (1,3,2);(1,4,3); (2,1,0); (2,2,1); (3,1,0); (4,1,0);(5,1,0);(6,1,0);(7,1,0)$
Many of these have $b=0$ when $a^2=4, a=2$. Then $a\gt x$ means $x=0$ or $x=1$ giving the possibilities $dy^2=4$ or $dy^2=5$
The first is possible with $d=1, y=2$ or with $d=4, y=1$, and the second works with $d=5, y=1$
So we have $$2^2-1\cdot 0^2=4; 0^2-1\cdot 2^2=-4$$ $$2^2-4\cdot 0^2=4; 0^2-4\cdot 1^2=-4$$ $$2^2-5\cdot 0^2=4; 1^2-5\cdot 1^2=-4$$
The possibilities where $d=1, b\gt0$ lead to $a^2=5, 8, 13$. The final option is $d=2, b=1$ which would give $a^2=12$. So these give no solutions.
What I missed is that the case $y=b$ is also allowed:
In the case with $y=b$ the product will always equal zero, but we can recast the problem as$$a^2-db^2=4; x^2-db^2=-4$$ This gives us simply $$a^2-x^2=(a+x)(a-x)=8$$ The two factors have to be of the same parity, so $a+x=4, a-x=2, a=3, x=1$. Then $9-db^2=4$ so $db^2=5, d=5, b=y=1$, which is what Burak found.
For interest, if you allow $x=a$ this means the product can be equal to $8=1\times 1\times 8=1\times 2\times 4=2\times 2\times 2$ and noting that $y-b$ and $y+b$ have the same parity, there are extra possibilities, namely:
$$(d,y,b)=(8,1,0); (1,3,1); (2,2,0)$$
The first of these has $b=0$, and the analysis of that case shows there is no new solution. The second with $y=3, d=1$ gives $x^2-1\cdot 3^2=-4$ or $x^2=5$. The final case gives $x^2-2\cdot 2^2=-4$, whence $x=2$. And then $a^2-2\cdot 2^2=4$ or $a^2=12$. So the $x=a$ case leads to no extra solution.
This exhausts the equality cases.