Let us have measurable spaces $(S_1, \Sigma_1)$ and $(S_2, \Sigma_2)$. Idea of measurable function $f$ with respect to $\Sigma_1,\Sigma_2$ is the following. $f:$ $S_1 \to S_2$ has to be such that: $$\forall E_2: f^{-1}(E_2) \in \Sigma_1, $$ where $ E_2 \subset \Sigma_2, E_1 \subset \Sigma_1 $.
Another author looks for elements of $S_1$, lets say $x$, and says that function $f$ is measurable if: $$\{x: f(x) \in E_2 \} \in \Sigma_1 $$
My question is: WHY we have: $f$ from the $S_1 \to S_2$ but not $f$ from the $E_1 \to E_2$!?
Or, if we wish to travel from sets, then the inverse function $f^{-1}$ will be from the $S_2 \to S_1$.
I made a sketch of the 1st definition of this measurable function, and my picture does not seems to be coherent with what I naturally want to find.
I mean for me it would be natural to define that $f^{-1}$ goes back the same route from which it started ($S_2 \to S_1$).
wikipedia and few books I have been reading does not shed light on this topic except what is unclear for me. Other googling did not help either. thank you.
UPDATE Thank you all very much. All three answers complement each other and give me a wider picture of what to think about. I was thinking the hole day, and will after a while, but I have troubles and many ideas still somehow mix in the head.
To summarize. The first take home message I got:
1) From simple calculus. We build image and preimage functions firstly on elements of some set. Then we have something like a function on sets.
2) There is no restrictions ( inverse exist, or it is injective, surjective or bijective function) for measurable function $f$.
3) There was a great insight why exactly preimage is what we have to use in building the mapping. But I agree it somewhere in my heart, and still try to make it more understandable to brain and I fail. I will post below more text about what I understand and what I do not.
4) What about second definiton where we have just image. I mean, are these definitions equal? It does not use preimage function.
5) I am also trying to find analogue in Probability Theory, where we have measurable space $(\Omega,\mathcal{F})$, measurable function(r.v.) $X$ that makes mapping $X: \Omega \to \mathcal{R}$, where $(\mathcal{R},\sigma(\mathcal{R}))$ is another measurable space.
My question here is the following. Let $w \in \Omega, X(w) \to r$ where $r \in \mathcal{R}$. $X^{-1}(r) = w$. Here we do not use correspondence of subsets of sigma algebras. Am I right? I omitted which r and w should be because I think I can write something stupid=)
6)And to conclude. The general problem/question for me was and remains, that I still try to imagine in my head that we should have for a measurable function some kind of correspondence of image and preimage, but this is not enough(or other reason stated) as I read from answers. Maybe there is possible to do example/picture to answer the question of the reason of function (image) to be from set X to set Y, while the preimage function may work not necessary with the same “matter”, in our case some subsets of sigma algebras, that are generated by initial sets (or shortly part of my question is: why measurable function is not an inversion function that maps from same sets X and Y?).
Am I right that this definition of measurable function ( $\forall E_2: f^{-1}(E_2) \in \Sigma_1, $) allows for certain sets $E_1$ to have no correspondence with all the subsets of sigma algebra $\Sigma_2$? If yes, this is the point where $f$ may have mapping from $E_1$ to a an empty set $\emptyset$?
FIN1. Is such a mnemonics mathematically correct:
Function $f$ that is an image of set $X$ to set $Y$ (here I mean image of every element $x$ of $X$ to elements $y$ of $Y$) is measurable, if for any subset generated by $\sigma(Y)$ we have a preimage that is inside a $\sigma(X)$.
FIN2.And again,
For every function $f$, subset $A$ of the domain and subset $B$ of the codomain we have $A \subset f^{−1}(f(A))$ and $f(f^{−1}(B)) \subset B$.
If $f$ is injective we have $A = f^{−1}(f(A))$ and if ''f'' is surjective we have $f(f^{−1}(B)) = B$.
So, in order to understand this better I wanted at least to show myself visually that this holds.
I have included picture of my thoughts which give me completely opposite result. Should I post this as separate question?