The following question is from $C^*$- Algebras by Example written by Kenneth R. Davidson. The original question is Problem III.6 in exercises after Chapter 3.
$\mathit{Definition}$: A $C^*$- Algebra $\mathfrak{A}$ is called approximately finite (or AF) iff it is the closure of an increasing union of finite dimensional subalgebras $\mathfrak{A}_k$.
Let $X$ be the Cantor set constructed by the traditional "middle-third" method. Say $J_0 = [0, 1]$, $J_1 = [0, \frac{1}{3}]\,\bigcup\,[\frac{2}{3}, 1]$ and $J_n$ be the $2^n$ disjoint intervals constructed in the same way. According to the textbook, define $\mathfrak{A}_n$ be the subalgebra of functions in $C(X)$ which are constant in $J_n$. Hence we have $C(X) = \overline{\bigcup_{n \geq 0}\,\mathfrak{A}_n}$. Here the topology is induced by the $\| \cdot \|_{\infty}$ norm and so is $C[0, 1]$. The question wants us to show $C[0, 1]$ can be embedded into $C(X)$ and the embedding image, as a subalgebra of $C(X)$ is not AF. Since $C(X) \subseteq C[0, 1]$, define $\mathcal{C}_n = \{f \in C[0, 1]\,\vert\,f$ is constant in each disjoint interval of $J_n \}$. Then I believe $\overline{\bigcup_{n \geq 0} \mathcal{C}_n} = C[0, 1]$ and let the embedding be $\iota: C[0, 1] \rightarrow C(X), f \rightarrow f \vert_X$. I can not see why the image fails to be AF (very likely the embedding is wrong ...).
One of the key characterization of AF-Algebra in the same book is:
$\mathit{Theorem\,III.4}\,$: A $C^*$- Algebra $\mathfrak{A}$ is AF iff $\mathfrak{A}$ is separable and: $$(\ast) \hspace{0.2cm} \forall\,\epsilon > 0\,\text{and}\,A_1, A_2, \dots, A_n \in \mathfrak{A} \hspace{0.2cm} \exists\,\text{a subalgebra}\,\mathcal{B} \leq \mathfrak{A}\,\text{with}\,dim[\mathcal{B}] < \infty \\ \text{such that}\,d(A_i, \mathcal{B}) < \epsilon\,\forall\,1 \leq i \leq n$$
$C[0, 1]$ is separable but I can not see why $(\ast)$ fails in $C[0, 1]$ either. Any hints will be appreciated.