Notes on the Structure of AI