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). Given a function f:A→B, the image of an element a∈A is the element f(a)∈B in the codomain. The pre-image of an element b∈B is any element a∈A in the domain such that f(a)=b. 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 and only if it is invertible; that is, a function f:X→Y is bijective if and only if there is a function g:Y→X, the inverse of f, such that each of the two ways for composing the two functions produces an identity function: g(f(x))=x for each x in X and f(g(y))=y for each y in Y. For example, the multiplication by two defines a bijection from the integers to the even numbers, which has the division by two as its inverse function. A function is bijective if and only if it is both injective (or one-to-one)—meaning that each element in the codomain is mapped from at most one element of the domain—and surjective (or onto)—meaning that each element of the codomain is mapped from at least one element of the domain. The term one-to-one correspondence must not be confused with one-to-one function, which means injective but not necessarily surjective. The elementary operation of counting establishes a bijection from some finite set to the first natural numbers (1, 2, 3, ...), up to the number of elements in the counted set. It results that two finite sets have the same number of elements if and only if there exists a bijection between them. More generally, two sets are said to have the same cardinal number if there exists a bijection between them. A bijective function from a set to itself is also called a permutation, and the set of all permutations of a set forms its symmetric group. Some bijections with further properties have received specific names, which include automorphisms, isomorphisms, homeomorphisms, diffeomorphisms, permutations, and most geometric transformations. Galois correspondences are bijections between sets of mathematical objects of apparently very different nature.
Definition For a binary relation pairing elements of set X with elements of set Y to be a bijection, four properties must hold:
each element of X must be paired with at least one element of Y, no element of X may be paired with more than one element of Y, each element of Y must be paired with at least one element of X, and no element of Y may be paired with more than one element of X. Satisfying properties (1) and (2) means that a pairing is a function with domain X. It is more common to see properties (1) and (2) written as a single statement: Every element of X is paired with exactly one element of Y. Functions which satisfy property (3) are said to be "onto Y " and are called surjections (or surjective functions). Functions which satisfy property (4) are said to be "one-to-one functions" and are called injections (or injective functions). With this terminology, a bijection is a function which is both a surjection and an injection, or using other words, a bijection is a function which is both "one-to-one" and "onto".
Examples
Batting line-up of a baseball or cricket team Consider the batting line-up of a baseball or cricket team (or any list of all the players of any sports team where every player holds a specific spot in a line-up). The set X will be the players on the team (of size nine in the case of baseball) and the set Y will be the positions in the batting order (1st, 2nd, 3rd, etc.) The "pairing" is given by which player is in what position in this order. Property (1) is satisfied since each player is somewhere in the list. Property (2) is satisfied since no player bats in two (or more) positions in the order. Property (3) says that for each position in the order, there is some player batting in that position and property (4) states that two or more players are never batting in the same position in the list.
Seats and students of a classroom In a classroom, there are a certain number of seats. A group of students enter the room and the instructor asks them to be seated. After a quick look around the room, the instructor declares that there is a bijection between the set of students and the set of seats, where each student is paired with the seat they are sitting in. What the instructor observed in order to reach this conclusion was that:
Every student was in a seat (there was no one standing), No student was in more than one seat, Every seat had someone sitting there (there were no empty seats), and No seat had more than one student in it. The instructor was able to conclude that there were just as many seats as there were students, without having to count either set.
Fingerprints Consider a sample of 100 distinct individuals and the corresponding set of their fingerprints. Assuming that no two individuals in that sample share the same fingerprint, the set is one-to-one (injective). Furthermore, there aren’t any fingerprints without an individual; the set is onto (surjective). Since both sets have the same cardinality and the sets are injective and surjective, then it follows there’s a bijection between the set of individuals and their fingerprints.
More mathematical examples
… excerpt ends here. Continue reading the full article.





