Skip to content

Add batched cubic sumcheck for K instance triples#480

Merged
srinathsetty merged 3 commits intomainfrom
batched-cubic-sumcheck
Mar 19, 2026
Merged

Add batched cubic sumcheck for K instance triples#480
srinathsetty merged 3 commits intomainfrom
batched-cubic-sumcheck

Conversation

@srinathsetty
Copy link
Collaborator

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.

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.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_cubic to produce a cubic sumcheck proof for sum_i alpha_i * (A_i*B_i - C_i) under equality-polynomial factoring.
  • Add EqSumCheckInstance::evaluation_points_batched_cubic plus a tau=0 fallback 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.

@srinathsetty srinathsetty requested a review from iontzialla March 18, 2026 17:18
@srinathsetty srinathsetty merged commit 5bedab2 into main Mar 19, 2026
12 checks passed
@srinathsetty srinathsetty deleted the batched-cubic-sumcheck branch March 19, 2026 18:23
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.

3 participants