Text this: Theoretical Foundations of Artificial General Intelligence