Skip to content
LowNews

A “proof” of Fermat’s Last Theorem that fits the margin

Published
Record updated
View JSON

Summary

Researchers using GPT-5.6 found a bug in Lean 4's String.Pos.Raw.extract function, where the logical definition returns an empty string but compiled native code returns the whole string, letting a contradiction be built that appears to prove Fermat's Last Theorem. The issue affects all stable Lean versions up to 4.33.1 and is not a kernel soundness flaw. The Lean team fixed the memory-safety problem within about three hours and the semantic mismatch five days after the report.

Mitigation

The patch is incorporated in v4.34.0-rc1. Validate external Lean proofs by checking #print axioms, since the native_decide axiom adds the compiler to the trusted boundary.