iCreatAI News
Skip to content
Trending storyUpdating

Study compares distribution of AI-written and human-written Lean code

1 reports1 sources1 hr agoUpdated

Understand this story

AI overview

Justin Asher and other authors published a study comparing the code statistics distributions of two human-written and four AI-generated Lean libraries against Mathlib. The study found that AI-generated libraries have more inline declarations per theorem, longer proofs, fewer instances, and more private declarations. The analysis code is released as the lean-census package.

AI overview based on source reports · Updated 51 min ago

Coverage timeline

Follow the coverage to explore different perspectives.

Nov 24
  1. Hacker News AI
    Lean Census: A Distributional Analysis of AI-Generated Lean Code

    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.

Activity for this story

Not enough continuous observations to show a trend yet.