Definition. Function [00KF]

A partial function f\colon A\mathbin {\rightharpoonup } B is called total whenever its domain of definition coincides with its domain (source), i.e. we have f{\mathopen {}\left (a\right )\mathclose {}}{\downarrow } for all a:A. In this case, we will write f\colon A\to B and refer to it as a function or a map. Sometimes, we redundantly refer to it as a total function.

Just as we write \mathrm {Rel}{\mathopen {}\left (A,B\right )\mathclose {}} and {\mathopen {}\left (A\mathbin {\rightharpoonup } B\right )\mathclose {}}for the sets of relations and partial functions from A to B respectively, we shall write {\mathopen {}\left (A\to B\right )\mathclose {}} for the set of functions from A to B.