Andrei said:
I am allmost finishing to read "How to prove it" by Daniel Velleman. He teaches that a function is some set of order pairs. I am not willing to deviate from this definition.
Now I have come to the function $$F\colon ^{(A\times B)}C\to ^A\left(^BC\right)$$ defined as follows:
$$F(f)=\{(x,D)\in A\times ^BC\mid D=\{(y,z)\in B\times C\mid f(x,y)=z\}\}$$
Yes, a function can be defined as a certain subset of the cartesian product of its domain and co-domain. This is particularly useful when seeing functions as a special kind of relation (which is an *arbitrary* such subset).
However, in much of mathematics, you will see the following usage:
$x \mapsto f(x)$
and to make things even more confusing, usually just the image is referred to when talking about $f$.
AND...putting things in this form can get really confusing, requiring you to wade through lots of syntactical decisions.
For example, if you are going to write your function:
$F:{}^{A \times B}C \to {}^A({}^BC)$
this way, you are not quite doing it right, you should write:
$F = \{(f,g) \in {}^{A \times B}C \times {}^A({}^BC): g = \{(x,D) \in A \times {}^BC:D = \{(y,z) \in B \times C: z = f(x,y)\}\}\}$
This does not make it any clearer what it going on, which is essentially this:
Path 1: start with a pair $(x,y)$ and end up with $z = f(x,y)$
Path 2: start with $x$ and induce a function $g_x$ which starts with $y$ and ends up with $z = g_x(y) = f(x,y)$.
For example, binary operations are functions:
$S \times S \to S$ (examples: addition, or multiplication).
To write these as triples $(s_1,s_2,s_3)$ is often notationally inconvenient; in fact, it is often simpler to fix an element $a\in S$, and instead of considering the binary operation:
$\ast:S \times S \to S$ given by $\ast(s_1,s_2) = s_1\ast s_2$
consider the family of (single-valued) functions:
$f_a:S \to S$ given by:
$f_a(s) = a \ast s$.
I daresay you *will* encounter constructions like these and it will be to your advantage to at least *recognize* what is going on.