Let $A=\{x\in\mathbb Q\mid x^2\leq 2\}$. Prove that $A$ has no supremum in $\mathbb Q$. I had that to an exam, and I had a grade of $0/15$. Could someone explain me why ?
Proof : Let $M\in\mathbb Q$ s.t. $M=\sup(A)$. Suppose $M<\sqrt 2$. Then, by density of $\mathbb Q$ in $\mathbb R$ there is $x\in \mathbb Q$ s.t. $M<x<\sqrt 2$. Since $x^2\leq 2$, we have that $x\in A$ which is a contradiction.
If $\sqrt 2<M$. Still by density of $\mathbb Q$ in $\mathbb R$, there is $y\in \mathbb Q$ s.t. $\sqrt 2<y<M$. They $y$ is an upper bound of $A$ which contradict that $M$ is the smallest upper bound.
Question : What's wrong in my argument ? (I'll normally see the corrector next week, but I would like to know why this is wrong because to me it looks completely correct).