Leibniz’s Metaphysics and Metametaphysics: Idealism, Realism, and the Nature of Substance