Lean sources
The unified Lean 4 / Mathlib codebase (namespace SurfaceBlowup), 77 files, 53679 lines, syntax-highlighted with line anchors; every identifier defined in the codebase links to its definition. Lines carrying a coloured chip are cited by the paper ↔ Lean map. Raw files sit next to the pages (same path, .lean). Root files: SurfaceBlowup.lean · Tests.lean · README.md · lakefile.lean · lean-toolchain · lake-manifest.json.
Toolchain: Lean v4.35.0, Mathlib 56a0058 (pinned in lakefile.lean). Main theorems: main_dvr, main_field_form, main_field_form_ramified, recip_main; trust boundary: Basic.lean. Corollaries added in v1.2: universal_type_laws, reciprocity_ringHom. Declaration index (reverse map Lean → paper).
SurfaceBlowup/
| file | title | lines | public decls | cited by the paper map |
|---|
| Basic.lean | Statement-level definitions (the trust boundary) | 503 | 79 | 43 |
| Main.lean | Main theorems | 120 | 3 | 3 |
SurfaceBlowup/Algebra/
| file | title | lines | public decls | cited by the paper map |
|---|
| AlgebraType.lean | Algebra types and integral closures over a discrete valuation ring | 645 | 32 | 3 |
| FactorInvariant.lean | Invariance of factor invariants and uniqueness of algebra types | 324 | 6 | 0 |
SurfaceBlowup/Assembly/
| file | title | lines | public decls | cited by the paper map |
|---|
| Formulas.lean | The density formulas for the route-F densities | 140 | 2 | 2 |
| MonicCells.lean | Monic, projective and divisor cells | 1343 | 9 | 3 |
| NullBridges.lean | Strict-transform measures, type events and the projective null bridge | 490 | 18 | 4 |
| TypeEvents.lean | Type events and divisor counts | 1329 | 17 | 0 |
SurfaceBlowup/Blowup/
SurfaceBlowup/Cluster/
| file | title | lines | public decls | cited by the paper map |
|---|
| Defs.lean | The cluster density | 56 | 3 | 2 |
| Main.lean | Theorem 1.1, cluster clause | 155 | 4 | 3 |
SurfaceBlowup/Corollaries/
| file | title | lines | public decls | cited by the paper map |
|---|
| AdicCompact.lean | The adic topology of a complete DVR with finite residue field | 173 | 8 | 2 |
| Nonneg.lean | Nonnegativity of the universal expressions, and real-valued forms of the main theorems | 199 | 7 | 3 |
| RationalForm.lean | The three laws as rational functions, and reciprocity as an automorphism of `ℚ(q)` | 230 | 13 | 6 |
SurfaceBlowup/Etale/
| file | title | lines | public decls | cited by the paper map |
|---|
| Algebra.lean | The étale monic density in algebra language | 58 | 2 | 1 |
| Defs.lean | The étale convention for the type densities | 60 | 3 | 1 |
| Main.lean | The étale convention agrees with the published densities | 139 | 9 | 4 |
SurfaceBlowup/Formula/
SurfaceBlowup/Measure/
| file | title | lines | public decls | cited by the paper map |
|---|
| AdicCylinders.lean | Adic congruences, adic cylinders and division charts | 989 | 47 | 5 |
| AdicTransport.lean | Adic congruences, adic perturbations and transport of cylinder measures | 323 | 10 | 0 |
| Atlas.lean | Ideal-chart atlases and atlas independence of the state measure | 315 | 7 | 4 |
| Haar.lean | Haar measures on unramified extensions and strict-transform normalizations | 375 | 6 | 2 |
| HenselProducts.lean | Hensel factorization, finite products and coefficient measures | 1267 | 25 | 0 |
| MemberBoxes.lean | Measure of member boxes | 601 | 2 | 2 |
| MemberCharts.lean | Charts of concrete members and the inseparable locus | 602 | 14 | 3 |
| Normalizer.lean | Generator normalization and residue-ideal counts | 381 | 9 | 5 |
| PrimitiveLocus.lean | The primitive locus, state measures, and integral closures | 382 | 14 | 2 |
| StateVolumes.lean | Single-state residue ideal counts and Haar-measure transport | 209 | 4 | 2 |
SurfaceBlowup/Reciprocity/
| file | title | lines | public decls | cited by the paper map |
|---|
| Defs.lean | Reciprocity: definitions and basic lemmas | 1049 | 95 | 23 |
| Main.lean | The reciprocity law (Theorem 1.2) | 302 | 5 | 8 |
| Patterns.lean | Pattern sums, crossing factorization and unitarity | 1047 | 23 | 11 |
| Plethysm.lean | Plethystic calculus for the reciprocity law | 1034 | 48 | 7 |
| Quantum.lean | Reciprocity: the quantum torus, dilations and reciprocal substitution | 919 | 72 | 11 |
SurfaceBlowup/Recursion/
SurfaceBlowup/Surfaces/
SurfaceBlowup/Unramified/
Tests/
| file | title | lines | public decls | cited by the paper map |
|---|
| Cluster.lean | Regression guard for the cluster density | 59 | 3 | 3 |
| NonVacuity.lean | Non-vacuity of the hypotheses of `main_dvr` | 128 | 12 | 1 |
| PadicInt.lean | Non-vacuity in mixed characteristic: the `p`-adic integers | 121 | 8 | 3 |
| Ramified.lean | Non-vacuity over a ramified base: `ℚ_p(√p)` | 105 | 9 | 1 |
| Regression.lean | Regression guards for the universal density expressions | 2033 | 23 | 16 |