Skip to content

Fuse negation into the signed half in 4W+1 transitions (no κ) - #7650

Open
petalas wants to merge 2 commits into
CrocSwap:mainfrom
petalas:research/w4-1117a-fused-negative-half
Open

petalas wants to merge 2 commits into
CrocSwap:mainfrom
petalas:research/w4-1117a-fused-negative-half

Conversation

@petalas

@petalas petalas commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A scoped written proof and literal reversible table reduce the negative stochastic half's exact worst-case cost from 6W+2 to 4W+1 transitions per direction for all signed widths W >= 2. The bound is attained at x=0 with either coin. The work tape uses the same six glyphs and one retained parity cell. Both heads return and the resident coin is read only.

For x=2q+p, the shift writes ~q directly and the ripple adds 1-pu. Their sum is -q-pu, so the table needs no separate negation scan. The written proof covers both directions, the exact inverse image and the timing bound. Proof and table

Produced by Nick Petalas. Credit ToikY's #6809 for the negative-half baseline and transition-constant question, Nick Petalas's #6801 for the marked shift, and zxv's #6092 and #6066 for the signed-half and restoration contract. Advance claim

Evidence

On CPython 3.12.15, both direct checks and both registered commands passed. Each direct invocation replayed 70 expanded rows, 4,088 exhaustive and 240 translated round trips, all 2,032 inverse boundary points through width eight, and five rejecting controls. The direct invocations took 0.22 and 0.21 seconds locally. Committed bytes, modes and source ancestry passed for all six package files.

Run from the repository root. On another machine use its CPython 3.12 executable.

/Users/nick/git/integer-mult-bounds/.venv/bin/python3.12 -I -W error -B research/fused-negative-half-tape/verify.py
/Users/nick/git/integer-mult-bounds/.venv/bin/python3.12 -I -O -W error -B research/fused-negative-half-tape/verify.py
/Users/nick/git/integer-mult-bounds/.venv/bin/python3.12 -B scripts/research_package.py --package research/fused-negative-half-tape
/Users/nick/git/integer-mult-bounds/.venv/bin/python3.12 -B scripts/check_research_commit.py --package research/fused-negative-half-tape --check-source-history --check-modes

The supplied marks and resident coin are part of the local contract. Optimality over other machines, physical encoding, coin delivery, native MOVE and a complete supplier invoice remain open. The selected cold replay, predecessor scientific suites and formal proof-kernel checks are outside this package's replay scope. The result is local and carries no κ claim.

Open next questions

Bind one reached negative half to this layout. Charge signed width, marker setup, coin delivery, retention of parity and return-state sequencing before comparing complete caller costs.

Related open work

CI notes

This PR carries the shared CI-doc and replay-gap sync used by other open PRs.

The sync updates the current selected-family CI section and runs the historical replay against its pinned checkout. All five supplied hashes matched. The six current-status tests ended OK, and the historical replay returned PASS_REGISTERED_RESEARCH_PACKAGE. The new research package's two registered checks passed locally. All three hosted checks passed at bee924a7de5f3130f6f5d005d816986c2bf16482. The run completed the plan and both registered package replays for research/historical-selected-replay-gap and research/fused-negative-half-tape. CI run 44199622181

Merge danger

The research commit adds one opt-in package. The separate sync updates the CI guide and the historical replay-gap package.

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.

1 participant