2026-11-26 15:37 UTC

Preprint compares structural patterns in AI- and human-written Lean libraries

state: seedheat: mediumuncertainty: mediumrelevance: mediumformal-mathematics lean ai-generated-codeJustin AsherPietro Pellegrino

What is this?

Justin Asher and Pietro Pellegrino’s arXiv preprint, submitted 21 November 2026, compares simple code-statistic distributions in two human-written and four AI-generated Lean libraries, reading them against variation across areas of Mathlib. The authors report that the AI-generated libraries have more inline claims per theorem, longer proofs, fewer instances, and more private declarations than the human-written libraries. They also release the analysis code as the lean-census package. The supplied sources do not give details about the libraries, sample sizes, or statistical strength, and the paper is a preprint rather than independently validated evidence.

Why it matters

This is a measurement tool and descriptive comparison, not a new proof-generating model. If the reported differences hold up, code-level signals could help researchers assess how AI-generated formal mathematics is structured and where it diverges from established human-written libraries. That could inform evaluation and tool design, but these statistics alone do not establish proof correctness, readability, or quality.

Current assessment

New: Asher and Pellegrino’s arXiv v1, submitted 21 Nov 2026, reports a comparison of two human-written and four AI-generated Lean libraries with Mathlib as a source of within-library-area variation. The abstract says the AI-generated libraries show more inline claims per theorem, longer proofs, fewer instances, and more private declarations; it says the analysis code is released as lean-census. These are the paper authors’ reported findings, not independently corroborated results in the supplied evidence. The available summary does not identify the libraries, their sizes or selection criteria, define the metrics, or show whether differences are statistically robust or generalize beyond these examples. The work may offer reusable descriptive measures for studying AI-written formal code, but the reported patterns should not be treated as evidence that generated proofs are less correct or worse. Track the paper and package for methodological detail, broader samples, and follow-up validation.

Measured heat

now 0 pts/hpeak 2 pts/hcomments 0/hpeers p21momentum: steady2 platformsage 146h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-20 13:00⭐ origin echo-reconstructedThe original source is the arXiv paper itself; it presents an analysis comparing human-written and AI-generated Lean libraries. Its abstract
Justin Asher and Pietro Pellegrino on paper (echo) · attributed from hn.story.50628106
—
11-24 13:46first on hacker news · published · +96.8hLean Census: A Distributional Analysis of AI-Generated Lean Code
wslh
—
11-24 13:46amplified on hacker news 👑hn.story.50628106
wslh
peak 1 · 0 comments · 103% of case engagement
11-24 14:20our radar first saw it · +97.3hdiscovery anchor: hn.story.50628106—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnLean Census: A Distributional Analysis of AI-Generated Lean Code
Retrieved article excerpt

Open article · Retrieved 2026-11-24T14:22:34.076535+00:00

# Computer Science > Machine Learning

**arXiv:2611.28430** (cs)

[Submitted on 21 Nov 2026]

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

