-
Notifications
You must be signed in to change notification settings - Fork 9
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
Implement Component for RangeCheckUnitComponent. #12
Implement Component for RangeCheckUnitComponent. #12
Conversation
10914d6
to
21185a0
Compare
b4631c6
to
5fe74b3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed all commit messages.
Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @alonh5)
stwo_cairo_prover/src/components/range_check_unit.rs
line 58 at r1 (raw file):
fn max_constraint_log_degree_bound(&self) -> u32 { self.log_n_instances
The step constraint is of degree 2, right?
Suggestion:
self.log_n_instances + 1?
stwo_cairo_prover/src/components/range_check_unit.rs
line 94 at r1 (raw file):
interaction_elements, constraint_zero_domain, );
Why not adding all the constraints?
Code quote:
self.evaluate_lookup_boundary_constraints_at_point(
point,
mask,
evaluation_accumulator,
interaction_elements,
constraint_zero_domain,
);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @shaharsamocha7)
stwo_cairo_prover/src/components/range_check_unit.rs
line 58 at r1 (raw file):
Previously, shaharsamocha7 wrote…
The step constraint is of degree 2, right?
Done.
stwo_cairo_prover/src/components/range_check_unit.rs
line 94 at r1 (raw file):
Previously, shaharsamocha7 wrote…
Why not adding all the constraints?
All in one PR? It would be harder to review
21185a0
to
73fe30d
Compare
5fe74b3
to
7a7ccc6
Compare
73fe30d
to
0c40555
Compare
7a7ccc6
to
5a3f6c8
Compare
0c40555
to
9a64b0a
Compare
5a3f6c8
to
e0f48d2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @alonh5)
stwo_cairo_prover/src/components/range_check_unit.rs
line 33 at r2 (raw file):
impl RangeCheckUnitComponent { fn evaluate_lookup_boundary_constraints_at_point(
Don't you want to update the eval_at_domain function for the prover in the same pr?
Code quote:
fn evaluate_lookup_boundary_constraints_at_point(
stwo_cairo_prover/src/components/range_check_unit.rs
line 73 at r2 (raw file):
point: CirclePoint<SecureField>, ) -> TreeVec<ColumnVec<Vec<CirclePoint<SecureField>>>> { TreeVec::new(vec![fixed_mask_points(&vec![vec![0_usize]], point)])
didn't you have that with ;2?
Code quote:
fixed_mask_points(&vec![vec![0_usize]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @shaharsamocha7)
stwo_cairo_prover/src/components/range_check_unit.rs
line 33 at r2 (raw file):
Previously, shaharsamocha7 wrote…
Don't you want to update the eval_at_domain function for the prover in the same pr?
It's in the next PR. I can combine them if you prefer.
stwo_cairo_prover/src/components/range_check_unit.rs
line 73 at r2 (raw file):
Previously, shaharsamocha7 wrote…
didn't you have that with ;2?
Yes, I fixed it in the next PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @alonh5)
stwo_cairo_prover/src/components/range_check_unit.rs
line 33 at r2 (raw file):
Previously, alonh5 (Alon Haramati) wrote…
It's in the next PR. I can combine them if you prefer.
your call
9a64b0a
to
0ac1cf2
Compare
e0f48d2
to
9e6c006
Compare
This change is