Let $P = \{ 1,2,3 \}$ and $I = \{2,4\}$. And $f:P\to I$ such that $f(1) = 2$ and $f(2) =4$.
Does it make sense in this case to say that $f$ is surjective or injective even if $f$ is not defined on $3 \in P$?
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It only takes a minute to sign up.
Sign up to join this communityLet $P = \{ 1,2,3 \}$ and $I = \{2,4\}$. And $f:P\to I$ such that $f(1) = 2$ and $f(2) =4$.
Does it make sense in this case to say that $f$ is surjective or injective even if $f$ is not defined on $3 \in P$?
What you are talking about are called partial functions. And yes, you can talk about injectivity and surjectivity with them however, you have to restrict to the domain where they become functions. So you don't really gain anything.