# GRH Atlas — Source-Pinned Proof Blueprint & Human-Review Surface

This blueprint maps the 477,124-line Lean 4 proof of the Riemann Hypothesis and Generalized Riemann Hypothesis (`grh-lean`) into a navigable, source-anchored guide for human mathematicians and formal verification auditors.

## 1. Verified Quantitative Snapshot

| Metric | Measured Value | Notes |
| :--- | ---: | :--- |
| Total Lean modules (`grh/src`) | **803** | 100% reachable from `Main.lean` (0 unreachable) |
| Longest dependency chain | **53 layers** | Verified acyclic DAG (`is_dag = True`) |
| Total lines / non-blank lines | **477,124 / 432,527** | Readable edition (`grh/`) |
| Formal declarations | **23,132** | `lemma`: 16,667, `theorem`: 1,548, `def`: 3,313 |
| Trusted Computing Base (TCB) | **38 lines** | `Statements.lean` + `Main.lean` (**12,556×** amplification) |
| `sorry` / custom `axiom` count | **0 / 0** | Standard axioms only: `propext, Classical.choice, Quot.sound` |
| `Lib -> New` reverse imports | **0** | Strict one-way separation between background library and proof |
| Compact edition compression | **4.23×** | `grh` (477,124 LOC) vs `grh-compact` (112,827 LOC) |

## 2. Macroscopic Four-Layer Proof Spine (Source-Pinned)

Rather than bounding zero densities directly, the proof reduces GRH to a one-sided prime-sum bound $R_{q_0}(x) \le x^{-1/2+\varepsilon}$ via Landau's lemma, and extracts that bound by squeezing the covolume + twice the index of a twisted lattice of unitary automorphic forms under a theta-lift chain of length $m \asymp \sqrt{x}$.

### 2.1 Layer 0 · Trusted Computing Base — `Statements`
- **Source Anchor**: `grh/src/Statements.lean#L10` (16 lines, DAG layer `3`)
- **Key Symbol**: `RiemannZetaZerosOnLine / DirichletLZerosOnLine`
- **Core Relation**: `∀ χ, 0 < Re(s) < 1 ∧ L(s, χ) = 0 ⟹ Re(s) = 1/2`
- **Collapse Impact**: Removing this module breaks **4 / 803** modules (0.5%).
- **Role**: Imports ONLY Mathlib. States RH and GRH for all Dirichlet characters in standard Mathlib types (16 lines).

### 2.2 Layer 0 · Top-Level Export — `Main`
- **Source Anchor**: `grh/src/Main.lean#L5` (22 lines, DAG layer `0`)
- **Key Symbol**: `riemannHypothesis & 4 GRH theorems`
- **Core Relation**: `New.grh ⟹ riemannHypothesis ∧ LFunction_eq_zero_re`
- **Collapse Impact**: Removing this module breaks **1 / 803** modules (0.12%).
- **Role**: Derives all 5 theorems from `New.grh` using only standard axioms [propext, Classical.choice, Quot.sound] (22 lines).

### 2.3 Layer 1 · One-Sided Reduction — `New.Reduction.OneSidedBound`
- **Source Anchor**: `grh/src/New/Reduction/OneSidedBound.lean#L239` (269 lines, DAG layer `2`)
- **Key Symbol**: `New.grh & eventually_primeRemainder_le_rpow`
- **Core Relation**: `R_{q₀}(x) ≤ φ(q₀)·log⁶(b)/m + |R_{q₀}(x₁)| + log(b)·|R₁(x₁)| ≤ C·x^(-1/2 + 6ε)`
- **Collapse Impact**: Removing this module breaks **3 / 803** modules (0.37%).
- **Role**: Turns `star_inequality` + PNT at scale x₁ ≥ x^(10⁶) into the one-sided prime remainder bound R_{q₀}(x) ≤ x^(-1/2 + ε), then invokes the Landau criterion.

### 2.4 Layer 1 · Landau Zero-Free Criterion — `New.Reduction.Zeros.Criterion`
- **Source Anchor**: `grh/src/New/Reduction/Zeros/Criterion.lean#L37` (91 lines, DAG layer `3`)
- **Key Symbol**: `LFunction_ne_zero_of_primeRemainder_le`
- **Core Relation**: `R_{q₀}(x) ≤ x^(β-1) (∀ d ≡ d₀ mod q₀) ⟹ L(ρ, ψ) ≠ 0 (Re ρ > β)`
- **Collapse Impact**: Removing this module breaks **4 / 803** modules (0.5%).
- **Role**: Picks prime d via quadratic-twist zero density so twisted L-functions don't vanish in the box; Landau's lemma forces zero order 0 for Re(s) > β.

### 2.5 Layer 2 · The Heart (Main Inequality) — `New.Reduction.MainInequality`
- **Source Anchor**: `grh/src/New/Reduction/MainInequality.lean#L87` (158 lines, DAG layer `3`)
- **Key Symbol**: `star_inequality`
- **Core Relation**: `mainAmount - 3·loss ≤ (V + 2δ)/d ≤ mainAmount - (n/d)·m·rem + err  ⟹  m·rem ≤ f·a·log⁵ b`
- **Collapse Impact**: Removing this module breaks **4 / 803** modules (0.5%).
- **Role**: Squeezes the covolume + 2·index of a twisted lattice of target forms from below (Theorem C) and above (Theorems A+B). `mainAmount` cancels identically!

