Perhaps it's not realy sleep, but more often than not I wake up with the solution, or at least more ready to tackle the solution.
I've also found almost ubiquitously that whatever had me completely confounded the night before is a hell of a lot easier to work out in the morning.
Perhaps it's just me but I find that sleep for me is a natural reaction to mental stress, and I always feel better afterwards.