← Back to AI Insights
Gemini Executive Synthesis

Lean formalization of the Riemann Hypothesis

Technical Positioning
Codebase optimization and reduction of unnecessary formalizations
SaaS Insight & Market Implications
This project is actively engaged in a significant codebase cleanup, targeting 1280 theorems where conclusions are consistently discarded by callers. This initiative, driven by a desire to reduce code bloat and improve maintainability, directly addresses the technical debt inherent in large-scale formalization efforts. The distinction between `-` and `_` patterns for clearing hypotheses highlights the nuanced challenges in Lean's proof management. While individual savings per declaration are modest (mean 18 lines), the cumulative impact across 1280 candidates is substantial. This effort signals a mature project prioritizing efficiency and clarity, which is crucial for long-term community engagement and the eventual completion of the Riemann Hypothesis formalization. The collaborative claiming of tasks demonstrates a healthy, organized approach to refactoring within the Lean community.
Proprietary Technical Taxonomy
merged pull requests drop a conclusion that no caller reads unused conclusions dead code obtain/rcases that clears the same part of the conclusion with `-` `_` pattern instance search assumption

Raw Developer Origin & Technical Request

Source Icon GitHub Issue Nov 25, 2026
Repo: leanprover-community/riemann-hypothesis
Conclusions that every caller discards

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

haytmnjwgyge • Nov 25, 2026
I'll take `GlobalTheory.TrueTheta.exists_family_of_curve`. Both callers keep only `vec22`. I'll construct the theta vector family directly and remove the character and equivariance proofs that this construction no longer needs.
nielswiegerss-code • Nov 25, 2026
I am also taking `GlobalTheory.CompanionTheory.Ar.Num.LatFlag.flag_pair_of_lat` (its only caller discards `IsModelOver` and `SameGenericFibre`). The first two are and ; the table now shows the claims so far.
haytmnjwgyge • Nov 25, 2026
I'll take `GlobalTheory.TensorLat.exists_coe_eq_span_det`. Its only caller compares a lattice with itself and uses just the nonzero determinant ideal and its underlying span. I'll use the existing determinant-submodule lemmas there and remove the relative-index calculation.
haytmnjwgyge • Nov 25, 2026
I’m releasing my claim on the two Fourier–Jacobi entries. now changes `GlobalTheory.ArcCoeffAt.coeff_evR_eq_fj_anLie` and its caller. I’ll leave that change to its author. The separate `GlobalTheory.ArcCoeff.coeff_evR_eq_fj` entry is available.
dominikschnitzer • Nov 25, 2026
I'll take `GlobalTheory.CellQuotInt.isQuotInt_cells`. Its only caller discards the first conjunct (`∀ h, volCell ν μX p J h ≠ 0 ∧ volCell ν μX p J h ≠ ⊤`). I'll drop that conjunct from the statement, keep the volume argument as a local `have` where the remaining `IsQuotInt` characterization still needs it, and update the caller in `QuotIntPosOne.lean`.

Adjacent Repository Pain Points

Other highly discussed features and pain points extracted from leanprover-community/riemann-hypothesis.

Extracted Positioning
Lean formalization of the Riemann Hypothesis
Shorter, more efficient proof paths for mathematical formalization
Top Replies
roy7 • Nov 24, 2026
@Visio-Vanitas Some data that may help with question 2, and an offer for the build checks. **Root set.** I used the declarations of `Main` and `Statements` too (14 roots after merging auxiliaries),...
Visio-Vanitas • Nov 24, 2026
@roy7 Thanks for the independent numbers, the dominator tree data, and the build-check offer — that's very helpful context. - **Root set:** Agreed on using the declarations of `Main` and `Statement...
Visio-Vanitas • Nov 25, 2026
@roy7 Quick follow-up on the build-check gap: I opened a small, conflict-free draft slice in (`chore/dead-modules-automorphic-arithmetic` at `48ae08acc5` on `27b5578748`, 22 untouched modules / 35 ...

Frequently Asked Questions

Market intelligence mapped to Lean formalization of the Riemann Hypothesis.

What problem does Lean formalization of the Riemann Hypothesis solve?
Based on our AI analysis of the original developer request, its primary technical positioning is: Codebase optimization and reduction of unnecessary formalizations
Are engineers actively discussing Lean formalization of the Riemann Hypothesis?
Yes, we have tracked 15 direct responses and active debates regarding this specific topic originating from GitHub Issue.
Which technical concepts are associated with Lean formalization of the Riemann Hypothesis?
Our proprietary extraction maps Lean formalization of the Riemann Hypothesis to adjacent architectural concepts including merged pull requests, drop a conclusion that no caller reads, unused conclusions, dead code.

Engagement Signals

15
Replies
open
Issue Status

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