I'm a bit confused about the definition of a Lebesgue measurable function. On one hand we have the definition specific to Lebesgue measure:
$f$ is Lebesgue measurable if for every open set U in $ \mathbb{R} $, $ f^{-1}$(U) is Lebesgue-measurable.
On the other hand we have the general definition of a measurable function:
$f:(X,\Sigma)\rightarrow (Y,\Delta)$ is measurable if for every measurable set $A$ (i.e. $A \in \Delta$), $f^{-1}(A) \in \Sigma$.
Consider the second definition above, in the measure space $(\mathbb{R},\Sigma)$ where $\Sigma$ is the set of Lebesgue-measurable sets. Let $m$ denote the Lebesgue measure. So a Lebesgue-measurable function is not necessarily $m$-measurable, since not every Lebesgue-measurable set is open/Borel?
Any inputs are highly appreciated.