This principle is described by Karl Friston as the Free Energy Principle (2010): brains constantly try to make the "error" between expectation and reality as small as possible.