Bijection, injection and surjection

surjective non-surjective
injective

bijective

injective-only

non-

injective

surjective-only

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: \; X \to Y

\forall x, x' \in X, f(x) = f(x') \Rightarrow x = x'.\
Or, equivalently (using logical transposition),
\forall x,x' \in X, x \neq x' \Rightarrow f(x) \neq f(x').\
\forall y \in Y, \exists x \in X \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: X \to Y is injective iff for all x,x' \in X, we have f(x) = f(x') \Rarr x = x'.

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: X \to Y is surjective iff for all y \in Y, there is x \in X such that f(x) = y.

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: X \to Y is bijective iff for all y \in Y, there is a unique x \in X such that f(x) = y.

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 X "has fewer than or the same number of elements" as set Y if there is an injection from X to Y. We can also say that set X "has fewer than the number of elements" in set Y if there is an injection from X to Y but not a bijection between X and Y.

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 Wednesday, April 27, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.