It’s as if AI has become a laboratory for understanding the nature of the mind.