My professor last week told us about max, min, sup and inf of a set, and while talking about sup and inf, he stated that they always do exist. For example if $A = (2, 4)$ then $\sup (A) = 4$ and $\inf(A) = 2$, even if they do not belong to the set.
In the same way, we can have $\sup(G) = \pm \infty$, where $G$ is some set.
However, I thought about this set:
$$B = \{ x\in\mathbb{Q}:\ 2< x^2 < 3\}$$
And I got doubts and got stuck: this set is the set of all the rationals between $\sqrt{2}$ and $\sqrt{3}$, hence it's like to write $(\sqrt{2}, \sqrt{3})$ while working in $\mathbb{Q}$.
What are $\sup(B)$ and $\inf(B)$ in this case? For I don't think they do exist, because the square roots here are not rational numbers. Am I wrong?
Thank you!
This is one of the defining distinctions between the rational numbers and the real numbers. In a sense, the real numbers fill in the "holes between all the rational numbers", in such a way that suprema and infima always exist. Both classic constructions of $\Bbb R$ from $\Bbb Q$, either by Cauchy sequences or by Dedekind cuts, seem to be constructed to directly address this deficiency in the rational number line.
In $\Bbb Q$, there is no supremum for $B$. Just as you say. However, $B$ can also be seen as a subset of the real numbers (even though it happens to only contain rational numbers), and in that sense it does have a supremum: $\sqrt3$.