# seewoo5/lean-poly-abc architecture

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

- Interactive diagram: https://gitdiagram.com/seewoo5/lean-poly-abc
- Repository: https://github.com/seewoo5/lean-poly-abc

## Overview

This repository formalizes the polynomial Mason–Stothers theorem and four stated corollaries: Fermat–Catalan nonsolvability, polynomial FLT, nonparametrizability of a particular elliptic curve, and Davenport’s theorem. Its internal library contains polynomial radical, divisibility, maximum, and Wronskian modules. The README identifies the corollaries but no source excerpts were provided, so links from the main theorem are documented relationships; connections among library modules and theorem proofs are not inferred.

Main entry points: [`LeanPolyABC/MasonStothers.lean`](https://github.com/seewoo5/lean-poly-abc/blob/main/LeanPolyABC/MasonStothers.lean) (Mason–Stothers), [`LeanPolyABC/Corollaries/Davenport.lean`](https://github.com/seewoo5/lean-poly-abc/blob/main/LeanPolyABC/Corollaries/Davenport.lean) (Davenport theorem), [`LeanPolyABC/Corollaries/FltCatalan.lean`](https://github.com/seewoo5/lean-poly-abc/blob/main/LeanPolyABC/Corollaries/FltCatalan.lean) (Fermat–Catalan), [`LeanPolyABC/Corollaries/NoParametrization.lean`](https://github.com/seewoo5/lean-poly-abc/blob/main/LeanPolyABC/Corollaries/NoParametrization.lean) (Nonparametrizability)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_theorem["Main theorem"]
  node_mason["Mason–Stothers<br/>[MasonStothers.lean]"]
end

subgraph group_library["Proof library"]
  node_divradical["Divisibility radical<br/>[DivRadical.lean]"]
  node_max3["Maximum of three<br/>[Max3.lean]"]
  node_radical["Polynomial radical<br/>[Radical.lean]"]
  node_wronskian["Wronskian<br/>[Wronskian.lean]"]
end

subgraph group_corollaries["Corollaries"]
  node_davenport["Davenport theorem<br/>[Davenport.lean]"]
  node_fermatcatalan["Fermat–Catalan<br/>[FltCatalan.lean]"]
  node_nonparam["Nonparametrizability"]
end

node_mason -->|"underlies corollary"| node_davenport
node_mason -->|"underlies corollary"| node_fermatcatalan
node_mason -->|"underlies corollary"| node_nonparam

click node_mason "https://github.com/seewoo5/lean-poly-abc/blob/main/LeanPolyABC/MasonStothers.lean"
click node_divradical "https://github.com/seewoo5/lean-poly-abc/blob/main/LeanPolyABC/Lib/DivRadical.lean"
click node_max3 "https://github.com/seewoo5/lean-poly-abc/blob/main/LeanPolyABC/Lib/Max3.lean"
click node_radical "https://github.com/seewoo5/lean-poly-abc/blob/main/LeanPolyABC/Lib/Radical.lean"
click node_wronskian "https://github.com/seewoo5/lean-poly-abc/blob/main/LeanPolyABC/Lib/Wronskian.lean"
click node_davenport "https://github.com/seewoo5/lean-poly-abc/blob/main/LeanPolyABC/Corollaries/Davenport.lean"
click node_fermatcatalan "https://github.com/seewoo5/lean-poly-abc/blob/main/LeanPolyABC/Corollaries/FltCatalan.lean"
click node_nonparam "https://github.com/seewoo5/lean-poly-abc/blob/main/LeanPolyABC/Corollaries/NoParametrization.lean"

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_mason toneBlue
class node_divradical,node_max3,node_radical,node_wronskian toneAmber
class node_davenport,node_fermatcatalan,node_nonparam toneMint
```

## Components

### Main theorem

- [Mason–Stothers](https://github.com/seewoo5/lean-poly-abc/blob/main/LeanPolyABC/MasonStothers.lean): `LeanPolyABC/MasonStothers.lean`

### Proof library

- [Divisibility radical](https://github.com/seewoo5/lean-poly-abc/blob/main/LeanPolyABC/Lib/DivRadical.lean): `LeanPolyABC/Lib/DivRadical.lean`
- [Maximum of three](https://github.com/seewoo5/lean-poly-abc/blob/main/LeanPolyABC/Lib/Max3.lean): `LeanPolyABC/Lib/Max3.lean`
- [Polynomial radical](https://github.com/seewoo5/lean-poly-abc/blob/main/LeanPolyABC/Lib/Radical.lean): `LeanPolyABC/Lib/Radical.lean`
- [Wronskian](https://github.com/seewoo5/lean-poly-abc/blob/main/LeanPolyABC/Lib/Wronskian.lean): `LeanPolyABC/Lib/Wronskian.lean`

### Corollaries

- [Davenport theorem](https://github.com/seewoo5/lean-poly-abc/blob/main/LeanPolyABC/Corollaries/Davenport.lean): `LeanPolyABC/Corollaries/Davenport.lean`
- [Fermat–Catalan](https://github.com/seewoo5/lean-poly-abc/blob/main/LeanPolyABC/Corollaries/FltCatalan.lean): `LeanPolyABC/Corollaries/FltCatalan.lean`
- [Nonparametrizability](https://github.com/seewoo5/lean-poly-abc/blob/main/LeanPolyABC/Corollaries/NoParametrization.lean): `LeanPolyABC/Corollaries/NoParametrization.lean`

## Connections

- Mason–Stothers → Davenport theorem: underlies corollary (evidence: `README.md`)
- Mason–Stothers → Fermat–Catalan: underlies corollary (evidence: `README.md`)
- Mason–Stothers → Nonparametrizability: underlies corollary (evidence: `README.md`)
