Measurements of the source of the Lean 4 project whose final theorem is the Riemann hypothesis for Dirichlet L-functions.
The source is plain Lean with no comments or docstrings. Half of the files have at most 58 lines; 80,084 have fewer than 50, and 323 have more than 1,000. The longest has 17,981 lines.
Mathlib, the library the project is built on, is the largest body of formalized mathematics in Lean. The project is 10.6 times its size in bytes.
Measured in characters of declaration text, proofs outweigh statements by about 2.8 to 1. The median theorem has a statement of 168 characters and a proof of 266.
A statement is taken to end at the first :=, so the split is approximate.
The longest proof runs to 30,858 characters, in the part of the project that proves resolution of singularities.
| Library | Files | MB | Theorems | Definitions |
|---|---|---|---|---|
Development/AbelianVarietyTheory | 99,187 | 520 | 375,914 | 78,196 |
Formalism | 18,254 | 165 | 162,118 | 76,543 |
Development/AutomorphicArithmetic | 18,431 | 111 | 71,155 | 19,908 |
Development/AutomorphicSpectrum | 15,147 | 72 | 58,894 | 10,004 |
GroundTheory | 8,507 | 55 | 54,211 | 18,983 |
Development/WeilBound | 7,051 | 49 | 41,740 | 13,292 |
ReciprocityTheory | 3,845 | 29 | 27,722 | 8,426 |
CompanionTheory | 2,027 | 11 | 9,419 | 2,306 |
Development/ResolutionOfSingularities | 499 | 8 | 6,676 | 1,265 |
Development/EtaleCohomology | 1,398 | 6 | 6,828 | 3,313 |
PositivityTheory | 449 | 3 | 2,702 | 1,976 |
Development/DiscreteGroups | 215 | 1 | 1,122 | 249 |
Lemmata | 167 | 0 | 245 | 6 |
Library names are the source's own and do not reliably describe the contents: Development/WeilBound, for example, holds Arakelov geometry and unitary base change.
Occurrences of each word anywhere in the source.
FunctorialResolution.EmbeddedResolution.isCompatibleWithOpenImmersions_affineResolutionRuleOfPrincipalization_of_smoothPullbackHasLocalAmbientEmbedding.0df444a3.