Repository navigation
Reduce complete prefix-completion caller time by 10.96% (no κ) - #6260
Merged
Mister-Meeseeks merged 1 commit intoOct 31, 2026
Merged
Conversation
This was referenced Oct 30, 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
A fixed bitset cache implements SHIN09-git's PR6046 shared-tail predicate with identical complete caller behavior. Across all thirty retained alternating fresh-process pairs, median paired wall time is 10.96% lower, with 28 paired wins and zero errors. This answers the source's explicitly open cached-Hamming-envelope implementation question. Claim type: scoped proof of implementation equivalence, exact finite conformance and a local performance measurement. No new kappa.
The new implementation, equivalence argument and measurements were produced by Nick Petalas. Credit SHIN09-git for the predicate, theorem, original comparison caller and open question; Ali Romman, Mihir Srivastava, Ross Richardson, Nicholas Stone, unpaidmoon, James Reed and the retained word-census lineage keep their source attribution. Classical bitsets and Hamming geometry are not claimed as new. Only
research/cached-hamming-tail/is added.Evidence
fd5bbae8e275713d25bca205a7137a6e5f192eaf. Each registered command takes under one second locally.Reproduce from the repository root with CPython 3.12.15 and the standard library:
An installed CPython 3.12 can replace the recorded interpreter path.
timing_check.pyvalidates the retained measurements and their source bytes; CI does not rerun performance measurements. To collect new timings, runbenchmark.py --pairs 9 --output /absolute/external/new-file.jsonwith the same interpreter and flags. The proof, raw observations, untimed profile, exact dependencies and limits are in the package.Limitations
This fixes dimension five, length twelve and PR6046's complete no-cap shared-tail caller. It supplies an exact implementation of the predecessor predicate, not a new pruning theorem or a predecessor audit. The cache has a fixed extra memory cost. No larger census, maintained-engine integration/default change, selected cold replay, Lean, Docker, native/dirty-restoration construction, supplier admission or complete multiplication theorem was run or established. The selected frontier and five framework assumptions remain unchanged. Independent human and formal proof-kernel review are unclaimed.
Canonical main was refreshed at
2485805a6d47f36ea83ddde6327d453ac82d44dcbefore selection and submission. Live claims and open/merged work were checked again before committing. The overlap helper had incomplete sparse-note coverage and a timed-out broad Discussion refresh; separate live GraphQL reads covered current handoffs and active threads. Absence of a match is not a novelty certificate. Advance claim.Open next questions
Does this cache improve one named maintained-engine caller after full setup and the other predicates are paid? Select an exact small caller and a separate resource budget, then compare complete enabled/disabled outputs and runtime. These results do not justify a larger census or default change. No follow-up is reserved.
Related open work
The completion refresh inspected this account's open PRs created since the advance CLAIM. PR6254 is the adjacent connector contribution listed above; the other newer account PRs study different objects or quantities. No new same-instance numerical comparison was needed, and no disagreement was identified in the inspected descriptions. No extra computations checked another contribution.
CI notes
Both hosted checks,
planandreplay (research/cached-hamming-tail), passed at headfd5bbae8e275713d25bca205a7137a6e5f192eafin run 41049147311. The completed checks were read once, and the run's successful conclusion and exact head were confirmed. All local registered checks also passed. Hosted replay certifies the registered finite checks and source bindings; it does not certify the local performance percentage or provide independent human or formal proof-kernel review.Merge Danger
Door: two-way. Blast Radius: package. The change adds an isolated research package with explicit inputs and leaves maintained engines and selected sources unchanged.