Skip to content

Compile polynomial-width binary swap predictors - #8125

Open
petalas wants to merge 1 commit into
CrocSwap:mainfrom
petalas:research/w5-1201c-split-count-predictor
Open

petalas wants to merge 1 commit into
CrocSwap:mainfrom
petalas:research/w5-1201c-split-count-predictor

Conversation

@petalas

@petalas petalas commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Result

Scoped construction and written proof. On $m$ binary swap queries, the November 24 predictor can use $O(m^7D)$ independent rows, at most $4D$ pencil stages, and a spectral table on a $1/m^3$ fraction of the batch, where $D=O(\sqrt{m\log m})$. Its data prime is above $D$. Conditional expectation gives a deterministic single-exponential compiler for the polynomial-width batch. Limited independence gives a quasipolynomial compiler at quasipolynomial width, with the same depth and table fraction. Proof

Each factor of the count polynomial uses blocks sized to its own irreducible degree. The completed factor is scalar on each full block. This lets the next factor repartition the rows while the correction budget covers the incomplete suffixes.

Reproduction

Run from the repository root with Python 3.12.

python3.12 -B scripts/research_package.py --package research/split-count-swap-predictor
python3.12 -B scripts/check_research_commit.py --package research/split-count-swap-predictor --check-source-history
python3.12 -W error -I -B research/split-count-swap-predictor/verify.py
python3.12 -W error -I -B -O research/split-count-swap-predictor/verify.py

All four commands passed locally on CPython 3.12.15. Both replay modes check all 1,792 input columns across 32 sign patterns. The controls detect an omitted conjugate, an omitted suffix row, and an oversized exception set from a repeated shift. The all-size claim rests on the written proof.

Limitations

The growing prime changes the caller's data-field premise. Physical delivery through the label geometry, the full recursive invoice, a tape-time improvement, and the multiplication endpoint remain open. The replay covers a finite spectral fixture. Independent human and formal proof-kernel review are unclaimed.

Attempts on the main target

  1. Factor the affine count interpolant. A common splitting field gives a bound controlled by the least common multiple of the factor degrees. Separate row tilings give the polynomial width bound while retaining every independent input. At fixed characteristic, the affine count only sees the residue. The proof gives a worst-frequency error rank approaching half the batch for that residue-only model.
  2. Shorten the shift list. Conditional expectation gives $4m^4$ shifts, with a scan of all sign patterns during setup. Limited independence replaces that scan with an enumerable seed family. That family grows quasipolynomially, so the proof leaves polynomial width and polynomial deterministic setup together open.

Open next questions

  • Generate the polynomial shift list in polynomial time by finding an explicit sampler for the translated binomial tails at error $1/(4m^3)$.
  • Bind the new pencils to the actual shared label geometry over a growing prime. Start with the endpoint layouts and the full paid bill for one repaired batch.

Related open work

  • #8102 applies the published multiplier and identifies finite-template construction among the remaining tasks.
  • #8108 gives a depth and rank lower bound for binary swap predictors.
  • #8114 prices the compact interchanger's recursive child volumes for unequal label distances.
  • #8120 studies the incidence charge of rectangle delivery in the compact interchanger.

This package uses the November 24 Fourier companion's interpolation and Hermite repair and the tape paper's spectral conversion. Jerry Chen's #8103 gives a separate characteristic-two shift and check construction. Source notes · Discussion claim

Merge scope

The contribution is confined to one research package and its registered replay.

CI notes

Local package replay and committed-source preflight passed. Hosted planning and package replay both passed at b9330239afb238e84994cd0690bc0662d97ae67e. GitHub Actions run 46764608947.

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