Learning From Simulators: A Theory of Simulation-Grounded Learning