The experiment could be performed. Train a model while making extra certain that its training data contains no existing math results whatsoever, then give it nothing but the axioms of ZFC and ask it to prove RH. Otherwise, the statement "an LLM can reproduce all of humanity's math results" is only as interesting as "a library can reproduce all of humanity's math results".