Repository navigation
Halve G20 boundary work with equal-target bases and a complete physical caller - #5840
Merged
Mister-Meeseeks merged 2 commits intoOct 27, 2026
Merged
Conversation
This was referenced Oct 27, 2026
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.
The G20 caller now pays 76 boundary ADDs per port instead of 160, a 52.5% reduction. The complete 111-port stream saves 9324 ADDs, has 301920 events, and lowers its positive-majorant bit length from 379 to 375. Every operation in the new boundary words is emitted and charged.
The first improvement reverses a 59-ADD word to replace its 101-ADD inverse. The larger construction uses the actual 16 pairs of equal target polynomials. If L P R = D and S permutes only equal-target pairs, then (S^-1 L) P (R S) = D with the original labeled diagonal. An exhaustive census of 65536 normalized orientations, with every 32-by-32 matrix checked and a separate permutation-cycle count, attains 38 ADDs per side. There are 16 attaining orientations. Both words are fixed points of the retained exact four-role/dependency/commutation reductions. This is a minimum in that explicit normal-form family, not a global CNOT minimum.
The full physical interpreter checks every polynomial coefficient. All 18 local words and every core event remain literal. The new basis changes 22832 actual query values; all 56223 source values are checked against the exact input-permutation relation. All event indices, prefix hashes, owner versions and erasure epochs are regenerated. The complete arbitrary-input forward and separate transpose checks cover 11070 axes / 122544900 Boolean coefficients. All 2529 private lifetimes, 11022 productive owners, 48 private slots and the full signed invoice remain exact.
The fully charged finite primitive bound falls by 18648 to 952838284233, including all scans, raw events, parking, routes, matrix work and matchers. The recursive moment is unchanged. This is a finite construction and positive bound improvement, not a new kappa or a measured runtime gain.
Registered normal/-O, changed-source rejection, committed-byte and official export checks pass. The final complete read-only, empty-PATH Git-free replay passes in 28.09 seconds, with all 20 exported files fixed in bytes and modes. The parent package is fully replayed first; all frozen sources are included. The compiler has one explicit controller parameter, with every other source check preserved and byte-checked.
General GL2 choices within equal-target pairs may improve the word further. Physical ROW/cache/carry/type/padding/borrowed-return costs, rounded primitives and the five framework assumptions remain open. The selected frontier is unchanged. Hosted CI and independent scientific admission are separate.
Credit PR5834 for the complete caller, PR5807/5828 for exact synthesis, and PR5708/5671, ai-nanachi PR5512, Dugongue and all retained controller/native/compiler authors. New source-wide boundary construction by Ali Romman with substantial OpenAI Codex assistance; no subagents.
Reproduce:
python3.12 -B scripts/research_package.py --package research/g20-target-pair-boundaries.Canonical claim and handoff: #5804
Base:
de5ec2e7a6074068452f45b1a191b5c72832df4a. Verified head:6a043d0fc0199ee5b24c61f883f1943eaf6424be.Prepared for Ali Romman with substantial OpenAI Codex assistance. Retained tool and mathematical predecessor credits apply. No selected-frontier change.