---
type: "post"
id: "grh-lean-a-short-lean-4-proof-of-d87a6e"
slug: "grh-lean-a-short-lean-4-proof-of-d87a6e"
title: "grh-lean: A short Lean 4 proof of the Generalized Riemann Hypothesis"
description: "A GitHub repository presents a Lean 4 proof of the Riemann hypothesis and the generalized Riemann hypothesis for Dirichlet L-functions."
retrieval_nugget: "A GitHub repository presents a Lean 4 proof of the Riemann hypothesis and the generalized Riemann hypothesis for Dirichlet L-functions."
published_at: "2026-11-27"
updated_at: "2026-11-27"
record_date: "2026-11-27"
date_kind: "published_at"
topics: ["claude","anthropic","github"]
entities: ["Lean","Mathlib","Anthropic","Claude"]
related_patterns: []
novelty_label: "new_fact"
what_changed: "The Lean formalization is reported to have been compressed from 17.4 million lines to about 76,000, a 229-fold reduction."
prior_refs: []
source_url: "https://github.com/lsernau/grh-lean"
source_urls: ["https://github.com/lsernau/grh-lean"]
production: {"schema":"newruntime-production-v1","desk":"newsroom","first_seen_at":"2026-11-27T17:00:21.047Z","independent_sources":1,"notes_synthesized":null,"writer_model":"gpt-6-luna","critic":null,"checks":["primary_source_verified","source_fresh","one_story","copy_contract"],"novelty":{"label":"new_fact","confidence":"high"},"editorial_value":"medium","human_review":"selective"}
citations: [{"claim":"Its compact edition is about 76,000 lines.","quotes":["A Lean 4 proof of the Riemann Hypothesis and of the Generalized Riemann Hypothesis for Dirichlet L-functions, built on Mathlib and using only the axioms propext , Classical.choice and Quot.sound ."],"cite_url":"https://github.com/lsernau/grh-lean#:~:text=A%20Lean%204%20proof%20of%20the%20Riemann%20Hypothesis%20and%20of%20the%20Generalized%20Riemann%20Hypothesis%20for%20Dirichlet%20L%2Dfunctions%2C%20built%20on%20Mathlib%20and%20using%20only%20the%20axioms%20propext%20%2C%20Classical.choice%20and%20Quot.sound%20.","source_url":"https://github.com/lsernau/grh-lean","publisher":"github.com"},{"claim":"The formalization builds on Mathlib and is based on Levent Alpöge’s work with Claude; the shorter version was produced with colleagues at Anthropic and Claude.","quotes":["A Lean 4 proof of the Riemann Hypothesis and of the Generalized Riemann Hypothesis for Dirichlet L-functions, built on Mathlib and using only the axioms propext , Classical.choice and Quot.sound .","The proof is based on Levent Alpöge's, with Claude ( https://alpo.ge/remark.pdf ).","This repository is a shorter version, produced in collaboration with my colleagues at Anthropic, and Claude."],"cite_url":"https://github.com/lsernau/grh-lean#:~:text=A%20Lean%204%20proof%20of%20the%20Riemann%20Hypothesis%20and%20of%20the%20Generalized%20Riemann%20Hypothesis%20for%20Dirichlet%20L%2Dfunctions%2C%20built%20on%20Mathlib%20and%20using%20only%20the%20axioms%20propext%20%2C%20Classical.choice%20and%20Quot.sound%20.&text=The%20proof%20is%20based%20on%20Levent%20Alp%C3%B6ge%27s%2C%20with%20Claude%20%28%20https%3A%2F%2Falpo.ge%2Fremark.pdf%20%29.&text=This%20repository%20is%20a%20shorter%20version%2C%20produced%20in%20collaboration%20with%20my%20colleagues%20at%20Anthropic%2C%20and%20Claude.","source_url":"https://github.com/lsernau/grh-lean","publisher":"github.com"},{"claim":"The repository says the proof uses only the axioms propext, Classical.choice and Quot.sound.","quotes":["A Lean 4 proof of the Riemann Hypothesis and of the Generalized Riemann Hypothesis for Dirichlet L-functions, built on Mathlib and using only the axioms propext , Classical.choice and Quot.sound ."],"cite_url":"https://github.com/lsernau/grh-lean#:~:text=A%20Lean%204%20proof%20of%20the%20Riemann%20Hypothesis%20and%20of%20the%20Generalized%20Riemann%20Hypothesis%20for%20Dirichlet%20L%2Dfunctions%2C%20built%20on%20Mathlib%20and%20using%20only%20the%20axioms%20propext%20%2C%20Classical.choice%20and%20Quot.sound%20.","source_url":"https://github.com/lsernau/grh-lean","publisher":"github.com"},{"claim":"The readable and compact editions are separate Lake projects, each with its own README.","quotes":["Each folder is its own Lake project with its own README."],"cite_url":"https://github.com/lsernau/grh-lean#:~:text=Each%20folder%20is%20its%20own%20Lake%20project%20with%20its%20own%20README.","source_url":"https://github.com/lsernau/grh-lean","publisher":"github.com"},{"claim":"The build requires Lean v4.35.0 and Mathlib at commit 56a00585.","quotes":["Build Needs Lean v4.35.0 and Mathlib at commit 56a00585."],"cite_url":"https://github.com/lsernau/grh-lean#:~:text=Build%20Needs%20Lean%20v4.35.0%20and%20Mathlib%20at%20commit%2056a00585.","source_url":"https://github.com/lsernau/grh-lean","publisher":"github.com"},{"claim":"In either edition’s folder, the listed sequence is lake exe cache get, lake build and lake env lean scripts/PrintAxioms.lean.","quotes":["In either folder: lake exe cache get lake build lake env lean scripts/PrintAxioms.lean A build takes one to two hours on 12 cores with 24 GB of memory (about 85 minutes more if the Mathlib cache is missing)."],"cite_url":"https://github.com/lsernau/grh-lean#:~:text=In%20either%20folder%3A%20lake%20exe%20cache%20get%20lake%20build%20lake%20env%20lean%20scripts%2FPrintAxioms.lean%20A%20build%20takes%20one%20to%20two%20hours%20on%2012%20cores%20with%2024%20GB%20of%20memory%20%28about%2085%20minutes%20more%20if%20the%20Mathlib%20cache%20is%20missing%29.","source_url":"https://github.com/lsernau/grh-lean","publisher":"github.com"},{"claim":"The repository estimates one to two hours on 12 cores and 24 GB of memory, with about 85 minutes extra if the Mathlib cache is missing.","quotes":["In either folder: lake exe cache get lake build lake env lean scripts/PrintAxioms.lean A build takes one to two hours on 12 cores with 24 GB of memory (about 85 minutes more if the Mathlib cache is missing)."],"cite_url":"https://github.com/lsernau/grh-lean#:~:text=In%20either%20folder%3A%20lake%20exe%20cache%20get%20lake%20build%20lake%20env%20lean%20scripts%2FPrintAxioms.lean%20A%20build%20takes%20one%20to%20two%20hours%20on%2012%20cores%20with%2024%20GB%20of%20memory%20%28about%2085%20minutes%20more%20if%20the%20Mathlib%20cache%20is%20missing%29.","source_url":"https://github.com/lsernau/grh-lean","publisher":"github.com"},{"claim":"A guide for the readable edition is at grh/GUIDE.md.","quotes":["Two editions grh/ : readable edition, about 300,000 lines. Start at grh/GUIDE.md ."],"cite_url":"https://github.com/lsernau/grh-lean#:~:text=Two%20editions%20grh%2F%20%3A%20readable%20edition%2C%20about%20300%2C000%20lines.%20Start%20at%20grh%2FGUIDE.md%20.","source_url":"https://github.com/lsernau/grh-lean","publisher":"github.com"},{"claim":"The readable edition is about 300,000 lines; the compact edition contains the same five theorems in about 76,000 lines.","quotes":["Two editions grh/ : readable edition, about 300,000 lines.","Two editions grh/ : readable edition, about 300,000 lines. Start at grh/GUIDE.md . grh-compact/ : the same five theorems, about 76,000 lines."],"cite_url":"https://github.com/lsernau/grh-lean#:~:text=Two%20editions%20grh%2F%20%3A%20readable%20edition%2C%20about%20300%2C000%20lines.&text=Two%20editions%20grh%2F%20%3A%20readable%20edition%2C%20about%20300%2C000%20lines.%20Start%20at%20grh%2FGUIDE.md%20.%20grh%2Dcompact%2F%20%3A%20the%20same%20five%20theorems%2C%20about%2076%2C000%20lines.","source_url":"https://github.com/lsernau/grh-lean","publisher":"github.com"},{"claim":"The repository says both have passed machine checks, with the checks listed in each edition’s README.","quotes":["Status The proof has passed machine checks only, listed in each folder's README."],"cite_url":"https://github.com/lsernau/grh-lean#:~:text=Status%20The%20proof%20has%20passed%20machine%20checks%20only%2C%20listed%20in%20each%20folder%27s%20README.","source_url":"https://github.com/lsernau/grh-lean","publisher":"github.com"},{"claim":"The repository says no mathematician has read the proof through and no paper accompanies it.","quotes":["Status The proof has passed machine checks only, listed in each folder's README. No mathematician has read it through, and no paper comes with it."],"cite_url":"https://github.com/lsernau/grh-lean#:~:text=Status%20The%20proof%20has%20passed%20machine%20checks%20only%2C%20listed%20in%20each%20folder%27s%20README.%20No%20mathematician%20has%20read%20it%20through%2C%20and%20no%20paper%20comes%20with%20it.","source_url":"https://github.com/lsernau/grh-lean","publisher":"github.com"}]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:grh-lean-a-short-lean-4-proof-of-d87a6e"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/grh-lean-a-short-lean-4-proof-of-d87a6e/","markdown":"https://newruntime.com/posts/grh-lean-a-short-lean-4-proof-of-d87a6e.md","json":"https://newruntime.com/posts/grh-lean-a-short-lean-4-proof-of-d87a6e.json"}
markdown_url: "https://newruntime.com/posts/grh-lean-a-short-lean-4-proof-of-d87a6e.md"
---

