Prove that a continuous function on a compact set is uniformly continuous.
- User
Prove that a continuous function on a compact set is uniformly continuous.
- Assistant
Theorem
Let be compact and continuous. Then is uniformly continuous on .
Proof (by Contradiction, using Sequential Compactness)
Assume is not uniformly continuous. Then such that , with but .
In particular, for each integer , take . Then with [ |x_n - y_n| < \frac{1}{n}, \quad |f(x_n) - f(y_n)| \geq \varepsilon. ]
Since is compact, the sequence has a convergent subsequence with for some .
Now, as , so as well.
By continuity of at , [ f(x_{n_k}) \to f(x), \quad f(y_{n_k}) \to f(x). ] Thus, [ |f(x_{n_k}) - f(y_{n_k})| \to 0. ] But for all , a contradiction.
Therefore, is uniformly continuous on .
Q.E.D.
(Note: This proof works in any compact metric space. Compactness of follows from the Heine-Borel theorem.)
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.