Generalized Riemann Hypothesis proof in Lean 4, in 76k lines (down from 17M)

51 points by mikedanese


This is a shortened version of Alpöge's Lean proof of RH and GRH for Dirichlet L-functions (https://alpo.ge/remark.pdf), which was about 17 million lines.

There are two editions proving the same five theorems: a readable one at about 300,000 lines (start at grh/GUIDE.md) and a compact one at about 76,000.

Github repo: https://github.com/lsernau/grh-lean

Cajunvoodoo

The fact you can even expand 76k lines into 17M goes to show that LLMs, while capable at making things work, are really awful at making things that are maintainable and sane. Even with regular projects they will put loads of unnecessary crap, and it's irritating having to remove all of that mess that shouldn't have been there in the first place!