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

Air with dyn component #487

Merged
merged 1 commit into from
Mar 19, 2024
Merged

Conversation

spapinistarkware
Copy link
Collaborator

@spapinistarkware spapinistarkware commented Mar 15, 2024

This change is Reviewable

Copy link

graphite-app bot commented Mar 15, 2024

Your org has enabled the Graphite merge queue for merging into dev

Add 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-commenter
Copy link

codecov-commenter commented Mar 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.36%. Comparing base (b806150) to head (13efd90).

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.
📢 Have feedback on the report? Share it here.

@spapinistarkware spapinistarkware force-pushed the spapini/03-15-air_with_dyn_component branch 2 times, most recently from e788de1 to 519f4c0 Compare March 18, 2024 11:54
Copy link
Contributor

@alonh5 alonh5 left a 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,
    ));

Copy link
Collaborator

@shaharsamocha7 shaharsamocha7 left a 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> {

@spapinistarkware spapinistarkware force-pushed the spapini/03-15-air_with_dyn_component branch from 519f4c0 to 539d528 Compare March 19, 2024 11:33
Copy link
Collaborator Author

@spapinistarkware spapinistarkware left a 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.

@spapinistarkware spapinistarkware force-pushed the spapini/03-15-air_with_dyn_component branch from 539d528 to 13efd90 Compare March 19, 2024 12:25
Copy link
Contributor

@alonh5 alonh5 left a 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.

@spapinistarkware spapinistarkware force-pushed the spapini/03-15-air_with_dyn_component branch from 13efd90 to c324101 Compare March 19, 2024 14:01
Copy link
Collaborator Author

@spapinistarkware spapinistarkware left a 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.

Copy link
Contributor

@alonh5 alonh5 left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r5, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @shaharsamocha7)

Copy link
Collaborator Author

spapinistarkware commented Mar 19, 2024

Merge activity

@spapinistarkware spapinistarkware merged commit 91ea385 into dev Mar 19, 2024
10 checks passed
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.

None yet

4 participants