> From what I've understood, a good part of the work the agents did was to formalize huge chunks of previously "unformalized" math into Lean.
That sounds scary and makes me question the foundations of all of this.
As in the OP, don't fall into the trap of dismissing those results. The statement of the Riemann hypothesis that was proven was taken from Mathlib, a very simple, standard and well-vetted formulation of the problem. Barring compiler bugs, there's no way the statement would have compiled without supplying an actual proof. And the probability of compiler bugs is vanishingly small in that case, as the proof compiles in multiple different compiler versions, including formally verified and deliberately 'slow-but-reliable' ones. The probability of mistakes physically cannot go to exactly zero, but you're quickly approaching crackpot territory if you don't update your prior of it being true to within a rounding error of 1.
If the headline statement is known to be formalized correctly, whether the formalizations of other concepts the model gave in order to use them in its proof of the headline statement, are correct/“correct”, doesn’t really matter for the correctness of the overall proof. Like, they might not match the human concept that it names the defined symbols after, and so they might be “wrong” in that sense, but this doesn’t cause an issue for the proof checker. And, I don’t mean this in a “well, the concept the model formalized is just as good/useful, and it is just a human bias that blah blah blah”, no. I mean, it is possible that it defines some terms in a way which is genuinely worse, and not what the definition should be. But, if it does that, then if the proof checker is working properly and validates the proof that uses these flawed definitions in its arguments, then the proof must have worked around the flaws in those definitions, and the overall conclusion (the statement which people have confirmed to be correctly formalized) is true.
Why is formally proving lemmas and theorems scary?
> That sounds scary and makes me question the foundations of all of this.
I'm not a mathematician, just a computer programmer who occasionally tries to read maths papers. Every time I do, I want to scream in frustration. What meaning did they assign to ω this time? What operation is this weird new 2D arrangement of dots, oversized odd-looking brackets and lines meant to impart? Where is the F12 button that takes me to the definition of their newfangled concepts?
Over and over again, you hear they stuff it up. (The Fields medallist Voevodsky, for example, turned to proof assistants after finding errors in his own published work.) Perhaps the logic didn't follow, or the operations didn't combine as they thought. Of course they didn't! If computer programmers had to get the logic perfect without type checking, we may as well be writing assembler.
You only get automated checks if you formalise your notation and languages. To do that you have to give up brevity. A simple hand-wave like "without loss of generality" can become pages of proof. The freedom to name and structure things however you damned well please disappears. It's undoubtedly harder to write that way - I'm sure every Rust programmer sometimes feels like most of their effort went into escaping a jail so they could get the job done. In return you get automated checking and a near-universal language that can be reused. And it's easier to read. The old adage that code will be read far more times than it's written applies to maths papers too.
To me, decrying the use of formal languages is at the same level as passing laws saying a car must follow a man waving a red flag, so the car doesn't scare the horses. Rewriting maths in a formal language isn't scary - it's a technological breakthrough in the productivity and accessibility of maths.
With "formalize", I mean turn into a "machine-readable" representation that can be processed by a proof checker. It was formalized enough for humans to understand and verify, but not for automated (non-LLM) reasoning.