How do I prove that there doesn't exist a unit norm vector at a unit distance from a closed subspace of an infinite dimensional vector space? Let $M$ be a proper closed linear sub space of a normed linear space $X$. If $X$ is finite dimensional, it's a well known result by F.Riesz that there exists a unit vector $x$ such that dist($x,M$)=$inf_{m\in M}\|x-m\|=1$.
This need not be true if $X$ is infinite-dimensional. I have to show that the choice of
$$
X=\{f\in C[0,1]:f(0)=0\}\\
M=\{f \in X: \int_{0}^1 f=0\}
$$
provides a counter example. Can any one please help me with this ?
For every unit norm function $f_0$ in $X$ , I tried designing a function $g_0 \in M$ such that $\|f_0-g_0\| < 1-\epsilon $ or $\|f_0-g_0\|>1+ \epsilon$, but haven't made much progress.
 A: Assume $f_0\in X$ and $\|f_0\|_\infty=1$. Assume wlog. that $c:=\int_0^1 f(x)\,\mathrm dx>0$.
As $f_0(0)=0$ there exists $a>0$ such that $|f_0(x)|<\frac12$ for $0\le x\le a$. Then $$c\le \int_0^1 |f_0(x)|\,\mathrm dx\le  \int_0^a |f_0(x)|\,\mathrm dx+ \int_a^1 |f_0(x)|\,\mathrm dx\le \frac a2+1-a<1$$
Now consider functions $g$ of the form $$g_{q,m}(x)=\max\{f_0(x)-q,-mx\} $$
with $c<q<1$ and $m>0$ and see how $\|f_0-g_{q,m}\|_\infty$ and $\int_0^1g_{q,m}\,\mathrm dx$ behave as $q\to 1$ and $m\to\infty$ (you may have to pick a suitable path to $(1,\infty)$ though). 
A: Let $B$ be a real or complex Banach space, and let $B^*$ be its dual space.That is, $B^*$ is the space of continuous linear functionals $g:B\to S$ (where $S$ is $ R$ for real space $X$ ,and $ S$ is $ C$ for complex space $X$)......For $g\in B^*$ we define $||g||=\sup \{|g(x)|/||x|| :x \ne 0\}$ . Now let $ M_g=\{x\in X: g(x)=0\}$.It is an easy exercise to show that $$(1)... \forall x \in X (|g(x)|=||g||.d(x,M_g))$$ and $$(2)...  g\ne 0 \implies  \forall x\in X (g(x)\ne 0\implies   X=\{s x +y : s\in S\wedge y\in M_g\}.$$Now for $g\neq 0$ we say that $ g$ attains its norm iff $$(3)...\exists x (|g(x)|=||g||.||x||\ne 0).$$ Obviously $g$ attains its norm iff $\exists x (||x||=1\wedge |g(x)|=||g||\ne 0).$ And for $ x\in X$ we say that $x$ attains its distance to $ M_g$ iff $$(4)...\exists y\in M_g (||x-y||=d(x,M_g).$$Now from (1) and (2) we can easily prove : For any $g\in B^*$ with $ g\ne 0 $, $$g\text{  attains its norm }\iff$$ $$\forall x\in X (x \text{ attains its distance to } M_g) \iff$$ $$\exists x\in X \backslash M_g (x \text{ attains its distance to } M_g) .$$ In your Q, we have $g(f)=\int_0^1 f $ .So prove that $||g||=1$. (To show $||g||\geq 1$,consider $f(x)=\min (x,1/n)$ for $ n\in N$.) Then show that ($g(f)\ne 0\implies |g(f)|<||f||$).(Consider that for $f\ne 0$ there exists $d>0$ such that $x\in [0,d]\implies |f(x)|<||f||/2 $ .) Hence $$g \text { does not attain its norm.}$$ Hence by (1) $$(||f||=1\wedge g(f)\ne 0)\implies 1=||g||.||f||>|g(f)=||g||d(f,M_g)=d(f,M_g).$$  Furthermore by  (4),we have $$g(f)\ne 0\implies \forall m\in M_g (||f-m||>d(f,M_g).$$ So for an example we may take any $f\in X$ for which $||f||=1$ and $\int_0^1f\ne 0$ . For instance $f(x)=x$ for $x\in [0,1]$.
