Skip to content

Feature/protostar ivc#25

Open
amit0365 wants to merge 14 commits into
han0110:feature/protostar-ivcfrom
amit0365:feature/protostar-ivc
Open

Feature/protostar ivc#25
amit0365 wants to merge 14 commits into
han0110:feature/protostar-ivcfrom
amit0365:feature/protostar-ivc

Conversation

@amit0365

@amit0365 amit0365 commented Aug 20, 2023

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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?

@amit0365 amit0365 force-pushed the feature/protostar-ivc branch from 3bef759 to ce7d71d Compare October 4, 2023 05:59
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