# grh-lean: A short Lean 4 proof of the Generalized Riemann Hypothesis

## Retrieval answer

A GitHub repository presents a Lean 4 proof of the Riemann hypothesis and the generalized Riemann hypothesis for Dirichlet L-functions.

## Summary

A GitHub repository presents a Lean 4 proof of the Riemann hypothesis and the generalized Riemann hypothesis for Dirichlet L-functions. Its compact edition is about 76,000 lines ([github.com](https://github.com/lsernau/grh-lean#:~:text=A%20Lean%204%20proof%20of%20the%20Riemann%20Hypothesis%20and%20of%20the%20Generalized%20Riemann%20Hypothesis%20for%20Dirichlet%20L%2Dfunctions%2C%20built%20on%20Mathlib%20and%20using%20only%20the%20axioms%20propext%20%2C%20Classical.choice%20and%20Quot.sound%20.)).

## What happened

The formalization builds on Mathlib and is based on Levent Alpöge’s work with Claude; the shorter version was produced with colleagues at Anthropic and Claude ([github.com](https://github.com/lsernau/grh-lean#:~:text=A%20Lean%204%20proof%20of%20the%20Riemann%20Hypothesis%20and%20of%20the%20Generalized%20Riemann%20Hypothesis%20for%20Dirichlet%20L%2Dfunctions%2C%20built%20on%20Mathlib%20and%20using%20only%20the%20axioms%20propext%20%2C%20Classical.choice%20and%20Quot.sound%20.&text=The%20proof%20is%20based%20on%20Levent%20Alp%C3%B6ge%27s%2C%20with%20Claude%20%28%20https%3A%2F%2Falpo.ge%2Fremark.pdf%20%29.&text=This%20repository%20is%20a%20shorter%20version%2C%20produced%20in%20collaboration%20with%20my%20colleagues%20at%20Anthropic%2C%20and%20Claude.)). The repository says the proof uses only the axioms `propext`, `Classical.choice` and `Quot.sound` ([github.com](https://github.com/lsernau/grh-lean#:~:text=A%20Lean%204%20proof%20of%20the%20Riemann%20Hypothesis%20and%20of%20the%20Generalized%20Riemann%20Hypothesis%20for%20Dirichlet%20L%2Dfunctions%2C%20built%20on%20Mathlib%20and%20using%20only%20the%20axioms%20propext%20%2C%20Classical.choice%20and%20Quot.sound%20.)).

The readable and compact editions are separate Lake projects, each with its own README ([github.com](https://github.com/lsernau/grh-lean#:~:text=Each%20folder%20is%20its%20own%20Lake%20project%20with%20its%20own%20README.)). The build requires Lean v4.35.0 and Mathlib at commit `56a00585` ([github.com](https://github.com/lsernau/grh-lean#:~:text=Build%20Needs%20Lean%20v4.35.0%20and%20Mathlib%20at%20commit%2056a00585.)). In either edition’s folder, the listed sequence is `lake exe cache get`, `lake build` and `lake env lean scripts/PrintAxioms.lean` ([github.com](https://github.com/lsernau/grh-lean#:~:text=In%20either%20folder%3A%20lake%20exe%20cache%20get%20lake%20build%20lake%20env%20lean%20scripts%2FPrintAxioms.lean%20A%20build%20takes%20one%20to%20two%20hours%20on%2012%20cores%20with%2024%20GB%20of%20memory%20%28about%2085%20minutes%20more%20if%20the%20Mathlib%20cache%20is%20missing%29.)). The repository estimates one to two hours on 12 cores and 24 GB of memory, with about 85 minutes extra if the Mathlib cache is missing ([github.com](https://github.com/lsernau/grh-lean#:~:text=In%20either%20folder%3A%20lake%20exe%20cache%20get%20lake%20build%20lake%20env%20lean%20scripts%2FPrintAxioms.lean%20A%20build%20takes%20one%20to%20two%20hours%20on%2012%20cores%20with%2024%20GB%20of%20memory%20%28about%2085%20minutes%20more%20if%20the%20Mathlib%20cache%20is%20missing%29.)). A guide for the readable edition is at `grh/GUIDE.md` ([github.com](https://github.com/lsernau/grh-lean#:~:text=Two%20editions%20grh%2F%20%3A%20readable%20edition%2C%20about%20300%2C000%20lines.%20Start%20at%20grh%2FGUIDE.md%20.)). The repository is licensed under Apache-2.0.

The readable edition is about 300,000 lines; the compact edition contains the same five theorems in about 76,000 lines ([github.com](https://github.com/lsernau/grh-lean#:~:text=Two%20editions%20grh%2F%20%3A%20readable%20edition%2C%20about%20300%2C000%20lines.&text=Two%20editions%20grh%2F%20%3A%20readable%20edition%2C%20about%20300%2C000%20lines.%20Start%20at%20grh%2FGUIDE.md%20.%20grh%2Dcompact%2F%20%3A%20the%20same%20five%20theorems%2C%20about%2076%2C000%20lines.)). The repository says both have passed machine checks, with the checks listed in each edition’s README ([github.com](https://github.com/lsernau/grh-lean#:~:text=Status%20The%20proof%20has%20passed%20machine%20checks%20only%2C%20listed%20in%20each%20folder%27s%20README.)). Its accompanying Russian source describes the earlier formalized proof as 17.4 million lines.

## What the archive adds

Our earlier note covered the original Alpöge formalization as a 17-million-line proof that Lean and Mathlib certify compiles and states the right theorem ([earlier New Runtime note](https://newruntime.com/posts/lean-verification-of-the-riemann-hypothesis-b2c2b2/)). A follow-up covered independent reports that it compiled and passed kernel and comparator checks, while one comparator run remained underway ([earlier New Runtime note](https://newruntime.com/posts/verification-files-for-the-lean-proof-of-the-0a8457/)).

## Why it matters

The smaller edition is a more plausible target for a team audit than the much larger versions—but reduced size is an invitation to review, not evidence that review has occurred.

## Limits and uncertainty

The repository says no mathematician has read the proof through and no paper accompanies it ([github.com](https://github.com/lsernau/grh-lean#:~:text=Status%20The%20proof%20has%20passed%20machine%20checks%20only%2C%20listed%20in%20each%20folder%27s%20README.%20No%20mathematician%20has%20read%20it%20through%2C%20and%20no%20paper%20comes%20with%20it.)). It describes the code as an unmaintained research artifact and says it is not accepting contributions. Earlier audit work still identified source-fidelity, manuscript-reconciliation and independent line-by-line review steps as outstanding ([earlier report](https://github.com/jimjamzola/RH-Alpoge-Reconstruction)).

## Reader takeaway

The compact Lean project claims formal proofs of the Riemann hypothesis and its Dirichlet L-function generalization, and the repository reports machine checks. Its reduction from about 300,000 lines to about 76,000 may make inspection more practical, but no mathematician has read the proof through and no accompanying paper is available.

## Open question

Will independent mathematicians complete a human review of the shorter formalization?

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Claude](https://newruntime.com/topics/claude.md): Explore the claude topic hub.
- topic hub: [Anthropic](https://newruntime.com/topics/anthropic.md): Explore the anthropic topic hub.
- topic hub: [Github](https://newruntime.com/topics/github.md): Explore the github topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
