Batch public input check with ring-switch oracle relation#1441
Merged
Conversation
The public input consistency check was batched into Phase 2 of the shift reduction protocol. This removes it entirely: the Fiat-Shamir transcript no longer samples inout_eval_point or batch_coeff, the Phase 2 sumcheck claim simplifies from gamma + batch_coeff * public_eval to just gamma, and the eval check simplifies from witness_eval * (monster_eval + batch_coeff * eq_eval) to witness_eval * monster_eval. Public input verification will be handled separately.
[prover] Observe public inputs as B128 on channel
Instead of checking public inputs in the shift reduction protocol, batch the pubcheck with the ring-switch oracle relation during PCS opening. This samples a batch_coeff after ring-switch and modifies both the transparent polynomial (rs_eq_ind + batch_coeff * pubcheck_eq) and the claim (sumcheck_claim + batch_coeff * pubcheck_claim). The pubcheck_eq selects the first 2^log_public_elems entries of the committed polynomial using eq(pubcheck_point || 0, ·).
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.
Summary
compute_batched_transparenthelper on the prover side andeval_pubcheck_eqhelper on the verifier sideTest plan
cargo test -p binius-prover --test shiftcargo test -p binius-examples --testscargo clippy -p binius-verifier -p binius-prover --tests --benches -- -D warnings