Explaining separability in C[0,1]
I need to discuss the separability of the space C[0,1] under the usual metric, typically the sup norm. The classic approach uses polynomials with rational coefficients, which form a countable dense subset, backed by the Weierstrass approximation theorem. However, since the user hasn't specified a metric, I should clarify assumptions. Many textbooks support the proof using piecewise linear functions with rational breakpoints, demonstrating that we can approximate any continuous function uniformly, leading to countable dense sets and thus establishing separability.Defining the metric space C[0,1]
I want to define the metric space C[0,1] with the metric d(f, g) as the supremum of |f(x) - g(x)| for x in [0,1]. Next, I need to show there’s a countable dense subset. One option is using piecewise linear functions with rational breakpoints and values.
I know that continuous functions on the compact interval [0,1] are uniformly continuous. Given ε>0, I can find δ to ensure that I can approximate any continuous function uniformly with these piecewise linear functions. I'll utilize nodes to define a function p(x) through linear interpolation between rational breakpoints and values.Bounding errors in approximation
I recognize that the first term of the error is less than ε/4 due to uniform continuity, since |x - k/n| ≤ 1/n < δ. The second term is also under ε/4 thanks to the rational approximations.
For the third term, I can bound it with |q_k - p(x)|, looking at the maximum differences between rational approximations. I realize that using uniform continuity, I can find that the difference between adjacent function values is also less than ε/4. However, the cumulative estimates might exceed ε, so I need a more symmetrical method to compute this error effectively.Computing interpolation and bounding errors
I want to compute the interpolation function p(x), defined as (1−s)q_k + s q_{k+1}. I'll consider g(x) as the linear interpolation of the function values at k/n and (k+1)/n.
I know that |f(x)−p(x)| can be bounded by adding |f(x)−g(x)| and |g(x)−p(x)|. The bound for |g(x)−p(x)| looks manageable since it's based on how close our rational approximations are to the actual function values. However, when tackling |f(x)−g(x)|, I realize it's difficult to pin down; it could be larger due to the properties of convex combinations, which complicates establishing a bound.Using modulus of continuity for approximation
I’m considering an alternative approach using the modulus of continuity since the function is uniformly continuous. This lets me pick a partition with a mesh smaller than δ/2, leading to piecewise linear interpolation.
By approximating the function directly with its values at nodes, I create a function h(x). I can easily show the uniform error is less than ε/2 due to uniform continuity. As I refine the partition, I apply a rational approximation for the piecewise linear function and manage the error at each step. Ultimately, I want to ensure the total approximation error stays well within the specified ε by setting appropriate closeness for my rational approximations.Verifying separability in function space
I’m looking to show that the space of continuous functions on [0,1] is separable. Starting with piecewise linear functions, I ensure that the approximations meet the uniform continuity requirements.
By approximating the continuous function with rational values, I create a piecewise linear function that remains dense in the space. I define a method for constructing these approximations clearly, ensuring that the total errors remain within specified bounds, ultimately demonstrating that the continuous functions can indeed be closely approximated and confirming the separability of C[0,1].Demonstrating separability of continuous functions
I’m showing that the space of continuous functions on [0,1] is separable. I start by defining the set D, which includes piecewise linear functions with rational values at specific breakpoints.
Next, I need to demonstrate that this set is both countable and dense. For countability, I note that each function can be uniquely identified by rational vertices. Then, I show how any continuous function can be approximated uniformly by functions in D, confirming that the closure of D is equal to C[0,1]. This establishes the separability!Finalizing clarity on the proof
Since h(x) is a linear interpolation between y_k and y_{k+1}, it follows that h(x) is also within ε/4 of f(x). This is because y_k and y_{k+1} are both in the range of (f(x)−ε/4, f(x)+ε/4). The interior of the segment connecting them is within that range as well, which is an essential point, though somewhat trivial. I’ll make sure to clearly highlight both the countability and the density aspects in my final write-up for clarity. Let (C[0,1]) be the set of real-valued continuous functions on ([0,1]), equipped with the metric
[
d(f,g) = \sup_{x\in[0,1]} |f(x)-g(x|
]
(the uniform / sup norm). We must show that ((C[0,1],d)) is separable, i.e. it has a countable dense subset.
1. Define a candidate countable dense subset
For each (n\in\mathbb{N}), consider the partition
[
0 = x_0 < x_1 < \dots < x_n = 1, \quad x_k = \frac{k}{n}.
]
Define (D_n) to be the set of all continuous functions (g:[0,1]\to\mathbb{R}) that are:
- linear on each interval ([x_k,x_{k+1}]), and
- take rational values at the partition points: (g(x_k)\in \mathbb{Q}) for each (k=0,\dots,n).
Each such function (g \in D_n) is completely determined by the ((n+1))-tuple
[
\bigl(g(x_0),g(x_1),\dots,g(x_n)\bigr) \in \mathbb{Q}^{,n+1}.
]
So there is a bijection (D_n \cong \mathbb{Q}^{n+1}). Since (\mathbb{Q}) is countable and a finite product of countable sets is countable, each (D_n) is countable.
Now set
[
D := \bigcup_{n=1}^\infty D_n.
]
This is a countable union of countable sets, hence (D) is countable.
We will show that (D) is dense in (C[0,1]).
2. Approximate an arbitrary continuous function
Let (f\in C[0,1]) and let (\varepsilon > 0) be given. We must find (g \in D) such that
[
\sup_{x\in[0,1]} |f(x)-g(x)| < \varepsilon.
]
Step 1: Approximate by a piecewise linear function with real values
Since (f) is continuous on the compact interval ([0,1]), it is uniformly continuous. Thus there exists (\delta > 0) such that
[
|x-y| < \delta \quad\Rightarrow\quad |f(x)-f(y)| < \frac{\varepsilon}{4}.
]
Choose (n\in\mathbb{N}) so large that
[
\frac{1}{n} < \delta,
]
and define the partition (x_k = k/n). For each (k = 0,\dots,n), let
[
y_k := f(x_k).
]
Define (h:[0,1]\to\mathbb{R}) to be the function that is linear on each ([x_k,x_{k+1}]) and satisfies (h(x_k)=y_k). So (h) is the polygonal line interpolating (f) at the grid points.
We claim
[
\sup_{x\in[0,1]} |f(x)-h(x)| \le \frac{\varepsilon}{4}.
]
Let (x\in[x_k,x_{k+1}]). Because the interval length is less than (\delta), we have
[
|x - x_k| \le \frac{1}{n} < \delta,
\quad
|x - x_{k+1}| \le \frac{1}{n} < \delta,
]
so by uniform continuity,
[
|f(x) - f(x_k)| < \frac{\varepsilon}{4},\qquad
|f(x) - f(x_{k+1})| < \frac{\varepsilon}{4}.
]
That is, both (y_k = f(x_k)) and (y_{k+1} = f(x_{k+1})) lie in the interval
((f(x) - \varepsilon/4,, f(x) + \varepsilon/4)).
But (h(x)) is a convex combination of (y_k) and (y_{k+1}), so it lies between them. Hence
[
h(x) \in (f(x) - \varepsilon/4,, f(x) + \varepsilon/4),
]
i.e. (|f(x) - h(x)| < \varepsilon/4). Since (x) was arbitrary,
[
\sup_{x\in[0,1]} |f(x)-h(x)| \le \frac{\varepsilon}{4}.
]
Step 2: Approximate the vertex values by rationals
For each (k=0,\dots,n), choose a rational number (q_k\in\mathbb{Q}) such that
[
|q_k - y_k| = |q_k - f(x_k)| < \frac{\varepsilon}{4}.
]
Define (g:[0,1]\to\mathbb{R}) by:
- (g(x_k) = q_k) for (k=0,\dots,n),
- (g) is linear on each interval ([x_k,x_{k+1}]).
Then (g \in D_n \subset D), since all node values (q_k) are rational.
Now we estimate (|h(x)-g(x)|). For (x\in[x_k,x_{k+1}]), we can write
[
x = (1-t)x_k + t x_{k+1}, \quad t\in[0,1],
]
and then
[
h(x) = (1-t) y_k + t y_{k+1},\qquad
g(x) = (1-t) q_k + t q_{k+1}.
]
Thus
[
h(x) - g(x)
= (1-t)(y_k - q_k) + t (y_{k+1} - q_{k+1}).
]
Therefore
[
|h(x) - g(x)|
\le (1-t) |y_k - q_k| + t,|y_{k+1} - q_{k+1}|
< (1-t)\frac{\varepsilon}{4} + t\frac{\varepsilon}{4}
= \frac{\varepsilon}{4}.
]
So
[
\sup_{x\in[0,1]} |h(x)-g(x)| \le \frac{\varepsilon}{4}.
]
Step 3: Combine the estimates
By the triangle inequality,
[
\sup_{x\in[0,1]} |f(x)-g(x)|
\le \sup_{x} |f(x)-h(x)| + \sup_{x} |h(x)-g(x)|
\le \frac{\varepsilon}{4} + \frac{\varepsilon}{4}
= \frac{\varepsilon}{2} < \varepsilon.
]
Thus we have found (g \in D) such that (d(f,g) < \varepsilon). Since (f\in C[0,1]) and (\varepsilon>0) were arbitrary, this shows that (D) is dense in (C[0,1]).
3. Conclusion
We have constructed a subset (D \subset C[0,1]) that is:
- countable, and
- dense in ((C[0,1], d)).
Therefore, (C[0,1]) with the supremum metric is separable.