iCreatAI News
Skip to content
Hacker News AI· wslh·· 1 hr agoAI score22

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

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

AI summary

This paper compares two human-written and four AI-generated Lean libraries with Mathlib using distributions of simple code statistics, including inline claims in proofs, proof length, declaration usage frequency, and design choices such as instances and private declarations, each read against 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. The analysis code is released as a package, lean-census, at the URL given in the paper.

Source: Hacker News AI · arxiv.org