Lean Census: A Distributional Analysis of AI-Generated Lean Code
Justin Asher, Pietro Pellegrino
Key points
From the paper's conclusion- We compare two human-written and four AI-generated Lean libraries with Mathlib through the distributions of simple statistics of their code.
Abstract
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Studying proof data with proof theory: the case of AI-generated mathematicsarXiv · 2026
- LeanReviewBench: Semantic Alignment Review in Mathematical Lean ProjectsarXiv · 2026
- AI has its own style in mathematical provingarXiv · 2026
- ProofJudge: Tool-Grounded LLM Evaluation of Formal Proof Quality in MathlibarXiv · 2026
- The Gold Rush in AI4Math, II: What are signatures of AI-assisted Proofs?arXiv · 2026
- Improving semantic equivalence in research-level math formalizationarXiv · 2026