I'm working on a proof very similar to the one attempted here but from a more naive stand point.
Let $Y \subset \mathbb R^k$ be a nonempty, closed, and bounded set. Let $x$ in $\mathbb R^k$. Define $d(x,Y)= \inf \{||x-y||:y \in Y \}$.
Claim: We will show that $\exists y \in Y $ such that $d(x,Y)=||x-y||$.
Here's my thinking:
$Y$ is nonempty, so $\exists y \in Y$.
We need to show $d(x,Y)$ exists:
There's a thread starting with something like: $Y$ is bounded so there exists $M \in \mathbb R$ such that $||y-0||< M, \quad\forall y \in Y$. Then use the triangle inequality to show the metric is bounded, but
...there doesn't seem to be anything that precludes $x$ from being in $Y$ itself. In fact, since $Y$ is nonempty we can have $x = y \implies d(x,Y)=||x-y||=0$. Does this indicate that 0 is a lower bound for $\{||x-y||:y \in Y\}$, so we have the existence of an $\inf{||x-y||:y \in Y}$? Indeed, if $x = y$, then we have satisfied the claim, but this seems rather skimpy.
So now consider $x \notin Y$, then we have $x \neq y \implies d(x,Y) > 0$. At this point I'm a bit stuck, probably because I need to go to bed and live to fight another day. I'm thinking I need to consider a sequence ($y_n$) and by B-W Thm it has a convergent subsequence ($y_{n_{k}}$), but I might only be thinking about this because I wrote a similar proof earlier in the week. The tip I got was to invoke Heine-Borel, but we already have that this is a closed, bounded set in $\mathbb R^k$ i.e. compact.
Any pointers greatly appreciated. This is in the context of a first course in analysis. We've discussed sequences and now metric spaces briefly.