Skip to content

Halve G20 boundary work with equal-target bases and a complete physical caller - #5840

Merged
Mister-Meeseeks merged 2 commits into
CrocSwap:mainfrom
aliromman:codex/constructions-ten-10
Oct 27, 2026
Merged

Mister-Meeseeks merged 2 commits into
CrocSwap:mainfrom
aliromman:codex/constructions-ten-10

Conversation

@aliromman

Copy link
Copy Markdown
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants