Mathematics — Real Analysis · dirichlet-function-pointwise-limit
Problem
(Challenging): The Dirichlet function f:[0,1]→R, that is the function such that f(x):=1 if x∈Q and f(x):=0 if x∈/Q, is not the pointwise limit of continuous functions, although this is difficult to show. Prove, however, that f is a pointwise limit of functions that are themselves pointwise limits of continuous functions themselves.