Lean sources

The unified Lean 4 / Mathlib codebase (namespace SurfaceBlowup), 66 files, 52300 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.33.1, Mathlib 0df444a (pinned in lakefile.lean). Main theorems: main_dvr, main_field_form, main_field_form_ramified, recip_main; trust boundary: Basic.lean. Declaration index (reverse map Lean → paper).

SurfaceBlowup/

filetitlelinespublic declscited by the paper map
Basic.leanStatement-level definitions (the trust boundary)5037943
Main.leanMain theorems12033

SurfaceBlowup/Algebra/

filetitlelinespublic declscited by the paper map
AlgebraType.leanAlgebra types and integral closures over a discrete valuation ring644323
FactorInvariant.leanInvariance of factor invariants and uniqueness of algebra types32460

SurfaceBlowup/Assembly/

filetitlelinespublic declscited by the paper map
Formulas.leanThe density formulas for the route-F densities13922
MonicCells.leanMonic, projective and divisor cells134293
NullBridges.leanStrict-transform measures, type events and the projective null bridge490184
TypeEvents.leanType events and divisor counts1330170

SurfaceBlowup/Blowup/

filetitlelinespublic declscited by the paper map
CechStability.leanStability of the finite Čech coefficients31243
Charts.leanBlow-up charts, the exceptional line, and curve data11581442
CurveOrders.leanCurve orders, the exceptional line, and finitely supported local data1050261
CurveSections.leanCurve sections on the two-chart blow-up1110182
Directions.leanClosed points and divisors on the exceptional line154160
DivisorPoints.leanExceptional divisor points of two-chart curve data1459102
ExceptionalLayers.leanExceptional layers of the point blow-up842111
FixedTangentCellBijection.leanStrict transforms give a bijection on a fixed tangent cell48044
H0Comparison.leanComparing surface functions with Čech data on the blow-up1245203
NilpotentGluing.leanNilpotent gluing of exceptional levels1490163
PointTransport.leanTransport of points between blow-up charts1284240
StrictNormalizer.leanStrict transforms and the strict normalizer1497225
TwoChartCurveData.leanTwo-chart curve data1389120

SurfaceBlowup/Formula/

filetitlelinespublic declscited by the paper map
FiniteFieldCounts.leanCounting over finite fields7831
LawAlgebra.leanExpression and law algebra, children of tangent patterns914462
PatternCounts.leanCounting divisors with a given tangent pattern66173
RationalEval.leanEvaluating the universal rational functions6610
StateCombinatorics.leanCombinatorics of states, ranks and safety of the laws611147
TypeTransport.leanTransport of factorization types and cell measures28181

SurfaceBlowup/Measure/

filetitlelinespublic declscited by the paper map
AdicCylinders.leanAdic congruences, adic cylinders and division charts989475
AdicTransport.leanAdic congruences, adic perturbations and transport of cylinder measures323100
Atlas.leanIdeal-chart atlases and atlas independence of the state measure31574
Haar.leanHaar measures on unramified extensions and strict-transform normalizations37662
HenselProducts.leanHensel factorization, finite products and coefficient measures1267250
MemberBoxes.leanMeasure of member boxes60122
MemberCharts.leanCharts of concrete members and the inseparable locus602143
Normalizer.leanGenerator normalization and residue-ideal counts38195
PrimitiveLocus.leanThe primitive locus, state measures, and integral closures381142
StateVolumes.leanSingle-state residue ideal counts and Haar-measure transport20942

SurfaceBlowup/Reciprocity/

filetitlelinespublic declscited by the paper map
Defs.leanReciprocity: definitions and basic lemmas10449523
Main.leanThe reciprocity law (Theorem R)30158
Patterns.leanPattern sums, crossing factorization and unitarity10452311
Plethysm.leanPlethystic calculus for the reciprocity law1034487
Quantum.leanReciprocity: the quantum torus, dilations and reciprocal substitution9207211

SurfaceBlowup/Recursion/

filetitlelinespublic declscited by the paper map
ChildMembers.leanChild members and terminal states of the blowup recursion1215144
Events.leanReturn and exit events of the blowup recursion922147
Members.leanMembers of the recursion universe1427712
OrderDefect.leanOrder defects and child data for the blowup recursion1151142
RootCellLaw.leanThe root cell law136574
Termination.leanTermination of the recursion1316223

SurfaceBlowup/Surfaces/

filetitlelinespublic declscited by the paper map
ChartCompletions.leanCompletions of the blow-up charts of the concrete surface89470
Completeness.leanCompleteness of the concrete surface414140
ConcreteAtlas.leanIdeal atlases and curve data on the concrete surface72550
ConcretePoints.leanClosed points on the blow-up of the concrete surface43970
ConcreteStrictTransforms.leanVolumes and strict transforms on the concrete surface48662
Lengths.leanConcrete surfaces, chart substitutions and lengths1284807
PowerSeries.leanPower series, residue bases and the local structure of concrete surfaces1011251
Regularity.leanRegularity of the concrete surface691151
TruncatedSeries.leanTruncations of `k⟦T, X⟧` and contacts on the special fibre556160

SurfaceBlowup/Unramified/

filetitlelinespublic declscited by the paper map
DescentTypes.leanTypes under unramified base change36673
Extension.leanBinary forms, factor cells and unramified extensions1160600
FactorCells.leanFactor cells: residue cells of factor products and root-field isomorphisms547110
FrobeniusDescent.leanFrobenius descent for unramified extensions1189154
HomogeneousCells.leanMeasure-preserving maps between homogeneous cells78152
LocalDescent.leanLocal lengths and finite quotients of completions19052
PolynomialTypes.leanPolynomial types, form products and residue cells1251191

Tests/

filetitlelinespublic declscited by the paper map
NonVacuity.leanNon-vacuity of the hypotheses of `main_dvr`128121
Regression.leanRegression guards for the universal density expressions20312216