Use NativeSumcheck for calculating initial_sum#1249
Open
Use NativeSumcheck for calculating initial_sum#1249
NativeSumcheck for calculating initial_sum#1249Conversation
This was referenced Jan 29, 2026
Collaborator
|
Please check scroll-tech/openvm#30 for new semantic of |
kunxian-xia
reviewed
Feb 11, 2026
hero78119
reviewed
Feb 12, 2026
| let op_range: RVar<C::N> = builder.eval_expr(max_num_variables - Usize::from(1)); | ||
| let round: Felt<C::F> = builder.constant(C::F::ZERO); | ||
|
|
||
| let next_rt = PointAndEvalVariable { |
Collaborator
There was a problem hiding this comment.
it seems next_rt could be replaced with curr_pt and curr_eval
6cb8b8a to
f07379f
Compare
Collaborator
|
new after benchmark result |
Collaborator
|
Confirmed total trace cell dropped to previous level after latest change |
kunxian-xia
approved these changes
Feb 26, 2026
kunxian-xia
reviewed
Feb 26, 2026
kunxian-xia
requested changes
Feb 26, 2026
kunxian-xia
reviewed
Feb 27, 2026
| let n_v = builder.get(&num_variables, 0); | ||
| builder.set(&input_ctx, 8, n_v); | ||
| builder.set(&input_ctx, 9, Usize::from(0)); | ||
| builder.set(&input_ctx, 9, Usize::from(1)); |
Collaborator
There was a problem hiding this comment.
read from hint space and then write it to heap.
3d6f615 to
706bc16
Compare
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.
Optimization for Calculating Initial Sum in tower verify.
initial_sum. UseNativeSumcheckinstead.Optimization for
NativeSumcheckNativeSumcheckchip that allows passing in hint space IDs for evaluation inputs instead of loading concrete witness arrays. This significantly reduces cycles involved in loading witnesses.