# tamnd/riemann-lean architecture

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

- Interactive diagram: https://gitdiagram.com/tamnd/riemann-lean
- Repository: https://github.com/tamnd/riemann-lean

## Overview

This repository is a Lean 4 formal-proof source release, not a verification service: its main product is the source that readers can inspect and build. The documented endpoint is five theorem declarations in `Main.lean`, including the Riemann Hypothesis and Dirichlet L-function results; the README says every Lean module is in Main’s import closure. The tree shows broad supporting theory and development libraries, but no source excerpts were provided, so their internal call structure is not asserted. Edges reflect only relationships stated in the README.

Main entry points: [`lean/src/CompanionTheory/AutomorphicTheory`](https://github.com/tamnd/riemann-lean/tree/main/lean/src/CompanionTheory/AutomorphicTheory) (Automorphic results), [`lean/src/CompanionTheory/EightfoldTheory`](https://github.com/tamnd/riemann-lean/tree/main/lean/src/CompanionTheory/EightfoldTheory) (Eightfold theory), [`lean/src/CompanionTheory/HarishChandraModules`](https://github.com/tamnd/riemann-lean/tree/main/lean/src/CompanionTheory/HarishChandraModules) (Harish-Chandra modules), [`lean/src/CompanionTheory/RealGroups`](https://github.com/tamnd/riemann-lean/tree/main/lean/src/CompanionTheory/RealGroups) (Real groups)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Theorem entrypoints"]
  node_main["Main theorems"]
  node_statements["L-function statements"]
end

subgraph group_automorphic["Automorphic theory"]
  node_automorphic["Automorphic results"]
end

subgraph group_companion["Companion theory"]
  node_eightfold["Eightfold theory"]
  node_harishchandra["Harish-Chandra modules"]
  node_realgroups["Real groups"]
  node_spectral["Spectral geometry"]
  node_thickening["Thickening estimates"]
end

subgraph group_development["Mathematical development"]
  node_abelian["Abelian varieties"]
  node_buildaid["BuildAid proofs"]
end

node_reader(("Source reader"))

node_reader -->|"inspects"| node_main
node_reader -->|"inspects"| node_statements
node_main -->|"imports"| node_automorphic
node_main -->|"imports"| node_eightfold
node_main -->|"imports"| node_harishchandra
node_main -->|"imports"| node_realgroups
node_main -->|"imports"| node_spectral
node_main -->|"imports"| node_thickening
node_main -->|"imports"| node_abelian
node_main -->|"imports"| node_buildaid
node_main -->|"states results from"| node_statements

click node_automorphic "https://github.com/tamnd/riemann-lean/tree/main/lean/src/CompanionTheory/AutomorphicTheory"
click node_eightfold "https://github.com/tamnd/riemann-lean/tree/main/lean/src/CompanionTheory/EightfoldTheory"
click node_harishchandra "https://github.com/tamnd/riemann-lean/tree/main/lean/src/CompanionTheory/HarishChandraModules"
click node_realgroups "https://github.com/tamnd/riemann-lean/tree/main/lean/src/CompanionTheory/RealGroups"
click node_spectral "https://github.com/tamnd/riemann-lean/tree/main/lean/src/CompanionTheory/SpectralGeometry"
click node_thickening "https://github.com/tamnd/riemann-lean/tree/main/lean/src/CompanionTheory/ThickeningEstimates"
click node_abelian "https://github.com/tamnd/riemann-lean/tree/main/lean/src/Development/AbelianVarietyTheory"
click node_buildaid "https://github.com/tamnd/riemann-lean/tree/main/lean/src/BuildAid"

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_main,node_statements toneBlue
class node_automorphic toneAmber
class node_eightfold,node_harishchandra,node_realgroups,node_spectral,node_thickening toneMint
class node_abelian,node_buildaid toneRose
class node_reader toneIndigo
```

## Components

### Theorem entrypoints

- **Main theorems**
- **L-function statements**

### Automorphic theory

- [Automorphic results](https://github.com/tamnd/riemann-lean/tree/main/lean/src/CompanionTheory/AutomorphicTheory): `lean/src/CompanionTheory/AutomorphicTheory`

### Companion theory

- [Eightfold theory](https://github.com/tamnd/riemann-lean/tree/main/lean/src/CompanionTheory/EightfoldTheory): `lean/src/CompanionTheory/EightfoldTheory`
- [Harish-Chandra modules](https://github.com/tamnd/riemann-lean/tree/main/lean/src/CompanionTheory/HarishChandraModules): `lean/src/CompanionTheory/HarishChandraModules`
- [Real groups](https://github.com/tamnd/riemann-lean/tree/main/lean/src/CompanionTheory/RealGroups): `lean/src/CompanionTheory/RealGroups`
- [Spectral geometry](https://github.com/tamnd/riemann-lean/tree/main/lean/src/CompanionTheory/SpectralGeometry): `lean/src/CompanionTheory/SpectralGeometry`
- [Thickening estimates](https://github.com/tamnd/riemann-lean/tree/main/lean/src/CompanionTheory/ThickeningEstimates): `lean/src/CompanionTheory/ThickeningEstimates`

### Mathematical development

- [Abelian varieties](https://github.com/tamnd/riemann-lean/tree/main/lean/src/Development/AbelianVarietyTheory): `lean/src/Development/AbelianVarietyTheory`
- [BuildAid proofs](https://github.com/tamnd/riemann-lean/tree/main/lean/src/BuildAid): `lean/src/BuildAid`

### Other components

- **Source reader**

## Connections

- Source reader → Main theorems: inspects (evidence: `README.md`)
- Source reader → L-function statements: inspects (evidence: `README.md`)
- Main theorems → Automorphic results: imports (evidence: `README.md`)
- Main theorems → Eightfold theory: imports (evidence: `README.md`)
- Main theorems → Harish-Chandra modules: imports (evidence: `README.md`)
- Main theorems → Real groups: imports (evidence: `README.md`)
- Main theorems → Spectral geometry: imports (evidence: `README.md`)
- Main theorems → Thickening estimates: imports (evidence: `README.md`)
- Main theorems → Abelian varieties: imports (evidence: `README.md`)
- Main theorems → BuildAid proofs: imports (evidence: `README.md`)
- Main theorems → L-function statements: states results from (evidence: `README.md`)
