Repository navigation
Tooling: 3.12× faster inplace-side prefix replay with identical receipts - #1793
Merged
Mister-Meeseeks merged 1 commit intoOct 14, 2026
Conversation
Replace per-column sorted(unused) pivot search in verify_prefix with a least-unused flag scan and column masks. Preserve all witness receipts, rejections and the inplace-side certificate except the production source pin.
This was referenced Oct 14, 2026
Contributor
|
Batch review at Merged to Reviewed scope: Ascending pivot scan replaces repeated unused-column sorting without changing the deterministic side routine. Exact predecessor outputs and certificate regeneration agree; combined current-main tests pass. Author speedup ratio is not independently timed. The pinned scoped command passed; the batch ledger contains its command, input hashes, environment and log. This incorporates the research/tooling contribution and does not change the selected κ or discharge the inherited multiplication-theorem assumptions. Batch review, attribution and evidence. Thank you for the contribution. |
This was referenced Oct 14, 2026
Merged
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.
Change and scope
At base
0b1cccf86e2f5132ed286a26ef0a681a495740ea, the historical inplace-side prefix checker (scripts/experiments/inplace_side.py:verify_prefix) rejects a specified n-role Gauss–Jordan side family using three pinned witnesses (h = 42, 46, 50). Each elimination column previously rebuiltsorted(unused)to locate the least unused row with the pivot bit set.This PR replaces that search with a least-unused flag scan and column masks. The lexicographic pivot rule, XOR updates, switch witnesses, deficit arithmetic and every receipt field are unchanged. Only the source pin for
scripts/experiments/inplace_side.pychanges insidecertificates/inplace-side.json.Tooling improvement; no new kappa. The selected frontier,
upstream/, and the mathematical rejection indocs/research/inplace-side.mdare not reopened.Result
On Linux / CPython 3.12.3, five alternating fresh-process pairs of the three pinned witnesses gave median 17.061 s → 5.466 s (3.12×). Timing is host-descriptive and is not a correctness gate. Receipts match the byte-identical baseline checker fieldwise; a greatest-unused mutant is rejected on all three witnesses.
Package:
research/inplace-side-performance/.Validation
Python 3.12, standard library only:
Expected:
Default verify is read-only. Use
--write-certificateonly after editing the production source. Fullmake verify, selected cold replay, Lean, and multiplication-theorem obligations were not rerun for this isolated historical-checker change.Overlap and credit
Closest priors (different objects): CrocSwap/integer-mult-bounds#756 packed balanced-Fano replay; CrocSwap/integer-mult-bounds#1584 finite-bit block-core frame interning; CrocSwap/integer-mult-bounds#1076 / CrocSwap/integer-mult-bounds#1075 quadratic tooling. No competing open PR on this inplace-side object at refresh.
Douglas R. Colkitt authored the inplace-side rejection, witnesses and original checker. Prepared by Wentao Li (VictorLiwentao, @Is__Victor) with substantial AI assistance, under Apache-2.0.