World model learning and inference. (December 2021)