Uniformly Continuous iff Compact and Continuous

Theorem

A continuous function on a compact set is uniformly continuous.

The idea here is that in our example in Lecture 26 - Uniform Continuity#Back to Uniform Continuity the function f would be still continuous if A=[0,1] instead (same definition of f, just include the endpoints on the interval). In contrast, g couldn't get that same extension.

Proof

Let f:K→R be continuous, with K being compact.

To show f is uniformly continuous, follow the definition. Let ε>0. Since f is continuous, then δ>0 where ∀x∈K then picking ∀x′∈K has 0<|x−x′|<δ→|f(x)−f(x′)|<ε2.

The problem here is that δ may change with each x, so first notice that if I consider the following collection (we denote the δ we choose for each x as δ(x)):

{Vδ(x)2(x)|x∈K}

This is an Open Cover of K. By the Heine-Borel Theorem (Compact Equivalences) then there is a finite subcover ∃x1,x2,…,xn such that:

K⊆Vδ(x)2(x1)∪⋯∪Vδ(xn)2(xn)

Now choose δ=min{δ(x1)2,…,δ(xn)2}. Let x,y∈K where |x−y|<δ. Consider x∈K then by our construction then ∃xk such that x∈Vδ(xk)2(xk). Therefore, using the given for being continuous then:

⇒|x−xk|<δ(xk)2<δ(xk)⇒|f(x)−f(xk)|<ε2

Now notice:

|y−xk|≤|y−x|+|x−xk|<δ+δ(xk)2≤δ(xk)2+δ(xk)2=δ(xk)⇒|f(y)−f(xk)|<ε2 Def’n Continuity

Now using that we got |f(x)−f(xk)|<ε2 then:

|f(x)−f(y)|≤|f(x)−f(xk)|+|f(xk)−f(y)|<ε2+ε2=ε

☐