On page 27 of his book "Calculus Volume One", Apostol writes the following theorem and its proof:
Theorem I.32. Let $h$ be a given positive number and let $S$ be a set of real numbers.
(a) If $S$ has a supremum, then for some $x$ in $S$ we have $$x > \sup S - h.$$ (b) If $S$ has an infimum, then for some $x$ in $S$ we have $$x < \inf S + h.$$
$\textit{Proof of } (a).$ If we had $x \le \sup S - h$ for all $x$ in $S$, then $\sup S - h$ would be an upper bound for $S$ smaller than its least upper bound. Therefore we must have $x > \sup S - h$ for at least one $x$ in $S$. This proves (a). The proof of (b) is similar.
My problem is that I don't intuitively understand the proof of a, nor am I sure how to write the proof of b. I am asking in my endeavors to self-study Calculus. Any help you could provide would be most helpful.
We’ll use the fact that the supremum or least upper bound of a subset $S \subset \mathbb{R}$ is an element of $\mathbb{R}$ so that every element of $S$ is less then or equal to this distinguished element of $\mathbb{R}$ and that this is the smallest such element. Now we will argue using a proof by contradiction.
Let us suppose that we are given a positive number $h$. We want to show that there is some $x \in S$ such that $ x > \sup S -h$. Suppose to the contrary there is no such $x$. That means that for all $x \in S$, we have that $x \leq \sup S - h$. So $\sup S - h$ is an upper bound for the set $S$. Notice that $\sup S - h < \sup S$ since $h$ is positive. This contradicts the fact that $\sup S$ is a least upper bound. So our assumption was wrong and so there is some $x \in S$ so that $ x > \sup S - h$.
B) Is exactly the same proof with the roles of upper and lower bounds switched. Assume the opposite and show that you end up with a lower bound greater than the infimum. Hope this helps!