I'm reading through the proof for the Heine-Borel Theorem in Bartle's Elements of Real Analysis and getting caught on one point:
We assume that $K$ is a compact subset of $\mathbb{R}^p$ and let $x$ be an element in the complement of $K$. Then we let $G_m=\{y\in\mathbb{R}^p:|x-y|>\frac{1}{m}\}$, $m\in \mathbb{N}$, so that for some $M\in \mathbb{N}$, such that $K$ is contained in $G_M$ and the union of all the $G_m$'s contain all of $\mathbb{R}^p$ except $x$.
I'm good up to here. Then he says, the neighborhood $\{z\in\mathbb{R}^p:|z-x|<\frac{1}{M}\}$ doesn't intersect with $K$, therefore the complement of $K$ is open. Why does this follow? Where are the elements exactly $1/M$ distance from $x$?
Bartle proved that, if $x\in K^\complement$, there is a neighborhood of $x$ that doesn't intersect $K$. In other words, $K^\complement$ is an open set. And this assertion is equivalent to the assertion “$K$ is a closed set”.