Computer-Verified Foundations of Metaphysics and an Ontology of Natural Numbers in Isabelle/HOL