Riemann Hypothesis Lean Formalization Squeezed Into a Single 7.2MB Line
Kyrannio · x · 2026-11-26
A developer (handle 1337isnot1337) claims to have reduced the Lean 4 formalization of the Riemann Hypothesis — including GRH for Dirichlet L-functions — to a single line of Lean.
- Scale progression: 17 million lines of Lean → 76,000-line compact edition → 1 line.
- The single-line OneLineRH.lean is 7.27 million characters wide; the Lean source is stored as string literals, and running the file restores original line breaks and module boundaries.
- Built with Lean 4.35.0: lean --run OneLineRH.lean grh-compact extracts it; adding --build downloads the dependency cache and builds. All 807 files were byte-compared against the pinned compact edition.
- Repo riemann-hypothesis-minimal is Apache-2.0 licensed, currently 12 stars.
Context: the quoted post credits Anthropic researchers with using Claude to shrink the Lean formalization by 99.56% (200×+). Note this is compression of formalization code size, not a simplification or validation of the proof itself.
More from Fun
- Szegedy Turns the Riemann Hypothesis Into a Suno Eurodance Track — ChrSzegedy · 2026-11-26
- Someone Made a Karaoke Song About Working With AI Agents — wavefnx · 2026-11-26
- AI-Made GTA 6 Parody Short: Florida Man's 5-Star Behavior — Tiny-Meet5202 · 2026-11-26
- 'Your Honor, I Thought It Was an Eval' — Kyrannio · 2026-11-26
- Christian Szegedy: Mathematicians aren't explorers, they're fetishist cartographers — francoisfleuret · 2026-11-26
- User uses Synthesia AI avatar to interview himself in funny viral demo — synthesiaIO · 2026-11-26