A “Proof” of Fermat’s Last Theorem That Fits the Margin - #2899
Open
carlospolop wants to merge 1 commit into
Open
carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://blog.trailofbits.com/2026/09/09/a-proof-of-fermats-last-theorem-that-fits-the-margin Content Categories: Based on the analysis, this content was categorized under "Generic Hacking > Proof Assistant and Formal Verification Security (new subsection)". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Overview. The post demonstrates a false but apparently checked proof of Fermat’s Last Theorem in Lean. It contrasts this tiny proof with Anthropic’s complete formalization, which used approximately 13 million lines of Lean code. The proof exploits a bug in
String.Pos.Raw.extract, Lean’s low-level string-slicing function. The issue affects all stable Lean versions through4.33.1; the patch is included inv4.34.0-rc1. The bug was tracked i...🔧 Technical Details
Logical/native differential evaluation. In a proof assistant or verified runtime that offers both a logical evaluator and a compiled/native evaluator, test boundary cases involving enormous indexes, one-byte lengths, empty values, and out-of-range positions. If the logical definition and native implementation disagree, the same expression can be assigned two different values by two trusted evaluation paths.
Turning evaluator disagreement into arbitrary proof. If a compiler-backed decision procedure such as
native_decidecan import native execution results into the logic, combine a logically reduced result with the contradictory native result. Proving that the same expression equals two different values yieldsFalse; the proof assistant’s explosion principle can then derive any target proposition, including false mathematical or verification claims.Auditing compiler-expanded trust boundaries.🤖 Agent Actions
Implemented the HackTricks update:
proof-assistant-formal-verification-security.mdunder Generic Methodologies.False.native_decidetrust-boundary expansion.#print axioms.lean4checkerandlake comparator.SUMMARY.mdand the existing differential-fuzzing section.Validation passed with
git diff --checkand custom structural/link checks.mdbookwas not installed, so a full build was unavailable.This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.