Learning Theory from First Principles [pdf]