Skip to content

Implement a guarded Boolean caller for the rank-seven scalar layer - #3094

Merged
Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
petalas:research/frontier-result-20261017b
Oct 17, 2026
Merged

Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
petalas:research/frontier-result-20261017b

Conversation

@petalas

@petalas petalas commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Close the scalar-caller part of PR3090's released handoff with one isolated research package. The common seven-fractional-bit, P+20 capacity admits explicit reversible Boolean operations for all 9,992 ordinary prelude/A scalar macros in both pinned PR3076 providers and orientations.

W=84, both real components          CNOTs       Toffolis     local bits
reversible target-walk control    17,163,992    6,593,136        335
direct scalar caller              6,806,482    6,426,884        251
saving                           10,357,510      166,252         84

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

  • Before: PR3090 certifies coefficient microstates but leaves bit execution and physical costs open. PR3080 supplies an ADD kernel; PR3081 supplies a local half-ADD caller.
    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.
  • Registered Python 3.12 cold replay passes in 45.11 seconds, with maximum RSS 212,533,248 bytes. It reconstructs both native words, matches the complete inherited capacity receipt, and evaluates 310 serialized small-width circuits over 225,334 exhaustive truth columns plus 1,250 independent bit-array fixtures.
  • Fourteen behavioral groups reject wrong signs, omitted sign fill, missing carry/scratch cleanup, source writes, dirty stock, bad alignment and signed overflow. Correctness lint, formatting, source compilation, two internal read-only review rounds and all 43 committed-file byte comparisons pass. Hosted CI is separate.
TMPDIR="$RUN/tmp" uv run --python 3.12 --no-project python -B \
  scripts/research_package.py --package research/rank7-boolean-scalar-caller

RUN is an external directory with a tmp subdirectory. 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.

@Mister-Meeseeks
Mister-Meeseeks merged commit b168f64 into CrocSwap:main Oct 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants