In mathematics, a bijection, bijective function, or one-to-one correspondence is a function between two sets such that each element of the second set (the codomain) is the image of exactly one element of the first set (the domain). Equivalently, a bijection is a relation between two sets such that each element of either set is paired with exactly one element of the other set.
A function is bijective if it is invertible; that is, a function is bijective if and only if there is a function the inverse of f, such that each of the two ways for composing the two functions produces an identity function: for each in and for each in