Question: what is the difference between function and transformation?
Answer: No. A function is when you match one x (value from the source) to one y (value from the image). As you said if there is a value in the source with more than 1 value in the image, then it is not a function. A transformation is a function.