Definition of a compact set: A set $S$ in $\mathbb{R}^n$ is said to be compact if, and only if, every open covering of $S$ contains a finite subcover, that is, a finite subcollection which also covers $S$.
The Heine-Borel theorem states that every closed and bounded set in $\mathbb{R}^n$ is compact. Now we prove the converse result.
I know that $4$ is the bounded set for $[1,5]$ for $1<x<5$ but I got little confused on getting if it is compact or not since there is no finite subcover. Can you help me here please?