User:RaisinBread/Sandbox

Work in progress
Stone Theorem

Theorem
Let $K$ be a compact metric space and $\left(\mathcal{C}(K,\R),\|\cdot\|_{\infty}\right)$ be the Banach space of continuous functions from $K$ to $\R$.

Let $\mathcal{F}$ be a vector subspace of $\mathcal{C}(K,\R)$.

If $\mathcal{F}$ is such that:
 * $\forall f,g\in \mathcal{F}$, the functions $(f\lor g)(x)=\max(f(x),g(x))$ and $(f\land g)(x)=\min(f(x),g(x))$ are also in $\mathcal{F}$.
 * $\forall x,y\in K:x\neq y$, $\exists f\in\mathcal{F}:f(x)\neq f(y)$.
 * The unit function $f_1(x)=1$ is an element of $\mathcal{F}$.

Then $\mathcal{F}$ is everywhere dense in $\left(\mathcal{C}(K,\R),\|\cdot\|_{\infty}\right)$.

Lemma
Let $x,y\in K:x\neq y$.

$\forall a,b\in\R,\exists g\in\mathcal{F}:g(x)=a$ and $g(y)=b$.

Suppose $a=b$.

Let $g=a\cdot f_1$, where $f_1$ is the unit function.

$g\in\mathcal{F}$, since $\mathcal{F}$ is closed under linear combinations.

$\forall z\in K$, $g(z)=a\cdot f_1=a$

Hence, $g(x)=a$ and $g(y)=a=b$.

Suppose $a\neq b$.

Let $f\in\mathcal{F}$ be such that $f(x)\neq f(y)$.

Let $g=\lambda\cdot f +\mu\cdot f_1$,where $f_1$ is the unit function and $\lambda,\mu\in\R:$

$g\in\mathcal{F}$, since $\mathcal{F}$ is closed under linear combinations.

Furthermore,

Therefore, in both cases, $\exists g\in\mathcal{F}:g(x)=a$ and $g(y)=b$.

Let $\epsilon >0,f\in\mathcal{C}(K,\R)$ and $x,y\in K:x\neq y$.

By the lemma, $\exists g_{x,y}\in\mathcal{F}:g_{x,y}(x)=f(x)$ and $g_{x,y}(y)=f(y)$.

$\mathcal{C}(K,\R)$ is closed under linear combinations, so $g_{x,y}-f$ is continuous.

Furthermore, $(g_{x,y}-f)(x)=0=(g_{x,y}-f)(y)$

Thus, by the definition of continuity on metric spaces, There exists an open $\delta$-neighborhood of $y$, $N_{\delta}(y)$ such that:

By Metric Space Compact iff Complete and Totally Bounded, $K$ is totally bounded.

By combining the above and $(1)$, we can find $y_1,...,y_n\in K$ such that $\forall i, y_i\neq x$ and $\displaystyle \bigcup_{i=1}^n N_{\delta}(y_i)=K$.

By the lemma, $\exists g_{x,y_1},...,g_{x,y_n}\in \mathcal{F}$ such that for any $0\leq i\leq n$: