How to understand Arzela-Ascoli theorem? This is a somewhat stupid question..
In my notes, the Arzela-Ascoli theorem is stated like this:
Let $X$ be a compact space and let $M\subset C(X,\mathbb R)$. Then $M$ is relatively compact in $C(X,\mathbb R)$ if and only if it is uniformly bounded and equicontinuous.
But since every function in $M$ is continuous (belong to $C(X,\mathbb R)$) and bounded (since $X$ is compact), aren't the conditions in the theorem just an interpretation of the fact that $M\subset C(X,\mathbb R)$?
I come up with this question because I was trying to solve questions like: given a subset $M\subset C[0,1]$ with some other conditions, and to prove that $M$ is relatively compact in $C[0,1]$. I tried to use the theorem, but then I ended with:$M\subset C[0,1] \Rightarrow M$ is uniformly bounded.
$[0,1]$ is compact $\Rightarrow$ $\forall f\in M$, $f$ is uniformly continuous.
$\Rightarrow \forall \epsilon >0, \exists \delta>0$ such that $|x-y|<\delta \Rightarrow |f(x)-f(y)|< \epsilon$
Then doesn't this imply uniformly bounded and equicontinuous directly without using other condition of M?
Any help is appreciated!
 A: The conditions of Arzela-Ascoli are "uniformly bounded" and "equicontinuous" and not "each function is bounded" and "each function is uniformly continuous". The prefixes "uniformly" and "equi" suggest that those are conditions that are relevant for a set $M$ of functions and cannot be checked for each function $f \in M$ separately. Let us review the relevant definitions:


*

*A set $M \subseteq C(X,\mathbb{R})$ is uniformly bounded if there exists $L > 0$ such that for all $f \in M$ we have $\sup_{x \in X} |f(x)| \leq L$. It is true that each function in $M$ is bounded because it is a continuous function on a compact space but it doesn't mean that all the functions in $M$ can be bounded by the same constant.

*A set $M \subseteq C(X,\mathbb{R})$ is equicontinuous if for every $\varepsilon > 0$ there exists $\delta > 0$ such that for all $f \in C(X,\mathbb{R})$ we have $|x - y| < \delta \implies |f(x) - f(y)| < \varepsilon$. Again, it is true that each function in $M$ is uniformly continuous but it doesn't mean that we can automatically find a $\delta$ that works simultaneously for all the functions in $M$, only for each function separately. 

