All intelligence is maths. I’d not typically say that all maths is intelligence, but anything that uses maths to respond to its environment in a way that takes inputs and selects an appropriate response is acting intelligently (to some extent).
AI is mostly used (by actual programmers) to refer to any programming technique that uses a training step, eg where the logic is not manually provided, and instead some form of training/learning technique is used.
The exact boundary is a little grey and has shifted over time (nowadays most wouldn’t include something as simple as a symbolic programming, the ai window has shifted further and now just feeding in logical statements and letting the computer resolve their implications doesn’t feel like a big enough step away from basic procedural programming), but the term has a pretty useful meaning nonetheless. If you can read a program and run through the logic in your head it’s not ai, if you are instead teaching the computer to train itself to solve the problems you want solved, then it is ai.
Unless you’re programming computer games, then ai is just anything that functions as an agent in the game world, and probably just means a few if statements. But then again, in computer games “lighting” has nothing to do with photons and “physics” bares little resemblance to the behaviour of real world matter, so it sort of fits that “ai” in games is just some if statements behind a curtain pretending to be clever, that’s just how the sausage is made.