Let $E$ be a Banach space and $M\subset E$ a linear subspace, let $f_{0} \in E^*$.
Prove that: $\exists \, g_{0}\in M^\perp$ such that : $\inf_{g\in M^\perp} \|f_0−g\|=\|f_0 - g_0\|$
where:
$M^{\perp}:= \{f\in E^{*} \, : \, f(x)=0 \ ∀x\in M\}$.
I considered $a:=\inf_{g\in M^\perp}\|f_0−g\|$ and I tried the definition of the infinimum and arrived to a sequence $g_{n}$ in the closed ball $B(f_0,a+1)$ which is weak* compact by Banach-Alaoglu-Bourbaki theorem. I couldn't get any further.