Neither do AIs with math- otherwise we wouldn't need them, it would be enough to brute-force all possible expressions and have lean remove the wrong ones. The only reason lean is useful in this case is that llms have mathematical intuition and use it to plan long paths towards the goal.