Repository navigation
Cao P16: remove 34 commuting inverse ADDs with dual 632-column replay (no new kappa) - #5265
Merged
Mister-Meeseeks merged 7 commits intoOct 23, 2026
Conversation
…r frames, with dual-source legality and actual native recompilation
… independent full 632-column forward/dual replay
…eter, exact ordered frame/warp invariants, negative control and source-pinned patch
…etained native interpreter
…ct witnesses, whole-cost scope and attribution
…tion on Python 3.11 and 3.13
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 result: 34 fewer ADD macros on Cao Yifan's newer #4610 native word (NO new kappa)
On the frozen, merged #4610 native word
CrocSwap/integer-mult-bounds@20bb93cd990d2ff683e4d0fc56b87a42cd5d3296(canonical payload SHA256cfcd36b40326d7a5815e1db5313444379b3fb756b27d5201c561574c085cc0dd), find two exactly inverse rational scalar ADD operations separated only by commuting instructions and cancel the pair in both native orientations.The 160-raw-event bounded scanner checked 542 matching inverse pairs, found 19 dual-legal commuting pairs, then selected 17 disjoint intervals. Deleting those 34 ADD instructions from the actual 21,449-event word and resynthesizing yields:
{1:2201, 2:412, 3:510, 4:127, 5:40, 8:8}(3,298 local paid jobs).C0cleared and the same full paid profile.The 18 local calls in the p16 controller imply 5,616 units of scalar-allowance headroom at the unchanged 18-call placement; this affects finite constants, not the claimed exponent. The selected #4470 ? and Cao #4610 conditional ?=0.0030217758 are unchanged. No end-to-end integer multiplier, new physical rank-changing primitive, global optimum or proof of a higher ? is asserted. Fixed-tape, stock/precision/analytic transfer retain original conditional contracts.
Validation
On Windows Dell, source-bound CPython 3.13 run passed
combined_inverse_add_certificate.pywith both 632-column interpreters and the negative control, printing:A Python 3.11/3.13 Actions workflow is committed for hosted verification; hosted success is not asserted.
Reproduce
Credit / overlap
Not a priority claim for scalar cancellation. Cinna Davis's already merged #4692 previously removed 116 ADDs from the older selected #4470 word, using commuting and noncommuting rewrite patterns. This PR proves a smaller bounded commuting-inverse subset applies to Cao Yifan's newer #4610 native word, with full dual tests; further application of #4692's broader compressor to the Cao word could improve on this number. Credit Cao Yifan/intqwq (#4610), Cinna Davis (#4470/#4692), Dugongue's transported native maps, zxv, Jacob Alan Sussman, and all inherited authors. Authored for Chrisbryan17 with substantial GPT-6 assistance; Apache-2.0.
Research branches for independent follow-ups:
research/p16-cao-paid-fusion-20261023(59 source-compatible F2-F2 candidates no positive legal one-contact fusion) andresearch/p16-cao-controller-20261023(all 16 retained prefix/suffix choices screened; selected 7/8 best and 8/7 ties in pure invoice). These are NOT part of the present PR.