We often utilize the concept of a compact set.

Compact Set: $\mathcal{X} \subseteq \mathbb{R}^d$ is compact iff $\mathcal{X}$ is closed and bounded.

This is the Heine-Borel Theorem. What this means:

  1. Closed: The limits are included in the set. So given $a,b \in \mathbb{R}$, $[a,b]$ is a closed set whereas $(a,b)$ is an open set because the limits are not included.
  2. Bounded: All elements of the set must be able to be bounded by some real number $M$ where the distance from one point in the set to another must be $\leq M$. I.e., the set cannot extend in one direction infinitely.

Some examples of this, where $a,b \in \mathbb{R}$:

This also leads to the Weierstrass Extreme Value Theorem: