Re:Lean Verification of the Riemann Hypothesis
by squeegmeister on Sunday November 22, 2026 @04:15AM
(#50597721)
Forgive my ignorance but can mathematical proofs be refactored the same way computer programs can?
Re:Lean Verification of the Riemann Hypothesis
by dev_dan_2 on Sunday November 22, 2026 @05:03AM
(#50598007)
I am 100% sure that yes, it's just not mainstream yet. (Why? Because lean proofs are computer programs)
----------------
The big caveat: This is only if the proof is formulated as a computer program, which is the case here with the Riemann Hypothesis proof. Lean is a general programming language; and every "proof formalized in Lean" is also a Lean computer program. Much of mathematics is not yet formualated in such way (although much progress was made by countless contributions of researchers and amateurs in the last years, both in Lean but also in other proof assistants. Lean seems to become the de facto standard though, but I am watching from the sidelines)
I explained this connection between computer programs and proofs further in this comment: https://news.ycombinator.com/item?id=50589618#50594374
Re:Lean Verification of the Riemann Hypothesis
by Epa095 on Sunday November 22, 2026 @07:55AM
(#50599275)
Yes, absolutely. You might take part of your big proof and extract it out in a named lemma. Then you might find that if you strengthen this lemma a bit, you can suddenly use it a multiple places in your main proof (the analogy here to programming and extracting things into generalised functions should be obvious). But you might also take whole subparts of your proof and prove it in a different ways, but as long as the assumptions and conclusions (input / output) stays compatible, it does not need to change much in the main proof.
Slightly related: I am fairly confident that we can let LLMs loose on those 17M lines of code with the instruction to refactor the heck out of it: Instead of "optimize that program so that it runs faster" (which AlphaCode did to great success already), the task would be "optimize that program so that it uses less theorems" etc... which is a very easy-to-verify task, since we after each refactor, the end result will never change! I predict that 1) this will be done more; once this first wave settled down a bit 2) this too might be a way to help us (humans) discover and understand new mathematics. For the LLM, it might have been just a boring ordinary code refactoring by extracting some common code out; for mathematitians, this might actually correspond to a deep connection between two areas.
Which is pretty cool IMO, it's basically an army of statistical parots that mine abstractions all day, and they only can succeed because at the end it is still the same outer lean statement being checked (we just rearange some stuff under the hood)