# 8dgkim/thomson-n32-lean architecture

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

- Interactive diagram: https://gitdiagram.com/8dgkim/thomson-n32-lean
- Repository: https://github.com/8dgkim/thomson-n32-lean

## Overview

This repository is a Lean 4 formal proof that the icosahedron–dodecahedron configuration uniquely minimizes Coulomb energy for 32 points on the sphere. The documented proof workflow establishes a three-point energy lower bound, uses it to constrain configurations to narrow windows, classifies the resulting patterns, then applies local rigidity to prove uniqueness up to symmetry. Certificate checkers and generated certificate data provide an internal verification layer. The README describes these stages, but no source excerpts were provided, so component-level calls and finer dependencies cannot be confirmed.

Main entry points: [`lean/Thomson32/Assembly.lean`](https://github.com/8dgkim/thomson-n32-lean/blob/main/lean/Thomson32/Assembly.lean) (Proof assembly), [`lean/Thomson32/Cert/LowerBound.lean`](https://github.com/8dgkim/thomson-n32-lean/blob/main/lean/Thomson32/Cert/LowerBound.lean) (Three-point bound), [`lean/Thomson32/Local`](https://github.com/8dgkim/thomson-n32-lean/tree/main/lean/Thomson32/Local) (Local rigidity), [`lean/Thomson32/Interfaces.lean`](https://github.com/8dgkim/thomson-n32-lean/blob/main/lean/Thomson32/Interfaces.lean) (Thomson statement)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_proof["Main proof"]
  node_formal_statement["Thomson statement<br/>[Interfaces.lean]"]
  node_proof_module["Proof assembly<br/>[Assembly.lean]"]
  node_candidate["Candidate configuration<br/>[Assembly.lean]"]
end

subgraph group_bounds["Energy bounds"]
  node_three_point_bound["Three-point bound<br/>[LowerBound.lean]"]
  node_energy_upper["Candidate energy<br/>[EnergyUpper.lean]"]
end

subgraph group_classification["Pattern classification"]
  node_windows["Window classification"]
end

subgraph group_rigidity["Local rigidity"]
  node_local_rigidity["Local rigidity"]
  node_hessian["Hessian certificate<br/>[BlockHessian.lean]"]
end

subgraph group_certs["Certificate verification"]
  node_bernstein_checker["Bernstein checker<br/>[Checker.lean]"]
  node_sdp_certificates["SDP certificates"]
  node_l1_certificates["L1 certificates"]
  node_scalar_certificates["Scalar certificates"]
end

node_researcher(("Configuration input"))

node_researcher -->|"supplies configuration"| node_formal_statement
node_proof_module -->|"proves theorem"| node_formal_statement
node_proof_module -.->|"uses candidate"| node_candidate
node_proof_module -->|"establishes bound"| node_three_point_bound
node_proof_module -.->|"compares energy"| node_energy_upper
node_proof_module -->|"constrains patterns"| node_windows
node_proof_module -->|"proves rigidity"| node_local_rigidity
node_local_rigidity -.->|"uses certificate"| node_hessian
node_three_point_bound -.->|"checked by"| node_bernstein_checker
node_three_point_bound -.->|"certified by"| node_sdp_certificates
node_three_point_bound -.->|"uses certificates"| node_l1_certificates
node_three_point_bound -.->|"uses certificates"| node_scalar_certificates

click node_formal_statement "https://github.com/8dgkim/thomson-n32-lean/blob/main/lean/Thomson32/Interfaces.lean"
click node_proof_module "https://github.com/8dgkim/thomson-n32-lean/blob/main/lean/Thomson32/Assembly.lean"
click node_candidate "https://github.com/8dgkim/thomson-n32-lean/blob/main/lean/Thomson32/Assembly.lean"
click node_three_point_bound "https://github.com/8dgkim/thomson-n32-lean/blob/main/lean/Thomson32/Cert/LowerBound.lean"
click node_energy_upper "https://github.com/8dgkim/thomson-n32-lean/blob/main/lean/Thomson32/Cert/EnergyUpper.lean"
click node_windows "https://github.com/8dgkim/thomson-n32-lean/tree/main/lean/Thomson32/Windows"
click node_local_rigidity "https://github.com/8dgkim/thomson-n32-lean/tree/main/lean/Thomson32/Local"
click node_hessian "https://github.com/8dgkim/thomson-n32-lean/blob/main/lean/Thomson32/Local/BlockHessian.lean"
click node_bernstein_checker "https://github.com/8dgkim/thomson-n32-lean/blob/main/lean/Thomson32/Cert/Bernstein/Checker.lean"
click node_sdp_certificates "https://github.com/8dgkim/thomson-n32-lean/tree/main/lean/Thomson32/Cert/SDP"
click node_l1_certificates "https://github.com/8dgkim/thomson-n32-lean/tree/main/lean/Thomson32/Cert/L1"
click node_scalar_certificates "https://github.com/8dgkim/thomson-n32-lean/tree/main/lean/Thomson32/Cert/Scalar"

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_formal_statement,node_proof_module,node_candidate toneBlue
class node_three_point_bound,node_energy_upper toneAmber
class node_windows toneMint
class node_local_rigidity,node_hessian toneRose
class node_bernstein_checker,node_sdp_certificates,node_l1_certificates,node_scalar_certificates,node_researcher toneIndigo
```

## Components

### Main proof

- [Thomson statement](https://github.com/8dgkim/thomson-n32-lean/blob/main/lean/Thomson32/Interfaces.lean): `lean/Thomson32/Interfaces.lean`
- [Proof assembly](https://github.com/8dgkim/thomson-n32-lean/blob/main/lean/Thomson32/Assembly.lean): `lean/Thomson32/Assembly.lean`
- [Candidate configuration](https://github.com/8dgkim/thomson-n32-lean/blob/main/lean/Thomson32/Assembly.lean): `lean/Thomson32/Assembly.lean`

### Energy bounds

- [Three-point bound](https://github.com/8dgkim/thomson-n32-lean/blob/main/lean/Thomson32/Cert/LowerBound.lean): `lean/Thomson32/Cert/LowerBound.lean`
- [Candidate energy](https://github.com/8dgkim/thomson-n32-lean/blob/main/lean/Thomson32/Cert/EnergyUpper.lean): `lean/Thomson32/Cert/EnergyUpper.lean`

### Pattern classification

- [Window classification](https://github.com/8dgkim/thomson-n32-lean/tree/main/lean/Thomson32/Windows): `lean/Thomson32/Windows`

### Local rigidity

- [Local rigidity](https://github.com/8dgkim/thomson-n32-lean/tree/main/lean/Thomson32/Local): `lean/Thomson32/Local`
- [Hessian certificate](https://github.com/8dgkim/thomson-n32-lean/blob/main/lean/Thomson32/Local/BlockHessian.lean): `lean/Thomson32/Local/BlockHessian.lean`

### Certificate verification

- [Bernstein checker](https://github.com/8dgkim/thomson-n32-lean/blob/main/lean/Thomson32/Cert/Bernstein/Checker.lean): `lean/Thomson32/Cert/Bernstein/Checker.lean`
- [SDP certificates](https://github.com/8dgkim/thomson-n32-lean/tree/main/lean/Thomson32/Cert/SDP): `lean/Thomson32/Cert/SDP`
- [L1 certificates](https://github.com/8dgkim/thomson-n32-lean/tree/main/lean/Thomson32/Cert/L1): `lean/Thomson32/Cert/L1`
- [Scalar certificates](https://github.com/8dgkim/thomson-n32-lean/tree/main/lean/Thomson32/Cert/Scalar): `lean/Thomson32/Cert/Scalar`

### Other components

- **Configuration input**

## Connections

- Configuration input → Thomson statement: supplies configuration (evidence: `README.md`)
- Proof assembly → Thomson statement: proves theorem (evidence: `README.md`)
- Proof assembly → Candidate configuration: uses candidate
- Proof assembly → Three-point bound: establishes bound (evidence: `README.md`)
- Proof assembly → Candidate energy: compares energy
- Proof assembly → Window classification: constrains patterns (evidence: `README.md`)
- Proof assembly → Local rigidity: proves rigidity (evidence: `README.md`)
- Local rigidity → Hessian certificate: uses certificate
- Three-point bound → Bernstein checker: checked by
- Three-point bound → SDP certificates: certified by
- Three-point bound → L1 certificates: uses certificates
- Three-point bound → Scalar certificates: uses certificates
