Lean Census: A Distributional Analysis of AI-Generated Lean Code

lean-census:-a-distributional-analysis-of-ai-generated-lean-code

Lean Census: A Distributional Analysis of AI-Generated Lean Code

[Submitted on 21 Nov 2026]

View PDF HTML (experimental)

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 this https URL.

Submission history

From: Justin Asher [view email]
[v1] Sat, 21 Nov 2026 00:02:25 UTC (339 KB)