Authors:[Justin Asher](https://arxiv.org/search/cs?searchtype=author&query=Asher,+J), [Pietro Pellegrino](https://arxiv.org/search/cs?searchtype=author&query=Pellegrino,+P)

View a PDF of the paper titled Lean Census: A Distributional Analysis of AI-Generated Lean Code, by Justin Asher and 1 other authors

[View PDF](https://arxiv.org/pdf/2611.28430)
[HTML (experimental)](https://arxiv.org/html/2611.28430v1)
> 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](https://github.com/project-numina/lean-census).

|  |
| --- |
| Comments: |
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Logic in Computer Science (cs.LO); Software Engineering (cs.SE) |
| Cite as: | [arXiv:2611.28430](https://arxiv.org/abs/2611.28430) [cs.LG] |
|  | (or  [arXiv:2611.28430v1](https://arxiv.org/abs/2611.28430v1) [cs.LG] for this version) |
|  | <https://doi.org/10.48550/arXiv.2611.28430> Focus to learn more  arXiv-issued DOI via DataCite (pending registration) |

## Submission history

From: Justin Asher [[view email](https://arxiv.org/show-email/d5d2779d/2611.28430)]   
 **[v1]**
Sat, 21 Nov 2026 00:02:25 UTC (339 KB)

Full-text links:

## Access Paper:

View a PDF of the paper titled Lean Census: A Distributional Analysis of AI-Generated Lean Code, by Justin Asher and 1 other authors

- [View PDF](https://arxiv.org/pdf/2611.28430)
- [HTML (experimental)](https://arxiv.org/html/2611.28430v1)
- [TeX Source](https://arxiv.org/src/2611.28430)

[license icon](http://creativecommons.org/licenses/by/4.0/ "Rights to this article")

### Additional Features

- [Audio Summary](https://arxiv.org/audio/2611.28430)

### Current browse context:

cs.LG

[< prev](https://arxiv.org/prevnext?id=2611.28430&function=prev&context=cs.LG "previous in cs.LG (accesskey p)")
  |   
[next >](https://arxiv.org/prevnext?id=2611.28430&function=next&context=cs.LG "next in cs.LG (accesskey n)")

[new](https://arxiv.org/list/cs.LG/new)
 | 
[recent](https://arxiv.org/list/cs.LG/recent)
 | [2026-11](https://arxiv.org/list/cs.LG/2026-11)

Change to browse by:

[cs](https://arxiv.org/abs/2611.28430?context=cs)  
[cs.AI](https://arxiv.org/abs/2611.28430?context=cs.AI)  
[cs.LO](https://arxiv.org/abs/2611.28430?context=cs.LO)  
[cs.SE](https://arxiv.org/abs/2611.28430?context=cs.SE)

### References & Citations

- [SciX](https://scixplorer.org/abs/arXiv:2611.28430)
- [Google Scholar](https://scholar.google.com/scholar_lookup?arxiv_id=2611.28430)
- [Semantic Scholar](https://api.semanticscholar.org/arXiv:2611.28430)

export BibTeX citation
Loading...

## BibTeX formatted citation

×

loading...

Data provided by:

### Bookmark

[BibSonomy](http://www.bibsonomy.org/BibtexHandler?requTask=upload&url=https://arxiv.org/abs/2611.28430&description=Lean Census: A Distributional Analysis of AI-Generated Lean Code "Bookmark on BibSonomy")
[Reddit](https://reddit.com/submit?url=https://arxiv.org/abs/2611.28430&title=Lean Census: A Distributional Analysis of AI-Generated Lean Code "Bookmark on Reddit")



Bibliographic Tools

# Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer *([What is the Explorer?](https://info.arxiv.org/labs/showcase.html#arxiv-bibliographic-explorer))*

Connected Papers Toggle

Connected Papers *([What is Connected Papers?](https://www.connectedpapers.com/about))*

Litmaps Toggle

Litmaps *([What is Litmaps?](https://www.litmaps.co/))*

scite.ai Toggle

scite Smart Citations *([What are Smart Citations?](https://www.scite.ai/))*

Code, Data, Media

# Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv *([What is alphaXiv?](https://alphaxiv.org/))*

Links to Code Toggle

CatalyzeX Code Finder for Papers *([What is CatalyzeX?](https://www.catalyzex.com))*

DagsHub Toggle

DagsHub *([What is DagsHub?](https://dagshub.com/))*

GotitPub Toggle

Gotit.pub *([What is GotitPub?](http://gotit.pub/faq))*

Huggingface Toggle

Hugging Face *([What is Huggingface?](https://huggingface.co/huggingface))*

ScienceCast Toggle

ScienceCast *([What is ScienceCast?](https://sciencecast.org/welcome))*

Demos

# Demos

Replicate Toggle

Replicate *([What is Replicate?](https://replicate.com/docs/arxiv/about))*

Spaces Toggle

Hugging Face Spaces *([What is Spaces?](https://huggingface.co/docs/hub/spaces))*

Spaces Toggle

TXYZ.AI *([What is TXYZ.AI?](https://txyz.ai))*

Related Papers

# Recommenders and Search Tools

Link to Influence Flower

Influence Flower *([What are Influence Flowers?](https://influencemap.cmlab.dev/))*

Core recommender toggle

CORE Recommender *([What is CORE?](https://core.ac.uk/services/recommender))*

IArxiv recommender toggle

IArxiv Recommender
*([What is IArxiv?](https://iarxiv.org/about))*

- Author
- Venue
- Institution
- Topic


About arXivLabs

# arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? [**Learn more about arXivLabs**](https://info.arxiv.org/labs/index.html).

[Which authors of this paper are endorsers?](https://arxiv.org/auth/show-endorsers/2611.28430) |
Disable MathJax ([What is MathJax?](https://info.arxiv.org/help/mathjax.html))
wslh10
🟧 echo.paper ⭐The original source is the arXiv paper itself; it presents an analysis comparing human-written and AI-generated Lean libraries. Its abstractJustin Asher and Pietro Pellegrino——

Interpretation history

Decision trace