There is a result of the form:
If $u$ is a Sobolev function on some domain then $\nabla u = 0$ on $\{ x \mid u(x) = c\}$ where $c$ is constant.
Can someone point me to a specific reference? I cannot find it anywhere. I want to know the precise assumptions on the domain.
On Evans and Gariepy's book, page 130, Theorem 4 (iv), is the result you want. Remember "a.e." is the key element here.