  Locke's contemporary G.W. Leibniz, drawing possible inspiration from his mathematical work on differentiation and integration, offered a theory of mind in the Discourse on Metaphysics (1686) that allowed for infinitely many degrees of consciousness and perhaps even for some thoughts that were unconscious, the so called “petites perceptions”. Leibniz was the first to distinguish explicitly between perception and apperception, i.e., roughly between awareness and self-awareness. In the Monadology (1720) he also offered his famous analogy of the mill to express his belief that consciousness could not arise from mere matter. He asked his reader to imagine someone walking through an expanded brain as one would walk through a mill and observing all its mechanical operations, which for Leibniz exhausted its physical nature. Nowhere, he asserts, would such an observer see any conscious thoughts.