I know that one should use
$f\colon A\to B$
instead of
$f: A\to B$
Now I am wondering how one should write the declaration of domain and codomain of a function (i.e. f: A --> B) together with the assignment rule of the function (by which I mean a |--> f(a), where f(a) is the rule). I found the following possibilities:
1.
The function $f\colon A\to B : a\mapsto f(a)$ satisfies ...
2.
The function $f\colon A\to B$, $a\mapsto f(a)$ satisfies ...
3.
The function $f\colon A\to B, a\mapsto f(a)$ satisfies ...
4.
Using words:
The function $f\colon A\to B$ which is given by $a\mapsto f(a)$ satisfies ...
Do you know other possibilities? Which possibility do you recommend using?