Let $Z$ be a subspace of a normed linear space $X$ and $x\in X$ has distance $d=\inf\{||z-y||:z\in Z\}$ to $Z$.
I would like to find a function $f\in X^*$ that satifies
$||f||\le1$, $f(x)=d$ and $f(z)=0$
Is it correct that $||f||:=\sup\{|f(x)| :x\in X, ||x||\le 1\}$ because I cannot conclude from this definition that $||f||\le1$
May you could help me with that, thank you very much.