Skip to content
riemannhypothesis.dev
Riemann Hypothesis · Kernel Backbone & Upstream Tracker
Exact Lean 4 kernel-cone accounting & live leanprover-community/riemann-hypothesis progress
Last data refresh: checking…
Syncing… Official RH Repo ↗
Independent tracker · upstream Lean 4 RH & GRH proof

Kernel-Grounded Progress Across the Full RH & GRH Proof

Unofficial source & verification tracker for leanprover-community/riemann-hypothesis. Upstream main is based on the readable edition of lsernau/grh-lean (~300k code lines; commit 72fead10 was checked by Andrew Sutherland at MIT on Lean v4.35.0) and now also depends on TauCeti. The community cleanup of Levent Alpöge’s original proof is kept on branch alpoge, and the original 175,187-file release on branch original.

Figures come from Lean kernel exports, upstream tree scans, rh-shrink and the GitHub API; each panel names its source Edition sizes are given in code lines, non-whitespace characters and Lean tokens, so line-packing does not shrink them Browser re-reads the GitHub API & rh-shrink every 60 s (GitHub’s anonymous rate limit applies); otherwise the last Actions snapshot is shown
Upstream main vs. original v0.2.1 release (base replaced by grh-lean on 2026-11-25)
Syncing…
Loading live snapshot from upstream_frontier.json
Toolchain & CI
Syncing…
Checking live lean-toolchain…
Two upstream lineages · branch comparison

Select Edition View (New grh-lean vs. alpoge Archive)

Upstream main · readable grh-lean base (+ TauCeti)
802 files · 299,501 code L at main@e063a92
476,436 raw L · base lsernau/grh-lean@72fead10 checked on Lean v4.35.0 by A. Sutherland (MIT) (4.49 GB export) · main gated by CI lake build
Tracker measurement · kernel cone of main@e063a92
802 files · 49,821 cone consts
711,498 typed kernel edges · 25,793 active user decls · 149,521 code L (49.9%) in single-caller declarations · measured by this tracker on Lean v4.35.0 (not an upstream figure)
Branch alpoge · community cleanup of the original proof (Batch 23)
58,947 files · 11.00M code L
13,710,054 raw L · 920.5 MB · Lean v4.37.0-rc1 · 756a70250 (down from 175,187 files / 17.37M L in the original v0.2.1 release)
Upstream main@e063a92 snapshot · readable grh-lean base · kernel cone

grh-lean 300k-Line Structural Anatomy & Single-Caller Map Exact

Exact Lean kernel-cone and single-caller audit from Main.lean across all 802 files of upstream main@e063a92 (measured by this tracker on Lean v4.35.0; live main has moved on since). Background library Lib/ accounts for 59.3% (177,479 code L · 495 files) while the core argument New/ (with Main.lean and Statements.lean) accounts for 40.7% (122,022 code L · 307 files).

