I am reading a logic book (section 17.5) and there is some terminology in it about functions. It says that
We also say a function f is
from a set A if its domain is a subset of A
on a set A if its domain is A
into a set B if its range is a subset of B
onto a set B if its range is B
I agree about the last two definition about codomain, but the first two confused me, because I have known that :
a function from a set X to a set Y assigns to each element of X exactly one element of Y
(https://en.wikipedia.org/wiki/Function_(mathematics))
I have never heard "on a set A if its domain is A", can you please say which terminology is correct, wiki or the book ? Many book use "from a set ..." wording and i understand all elements in the given set as domain, not its some subsets.
disclaimer: there is some suggestion links about my question such that they may be similar,but i have confused about the domain terminology bot codomain part