Repository navigation
[Lean] Prove nonlinear dirty-commutator restoration and ordered products (no new kappa) - #896
Merged
Mister-Meeseeks merged 2 commits intoOct 13, 2026
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.
Scoped formalization / independent verification; no new κ. The nonlinear binary-commutator induction from PR628 and PR663 now has a Lean 4.21.0 proof for an explicit typed recursive evaluator. For every finite binary tree, array width, arbitrary initial dirt, and fixed deterministic nonlinear leaf maps, a complete call restores scratch, has a target-independent increment, and has an exact reverse-word inverse. Under the separate additive-leaf premise, Lean proves the ordered factor product without assuming the factors commute.
This formalizes an existing argument rather than claiming a new commutator, call-count improvement, or precision estimate. The evaluator passes actual intermediate scratch states between children. Its completed-leaf interface assumes source restoration and target-independent increments; the proof does not establish the numerical leaf's own correctness.
The package also supplies bounded source evidence:
propextand/orQuot.sound, including a concrete nonlinear dirt-dependence counterexample.Reproduce with Python 3.12+ and the official Lean 4.21.0 core/Std toolchain:
Expected:
PASS_NONLINEAR_ECHO: 12 formal statements; 34 kernel trace equalities; 1170 source cases; 2364 tree cases; 13 controls; kappa unchanged.The complete receipt matches on Python 3.14.4 and an isolated optimized Python 3.12.3 replay from a read-only standalone copy. Source drift, missing source, integer-to-boolean receipt corruption, and existing-output preservation checks pass. The verifier uses an explicit 64 MiB Lean thread stack for the expanded trace. Source-function identity uses exact extracted text, avoiding Python-version-specific AST debug serialization. Selected-record integrity and staged scope/whitespace checks pass.
Only
research/lean-nonlinear-commutator/is added. Basef567884aeb8851b6e794af1184119a3bfbe1e631; subject PR6280768f97d06c623b8211e651543c66135796b62bf; written audit PR663e0e546fd01b396478c68b6b6c5a16d87515983ba. Six verbatim source/notice files have SHA256 and Git-blob pins. The fresh assignment seed is 83, coincidentally the same as the previous pass: PR887 formalizes resources, while this formalizes execution semantics. Queue refresh through #894 distinguishes PR889's multi-output batching and PR893's historical evidence audit.The universal result is about the typed evaluator. Python and raw-address correspondence is the stated bounded evidence; all-size address-compiler correctness, numerical leaf accuracy/restoration, fixed nonaliased external data, physical execution, and multiplication remain separate obligations. The unmodified PR628 phase-alias admission gap is not repaired here. No global cold replay, full regenerating suite, or hosted CI success is claimed. Selected κ remains
1661634653669567/10^18.Credit Chafik Boukhalfa / PR628, 0xkilgore / PR663, androolloyd / PR673, and Ali Romman / PR621 with retained notices. Prepared for Gareth Davidson (@bitplane), with substantial OpenAI Codex assistance; one AI agent, no independent human review claimed. Apache-2.0.