AI and history