Historically, the field of artificial intelligence is about researching what humans can do, but computers can not.
Once you figure out how to make computers do something, it stops being artificial intelligence :) .
Once you figure out how to make computers do something, it stops being artificial intelligence :) .
What you say, that it's AI if it's learned from data, that applies to machine learning, but machine learning is only one branch of AI. Of course it's the branch that most people know today, but go maybe a few years back and have a look at e.g. the classes on AI taught at places like Stanford or MIT etc, and you'll find that they're all about probabilities and logic, and machine learning does not feature very prominently. You can see the same thing in the staple AI textbook, "AI- A Modern Approach", which is pretty much all hand-crafted approaches.