algebra set-theory Definition Function A function f is a relation between two sets A and B where each a∈A is in relation to exactly one b∈B: ∀a∈A:∃!b∈B:f(a)=b