The ability and inability of artificial intelligence