By Compact Subset Criterion via Open Covers in the Ambient Space, it is enough to prove that every open cover of [a,b] in R has a finite subcover.
If a=b, then [a,b]={a}. Let (Uiβ)iβIβ be an open cover of [a,b] in R. Since aβ[a,b], there exists i0ββI with aβUi0ββ. Then the single set Ui0ββ already covers [a,b]. So [a,b] is compact in this case.
Assume from now on that a<b, and let (Uiβ)iβIβ be an open cover of [a,b] in R. Define
S={xβ[a,b]:[a,x]Β hasΒ aΒ finiteΒ subcoverΒ drawnΒ fromΒ (Uiβ)iβIβ}.
Since aβ[a,b], there exists i0ββI with aβUi0ββ. Because Ui0ββ is open in the Euclidean sense, Open Subset of Euclidean Space gives a real number r>0 such that every yβR satisfying
(yβa)2<r2
belongs to Ui0ββ. If xβ[a,b] and aβ€x<a+r, then (xβa)2<r2, so xβUi0ββ. Since a<b, there exists cβ[a,b] with c>a and c<a+r; for example one may take c=min{b,a+r/2}. Then [a,c]βUi0ββ. Therefore cβS, so S is nonempty.
Also Sβ[a,b], so S is bounded above by b. By the least upper bound property, there exists a real number sβR such that s=supS in the sense of the supremum definition.
We claim that s=b. Suppose instead that s<b. Since sβ[a,b], the cover property gives some jβI with sβUjβ. Because Ujβ is open in the Euclidean sense, there exists r>0 such that every yβR with
(yβs)2<r2
belongs to Ujβ.
By the approximation property in Supremum (least upper bound), applied with Ξ΅=r/2, there exists tβS such that
sβr/2<tβ€s.
Because tβS, there are finitely many members of the cover whose union contains [a,t]. We show that the same finite family together with Ujβ covers a larger interval. Let xβ[a,s+r/2]. If xβ€t, then x lies in one of the finitely many sets already covering [a,t]. If xβ₯t, then
0β€xβsβ€r/2,0β€sβx<r,
so in either case (xβs)2<r2. Hence xβUjβ. Therefore [a,s+r/2] has a finite subcover drawn from (Uiβ)iβIβ, so s+r/2βS. This contradicts that s is an upper bound for S.
Thus s=b. Since b=supS, one has bβS. Hence [a,b] has a finite subcover. By Compact Subset Criterion via Open Covers in the Ambient Space, the interval [a,b] is compact in R.