# jimjamzola/rh-alpoge-reconstruction architecture

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

- Interactive diagram: https://gitdiagram.com/jimjamzola/rh-alpoge-reconstruction
- Repository: https://github.com/jimjamzola/rh-alpoge-reconstruction

## Overview

This repository is a human-readable reconstruction of the Alpöge/Claude Riemann-hypothesis argument, accompanied by audit tooling for tracing and classifying its Lean dependency route. The intended reader workflow is to follow the manuscript, check its correspondence with Lean declarations, and consult the verification materials for unresolved inputs. Internally, the audit scripts query a declaration graph and classify proof regions into reconstructed mechanisms or external boundaries. The README documents manuscript, passage-ledger, and companion-check capabilities; only sampled audit sources support the detailed tooling relationships shown here, so unsampled implementation links are omitted.

Main entry points: [`audit/final_certification/scripts/q.py`](https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/final_certification/scripts/q.py) (Declaration graph), [`audit/final_certification/scripts/gc_classify.py`](https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/final_certification/scripts/gc_classify.py) (Status classification), [`manuscript`](https://github.com/jimjamzola/rh-alpoge-reconstruction/tree/main/manuscript) (RH manuscript), [`audit/closure_reports/Final_EBlock/scripts/eb_classify.py`](https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/closure_reports/Final_EBlock/scripts/eb_classify.py) (E-block region)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_reader["Proof review"]
end

subgraph group_manuscript["Reconstruction"]
  node_manuscript_main["RH manuscript"]
  node_passage_ledger["Passage ledger"]
  node_review_material["Review materials"]
  node_companion_checks["Companion checks"]
end

subgraph group_audit["Dependency audit"]
  node_declaration_graph[("Declaration graph<br/>[q.py]")]
  node_final_status["Final certification<br/>[gc_final.py]"]
  node_status_classification["Status classification<br/>[gc_classify.py]"]
  node_external_boundary["External boundary<br/>[gc_boundary.py]"]
end

subgraph group_classification["Proof regions"]
  node_kernel_law["Kernel-law region<br/>[kl_classify.py]"]
  node_e_block["E-block region<br/>[eb_classify.py]"]
  node_w_block["W-block region<br/>[wb_sets.py]"]
  node_d123_region["D1–D3 region<br/>[d123_final.py]"]
  node_level_leaves["Level leaves<br/>[lvl_final.py]"]
  node_d2_rebasing["D2 rebasing<br/>[d2r_final.py]"]
  node_d5_region["D5 region<br/>[d5_final.py]"]
  node_d_block["D-block overlap<br/>[e_overlap.py]"]
end

node_mathematician(("Mathematician"))
node_lean[("Lean archive")]

node_mathematician -->|"reads"| node_manuscript_main
node_mathematician -->|"reviews"| node_review_material
node_lean -->|"reconstructs"| node_manuscript_main
node_manuscript_main -->|"maps passages"| node_passage_ledger
node_lean -->|"links declarations"| node_passage_ledger
node_companion_checks -->|"checks locally"| node_lean
node_final_status -->|"queries"| node_declaration_graph
node_status_classification -->|"queries"| node_declaration_graph
node_external_boundary -->|"queries"| node_declaration_graph
node_kernel_law -->|"queries"| node_declaration_graph
node_e_block -->|"queries"| node_declaration_graph
node_w_block -->|"queries"| node_declaration_graph
node_d123_region -->|"queries"| node_declaration_graph
node_level_leaves -->|"queries"| node_declaration_graph
node_d2_rebasing -->|"queries"| node_declaration_graph
node_d5_region -->|"queries"| node_declaration_graph
node_d_block -->|"queries"| node_declaration_graph
node_status_classification -->|"classifies region"| node_e_block
node_status_classification -->|"classifies region"| node_w_block

click node_manuscript_main "https://github.com/jimjamzola/rh-alpoge-reconstruction/tree/main/manuscript"
click node_passage_ledger "https://github.com/jimjamzola/rh-alpoge-reconstruction/tree/main/review"
click node_review_material "https://github.com/jimjamzola/rh-alpoge-reconstruction/tree/main/review"
click node_companion_checks "https://github.com/jimjamzola/rh-alpoge-reconstruction/tree/main/audit"
click node_declaration_graph "https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/final_certification/scripts/q.py"
click node_final_status "https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/final_certification/scripts/gc_final.py"
click node_status_classification "https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/final_certification/scripts/gc_classify.py"
click node_external_boundary "https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/final_certification/scripts/gc_boundary.py"
click node_kernel_law "https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/closure_reports/Final_Kernel_Law/scripts/kl_classify.py"
click node_e_block "https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/closure_reports/Final_EBlock/scripts/eb_classify.py"
click node_w_block "https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/closure_reports/Final_WBlock/scripts/wb_sets.py"
click node_d123_region "https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/closure_reports/Final_D123/scripts/d123_final.py"
click node_level_leaves "https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/closure_reports/Final_Level_Leaves/scripts/lvl_final.py"
click node_d2_rebasing "https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/closure_reports/Final_D2_Rebasing/scripts/d2r_final.py"
click node_d5_region "https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/closure_reports/Final_D5/scripts/d5_final.py"
click node_d_block "https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/closure_reports/Final_D_Block/scripts/e_overlap.py"

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_manuscript_main,node_passage_ledger,node_review_material,node_companion_checks,node_lean toneAmber
class node_declaration_graph,node_final_status,node_status_classification,node_external_boundary toneMint
class node_kernel_law,node_e_block,node_w_block,node_d123_region,node_level_leaves,node_d2_rebasing,node_d5_region,node_d_block toneRose
class node_mathematician toneIndigo
```

## Components

### Reconstruction

- [RH manuscript](https://github.com/jimjamzola/rh-alpoge-reconstruction/tree/main/manuscript): `manuscript`
- [Passage ledger](https://github.com/jimjamzola/rh-alpoge-reconstruction/tree/main/review): `review`
- [Review materials](https://github.com/jimjamzola/rh-alpoge-reconstruction/tree/main/review): `review`
- [Companion checks](https://github.com/jimjamzola/rh-alpoge-reconstruction/tree/main/audit): `audit`

### Dependency audit

- [Declaration graph](https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/final_certification/scripts/q.py): `audit/final_certification/scripts/q.py`
- [Final certification](https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/final_certification/scripts/gc_final.py): `audit/final_certification/scripts/gc_final.py`
- [Status classification](https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/final_certification/scripts/gc_classify.py): `audit/final_certification/scripts/gc_classify.py`
- [External boundary](https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/final_certification/scripts/gc_boundary.py): `audit/final_certification/scripts/gc_boundary.py`

### Proof regions

- [Kernel-law region](https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/closure_reports/Final_Kernel_Law/scripts/kl_classify.py): `audit/closure_reports/Final_Kernel_Law/scripts/kl_classify.py`
- [E-block region](https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/closure_reports/Final_EBlock/scripts/eb_classify.py): `audit/closure_reports/Final_EBlock/scripts/eb_classify.py`
- [W-block region](https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/closure_reports/Final_WBlock/scripts/wb_sets.py): `audit/closure_reports/Final_WBlock/scripts/wb_sets.py`
- [D1–D3 region](https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/closure_reports/Final_D123/scripts/d123_final.py): `audit/closure_reports/Final_D123/scripts/d123_final.py`
- [Level leaves](https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/closure_reports/Final_Level_Leaves/scripts/lvl_final.py): `audit/closure_reports/Final_Level_Leaves/scripts/lvl_final.py`
- [D2 rebasing](https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/closure_reports/Final_D2_Rebasing/scripts/d2r_final.py): `audit/closure_reports/Final_D2_Rebasing/scripts/d2r_final.py`
- [D5 region](https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/closure_reports/Final_D5/scripts/d5_final.py): `audit/closure_reports/Final_D5/scripts/d5_final.py`
- [D-block overlap](https://github.com/jimjamzola/rh-alpoge-reconstruction/blob/main/audit/closure_reports/Final_D_Block/scripts/e_overlap.py): `audit/closure_reports/Final_D_Block/scripts/e_overlap.py`

### Other components

- **Mathematician**
- **Lean archive**

## Connections

- Mathematician → RH manuscript: reads (evidence: `README.md`)
- Mathematician → Review materials: reviews (evidence: `README.md`)
- Lean archive → RH manuscript: reconstructs (evidence: `README.md`)
- RH manuscript → Passage ledger: maps passages (evidence: `README.md`)
- Lean archive → Passage ledger: links declarations (evidence: `README.md`)
- Companion checks → Lean archive: checks locally (evidence: `README.md`)
- Final certification → Declaration graph: queries (evidence: `audit/final_certification/scripts/gc_final.py`)
- Status classification → Declaration graph: queries (evidence: `audit/final_certification/scripts/gc_classify.py`)
- External boundary → Declaration graph: queries (evidence: `audit/final_certification/scripts/gc_boundary.py`)
- Kernel-law region → Declaration graph: queries (evidence: `audit/closure_reports/Final_Kernel_Law/scripts/kl_classify.py`)
- E-block region → Declaration graph: queries (evidence: `audit/closure_reports/Final_EBlock/scripts/eb_classify.py`)
- W-block region → Declaration graph: queries (evidence: `audit/closure_reports/Final_WBlock/scripts/wb_sets.py`)
- D1–D3 region → Declaration graph: queries (evidence: `audit/closure_reports/Final_D123/scripts/d123_final.py`)
- Level leaves → Declaration graph: queries (evidence: `audit/closure_reports/Final_Level_Leaves/scripts/lvl_final.py`)
- D2 rebasing → Declaration graph: queries (evidence: `audit/closure_reports/Final_D2_Rebasing/scripts/d2r_final.py`)
- D5 region → Declaration graph: queries (evidence: `audit/closure_reports/Final_D5/scripts/d5_final.py`)
- D-block overlap → Declaration graph: queries (evidence: `audit/closure_reports/Final_D_Block/scripts/e_overlap.py`)
- Status classification → E-block region: classifies region (evidence: `audit/final_certification/scripts/gc_classify.py`)
- Status classification → W-block region: classifies region (evidence: `audit/final_certification/scripts/gc_classify.py`)
