An LLM is an idea generator that "knows" everything that has been published. If you couple one to something that can distinguish truth from falsehood rigorously, you can get a proof generator, and this has worked way better than most of us expected. Or, if you couple it with a compiler you have a code generator, and it works best for languages like Rust where if it compiles you've made considerable progress (though with Lean, if it compiles you have proved the theorem; with code if it compiles it could still be junk). But if you don't have something that distinguishes the good from the bad, outside of the LLM, you just have a bullshit generator. So at least for now, I expect things to work better for math, and to a lesser extent, for code, than for other applications.
It's similar for humans too though. Math and computer science are far beyond many other fields of knowledge in certainty because they are validatable. There are a lot of bullshit generators out there pretending they are experts
There is some truth in this, it's also why learning-based systems first excelled in games. But we've also seen massive progress in for example protein folding, where no such ruleset exists.