Repository navigation
Tooling: 4.80× faster DisjointTensor.frame_data with identical frame receipts - #2117
Merged
Mister-Meeseeks merged 1 commit intoOct 15, 2026
Conversation
…receipts Promote exact target-union propagation into production frame_data, answering the CrocSwap#2001 verify_frames open question. Package research/disjoint-tensor-frame-unions with identical receipts, pin-only certificate updates, and registered replay. Prepared by Wentao Li with substantial AI assistance.
This was referenced Oct 14, 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.
Change and scope
At base
0fdd7d82de03e43c9e5a1000dfbcd380d1b687d2, merged CrocSwap/integer-mult-bounds#2001 leftDisjointTensor.verify_frames/frame_dataas an explicit next question after shipping closed-form verify support masks. Profiling on the historical full-size circuit (h=26, 60372 active nodes) shows most ofverify_frameswall time inside the per-node reachable-target bit enumeration inframe_data.CrocSwap/integer-mult-bounds#1044 already proved exact target-union propagation as an opt-in adapter under
research/disjoint-frame-unions/. Productionscripts/experiments/disjoint_tensor.pystill used the historical bit loop. This PR promotes the same algebra into the default path, keeps every descendant bitset, source union and rectanglerequire, and leavesverify_framesreceipts fieldwise identical. Only the source pin forscripts/experiments/disjoint_tensor.pychanges inside the four certificates that bind that file.Tooling improvement; no new kappa. Selected frontier untouched.
Result
On Linux / CPython 3.12.3 (Linux-6.12.94+-x86_64-with-glibc2.39), five alternating fresh-process pairs timing only
DisjointTensor(26).verify_frames(construction excluded) gave median wall time 2.232 → 0.465 seconds (4.80×). Timing is host-descriptive and is not a correctness gate. Every frame receipt matches the baseline checker fieldwise (distinct_nontrivial_transitions,frame_types, flags).Package:
research/disjoint-tensor-frame-unions/.Validation
Expected:
Default verify is read-only. XOR-of-mask nonequivalence and corrupted-rectangle
ValueErrorcontrols reject. 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 or delivery): CrocSwap/integer-mult-bounds#756, CrocSwap/integer-mult-bounds#1044 (opt-in exact union propagation; this promotes it to production), CrocSwap/integer-mult-bounds#1793, CrocSwap/integer-mult-bounds#1861 (open; already conflicting with main; different primary pin
binary_phase_frames.py), CrocSwap/integer-mult-bounds#1922, CrocSwap/integer-mult-bounds#1984, CrocSwap/integer-mult-bounds#1994, CrocSwap/integer-mult-bounds#2001 (support masks + openverify_frames/frame_dataquestion this answers), CrocSwap/integer-mult-bounds#2100 (sameternary-side.jsonfile, different pin keyternary_side.py). No competing open PR on productionframe_dataat refresh.Douglas R. Colkitt authored the disjoint-tensor / exclusion circuits. Prepared by Wentao Li (VictorLiwentao, @Is__Victor) with substantial AI assistance, under Apache-2.0.