Let $f:\mathbb{R}^n\to \mathbb{R}$ be continuous and bounded. Let the gradient of $f$ be continuous almost everywhere and let it be uniformly bounded wherever it is defined, i.e. $\|\nabla f(x)\|\le M$ for any $x\in\mathbb{R}^n$, where $M$ is a positive constant. Can we say that $f$ is globally Lipschitz continuous?
If so, where can we find a formal proof?
If not, can we provide a counterexample? (I.e., a function $f:\mathbb{R}^n\to \mathbb{R}$ that is continuous and bounded, has uniformly bounded gradient but is not Lipschitz.)
Remark. This question has been answered (positively) for $n=1$ in If $f$ is continuous and piecewise $C^1$ and $f'$ is bounded a.e., is $f$ Lipschitz?.
Remark. This question has been answered (positively) for $f$ continuously differentiable in A continuously differentiable map is locally Lipschitz. However, from the answer given there, I seem to understand that continuity of the derivatives can be relaxed to boundedness of the derivatives. If this is actually the case, then my question is also answered (positively) in that post. But judging from the following remark, I may be missing something.
Remark This paper http://www.sciencedirect.com/science/article/pii/S0024379512002741 seems to prove that there DO exist counterexamples (i.e. functions that are continuous, have uniformly bounded derivatives but are NOT Lipschitz). However, I must confess I do not understand their proof.