跳到正文
Trail of Bits 博客·· 2026-09-09AI 评分22

Lean 4.33.1 及更早版本存在字符串切片缺陷,可伪造费马大定理“证明”

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

AI 导读

Trail of Bits 发现 Lean 的 String.Pos.Raw.extract 在超大位置提取单字节切片时,逻辑定义返回空串而编译后的原生代码返回整个原串,由此可制造矛盾并“证明”任意命题。

来源:Trail of Bits 博客 · blog.trailofbits.com