The Mathematics of Artificial Intelligence