Repository navigation
Implement a guarded Boolean caller for the rank-seven scalar layer - #3094
Merged
Mister-Meeseeks merged 1 commit intoOct 17, 2026
Merged
Conversation
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
Close the scalar-caller part of PR3090's released handoff with one isolated research package. The common seven-fractional-bit,
P+20capacity admits explicit reversible Boolean operations for all 9,992 ordinary prelude/A scalar macros in both pinned PR3076 providers and orientations.The saving is 10,523,762 unweighted logical gates per provider word/orientation against the explicit control constructed here. Both implementations charge shifts, sign handling and clean return. The direct caller preserves sources and removes the coefficient scratch field; its 83-bit clean carry bank remains explicit. A uniform proof supplies the width-dependent tariffs for
3 <= P <= 128. No optimality, physical runtime, new kappa or selected-frontier change is claimed.Proof, source pins, receipts, reproduction and open questions. Canonical investigation.
Evidence
After: reached source/increment/output and SCALE-prefix guards bind every scalar occurrence to literal ADD/NEG/HALF/DOUBLE circuits. The comparison replaces scratch CLEAR with inverse preparation, charging complete local cleanup.
TMPDIR="$RUN/tmp" uv run --python 3.12 --no-project python -B \ scripts/research_package.py --package research/rank7-boolean-scalar-callerRUNis an external directory with atmpsubdirectory. Runtime needs only the standard library; all pinned sources and notices are included.The result is conditional on exact adapter endpoints and intervening native non-scalar contracts. Adapter interiors, Boolean frame conversions/climbs/warps, recursive children, centres/later consumers, clean-stock production, routing, ownership and the complete supplier invoice remain open. Concurrent PR3091 implements separate Gaussian leaf/tape operations; PR3092 independently audits the reused capacity arithmetic. Neither is silently treated as admitted. Main remains pinned at
d8e0f83f00191df62174b641e9fff055c357f641, priority revision 6, at the submission checkpoint.Credit Nick Petalas/PR3090/3089/3080/3081/3078, dcharb78/PR3042, Jeremy Kothe, Marius-Paul Dumitrean, Cinna Davis, DLamdata, eumemic, icekylinx, Tekalign and the retained native/geometry/owner lineage. Frozen source bytes and notices are unchanged.
Merge Danger
Door: two-way.
Blast Radius: isolated.
Only
research/rank7-boolean-scalar-caller/and its opt-in replay are added. Shared code, canonical inputs, research priorities and the selected frontier are unchanged. Scientific supplier admission remains separate.