Let $X=[0,1]$. Prove $X$ is compact.
Let $\{U_i\}_{i\in I}$ be an open cover of $X$, or equivalently $$X=\bigcup_{i\in I} U_i~\text{and each}~ U_i~\text{is a open subset of}~X.$$
By definition of compactness we need to show that every open cover of $X$ admits (or has) a finite subcover.
Let $$B=\{x\in X:(\exists J\subset I)\text{ s. t. }|J|<\infty\wedge[0,x]\subset\bigcup_{i\in J} U_i\}.$$
I have showed that $B$ is a nonempty, open and closed subset of $X$. Since intervals in $\mathbb{R}$ are connected, it follows that $X$ is connected.
By definition of connectedness it follows that $B=[0,1]$.
But, I do not understand why $B=[0,1]$ implies that there exists a finite subcover for each open cover of $X$.
I would appreciate any help.
Thank you.
The Heine Borel Theorem states that $A \subseteq \mathbb{R}$ is closed and bounded iff $A$ is compact, but we only need one direction of the theorem for this proof. See here for a similar proof: http://www.math.utah.edu/~bobby/3210/heine-borel.pdf
– Andres Mejia Apr 23 '16 at 18:12