Realism Regained: An Exact Theory of Causation, Teleology, and the Mind