This question comes from my class. The instructor asks if there is a bounded function defined on $[0,1]$ whose derivative is $0$ almost everywhere (in the Lebesgue sense) but does not have bounded variation.
The example he gives is the limit of the following sequence.
Consider the Cantor-Lebesgue function $f(x)$ defined on $[0,1]$ with $f(0)=0$ and $f(1)=1$. This function is increasing and has total variation $1$ on $[0,1]$ and has derivative $0$ almost everywhere.
Now we squeeze the function to the left and each time we add another copy.
Let $f_2(x) = f(2x)$ if $x\in[0,\frac{1}{2}]$ and $f_2(x) = f(2(x-\frac{1}{2}))$ if $x\in(\frac{1}{2},1]$. Then $f_2$ still has derivative $0$ almost everywhere but its variation increase to $2$.
Let $f_3(x) = f(3x)$ if $x\in [0,\frac{1}{3}]$, $f_3(x)=f(3(x-\frac{1}{3}))$ if $x\in(\frac{1}{3},\frac{2}{3}]$ and $f_3(x)=f(3(x-\frac{2}{3}))$ if $x\in (\frac{2}{3},1]$. Then the function still has derivative $0$ almost everywhere but its total variation increases to $3$.
Keep doing this process, For each $i =0,1,\dots,n-1$, $f_n(x) = f(n(x-\frac{i}{n})) $ if $x\in[\frac{i}{n},\frac{i+1}{n})$.
Then each $f_n$ has derivative $0$ but total variation $n$. So if the limit exists, we would expect it to have derivative $0$ almost everywhere but unbounded variation.
But I did not see a way to argue such limit do exist (I feel it diverges at each point...) and even if it exists, the zero derivatives almost everywhere and unbounded variation seem to be hard to argue.
I would like to see if the above serves as an example to the claim that there is a bounded function on $[0,1]$ with derivative $0$ almost everywhere but unbounded total variation. It would be more helpful if one can give me another (simpler?) example or whether the claim is true or false.