Thinking through AI, cognition, and learning systems