Repository navigation
Independent verification: check R420 Lean source expressions - #834
Merged
Mister-Meeseeks merged 2 commits intoOct 13, 2026
Merged
Conversation
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.
Change and mathematical scope
Independent verification / external source audit; no new kappa.
The existing R420 correspondence script extracts three B-gate lists and concatenates them itself, without reading Lean's actual
phaseBexpression. It similarly assumes several alias and endpoint expressions. Six changed expressions still pass its assertion-enabled R420 check. This package supplies an independent restricted parser that rejects those changes and reproduces the unchanged data exactly.The maintainer already checked the seven structured fields. This adds expression validation, portable replay and controls; it does not claim first correspondence or a defect in the original circuit. The mutations are not claimed to compile in Lean or bypass PR612's hash-pinned build.
Only
research/r420-lean-source-binding/is added. It checks 13 fields: the seven structured fields plus six scalar/domain fields, including all 672 frames, 837 ordered gates and 1,077 operand occurrences. Source hashes, Git blobs and a deterministic receipt bind the result. Identical decoded gzip payloads remain portable across compression encodings.Validation
Expected verifier output:
PASS_R420_LEAN_SOURCE_EXPRESSIONS fields=13 frames=672 gates=837 operands=1077.All 13 tests pass normally and with
-Oon CPython 3.12.15/Linux in an offline restricted container. They cover 33 negative cases, including six historical false positives, plus unchanged sources, nested comments and recompression. Minimal relocation and six package-corruption controls pass; source Git-byte checks, selected-record integrity and staged whitespace pass.Base:
7ee02b7c96d85f22b38d28bd7ed49bb8c1aeb261; seed 75. All consumed sources remain identical on refreshed mainf567884aeb8851b6e794af1184119a3bfbe1e631. Overlap checked through #833. Credit James Chang's PR590/612 formalization, eumemic's PR543 supplier and Douglas R. Colkitt's prior maintainer audit; exact pins and retained notices are linked in the package.No fresh Lean build, supplier cold replay, full
make verify, remote CI or complete multiplication theorem is claimed. Physical transport, cleanup/lifecycle, hosting and all-size obligations remain. Prepared for Chinmay Arvind (@chinmayarvind23) with substantial OpenAI Codex assistance, under Apache-2.0; no independent human review is claimed.