Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/protostar ivc #25

Open
wants to merge 14 commits into
base: feature/protostar-ivc
Choose a base branch
from

Conversation

amit0365
Copy link

@amit0365 amit0365 commented Aug 20, 2023

review1 sqrt CV

Comment on lines 217 to 219
let powers_of_zeta_first_poly = powers_of_zeta_poly((l_sqrt-1).ilog2() as usize, zeta);
let powers_of_zeta_second_poly = powers_of_zeta_poly((l_sqrt-1).ilog2() as usize, zeta.pow(&[l_sqrt as u64]));
let powers_of_zeta_poly = powers_of_zeta_first_poly.add(&powers_of_zeta_second_poly);
Copy link
Owner

Choose a reason for hiding this comment

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

I think this should be concatenated instead of added

Copy link
Author

Choose a reason for hiding this comment

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

done

Comment on lines 354 to 359
let zeta_cross_term_poly = evaluate_zeta_cross_term_poly(
l_sqrt * l_sqrt,
*num_alpha_primes,
accumulator,
incoming,
);
Copy link
Owner

Choose a reason for hiding this comment

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

Since the constraint for zeta becomes different, I think we need another function for it

Copy link
Author

Choose a reason for hiding this comment

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

done. i m not sure about the boundary conditions on the cross terms when we deal with zeta_power_lsqrt

Comment on lines 300 to 309
let powers_of_zeta_sqrt1_constraint = powers_of_zeta_constraint(zeta, powers_of_zeta_sqrt);
let zeta_sqrt1_products = products(&poly_set.preprocess, &powers_of_zeta_sqrt1_constraint);

let powers_of_zeta_sqrt2_constraint = powers_of_zeta_constraint(zeta.pow(l_sqrt as u32), powers_of_zeta_sqrt);
let zeta_sqrt2_products = products(&poly_set.preprocess, &powers_of_zeta_sqrt2_constraint);

let zeta_products = iter::empty()
.chain(zeta_sqrt1_products.iter().cloned())
.chain(zeta_sqrt2_products.iter().cloned())
.collect_vec();
Copy link
Owner

Choose a reason for hiding this comment

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

We'd need another poly and challenge by zeta_to_l and adopt the same constraint on them.

Copy link
Author

Choose a reason for hiding this comment

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

will this another poly help to recompute all the powers of beta from the square root terms? what is this challenge zeta_to_l?

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.

2 participants