Repository navigation
Reduce 66-grade extraction from 128 to optimal 68 runs (no new κ) - #5117
Merged
Mister-Meeseeks merged 1 commit intoOct 23, 2026
Merged
Mister-Meeseeks merged 1 commit into
Mister-Meeseeks merged 1 commit into
Conversation
This was referenced Oct 23, 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.
Summary
Prove the exact minimum of 68 complete executions for extracting arbitrary diagonal blocks on 66 nonzero grades by equally weighted sign conjugations. Yiyang's merged #5037 uses 128 complete root executions at this grade count.
Claim type: scoped algebraic proof with an exact finite sign certificate. Rank and three-column divisibility give the lower bound; the classical Paley order-68 Hadamard matrix attains it. The application and exact-grid wrapper are the new step. Paley's construction and character averaging are credited methods, not claimed inventions. The reduction saves 60 complete executions; copying, signs, accumulation and exact division are additional work. No wall-clock gain, native invoice change or new κ is claimed.
Only six files under
research/grade-sign-extraction/are added. The proof applies at arbitrary nonzero grade dimensions, with arbitrary off-diagonal blocks, and includes exact integer divisibility by 17. The wrapper is applied once at the root; repeated input copies earn no productive credit.Evidence
K=2^ceil(log2(H+1)), hence 128 at 66 grades. After: the exact sign design uses 68 rows, and the matching scoped lower bound rules out 66 and 67.eb0c12811253174a6a7834c118e2cf827cc9b706, normal and optimized warning-strict CPython 3.12.15 replay pass. The final Git-free invocations took about 0.35 seconds each, well below the 120-second registered limits. These are check durations, not physical performance measurements.PATH=/nonexistent; all seven exported files remain byte-identical. The verifier writes no files and imports no predecessor executable.From the worktree root, reproduce with the actual local interpreter:
Expected direct output includes
PASS_GRADE_SIGN_EXTRACTION,runs: 68,literal_cases: 28andsigned_exact_divisions: 8201. On another host substitute its CPython 3.12 path. The dimension-uniform claim rests on the written proof, not extrapolation from fixtures. Independent human and formal proof-kernel review are unclaimed.Limitations
The optimality contract requires equal positive weights and grade-constant ±1 conjugations that work for every permitted off-diagonal block. Unequal weights, complex phases, independent input/output maps and additional sparsity are outside it. The exact divider needs the proved output-grid/divisibility premise; arbitrary division by 68 is not a free dyadic operation.
Actual native shears, recursive source/exit matching, rounded arithmetic, physical ownership/movement/restoration, stock, BIT transfer and outer admission remain open. No full physical tariff, selected cold replay, native/Lean/Docker suite or complete multiplication theorem is claimed. The selected frontier is unchanged. Python's bounded managed-runtime allocation and diagnostic limitations are documented in README.
Related open work
Open next questions
Provenance and credit
Scientific base and submission refresh: canonical main
81e9bd69e4a5b00ba9c713a1620e36d576d5522e, priority revision 7. TASK records the changed scope fromcomplex-rank-shape-decoder; exact predecessor README/extraction-note, catalogue and selected-record blobs are retained as provenance. Their scientific verifiers were not replayed. The cheap selected-source metadata orientation passed, separately from operator admission.Advance CLAIM. The delivered scope matches it. Current claims, this account's recent contributions, open PR bodies, merged-main distinctive terms and merged/all-state PR searches were checked before claiming and again before committing. No competing result was found within that bounded coverage.
This contribution was produced by Nick Petalas. Credit Yiyang / Lyy-iiis #5037 for the bounded-lane/root-only extraction setting, Dillon #4623 for border recovery, Cao Yifan #4610 for native context, Jacob Alan Sussman and the finite-precompiler contributors, and the retained native/helper/precision/outer lineage. Classical Paley/Hadamard methods retain their credit. Predecessor files and notices are unchanged. Apache-2.0.
CI notes
CI blocked upstream. Run 39933925464, for contribution head
eb0c12811253174a6a7834c118e2cf827cc9b706, failed inplan/Onboarding helper tests;replaywas skipped. The log reports 408 tests, eight failures and 17 skips. No hosted package replay or mathematical acceptance is claimed.The checkout log identifies tested merge
5b6a029383b29e00c5684eeba983eba23b896f0c, combining this contribution with main20a1e31bc6009b9b3f4d084bbaadc6350e34fcba. This PR changes only the six files underresearch/grade-sign-extraction/; it changes no shared scripts, tests, workflow or historical fixture.Two upstream fixture problems account for the eight failures:
tests/test_research_descendant_source_roles.pystop atworking source drift: scripts/check_research_commit.py, before their expected helper/history-test diagnostic or acceptance. The historicalresearch/isolated-descendant-bytecode/SOURCES.jsonstill declares that script as an input with SHA256ecf206a82bf1f4e748efb6cc639919582050d173b3537ec12f7265a4f7b55ead, while the tested main version hashes to28fed1e156fe8601633ed453f682a158cb15e94981e6c89ed96ae72ffc9d0c6f. The expected diagnostics includesource blob provenance mismatch: scripts/research_package.py,source SHA256 provenance mismatch: scripts/research_package.pyand the correspondingtests/test_research_source_history.pymessages. The unchanged fixture copies the current shared script before authenticating it against the historical live-input pin.tests/test_research_onboarding.py::OverlapTests::test_report_survives_a_cp1252_stdoutcopies onlyscripts/find_overlap.pyinto its temporary repository. The current helper importsgit_source_envfromresearch_package, but that module is absent in the fixture, givingModuleNotFoundError: No module named 'research_package'.Upstream commit 862ac2a0f changes both shared scripts and is an ancestor of the tested main base. Its diff and the base's actual bytes confirm the new import and historical-pin mismatch. No shared-code fix is included here.
The same eight failures, with the same diagnostics, are independently visible in PR #5116, “Implement complete owned query streams on selected signed records”, head
ee4bebf4bb1d441bbbcd43ff4bc2bcb2734a679e, run 39933826517. This comparison is limited to the failed onboarding-job logs; that contribution's mathematics was not reviewed or replayed.Both registered package commands and the committed/source-history/export checks passed locally at the unchanged contribution head, as recorded above. Upstream onboarding repair and a successful hosted replay remain outstanding. No DONE has been posted.
Merge Danger
Door: two-way.
Blast Radius: research.
Isolated new package only; no shared code, frozen source or selected-frontier change.