To an observer, it is clear that a sleeping dog is dreaming. Expressive twitches, leg kicks and the…