Lean formalization of the Riemann Hypothesis
Raw Developer Origin & Technical Request
GitHub Issue
Nov 25, 2026
Several merged pull requests drop a conclusion that no caller reads (#395, #439, #923, #2055; #1907 was closed only as a duplicate of #1860). This issue lists the remaining candidates on `main` (`d91ae2678e`), in the spirit of #151, so they can be claimed and done one PR each.
**What counts as a candidate.** A theorem in `src/` whose every use is an `obtain`/`rcases` that clears the same part of the conclusion with `-`, and that is used nowhere else (counted by name over all of `src/`). A `-` pattern clears the hypothesis, so the proof would not compile if that part were needed later. A `_` pattern does **not** count: the hypothesis stays in context and can still be used by instance search, `assumption` or `simp [*]`.
**Caveats.**
- The "decl. lines" column is the length of the whole declaration, an upper bound. In a sample of 12 we estimated savings from 0 to about 90 lines (mean about 18): often the discarded part is also used inside the proof, so only the term in the final `exact` goes. The large wins come when a whole branch, and sometimes a private helper, only serves the discarded part.
- The scan is by source text. Names are matched by their last component, and a theorem with two definitions of the same short name is skipped.
- When dropping a part, also drop what becomes unused (helpers, `have`s), as #1907 did, and update the callers.
1280 theorems qualify; the 150 longest are below. Claim here like in #151; the last column is updated from the comments (last update...
Developer Debate & Comments
Adjacent Repository Pain Points
Other highly discussed features and pain points extracted from leanprover-community/riemann-hypothesis.
Frequently Asked Questions
Market intelligence mapped to Lean formalization of the Riemann Hypothesis.
What problem does Lean formalization of the Riemann Hypothesis solve?
Are engineers actively discussing Lean formalization of the Riemann Hypothesis?
Which technical concepts are associated with Lean formalization of the Riemann Hypothesis?
Engagement Signals
Cross-Market Term Frequency
Counts stored text matches for foundational terms like assumption and dead code in analysed public discussions. These counts do not measure adoption.
Stored text matches, not adoption or market-share measurements.
- assumption: 5 records
- dead code: 3 records
- unused conclusions: 2 records
- source text: 2 records
- merged pull requests: 1 records
- drop a conclusion that no caller reads: 1 records
- obtain/rcases that clears the same part of the conclusion with `-`: 1 records
- `_` pattern: 1 records
- instance search: 1 records
- simp [*]: 1 records
- decl. lines: 1 records
- last component: 1 records
- private helper: 1 records
- Fourier–Jacobi entries: 1 records
- relative-index calculation: 1 records
- volume argument as a local `have`: 1 records
SaaS Metrics