Hacker News new | ask | show | jobs
by _flag 7 days ago
Identical to proofs that one would see in an undergraduate class, maybe. Identical to proofs in professional mathematics papers, certainly not.
1 comments

Regardless of how effective tactics are at making proofs read like traditional ones, I still disagree with your original point that Lean code is analogous to a compilation artifact that one does not try to understand.

It is intended to be written and understood by humans, and it's only very recently that we've started outsourcing that work to LLMs. The new thing here is the size and scope achieved via LLM code gen.

For a large, human-centric formalization project (in a fork of Agda), check out the 1lab: https://1lab.dev

Okay, let me be more precise. Yes, one can try to understand the Lean code, and it can in some cases be fruitful to do so. I also think that one can try to understand compiled assembly, and it can in some cases be fruitful to do so. One can also choose to write assembly without a compiler, and it can be fruitful to do so.

But for something like the proof of the Riemann hypothesis, you will not achieve a meaningful high-level understanding of what is happening in the argument without understanding informal mathematical language, and efforts aimed at clarifying the proof of the Riemann hypothesis should be primarily focused on producing such descriptions. Once the argument is refactored at the informal level one will inevitably obtain a better, more readable formalisation as well.

I agree that a clear account is the right starting point for understanding a proof of this size. But that's true of any large artifact, and it doesn't make the formal code analogous to compiled output.

Nobody would try to understand a 17M line Javascript application by reading it top to bottom either. You'd want design and architecture docs first. That doesn't make Javascript equivalent to assembly, nor does it mean the code is not meant to be read and understood. The difficulty comes from scale and structure.

Lean, Agda and similar languages are high-level languages for writing mathematics. You write definitions, lemmas, theorems, etc. A well organized formalization can be read in the same way as one reads a well organized software application.