Problem
Let $S$ be a nonempty subset of $\mathbb{R}$, and let $u$ be a number with the following properties:
- for each positive integer $n$, the number $u - \frac{1}{n}$ is not an upper bound of $S$, and
- for each positive integer $n$; the number $u + \frac{1}{n}$ is an upper bound of $S$.
Prove that $u = \sup S$
My Attempt at the Proof:
Let $B$ be $\sup S$ and $u \neq B$, where $B, u\in\mathbb{R}$. Also, let $A=u - \frac{1}{n}$ and $C=u + \frac{1}{n}$ for any $n \in\mathbb{N^+}$.
WLOG, consider when $u>B$. As a result of The Least Upper Bound Principle, for any $x\geq C$, $x$ must be an upper bound of $S$, as $x>B$. However, for any $y \le A$, $y$ may be either an upper bound or not. Since $A$ by definition 1 must not be an upper bound in $S$, this is a contradiction. Therefore, $u=B$, such that $u=\sup S$.
Question
Are there any suggested improvements to my proof? Can anyone verify I'm on the right track? I'm new to real analysis and unfortunately do not have answers to validate my proof.
The conditions $a)$, and $b)$ imply that: $\forall n \geq 1, u-\dfrac{1}{n} <\sup(S)\leq u + \dfrac{1}{n}\Rightarrow |u-\sup(S)| \leq \dfrac{1}{n}\Rightarrow |u-\sup(S)| \leq \displaystyle \lim_{n\to \infty} \dfrac{1}{n} = 0 \Rightarrow u = \sup(S)$