Skip to content

Reduce live matrix stock and activate all six stages inside the fast multiplier - #7914

Open
aliromman wants to merge 1 commit into
CrocSwap:mainfrom
aliromman:codex/native-stock-activation
Open

aliromman wants to merge 1 commit into
CrocSwap:mainfrom
aliromman:codex/native-stock-activation

Conversation

@aliromman

@aliromman aliromman commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

This construction reduces the live matrix stock of the six-stage general integer multiplier and puts all six stages inside a genuine numerical Fourier operation at a substantially smaller input length. It preserves the complete proposed κ = 0.00387992803556 for arbitrary signed binary operands. Both the old lower bound and the new sufficient bound count a nested call whose result reaches the integer product. Resource derivations · Complete composition · Execution and kernel receipts

Quantity Previous complete construction This construction
True high matrices per invertible low and owner 3^(N²(w−1)) 3^(N²(u−1)), using balanced components of total width w and largest width u
Necessary old / sufficient new log₂ p for the connected native path Greater than 470632530120481927710843371 3840000000000000 suffices for all later lengths
Minimum records in the two-trit, rank-two physical fixture 25,509,168 314,928
Extra backing at the same 25,509,168 four-byte records 516,560,652 bytes 7,637,004 bytes
Total backing for that matched-payload route 618,597,324 bytes 109,673,676 bytes
Reads, writes and absolute seek distance for that route 17,052,878,808 byte positions 43,582,413,528 byte positions

Here p = 6 ceil(log₂ n) for input length n. The ratio of the compared logarithmic thresholds exceeds 122,560,554,718. A sufficient input length is 2^ceil(2^3840000000000000 / 6) bits. The low matrix space alone still has more than 3^(N²)/2 configurations for N = 2^240000000000000. The numerical rank is M = 2^3300000000. Fixed setup retains the N^20000 envelope. The recurring constant has the same upper-bound form with unresolved absolute factors. The complete machine still uses linear storage. Its additional backing above signed I/O and persistent tensor banks falls from Ω(n) at a full old CRT shuttle to O_F(n/√log n) plus fixed installation and the separately bounded private compiler. There is no practical crossover measurement. Outer thresholds and actual productive source · Same-input backing and movement

A single lifted ternary chart acts on the product of cyclic address components. It retains every arbitrary record, high carry, predecessor reservation and independently returned owner. Balanced atom floors let both the full-atom transfer and the high-matrix transfer enter the previous stage. The two-width coprime-square controller also reduces the per-input dense Fourier setup from at least 2^(131072s³) entries in one previous root to at most 2^(2²⁰(s+1)²) steps and bits for the full new setup, with s = ceil(log₂(p+2)) on the stated tail. The striped consumer uses the actual 36-call binary and 48-call complex bodies. A retained rank-129 source forces a whole-window relocation. Ordinary proof · Binary receiver · Complex raw receiver and precision · Signed product entry

For a same-data control, the unstriped new receiver still used 618,597,324 bytes when the old high labels survived as arbitrary spectators. The 81-stripe physical check achieved the reduction in the table and increased summed tape travel 2.56-fold. The file product returned −345550037539 for −741503 times 466013, including the five nonzero pre-carry coefficients 11811, 10996, 4152, 868 and 77. The finite fixtures exercise smaller ranks and stopped kernels. The growing-rank conclusion uses the written proof. Physical control · Signed file tests

With Python 3.12, the registered checks run from the repository root.

python3.12 -B scripts/research_package.py --package research/native-stock-activation

The expected final line is PASS_REGISTERED_RESEARCH_PACKAGE research/native-stock-activation outcome=completed. All six commands also passed on the committed, read-only, Git-free export with zero external input files. The 68-file commit byte and mode check passed. These additional commands reproduce the C11 matcher measurements and formal replay.

p=research/native-stock-activation
python3.12 -I -B "$p/verify.py" physical stock
python3.12 -I -B "$p/verify_formal.py"

Hosted CI stopped before package selection. Its onboarding suite ran 760 tests with one failure and 24 skips. The navigation test expects make frontier7000-verify. The canonical base document still says make frontier6030-verify. I reproduced that exact assertion from four byte-identical base and head files. The six registered package checks passed locally and in the read-only export. Hosted run · Base navigation test · Base CI navigation

Five Lean 4.34.1 modules passed independent kernel replay. Twenty axiom reports use only propext, Classical.choice and Quot.sound. The new formal statements include the common chart action, all six stock inequalities, the physical exterior and source gap, the arbitrary-rank contact phase, stripe recombination and carry. Global approximation, compiler pricing and the bit-tape transcription remain written proofs. Author-side adversarial checks are complete. External scientific review remains open. Verification and exact boundaries · Lean sources · Retained byte bindings

The base is canonical main at e54523517d0f03e58352e647c403a5af3e525a57. Ali Romman (@aliromman) prepared this work with substantial OpenAI Codex assistance. The previous 480/264 multiplier supplies the finite compiler, ternary frame machine and original price. The self-hosted work supplies the earlier field-borrowing precedent. Clear1nsight (@Clear1nsight) supplied the mixed cut. The credited all-column realization and the direct-circulant caller supply the native identities and original Fourier proof. The separate seven-stage 451-factor proposal and its newer 18-place selector require a different physical BIT service. The recent rank-three changed-word matcher verifies its own lifted carry. Newer selector · Changed-word matcher The selected record remains at κ = 0.00363005817. Previous complete multiplier · Self-hosted predecessor · Mixed cut · Native realization · Uniform proof · Fourier caller · 451-factor proposal · Pinned selected record · Source-specific attribution · Scoped coordination

The decisive predecessor files are pinned to the exact construction used here. 480/264 carrier · Self-hosted source · Mixed price · All-column identities · Uniform composition dependencies · Fourier and precision

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