The following fact seems to show up all over real analysis and measure theory:
Proposition. Consider an above-bounded non-empty subset $X$ of the real line and an element $x \in \mathbb{R}$. Then the following are equivalent:
- $x$ is a least upper bound of $X$
- $x$ is an upper bound of $X$, and $\forall(\varepsilon > 0)\exists(y \in X)(|y-x|<\varepsilon)$
Question. Is there an easy way to see that these are equivalent?
Preferably the proof should work for $\mathbb{Q}$ as well, since this seems to hold there. Perhaps it is true for all ordered fields (I don't know).
This is true in any totally ordered abelian group. The proof is very simple. Suppose $x$ is an upper bound of $X$. If there exists $\epsilon>0$ such that there is no $y\in X$ with $|y-x|<\epsilon$, then $x-\epsilon$ is also an upper bound for $X$, since there is no $y\in X$ in the interval $(x-\epsilon, x]$ (and there is also no element of $X$ which is greater than $x$). So $x$ is not the least upper bound.
Conversely, if $x$ is not the least upper bound, there is some smaller upper bound $x'<x$. Letting $\epsilon=x-x'$, we see that there is no $y\in X$ such that $|y-x|<\epsilon$, since such a $y$ would be greater than $x'$.