-
Notifications
You must be signed in to change notification settings - Fork 55
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
Air with dyn component #487
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 @@
## dev #487 +/- ##
==========================================
- Coverage 95.41% 95.36% -0.06%
==========================================
Files 58 58
Lines 8906 8795 -111
Branches 8906 8795 -111
==========================================
- Hits 8498 8387 -111
Misses 359 359
Partials 49 49 ☔ View full report in Codecov by Sentry. |
74e5964
to
2d000a6
Compare
e788de1
to
519f4c0
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 1 of 4 files at r1, 4 of 5 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @shaharsamocha7 and @spapinistarkware)
src/core/air/component_visitors.rs
line 139 at r3 (raw file):
.map(|component| { let n_columns = component.trace_log_degree_bounds().len(); let columns = polynomials.iter().take(n_columns).collect();
I think this is needed to mutate self.polynomials
.
Suggestion:
(&mut self.polynomials)
src/core/prover/mod.rs
line 175 at r3 (raw file):
commitment_domains.push(CanonicCoset::new( air.composition_log_degree_bound() + LOG_BLOWUP_FACTOR, ));
Why not add this inside the air method?
Code quote:
commitment_domains.push(CanonicCoset::new(
air.composition_log_degree_bound() + LOG_BLOWUP_FACTOR,
));
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 4 files at r1, 3 of 5 files at r2, all commit messages.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @spapinistarkware)
src/core/air/component_visitors.rs
line 1 at r3 (raw file):
use core::slice;
Maybe this file should be renamed?
Code quote:
use core::slice;
src/core/air/component_visitors.rs
line 65 at r3 (raw file):
} fn mask_points(
Unit test for this function?
I don't see where you move the mask by the component offset
Code quote:
fn mask_points(
src/core/air/component_visitors.rs
line 100 at r3 (raw file):
/// Returns the log degree bounds of the quotient polynomials in descending order. fn quotient_log_bounds(&self) -> Vec<CirclePolyDegreeBound> {
Can we have a unit test to this function?
I don't understand how it is works in case you have multiple components
Code quote:
fn quotient_log_bounds(&self) -> Vec<CirclePolyDegreeBound> {
519f4c0
to
539d528
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: 4 of 8 files reviewed, 4 unresolved discussions (waiting on @alonh5 and @shaharsamocha7)
src/core/prover/mod.rs
line 175 at r3 (raw file):
Previously, alonh5 (Alon Haramati) wrote…
Why not add this inside the air method?
It's the only place that will need it. Why move it? It's more explicit this wait.
src/core/air/component_visitors.rs
line 65 at r3 (raw file):
Previously, shaharsamocha7 wrote…
Unit test for this function?
I don't see where you move the mask by the component offset
What's a component offset?
I didnt change this function, just translated to a loop.
src/core/air/component_visitors.rs
line 100 at r3 (raw file):
Previously, shaharsamocha7 wrote…
Can we have a unit test to this function?
I don't understand how it is works in case you have multiple components
I didnt change it. Adding tests sounds nice, but not for this PR.
src/core/air/component_visitors.rs
line 139 at r3 (raw file):
Previously, alonh5 (Alon Haramati) wrote…
I think this is needed to mutate
self.polynomials
.
Done.
539d528
to
13efd90
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: all files reviewed, 4 unresolved discussions (waiting on @shaharsamocha7 and @spapinistarkware)
src/core/air/mod.rs
line 18 at r4 (raw file):
pub use air_ext::AirExt; /// Aritair_exte Representation (AIR).
Restore.
src/core/prover/mod.rs
line 175 at r3 (raw file):
Previously, spapinistarkware (Shahar Papini) wrote…
It's the only place that will need it. Why move it? It's more explicit this wait.
It seems more natural, the verify function is long as is. But your call, it's not crucial.
13efd90
to
c324101
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: all files reviewed, 3 unresolved discussions (waiting on @alonh5 and @shaharsamocha7)
src/core/air/mod.rs
line 18 at r4 (raw file):
Previously, alonh5 (Alon Haramati) wrote…
Restore.
Done.
src/core/prover/mod.rs
line 175 at r3 (raw file):
Previously, alonh5 (Alon Haramati) wrote…
It seems more natural, the verify function is long as is. But your call, it's not crucial.
It'll get shorter upstack.
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 r5, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @shaharsamocha7)
Merge activity
|
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)