A surjective function (aka surjection, or onto function) is a function that is a surjective relation, i.e. such that every element of the codomain is mapped by to some element in the domain.
For each element of the function's codomain, there exists at least one element in the function's domain such that .
The French word sur means over or above, and relates to the fact that the image of the domain of a surjective function completely covers the function's codomain.
Let . The function is said to be surjective provided that the codomain is the image of the function's domain :
For every in ,
there exists at least one in
such that .