Skip to content

Use one row-first CPU Spartan sumcheck with a four-row skip - #58

Open
RadNi wants to merge 1 commit into
mainfrom
codex/shared-row-spartan
Open

RadNi wants to merge 1 commit into
mainfrom
codex/shared-row-spartan

Conversation

@RadNi

@RadNi RadNi commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Change

The standard Jolt CPU prover and verifier use one outer sumcheck for binary and packed constraints. Both share a row point and a cycle point. The prover batches their residuals with a field challenge and the inner reduction binds all six terminal matrix evaluations.

One univariate check binds the first two row coordinates. It sends four field elements for a quotient of the residual on a four-point domain. Five row rounds follow, then one round per cycle coordinate. A trace of 2²⁵ cycles now uses 31 outer rounds. Each round after the skip sends two field elements. The public equality factor and running claim determine the third coefficient.

The prover computes binary products across 64 cycles per machine word and accumulates packed moments in the same pass. It delays the cross-group products until five row coordinates are bound. It packs guard masks into the cycle buffer and folds that buffer in place. The packed moment kernel also obtains linear C moments from the diagonal on an honest witness.

This changes proof encoding. The spec version binds the new transcript in the parameter-set identity. J13 records the skip polynomial, degree, message widths, and grinding. The change includes the regenerated security ledger, census fixtures, and WHIR known answer.

Verification

The tests check the univariate quotient against direct four-row products, each subsequent round against dense field arithmetic, and rejection when either constraint family's C matrix changes. The end-to-end WHIR test checks the new reference proof with both trace-slot rate configurations.

Run from crates/binary-jolt.

cargo test --locked --lib spartan::row_batch
cargo test --locked --lib i1_fibonacci_trace_slot_per_role_is_rate_quarter
cargo test --locked --test fs_census_jolt --test j4h_limits

@RadNi
RadNi requested a review from a team as a code owner December 2, 2026 19:23
@RadNi RadNi changed the title Batch binary and packed CPU Spartan rows in one outer sumcheck Use one row-first CPU Spartan sumcheck with a four-row skip Dec 2, 2026
@RadNi
RadNi force-pushed the codex/shared-row-spartan branch from 2e48608 to e95919d Compare December 3, 2026 00:04
@RadNi
RadNi added this pull request to stack #61 December 3, 2026 00:11
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