I'm studying Lebesgue integral theory and I came across the concept of Simple function. And there are some definitions of simple function.
I wonder which definition of simple function I should recognize.
In this page https://en.wikipedia.org/wiki/Simple_function, it is said that $f$ is a simple function if there exist a sequence of Lebesgue-measurable sets $\{ E_k \}_{k=1}^{N}$ and a sequence of real numbers $\{ a_k \}_{k=1}^N$ s.t.
\begin{align} &\cdot f= \displaystyle\sum_{k=1}^N a_k \chi_{E_k} (x). \\ &\cdot E_i \cap E_j =\phi \ \text{for }i\neq j.\\ \end{align}
But in my class, I learned the definition of simple function as below.
$f$ is a simple function $\iff$ There exist a sequence of Lebesgue-measurable sets $\{ E_k \}_{k=1}^{N}$ and a sequence of real numbers $\{ a_k \}_{k=1}^N$ s.t.
\begin{align} &\cdot f= \displaystyle\sum_{k=1}^N a_k \chi_{E_k} (x). \\ &\cdot m(E_k)<\infty. \end{align}
Moreover, according to another website, $f: X \to \mathbb{R}$ is a simple function if there exist a sequence of Lebesgue-measurable sets $\{ E_k \}_{k=1}^{N}$ and a sequence of real numbers $\{ a_k \}_{k=1}^N$ s.t.
\begin{align} &\cdot f= \displaystyle\sum_{k=1}^N a_k \chi_{E_k} (x). \\ &\cdot X=\bigcup_{k=1}^N E_k. \\ &\cdot E_i \cap E_j =\phi. \\ \end{align}
Is each definition correct or equivalent to each other? I wonder which definition I should choose.
\varnothing
). $\endgroup$