The Trojan horse in AI-written math: LLM-generated Lean code floods Mathlib

Machine Learning Street Talk · youtube · 2026-10-27

Kevin Hartnett, author of The Proof in the Code, discusses the catch in AI autoformalisation on Machine Learning Street Talk: LLMs can now turn maths papers into Lean code in a fraction of the time a human team would take, but the Mathlib community is finding it's a Trojan horse — a flood of Lean code lacking the precision and economy Mathlib's canonical definitions require.

It's the same problem everyone else faces with the volume of AI-generated everything: fast output whose quality doesn't match community standards, forcing maintainers to pay for the low-quality speed. The clip is from the documentary 'Mathematics Just Changed Forever' featuring Kevin Buzzard, Jeremy Avigad, Leo de Moura, and Paul Lessard.

Original post →

More from Research

Research channel →