r/compsci • u/CandidAtmosphere • 1d ago
Notes on the finite-field toy model behind the GRH proof
I put together a writeup (thing.rodeo/alpoge-toy-system) and a Lean 4 / Python repo (github.com/ryanncode/tensor-sieve) reconstructing the finite-field toy model behind Alpöge and Claude's GRH proof. Plenty of work was already going into simplifying and shrinking the full proof. Working on the toy model and its tests looked like a much more interesting project to take on. I used coding and research agents along the way to search the archives and write implementation code, so I wanted to share two notes here on what remark.pdf says about Alpöge's part early on and how I checked things along the way.
Most arguments about who proved what look at the final Lean release, where Claude generated a massive amount of code. Reading remark.pdf (keeping in mind that its timeline was reconstructed afterward from session history, not raw logs) points to what Alpöge did before that. In early October, while most attention around OpenAI's release stayed on their main Quasi-Riemann paper, Alpöge focused on their separate Landau–Siegel note even though its headline bound wasn't competitive, spotting a version of Stepanov's method inside it. From there he spent weeks distilling Weil and Deligne down to qN = M^k + R over finite fields and hunting for an integer analogue with no guarantee anything would work. Plenty of toy models over the years (including my own earlier divisor-matrix experiments in the same repo) wandered in the dark without leading to a theorem. Spotting that overlooked clue and choosing the right finite-field analogy came from Alpöge, well before Claude suggested the sqrt(X) lift length and generated most of the late-stage Lean code.
There is also a huge gap between building this toy model and working on the real proof. Once Alpöge confirmed that qN = M^k + R and Stepanov point toward the full argument, coding up the finite-field piece skips the hard part of guessing blind which toy setup might generalize. Going all the way to the full proof over the integers also requires heavy compute and token budgets well beyond a normal desktop. Even so, implementing the toy model gives concrete numbers you can run and small proofs you can inspect, while showing where finite-field tricks stop working on the integers.
With coding agents involved in the Lean and Python work, a compiling build was only a baseline since models quietly take shortcuts or misread source papers. Reading remark.pdf side by side with the compiled Lean archives showed where the informal note differs from the verified route. For example, the note mentions Guinand–Weil explicit formulas and a sixfold cover construction, whereas the compiled Lean code uses finite Landau positivity windows instead. Small Python scripts in tensor-sieve and the solvers linked in the post checked curves numerically before formalizing anything, making it easy to watch single-prime counts stay inconclusive and watch ordinary 1/k! derivatives break at p.
When a proof needs an explicit example, fast numerical code finds it outside Lean so the proof assistant only has to check the final answer. Unproved sketches stay separate from the default build, and running lake test fails automatically if any proof touches sorry or native_decide. Turning verified Lean into readable prose takes a different set of writing skills and attention to exposition than getting code to typecheck, especially when formal releases get too big to read line by line. Doing the writeup alongside the code and source checks lets people pull a huge formal release apart into small pieces they can actually test and build on.