KR2.3

Functions

Definition: let A and B be nonempty sets. A function f from A to B, denoted A→B is an assignment of each element of A to exaclty one element of B.

Terminology

Injections

Definition: A function f is said to be one-to-one, or injective, if and only if f(a) = f(b) implies that a=b for all a and b in the domain of f

Surjections

Definiton: A function f from A to B is called onto or surjective, if and only if for every element b∈B there is an element a∈A with f(a)=b

Bijections

Definition: A function f is a one-to-one correspondence, or a bijeciton, if it is both one-to-one and onto (i.e. both surjective and injective)