# leanprover-community/riemann-hypothesis architecture

> Architecture diagram of the GitHub repository leanprover-community/riemann-hypothesis, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/leanprover-community/riemann-hypothesis
- Repository: https://github.com/leanprover-community/riemann-hypothesis

## Overview

This repository is a Lean formalization project intended to prove the Riemann Hypothesis and GRH for Dirichlet L-functions. Its central workflow is to state the target theorems, develop the argument in `src/New` using background results in `src/Lib`, and expose completed proofs through the main theorem module. The README describes the theorem interface and proof outline, but the supplied tree omits several README-named files; edges involving them reflect that documentation, not inspected source. CI, cache tooling, and workflow automation are excluded as delivery infrastructure.

Main entry points: [`src/Statements.lean`](https://github.com/leanprover-community/riemann-hypothesis/blob/main/src/Statements.lean) (Target statements), [`src/Main.lean`](https://github.com/leanprover-community/riemann-hypothesis/blob/main/src/Main.lean) (Main proof), [`src/New/Reduction`](https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/New/Reduction) (Main inequality), [`Challenge.lean`](https://github.com/leanprover-community/riemann-hypothesis/blob/main/Challenge.lean) (Proof challenge)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["Theorem interfaces"]
  node_statements["Target statements<br/>[Statements.lean]"]
  node_mainproof["Main proof<br/>[Main.lean]"]
  node_challenge["Proof challenge<br/>[Challenge.lean]"]
end

subgraph group_argument["Proof development"]
  node_congruences["Congruence setup"]
  node_derivatives["Derivative arguments"]
  node_determinant["Determinant methods"]
  node_one_lift["One-lift results"]
  node_reduction["Main inequality"]
  node_spanning["Spanning estimates"]
  node_upper_bound["Upper bounds"]
end

subgraph group_background["Mathematical foundations"]
  node_analytic["Analytic number theory"]
  node_adelic["Adelic theory"]
  node_galois["Galois representations"]
  node_general["General foundations"]
  node_classfield["Class field theory"]
end

node_researcher(("Lean user"))

node_researcher -->|"reads targets"| node_statements
node_statements -->|"states theorems for"| node_mainproof
node_statements -->|"imports into"| node_challenge
node_reduction -->|"supplies half-plane form"| node_mainproof
node_mainproof -->|"proves results for"| node_researcher

click node_statements "https://github.com/leanprover-community/riemann-hypothesis/blob/main/src/Statements.lean"
click node_mainproof "https://github.com/leanprover-community/riemann-hypothesis/blob/main/src/Main.lean"
click node_challenge "https://github.com/leanprover-community/riemann-hypothesis/blob/main/Challenge.lean"
click node_congruences "https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/New/Congruences"
click node_derivatives "https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/New/Derivatives"
click node_determinant "https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/New/Determinant"
click node_one_lift "https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/New/OneLift"
click node_reduction "https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/New/Reduction"
click node_spanning "https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/New/Spanning"
click node_upper_bound "https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/New/UpperBound"
click node_analytic "https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/Lib/Analytic"
click node_adelic "https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/Lib/Adelic"
click node_galois "https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/Lib/GaloisRep"
click node_general "https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/Lib/General"
click node_classfield "https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/Lib/ClassField"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_statements,node_mainproof,node_challenge,node_researcher toneBlue
class node_congruences,node_derivatives,node_determinant,node_one_lift,node_reduction,node_spanning,node_upper_bound toneAmber
class node_analytic,node_adelic,node_galois,node_general,node_classfield toneMint
```

## Components

### Theorem interfaces

- [Target statements](https://github.com/leanprover-community/riemann-hypothesis/blob/main/src/Statements.lean): `src/Statements.lean`
- [Main proof](https://github.com/leanprover-community/riemann-hypothesis/blob/main/src/Main.lean): `src/Main.lean`
- [Proof challenge](https://github.com/leanprover-community/riemann-hypothesis/blob/main/Challenge.lean): `Challenge.lean`

### Proof development

- [Congruence setup](https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/New/Congruences): `src/New/Congruences`
- [Derivative arguments](https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/New/Derivatives): `src/New/Derivatives`
- [Determinant methods](https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/New/Determinant): `src/New/Determinant`
- [One-lift results](https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/New/OneLift): `src/New/OneLift`
- [Main inequality](https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/New/Reduction): `src/New/Reduction`
- [Spanning estimates](https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/New/Spanning): `src/New/Spanning`
- [Upper bounds](https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/New/UpperBound): `src/New/UpperBound`

### Mathematical foundations

- [Analytic number theory](https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/Lib/Analytic): `src/Lib/Analytic`
- [Adelic theory](https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/Lib/Adelic): `src/Lib/Adelic`
- [Galois representations](https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/Lib/GaloisRep): `src/Lib/GaloisRep`
- [General foundations](https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/Lib/General): `src/Lib/General`
- [Class field theory](https://github.com/leanprover-community/riemann-hypothesis/tree/main/src/Lib/ClassField): `src/Lib/ClassField`

### Other components

- **Lean user**

## Connections

- Lean user → Target statements: reads targets (evidence: `README.md`)
- Target statements → Main proof: states theorems for (evidence: `README.md`)
- Target statements → Proof challenge: imports into (evidence: `README.md`)
- Main inequality → Main proof: supplies half-plane form (evidence: `README.md`)
- Main proof → Lean user: proves results for (evidence: `README.md`)
