Superintelligence From First Principles