So I came across a proof of Axiom of Archimedes in my real analysis book. The proof is written as follows:
Axiom of archimedes: Given any real number $x$, there is an integer $n$ such that $x<n$.
Proof: If $x<0$, take $n=0$. Otherwise the set $S$ of integers $k$ such that $k \le x$ is nonempty. Since $S$ has the upper bound $x$, it has a least upper bound $y$. (This has been proved in preceding sections of the book) Since $y$ is the least upper bound for $S$, $y-\frac{1}{2}$ cannot be an upper bound for $S$, and so there is a $k \in S$ such that $k>y-\frac{1}{2}$. But $k+1>y+\frac{1}{2}>y$, and so $(k+1)\notin S$. Since $k+1$ is an integer not in $S$, we mucst have $k+1$ greater than $x$ by the definition of $S$.
Now, I understand this proof as a whole. The thing I don't understand is, why can't we just take $n=k+1$ after we have defined the set $S$? Why is it necessary to do this whole proof? I know this sounds stupid, but I'm not entirely sure what makes us not able to draw that conclusion. What way should I think in proving this theorem?
Any help is appreciated.