How to predict the laws of the universe