Add batched cubic sumcheck for K instance triples#480
Merged
srinathsetty merged 3 commits intomainfrom Mar 19, 2026
Merged
Conversation
Add prove_batched_cubic and evaluation_points_batched_cubic to SumcheckProof and EqSumCheckInstance respectively. These prove sum_x eq(tau,x) * sum_i alpha_i * (A_i(x)*B_i(x) - C_i(x)) = claim for K instances sharing the same sumcheck structure. The inner polynomial t(X) = sum_i alpha_i*(A_i(X)*B_i(X)-C_i(X)) is degree 2 in X, so BDDT O(1) claim derivation applies unchanged. Includes fallback_eval_inf_batched_cubic for the tau=0 edge case.
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new batched cubic sumcheck prover path to support proving a weighted sum of K (A_i, B_i, C_i) instance triples under a shared eq(tau, x) structure, extending Spartan’s sumcheck optimization infrastructure.
Changes:
- Add
SumcheckProof::prove_batched_cubicto produce a cubic sumcheck proof forsum_i alpha_i * (A_i*B_i - C_i)under equality-polynomial factoring. - Add
EqSumCheckInstance::evaluation_points_batched_cubicplus atau=0fallback path to derive round evaluation points using the existing BDDT O(1) claim derivation. - Bump crate version to
0.66.0.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
src/spartan/sumcheck.rs |
Implements batched cubic sumcheck proving and equality-sumcheck evaluation-point derivation for K triples. |
Cargo.toml |
Version bump to reflect the new public API additions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
iontzialla
approved these changes
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add prove_batched_cubic and evaluation_points_batched_cubic to SumcheckProof and EqSumCheckInstance respectively. These prove sum_x eq(tau,x) * sum_i alpha_i * (A_i(x)*B_i(x) - C_i(x)) = claim for K instances sharing the same sumcheck structure.
The inner polynomial t(X) = sum_i alpha_i*(A_i(X)*B_i(X)-C_i(X)) is degree 2 in X, so BDDT O(1) claim derivation applies unchanged. Includes fallback_eval_inf_batched_cubic for the tau=0 edge case.