Lean Census: A Distributional Analysis of AI-Generated Lean Code
Not on the map. Why?
Abstract (arXiv)
We compare two human-written and four AI-generated Lean libraries with Mathlib through the distributions of simple statistics of their code. For each library we measure inline claims in proofs, proof length, how often each declaration is used, and design choices such as instances and private declarations, and we read each against the variation among Mathlib's own areas. The AI-generated libraries have more inline claims per theorem, longer proofs, fewer instances, and more private declarations than the human-written ones. We release the code for the analysis as a package, lean-census, at https://github.com/project-numina/lean-census.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 16 of its 45 references that are in the map. Submitted 21 Nov 2026, announced 24 Nov 2026.
Builds on
16 of 45 references.
References · 16
- 2019The Lean mathematical librarycited by 164
- 2022Top-Down Synthesis for Library Learningcited by 61
- 2023LILO: Learning Interpretable Libraries by Compressing and Documenting Codecited by 57
- 2025Speed at the Cost of Quality: How Cursor AI Increases Short-Term Velocity and Long-Term Complexity in Open-Source Projectscited by 26
- 2025ProofOptimizer: Training Language Models to Simplify Proofs without Human Demonstrationscited by 13
- 2024HepLean: Digitalising high energy physicscited by 11
- 2022Formalising the h-principle and sphere eversioncited by 8
- 2026The Network Structure of Mathlibcited by 8
- 2026Sorries Are Not the Hard Part: An Expert-Review Case Study of a Semi-Autonomous Formalizationcited by 8
- 2023Abstraction boundaries and spec driven development in pure mathematicscited by 7
- 2024Library Learning Doesn't: The Curious Case of the Single-Use "Library"cited by 7
- 2026Proof-Refactor: Refactoring Generated Formal Proofs into Modular Artifactscited by 4
4 more
- 2014Realms: A Structure for Consolidating Knowledge about Mathematical Theoriescited by 1
- 2021A formalization of Dedekind domains and class groups of global fieldscited by 1
- 2026ProofJudge: Tool-Grounded LLM Evaluation of Formal Proof Quality in Mathlibcited by 1
- 2026AI has its own style in mathematical provingcited by 1
Built on by
Not cited yet.