### 2.6 Layer 3 · Pillar A & B (Short & Enough Forms) — `New.Reduction.ShortAndEnough`
- **Source Anchor**: `grh/src/New/Reduction/ShortAndEnough.lean#L93` (457 lines, DAG layer `4`)
- **Key Symbol**: `Theorem A (span_short_integralRamified_eq_top) & Theorem B (enough_forms)`
- **Core Relation**: `n ≥ (1 - 4/b²)·dim(targetForms) ∧ ‖Θ₁(g·𝔭 φ)‖² ≤ exp(mainAmount - m·rem + loss)`
- **Collapse Impact**: Removing this module breaks **5 / 803** modules (0.62%).
- **Role**: Theorem A balances archimedean jet sizes against p-adic divisibility gains via an iterated seesaw identity; Theorem B proves few translates span ≥ (1 - 4/b²)d via Petersson second moments.

### 2.7 Layer 3 · Pillar C (Integral Forms Are Long) — `New.Determinant.Twist.LongForms`
- **Source Anchor**: `grh/src/New/Determinant/Twist/LongForms.lean#L59` (250 lines, DAG layer `4`)
- **Key Symbol**: `Theorem C (integral_forms_long)`
- **Core Relation**: `dim·(mainAmount - 3·loss) ≤ covolume + 2·index`
- **Collapse Impact**: Removing this module breaks **5 / 803** modules (0.62%).
- **Role**: Lower-bounds covolume + 2·index using m² square exchange identities, single-lift Hecke L-values, and anticyclotomic twists controlled by Galois representations, Selmer bounds, and p-adic Hodge theory.

## 3. Minimal Human-Review Surface

A human referee does not need to read 477,124 lines linearly to audit the mathematical trust boundary:

1. **38-Line TCB Audit**: Verify that `grh/src/Statements.lean` (imports only `Mathlib`) and `grh/src/Main.lean` match the mathematical definitions of $\zeta(s)$ and $L(s, \chi)$.
2. **Citation Verification Ledger (`REFERENCES.md`)**: Out of **228** checked literature entries, **66** are confirmed to exact theorem/page locations, **162** lack exact location confirmation, and **122** additional files were not included in the citation pass.
3. **Top Load-Bearing Hubs in `New/*`** (highest downstream collapse & fan-in):

| Rank | Module | Domain | Layer | In-Degree | Collapse Impact |
| :---: | :--- | :--- | :---: | :---: | :---: |
| 1 | `New.Reduction.Data.FieldsAndPlaces` | `New/Reduction` | 28 | 1 | 141 (17.56%) |
| 2 | `New.Derivatives.Field.PrimeDecomposition` | `New/Derivatives` | 27 | 1 | 140 (17.43%) |
| 3 | `New.Derivatives.Field.WeilData` | `New/Derivatives` | 26 | 1 | 139 (17.31%) |
| 4 | `New.Derivatives.Vacuum.TightFrames` | `New/Derivatives` | 25 | 2 | 138 (17.19%) |
| 5 | `New.Derivatives.Vacuum.IntegralVacuum` | `New/Derivatives` | 24 | 3 | 132 (16.44%) |
| 6 | `New.Reduction.Zeros.PrimeError` | `New/Reduction` | 24 | 3 | 132 (16.44%) |
| 7 | `New.Reduction.Data.AdmissibleData` | `New/Reduction` | 23 | 3 | 129 (16.06%) |
| 8 | `New.Reduction.Data.Magnitudes` | `New/Reduction` | 22 | 2 | 119 (14.82%) |
| 9 | `New.Derivatives.Field.ChosenPlaces` | `New/Derivatives` | 21 | 2 | 117 (14.57%) |
| 10 | `New.UpperBound.Seesaw.AdmissibleCombinations` | `New/UpperBound` | 18 | 5 | 109 (13.57%) |
| 11 | `New.Reduction.Data.LevelAndTwists` | `New/Reduction` | 20 | 3 | 109 (13.57%) |
| 12 | `New.Spanning.MainTerm.SieveSystem` | `New/Spanning` | 28 | 1 | 106 (13.2%) |
| 13 | `New.Spanning.Bessel.Basic` | `New/Spanning` | 27 | 6 | 105 (13.08%) |
| 14 | `New.UpperBound.Objects.LabelsAndIndexTypes` | `New/UpperBound` | 19 | 4 | 105 (13.08%) |
| 15 | `New.Reduction.Data.Sizes` | `New/Reduction` | 19 | 2 | 101 (12.58%) |

## 4. Citation Status Breakdown

| Verification State | Count |
| :--- | ---: |
| `work found, no place given` | 119 |
| `compared, place confirmed` | 66 |
| `place confirmed at second hand` | 35 |
| `not compared, no place given` | 8 |

---
*Generated deterministically from static analysis of `grh-lean` by `grh-atlas`.*
