If $f^{-1}(f(x))=x$ for all $x$ in the domain of $f$ you could say: $f$ has a left inverse, or $f$ is injective, or that $f$ is a monomorphism ($f$ is monic).
In the program you could say that that $f$ does not have a left inverse or that $f^{-1}$ is not $f$'s left inverse.