Remix.run Logo
▲ rightbyte 19 hours ago

How does that work. Is it not possible to write malicious Lean code?

▲c7b 6 hours ago | parent [-]

It's Turing-complete, so you should be able to write anything. But it's fully functional, so you can't hide side effects in what by its signature should be a proof of A. More practically, there's tooling to check whether a proof does anything it shouldn't (like assuming the conclusion somewhere, which in itself wouldn't work as it'd only give A-> A instead of A, but along those lines). So with those tools, checking a Lean proof really isn't much more than checking the statement and compiling.

Again, no tool is 100% reliable, but the community really has gone the extra mile to get as much certainty as possible. If you believe that the Higgs Boson exists, or the HI Virus, or that the Roman Empire existed, or Dinosaurs, then you should believe that the Riemann hypothesis is true (and that's factoring in that math has a different standard of evidence than empirical disciplines).