(I reorganized my question.) We have a function $f$ mapping the integers $\{1, . . . , 2^k\}$ ONTO the integers $\{1, . . . , 2^k \}$ such that when these integers are represented in binary, and $f$ is polynomial time computable but the inverse function $f^{-1}$ is not polynomial time computable. Define a language $L =\{(x,y) | f^{-1}(x)<y\}$. Show that this language $L$ is in NP.
$f$ is surjective, so $f^{-1}$ is adjective. Since $f$ is polynomial time computable, so we can find $f(f^{-1}(x))=x$ in polynomial time, but $f^{-1}(x)$ is not polynomial time computable, how can we compare $f^{-1}(x)<y$?