I need to prove
The vector space of continuous real valued functions defined on a closed interval $[0,1]$ $(C[0,1],\Vert \Vert_{\infty})$, is not finite dimensional.
Using the following theorem Let X be a normed vector space and let $S = \{x ∈ X : || x || = 1\}$ be the closed unit ball in X. If S is compact then X is finite dimensional.
My Attempt: First let $X=(C[0,1],\Vert \Vert_{\infty})$ and note that $X$ has an infinite basis (as the space $P(\mathbb{R}) \subseteq X$ and $P(\mathbb{R})$ has a infinite linearly independent basis) represented as $(b_1,b_2,b_3,...)$ linearly independent elements. For each natural number $k$, let $Y_k=span\{b_1,b_2,b_3,...,b_k\}$ and let $Y_0=\{0\}$. Then for each $k,Y_k$ is a proper subspace of $Y_{k+1}$.
By Riesz’s lemma, for each $k$ there exists $x_k$ in $S=\{x∈X:||x||_{\infty}=1\}$ such that $\Vert Y_k-x_k \Vert_{\infty} ∈ (1/2, 1]$. Also, if $j ≠ k, || x_k – x_j || ≥ 1/2$. Then we have a sequence $\{x_1, x_2, x_3, ..., x_j, ... \} ⊆ S = \{x ∈ X : || x || = 1\}$ a closed and bounded set which is then compact. But since $j ≠ k$ implies $|| x_k – x_j || ≥ 1/2$, no subsequence of $\{x_1, x_2, x_3, ..., x_j, ... \}$ is Cauchy and so no subsequence can converge, contradicting the fact that $S$ is compact. As $S$ is not compact $X$ is not finite dimensional.
Note: I have looked and found posts similar to this and this, and they do not answer my question, as they do not use the above theorem/use the concept of a closed unit ball.