logoalt Hacker News

otabdeveloper4 • yesterday at 2:15 PM • 2 replies • view on HN

> have been verified with too many different Lean compilers to have any real chance of being exploits

Maybe, but "compiles and runs with several implementations" is not a mathematical proof.

We already knew the Riemann hypothesis is true because we checked it numerically. If all we want is a reasonable practical demonstration of it then we don't need formal math at all, it would be a waste of time and resources.


Replies

gus_massa • yesterday at 4:17 PM

We checked it numerically bout only to 10^13 IIUC in the imaginary direction. We still didn't know it was true between 10^3 and +infinity.

Lean is designed to write mathematical proof. It only compiles successfully if the steps on the mathematical proof are correct. So you only have to verify that the final statement is the one you want, and the compiler will check that all the crap you wrote before is a correct mathematical proof.

In this case, the final statement is copied from Mathlib and has been used for years, so it has a lot of review by the community. Before it was used as a initial step to prove followup like "If GRH is true than $something is true." Now it is used as the final step to prove "GRH is true".

There are some escape hatch to avoid writing missing steps using the magical "sorry" instruction. They are useful to write the high level structure of the proof and later fix the holes. But the compiler at the end complains that you used "sorry", so it's not possible to hide it.

So in this case "compiles IS a mathematical proof".

There are a few implementations. It's possible that they have bugs, but highly unlikely that all of them have the same bug. Also if the AI finds a bug, I expect it to abuse it to prove all king of results. So it's very unlikely.

tsimionescu • yesterday at 6:29 PM

> Maybe, but "compiles and runs with several implementations" is not a mathematical proof.

That's not how to read that statement. That statement says "the proof has been independently verified multiple times by different methods". There is nothing here different from human verification: you wouldn't trust a proof just because one person said "I checked it, it's legit" - you know that person can make mistakes, or lie. You wouldn't even trust it if a group of 5 friends all said that they had verified it by hand. But if 5 different experts from 5 different universities claimed that they verified it, you'd have a much better reason to trust it.

It's the exact same with different Lean compilers - except that Lean compilers make MUCH fewer mistakes than human mathematicians.