Skip to content

Construct a table-free reversible draw for the paired denominator-13 sampler - #7746

Open
petalas wants to merge 2 commits into
CrocSwap:mainfrom
petalas:research/w6-1118d-rom-free-ddg-step
Open

petalas wants to merge 2 commits into
CrocSwap:mainfrom
petalas:research/w6-1118d-rom-free-ddg-step

Conversation

@petalas

@petalas petalas commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Scoped construction with an exact finite certificate. One draw of the fixed (1/13, 1/13) paired sampler replaces its 702-byte transition table with a reversible arithmetic circuit. It preserves the outcome and first stopping depth on each ordered coin path.

Before: phase/node and coin -> stored transition lookup
After:  phase/node and coin -> modular digits -> reversible packet update

The circuit uses 3,060 gates (232 X, 2,238 CNOT and 590 Toffoli) and 484 clean work bits. The bill includes packet copying, swapping and uncomputation. The stored transition payload is replaced by arithmetic. Circuit description and physical execution have their own costs.

Evidence

The verifier compares the emitted gates with an integer-floor specification for all 624 reachable packet and coin pairs. It checks the full forward and inverse maps, coin preservation, clean workspace, and two fault controls. Both registered modes passed in 0.11 seconds each on CPython 3.12.15. Package metadata, committed bytes, file modes, source ancestry and the generated export receipt passed. Both exact commands also passed from a read-only Git-free export.

Reproduce from the repository root with CPython 3.12 and its standard library.

python3.12 -B scripts/research_package.py --package research/paired-ddg-arithmetic-step
python3.12 -B scripts/check_research_commit.py --package research/paired-ddg-arithmetic-step --check-source-history --check-modes
python3.12 -E -s -B -W error -X dev research/paired-ddg-arithmetic-step/verify.py
python3.12 -E -s -B -O -W error -X dev research/paired-ddg-arithmetic-step/verify.py

The direct commands print PASS_PAIRED_DDG_ARITHMETIC_STEP and the gate and wire counts. The proof and source pins are under research/paired-ddg-arithmetic-step/.

Limitations

The circuit prices one draw for one fixed pair. Stopping time remains unbounded. Physical tape movement, stopping storage, conditional freshness and the actual caller bill remain open. Native and selected scientific replays, Lean and Docker were unrun. The selected κ is unaffected.

Open next questions

Related open work

  • #7187 shares resident tables across 144 pairs using output symmetries. This contribution removes the transition data for one pair and preserves that pair's ordered coin-to-output function. The two resource counts cover different scopes.

CI notes

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

At 71fdb2cf1ec973b5402c4d3c2466864014a1ccda, the six current-status tests passed locally and the historical replay printed PASS_REGISTERED_RESEARCH_PACKAGE. The five source and staged file digests match the supplied sync. All three hosted checks passed on this commit. They covered planning, the historical replay-gap package and the paired sampler package. CI run 44400140942

Credit

This result was produced by Nick Petalas. Credit zxv for the source graph and probability law and JoyboyBrian for the reversal context and tape/table question. PR #6072 · PR #6102 · Advance claim

Merge scope

The seven-file research package and the five-file shared CI sync are in separate commits.

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