Can a function have multiple codomains? The definition of codomain of a function is that it is a superset of the range of the function. But I have doubt whether the definition means that a codomain is
- any superset of range of the function.
- a superset of range, defined by the author of a problem.
From 1 it is clear that there can be infinite codomains of a function. For example suppose we have $f=\{(1,1), \ (2,3)\}$ then in sense 1 the possible codomains can be $c_1=\{1,3,2\}$ $c_2=\{1,4,2\}$. But I never encountered mention of multiple codomains in any book and hence I think the standard definition of codomain is the second one. And hence a problem must specify its codomain, like by using the notation $f:A\rightarrow B$ where $A=\{1,2\}$ and $B=\{1,5,2\}$ and hence $f$ has only one codomain, in sense 2.