Bijection, injection and surjection

Injective and surjective, i.e. bijective
Injective and non-surjective
Non-injective and surjective
Non-injective and non-surjective

In mathematics, injections, surjections and bijections are classes of functions distinguished by the manner in which arguments (input expressions from the domain) and images (output expressions from the codomain) are related or mapped to each other.

A function maps elements from its domain to elements in its codomain. Given a function f: \; A \to B

\forall x, y \in A, f(x) = f(y) \Rightarrow x = y.\
Or, equivalently (using logical transposition),
\forall x,y \in A, x \neq y \Rightarrow f(x) \neq f(y).\
\forall y \in B, \exists x \in A \text{ such that } y = f(x).\

An injective function need not be surjective (not all elements of the codomain may be associated with arguments), and a surjective function need not be injective (some images may be associated with more than one argument). The four possible combinations of injective and surjective features are illustrated in the diagrams to the right.

Injection

Main article: Injective function
For more details on notation, see Function (mathematics) § Notation.
Injective composition: the second function need not be injective.

A function is injective (one-to-one) if every possible element of the codomain is mapped to by at most one argument. Equivalently, a function is injective if it maps distinct arguments to distinct images. An injective function is an injection. The formal definition is the following.

The function f: A \to B is injective iff for all a,b \in A, we have f(a) = f(b) \Rarr a = b.

Surjection

Main article: Surjective function
Surjective composition: the first function need not be surjective.

A function is surjective (onto) if every possible image is mapped to by at least one argument. In other words, every element in the codomain has non-empty preimage. Equivalently, a function is surjective if its image is equal to its codomain. A surjective function is a surjection. The formal definition is the following.

The function f: A \to B is surjective iff for all b \in B, there is a \in A such that f(a) = b.

Bijection

Main article: Bijective function
Bijective composition: the first function need not be surjective and the second function need not be injective.

A function is bijective if it is both injective and surjective. A bijective function is a bijection (one-to-one correspondence). A function is bijective if and only if every possible image is mapped to by exactly one argument. This equivalent condition is formally expressed as follow.

The function f: A \to B is bijective iff for all b \in B, there is a unique a \in A such that f(a) = b.

Cardinality

Suppose you want to define what it means for two sets to "have the same number of elements". One way to do this is to say that two sets "have the same number of elements" if and only if all the elements of one set can be paired with the elements of the other, in such a way that each element is paired with exactly one element. Accordingly, we can define two sets to "have the same number of elements" if there is a bijection between them. We say that the two sets have the same cardinality.

Likewise, we can say that set A "has fewer than or the same number of elements" as set B if there is an injection from A to B. We can also say that set A "has fewer than the number of elements" in set B if there is an injection from A to B but not a bijection between A and B.

Examples

It is important to specify the domain and codomain of each function since by changing these, functions which we think of as the same may have different jectivity.

Injective and surjective (bijective)

Injective and non-surjective

Non-injective and surjective

Non-injective and non-surjective

Properties

Category theory

In the category of sets, injections, surjections, and bijections correspond precisely to monomorphisms, epimorphisms, and isomorphisms, respectively.

History

This terminology was originally coined by the Bourbaki group.

See also

External links

This article is issued from Wikipedia - version of the Thursday, January 21, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.