Trail of Bits 'proves' Fermat's Last Theorem in 20 lines via a Lean 4 bug

CatAstro_Piyush · x · 2026-09-09

Weeks after Anthropic formalized Fermat's Last Theorem in 13 million lines of Lean, Trail of Bits 'proved' the same theorem in 20 lines by exploiting a bug in Lean 4.

Key facts:

Their punchline: Fermat's 'truly marvelous proof' really did fit in the margin.

Related event: Trail of Bits finds Lean bug that fakes Fermat's Last Theorem proof in 20 lines(2 posts)→

Original post →

More from Fun

Fun channel →