I have encountered two definitions of the least upper bound.
Let $A$ be a set of real numbers. The two definitions are
First definition
$k$ is an upper bound of $A$ iff (1) $\forall \ x \in A$, $x \leq k$ and (2) if $c$ is an upper bound of $A$, $c \geq k$.
Second definition
$k$ is an upper bound of $A$ iff (1) $\forall \ x \in A$, $x \leq k$ and (2) $\forall \ \epsilon > 0$, there is an element $x$ in $A$ such that $k - \epsilon < x \leq k$.
Are they essentially the same? I'm inclined to say yes, but I'm not sure.
yes, they are equivalent.
Both definitions agree on the upper bound part.
On the least upper bound the statements sound different but say the same thing.
For the first definition no upper bound is allowed to get less than $k$, so $k$ is the least upper bound.
For the second one, $k-\epsilon$ is not allowed to be an upper bound due to the fact that the set has an element greater than $k-\epsilon.$