A function is a f⊆A×Bf\subseteq A\times B between AA and BB such that for every a∈Aa\in A there exists a unique b∈Bb\in B with (a,b)∈f(a,b)\in f; we write this bb as f(a)f(a) and denote the function by f:A→Bf:A\to B.

Remarks

The set AA is called the and the set BB the . Functions allow you to form and of subsets and to build new functions via .

Examples
  • The squaring map f:N→Nf:\mathbb{N}\to\mathbb{N} given by f(n)=n2f(n)=n^2 is a function on the .
  • If SS is a of a set AA, the inclusion map i:S→Ai:S\to A defined by i(s)=si(s)=s is a function.