Descarte, Locke, and Leibniz: Theories about sleep

Descartes, Locke, and Leibniz each had a theory about what happens to the mind during sleep. Explain the theoretical differences, as well as the similarities (there is a point of agreement between Descartes and Locke, and between Descartes and Leibniz). Which theory...