-
Notifications
You must be signed in to change notification settings - Fork 78
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
Use only canonic domains #463
Conversation
Your org has enabled the Graphite merge queue for merging into devAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. You must have a Graphite account in order to use the merge queue. Sign up using this link. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## Revert448 #463 +/- ##
=============================================
- Coverage 95.47% 95.43% -0.04%
=============================================
Files 59 59
Lines 8795 8699 -96
Branches 8795 8699 -96
=============================================
- Hits 8397 8302 -95
+ Misses 350 347 -3
- Partials 48 50 +2 ☔ View full report in Codecov by Sentry. |
020f4f0
to
42484b9
Compare
95d931c
to
f48ae25
Compare
42484b9
to
3f034ed
Compare
583dc1f
to
43bf94c
Compare
e232738
to
c3f4798
Compare
43bf94c
to
42092e2
Compare
c3f4798
to
8beaf5f
Compare
42092e2
to
7f63d38
Compare
8beaf5f
to
2641772
Compare
7f63d38
to
69b2fb9
Compare
2641772
to
4cf635a
Compare
69b2fb9
to
6c0f065
Compare
4cf635a
to
56a8894
Compare
6c0f065
to
38b36f9
Compare
56a8894
to
2978a19
Compare
38b36f9
to
2b184d6
Compare
2978a19
to
6443804
Compare
2b184d6
to
4dc88e9
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 3 of 10 files at r1, 3 of 7 files at r2, 3 of 3 files at r3, all commit messages.
Reviewable status: 9 of 10 files reviewed, 6 unresolved discussions (waiting on @spapinistarkware)
src/core/air/evaluation.rs
line 172 at r3 (raw file):
cols: values.cols.map(|c| { CPUCircleEvaluation::<_, BitReversedOrder>::new( CanonicCoset::new(log_size as u32).circle_domain(),
Suggestion:
CanonicCoset::new(log_size).circle_domain()
src/core/air/evaluation.rs
line 307 at r3 (raw file):
for (log_size, values) in pairs.into_iter() { res = res * alpha + CPUCircleEvaluation::new(CanonicCoset::new(log_size).circle_domain(), values)
IMO keep the constraint_evaluation_domain function
and put this code inside
Code quote:
CanonicCoset::new(log_size).circle_domain()
src/core/poly/circle/domain.rs
line 110 at r3 (raw file):
#[test] fn test_circle_domain_iterator() {
I think that you should change this test to work with CanonicCoset circle domain.
Do we have another test for the iterator?
Code quote:
fn test_circle_domain_iterator() {
src/fibonacci/component.rs
line 108 at r3 (raw file):
let res = self.step_constraint_eval_quotient_by_mask(point, &mask); accum.accumulate(bit_reverse_index(i + off, constraint_log_degree_bound), res); let res = self.boundary_constraint_eval_quotient_by_mask(point, &[mask[0]]);
I think that res should be renamed
Code quote:
let res = self.step_constraint_eval_quotient_by_mask(point, &mask);
accum.accumulate(bit_reverse_index(i + off, constraint_log_degree_bound), res);
let res = self.boundary_constraint_eval_quotient_by_mask(point, &[mask[0]]);
src/fibonacci/component.rs
line 113 at r3 (raw file):
// Boundary constraint. let constraint_log_degree_bound = trace_domain.log_size();
Why did this code go?
Code quote:
// Boundary constraint.
let constraint_log_degree_bound = trace_domain.log_size();
src/fibonacci/component.rs
line 130 at r3 (raw file):
let res = self .boundary_constraint_eval_quotient_by_mask(point, &mask[0][..1].try_into().unwrap()); let constraint_log_degree_bound = self.log_size + 1;
huh?
Code quote:
self.log_size + 1
6443804
to
5340fda
Compare
4dc88e9
to
004de96
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: 9 of 10 files reviewed, 6 unresolved discussions (waiting on @shaharsamocha7)
src/core/air/evaluation.rs
line 172 at r3 (raw file):
cols: values.cols.map(|c| { CPUCircleEvaluation::<_, BitReversedOrder>::new( CanonicCoset::new(log_size as u32).circle_domain(),
It's usize
src/core/air/evaluation.rs
line 307 at r3 (raw file):
Previously, shaharsamocha7 wrote…
IMO keep the constraint_evaluation_domain function
and put this code inside
It's not the constraint evalaution domain no more. What name should I give it then?
src/core/poly/circle/domain.rs
line 110 at r3 (raw file):
Previously, shaharsamocha7 wrote…
I think that you should change this test to work with CanonicCoset circle domain.
Do we have another test for the iterator?
Done.
src/fibonacci/component.rs
line 108 at r3 (raw file):
Previously, shaharsamocha7 wrote…
I think that res should be renamed
Done.
src/fibonacci/component.rs
line 113 at r3 (raw file):
Previously, shaharsamocha7 wrote…
Why did this code go?
The 2 constraints are now computed on the same domain
src/fibonacci/component.rs
line 130 at r3 (raw file):
Previously, shaharsamocha7 wrote…
huh?
Now both constraints are computed on the same domain. These sizes should match the sizes in eval_on_domain
8eb8f0a
to
203b0b8
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 4 of 4 files at r4, all commit messages.
Reviewable status: 9 of 10 files reviewed, 3 unresolved discussions (waiting on @spapinistarkware)
src/core/poly/circle/domain.rs
line 110 at r3 (raw file):
Previously, spapinistarkware (Shahar Papini) wrote…
Done.
Using a CanonicCoset?
Actually CanonicCoset iteration can be done in two ways (right?), so maybe the test can be better.
src/fibonacci/component.rs
line 128 at r4 (raw file):
evaluation_accumulator: &mut PointEvaluationAccumulator, ) { let constraint_log_degree_bound = self.log_size + 1;
Suggestion:
let constraints_log_degree_bound = self.log_size + 1;
src/fibonacci/component.rs
line 133 at r4 (raw file):
self.step_constraint_eval_quotient_by_mask(point, &mask[0][..].try_into().unwrap()), ); let constraint_log_degree_bound = self.log_size + 1;
Remove
Code quote:
let constraint_log_degree_bound = self.log_size + 1;
004de96
to
07a69ae
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: 6 of 10 files reviewed, 3 unresolved discussions (waiting on @shaharsamocha7)
src/fibonacci/component.rs
line 128 at r4 (raw file):
evaluation_accumulator: &mut PointEvaluationAccumulator, ) { let constraint_log_degree_bound = self.log_size + 1;
Done.
src/fibonacci/component.rs
line 133 at r4 (raw file):
Previously, shaharsamocha7 wrote…
Remove
Done.
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 4 of 4 files at r5, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @spapinistarkware)
Merge activity
|
This change is