49,821 / 64,358
Kernel-cone constants (711,498 typed edges · 25,793 active user decls)
299,501 L
Readable code L (476,436 raw L · 4.49 GB export of grh-lean@72fead10, 13.3% smaller than grh-compact’s)
149,521 L (49.9%)
Code in single-caller (in_degree = 1) declarations (1,535 cross-mod · 6,124 intra-mod)
0 sorry · 3 axioms
propext, Classical.choice, Quot.sound only · A. Sutherland (MIT) on grh-lean@72fead10, Lean v4.35.0: lake comparator --paranoid accepts (Lean kernel, nanoda, lean4lean, con-leche, con-ron) · e063a92: 5 maxHeartbeats · 28 backward.*
grh-lean Subtree / Pillar Files Code L Share Single-caller & dead-code measurement (main@e063a92)
New/Spanning
Frames, MainTerm (GlobalSieve), RemainingTerms, TightFrames (90 files)
90 38,950 13.0% 24,520 code L (63%) are single-caller (in=1) + 487 dead L
New/Congruences & New/UpperBound
FirstOrder, Lifting (53f · 22,301 L) · Seesaw, ElementaryDivisors (55f · 21,722 L)
108 44,023 14.7% 28,725 single-caller L (70% in Congruences, 60% in UpperBound)
Lib/GaloisRep, Cohomology & PadicHodge
Cohomology (30f · 12.8k), GaloisRep (31f · 12.4k), PadicHodge (24f · 10.3k), PadicComparison (18f · 7.2k)
103 42,714 14.3% 15,734 single-caller L
Lib/Weil & Lib/Shimura
Weil (59f · 20,643 L: DualPair, Construction, MixedModel) · Shimura (43f · 18,884 L: ThetaModuli, IntegralModel)
102 39,527 13.2% Two largest single background libraries; 14,552 single-caller L · 655 dead L
Lib/Adelic, ClassField & DiscreteSeries
Adelic (54f · 16.5k), DiscreteSeries (40f · 15.7k), ClassField (42f · 14.6k)
136 46,758 15.6% TauCeti imports were 0 at e063a92; PR #5648 (merged 2026-11-26) moved finite adele topology to TauCeti
Remaining New/* & Lib/*
Determinant (13.8k), OneLift (10.7k), Derivatives (7.7k), General (17.0k), SiegelWeil (9.7k), LocalGL/CM/GLn/Analytic
263 87,529 29.2% e063a92 snapshot: 2 import Mathlib · 5 maxHeartbeats · 28 backward.* (live counts tracked above)
Tactic keyword text counts across grh/: 38,151 have · 22,685 simp · 14,963 rw · 13,222 let · 11,834 obtain · 11,002 exact · 8,300 refine · 2,550 calc · 1,792 grind · 489 simp_all · 393 aesop. Kernel export and sandboxed cold build measured by A. Sutherland (MIT) on grh-lean@72fead10: readable 4.49 GB, 32 min 12 s; grh-compact 5.17 GB, 33 min 32 s.
Mathematical Architecture · upstream main@e063a92 (readable grh-lean base · 802 files · 299,501 code L)

How grh-lean Proves RH & GRH via the Star Inequality (⋆)

Every node below maps to directories of upstream main@e063a92 (src/: 802 files, 299,501 code L, 49,821 kernel-cone constants; this tracker’s measurement). Click any star, module hub, or zero pearl to trace the reduction into New.grh and riemannHypothesis (Main.lean). Switch to Alpöge Lineage to inspect the archived 804,912-declaration kernel cone.

Guided Proof Tour: Interactive · Click any star, zero pearl, or foundation
Measured on upstream main

How large the formal proof is, commit by commit

Loading…
Hover the line to read a snapshot.
Every point is one measured snapshot of leanprover-community/riemann-hypothesis (live_history in upstream_frontier.json). Repeated snapshots with identical counts are drawn once.
rh-shrink — third-party proof-size counter

RH Proof Size per main Commit

rh-shrink.github.io (unofficial) counts the .lean files of every main commit with plain text search: code lines without blanks, comments and imports, plus theorems and other declarations. Lean is not run, so these are size counts, not checked proofs.

Loading rh-shrink series…
Commit Subject Code lines Change Theorems Date (UTC)
Loading…
Source: rh-shrink.github.io/data.json, copied into data/rh_shrink.json by the upstream tracker only when rh-shrink publishes a new measurement.
Epistemic Key: Exact Computed from Lean kernel export / live upstream tree / compiler Verified Read from pinned source & confirmed in_cone = true Reading Informal mathematical interpretation

Live upstream leanprover-community/riemann-hypothesis progress Exact v4.37.0-rc1

Browser fetch from the GitHub API and rh-shrink.github.io every 60 seconds; when GitHub’s anonymous rate limit blocks it, the last Actions snapshot is shown. Tracks live main metrics alongside the archived alpoge branch PR queue.

Loading live upstream snapshot…
—
Loading live metrics…
Community PR Queue & Metadata Insights (alpoge Lineage & Repo Infra) Queue
PR Status Author Scope & Summary Files Net Lines
Loading stacked PR queue…
Whole-Proof Geometry · upstream main@e063a92 · 802 Files · 299,501 Code L

Interactive Full-RH Proof Spatial Coverage Map Exact

Proportional breakdown of upstream main@e063a92 (readable grh-lean base, 802 files, 299,501 code L) vs. Levent Alpöge’s original v0.2.1 release (17.37M lines). Click any segment to inspect.

Click any pillar above to inspect its exact scale and single-caller share.

Contributors & Lean Foundations

Hover any avatar for role, or click to open their profile page.

Full Directory →
Loading directory…
Archived External Benchmark · Bohrium Playground (Alpöge Lineage · Grand Challenge Frozen) Archived Click to expand historical snapshot

Historical snapshot of the external riemann.verifytask.cn compression benchmark against Levent Alpöge’s archived 175,187-file tree (Grand Challenge main frozen on 2026-11-26; none of these external submissions target or merge into the active grh-lean upstream main).

Loading Playground snapshot…
Core Target theorem Baseline → best tokens Reduction Best score Last kept Challenge
Loading…
Aggregate frontier: running best score across all core runs.
Archived external snapshot from riemann.verifytask.cn (data/verifytask_board.json).
Alpöge Original Lineage Archive (branch alpoge · v0.2.1 → Batch 23) — The sections below preserve the exact kernel-cone dissection (175,187 files / 17.37M lines → 58,947 files / 13.71M lines), PR compression frontier, de-bloating patterns, witness chains, and full SPEC.md from Levent Alpöge’s original formalization before main switched to lsernau/grh-lean on 2026-11-25.
17,374,215
v0.2.1 Baseline raw lines (175,187 files)
10,737,728
v0.2.1 Kernel-used decl lines (61.8%)
804,912
v0.2.1 Active decls / 1,063,284 total
99.997%
Shared via allChi (only 25 decls differ)

Kernel Bloat Waterfall Exact

Raw source files (175,187 files)
17,374,215 L (100.0%)
Non-declaration boilerplate (imports, opens, blanks)
3,941,735 L (22.7%)
All parsed declarations (1,063,284 decls)
13,432,480 L (77.3%)
Dead / unreachable declarations (258,372 decls)
2,694,752 L (15.5%)
Kernel-active declarations (804,912 decls)
10,737,728 L (61.8%)

Alpöge-lineage merged-PR frontier (branch alpoge) Exact

Proof-cleanup PRs merged on the Alpöge lineage of leanprover-community/riemann-hypothesis up to 2026-11-24. These files are no longer on main. Click a highlighted PR for its summary.

Loading upstream frontier metrics…
Rendering frontier SVG…

Community de-bloating patterns on the Alpöge lineage (click for details)

Toolchain, performance, dead-pruning, and active-cone proof-engineering PRs on the Alpöge lineage, with the figures each PR reported.

Loading verified patterns…

Cleanup targets on the Alpöge lineage (v0.2.1 kernel cone) Exact

Separates kernel-active code (in_cone = true) from dead subtrees (in_cone = false) such as BehrendSets (0/89) or Cheb.statement_holds (0/1), as measured on the v0.2.1 export. These paths are not on current main.

Bucket Target & Source Path Kernel Cone Measured Scale Tracker’s estimate & rationale
Loading actionable targets…

Kernel Witness-Chain Explorer (why-parents.csv.gz → LFunction_ne_zero_of_half_lt_re) Exact

Loading kernel_backbone_summary.json…
Top 60 Kernel Dominator Nodes by Exclusive Subtree Lines (dominators.tsv.gz) Exact
Depth Declaration & Source Subtree Lines % Cone Subtree Decls
Loading dominators…

Loading full kernel-grounded specification from SPEC.md…