I want to prove that if $f: \mathbb{R} \rightarrow \mathbb{R}$ is continuous a.e. the there is a sequence of step functions $(\phi_n)$ such that $\displaystyle f=\lim_{n\rightarrow \infty }\phi_n$ a.e.
What I thought is that $f$ is Riemann Integrable on any compact, then if I could find a step function $\phi_n$ a.e. within $1/n$ from $f$ on $[-n,n]$ I would be done taking $n \rightarrow \infty $
But I don't think Riemann Integrability is sufficient to get this condition, as the space of regulated functions is a subspace of the Riemann Integrable ones.... any suggestion?
EDIT : Maybe considering $\mathbb{R} $ taking away $\cup _{i=1}^{\infty} I_n$ covering the null set in which $f$ is not continuous, so there is a step function approximating $f$ on this set, then I extend it to a step function on $\mathbb{R}$ by giving it any value on the union of the $I_i$....
EDIT2 ok I will try to expand on my previous edit.
Let $n \in \mathbb{N}$ Consider the covering for the set in which $f$ is not continuous made of the open intervals $(I_n)$ s.t. $\sum l(I_n) < 1/n$
Now $f$ is continuous on the compact $[-n,n] \setminus (\cup I_n)$ so choose the step function $ \theta _n$ to be s.t. $|\theta_n - f|<1/n$ on this compact.
Now consider $\phi_n$ defined on the all $[-n,n]$ to be equal to $1$ where $\theta_n$ is not defined.
Then $\phi_n$ is a step function and as $n \rightarrow \infty$ it converges to $f$ almost everywhere.
What do you think of this?
(1) do you mean "Now $f$ is continuous on the compact $[−n,n]\cap\bigcap_n I_n^C$ so..." (where $I_n^C$ is the complement of $I_n$)? Cause otherwise I don't see why $f$ should be continuous, nor why such set should be compact.
(2) From your idea I presume that you already know that continuous functions are approximable with step functions, don't you?
(3): What exactly do you mean with step functions? I mean, are they required (just) to be measurable?
– AndreasT Feb 10 '13 at 10:39