Hmm... I am not sure i understand fully...
Even infinitesmall sawtooths will have a derivative of +-1, while the horizontal line of course has a derivative of 0. Because of this, deriving the diagonal in this way is not possible as i understand it.
However, you mention that in a sequence...