Let $ f : A \rightarrow B $ be the function $f(a) = 0 \forall a \in A $ with A = $\Re $and B = $[0,1]$
In the solution of my exercise, it is written $ f^{-1} (B) = \Re $
I thought that for an inverse to exist for a given function, the function needs to be surjective (and injective too). If this is the case, all elements of the codomain (in this case B) should be mapped to from an element in A. But in this case, the function only maps to 0, not the other elements in B, how is this possible ?