The core of artificial intelligence