The Hamlet doctrine