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

Make prove() generic in Backend #490

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

spapinistarkware
Copy link
Collaborator

@spapinistarkware spapinistarkware commented Mar 16, 2024

This change is Reviewable

Copy link
Collaborator Author

spapinistarkware commented Mar 16, 2024

@codecov-commenter
Copy link

codecov-commenter commented Mar 16, 2024

Codecov Report

Attention: Patch coverage is 80.32787% with 12 lines in your changes are missing coverage. Please review.

❗ No coverage uploaded for pull request base (spapini/03-15-commitmentschemeprover_generic_in_backend@3659df9). Click here to learn what that means.

❗ Current head 42c6621 differs from pull request most recent head 2053114. Consider uploading reports for the commit 2053114 to get more accurate results

Files Patch % Lines
src/core/backend/avx512/accumulation.rs 0.00% 6 Missing ⚠️
src/core/backend/avx512/mod.rs 58.33% 5 Missing ⚠️
src/core/air/air_ext.rs 80.00% 1 Missing ⚠️
Additional details and impacted files
@@                                    Coverage Diff                                     @@
##             spapini/03-15-commitmentschemeprover_generic_in_backend     #490   +/-   ##
==========================================================================================
  Coverage                                                           ?   93.35%           
==========================================================================================
  Files                                                              ?       65           
  Lines                                                              ?     8301           
  Branches                                                           ?     8301           
==========================================================================================
  Hits                                                               ?     7749           
  Misses                                                             ?      490           
  Partials                                                           ?       62           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@spapinistarkware spapinistarkware force-pushed the spapini/03-15-commitmentschemeprover_generic_in_backend branch from cdf9971 to 8b957d1 Compare March 18, 2024 11:11
@spapinistarkware spapinistarkware force-pushed the spapini/03-16-make_prove_generic_in_backend branch from 3c9f330 to 364984c Compare March 18, 2024 11:11
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-commitmentschemeprover_generic_in_backend branch from 8b957d1 to f7a11cd Compare March 18, 2024 11:23
@spapinistarkware spapinistarkware force-pushed the spapini/03-16-make_prove_generic_in_backend branch from 364984c to 05f6703 Compare March 18, 2024 11:23
This was referenced Mar 27, 2024
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-commitmentschemeprover_generic_in_backend branch from 9ccea91 to 013d95c Compare March 28, 2024 09:44
@spapinistarkware spapinistarkware force-pushed the spapini/03-16-make_prove_generic_in_backend branch from 0e6f2ac to 42f9f4c Compare March 28, 2024 09:44
Copy link
Contributor

@andrewmilson andrewmilson 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: 5 of 11 files reviewed, 2 unresolved discussions (waiting on @spapinistarkware)


src/core/prover/mod.rs line 170 at r5 (raw file):

    air: &impl Air<B>,
    mut sampled_values: TreeVec<ColumnVec<Vec<SecureField>>>,
) -> Result<(ComponentVec<Vec<SecureField>>, SecureField), ()> {

Can we have a specific error something like InvalidOodsSampleStructure or document the error case please?


src/core/prover/mod.rs line 171 at r5 (raw file):

    mut sampled_values: TreeVec<ColumnVec<Vec<SecureField>>>,
) -> Result<(ComponentVec<Vec<SecureField>>, SecureField), ()> {
    let composition_partial_sampled_values = sampled_values.pop().ok_or(())?;

So the last value is always the composition? Should we document this? /// Assumes the last sample corresponds to the OODS values for the composition columns.

@spapinistarkware spapinistarkware force-pushed the spapini/03-15-commitmentschemeprover_generic_in_backend branch from 013d95c to fe5fc4b Compare April 3, 2024 06:22
@spapinistarkware spapinistarkware force-pushed the spapini/03-16-make_prove_generic_in_backend branch from 42f9f4c to 6a9223d Compare April 3, 2024 06:22
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-commitmentschemeprover_generic_in_backend branch from fe5fc4b to 2820b53 Compare April 3, 2024 06:45
@spapinistarkware spapinistarkware force-pushed the spapini/03-16-make_prove_generic_in_backend branch from 6a9223d to 15792de Compare April 3, 2024 06:45
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-commitmentschemeprover_generic_in_backend branch from 2820b53 to d68f9c8 Compare April 3, 2024 06:49
@spapinistarkware spapinistarkware force-pushed the spapini/03-16-make_prove_generic_in_backend branch from 15792de to d6c6c07 Compare April 3, 2024 06:49
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-commitmentschemeprover_generic_in_backend branch 2 times, most recently from 1a09f8c to a1393b7 Compare April 3, 2024 11:46
@spapinistarkware spapinistarkware mentioned this pull request Apr 3, 2024
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-commitmentschemeprover_generic_in_backend branch from a1393b7 to 573b59e Compare April 3, 2024 12:47
@spapinistarkware spapinistarkware force-pushed the spapini/03-16-make_prove_generic_in_backend branch from d6c6c07 to 2a6c1c1 Compare April 3, 2024 12:47
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-commitmentschemeprover_generic_in_backend branch from 573b59e to 967baeb Compare April 3, 2024 12:55
@spapinistarkware spapinistarkware force-pushed the spapini/03-16-make_prove_generic_in_backend branch from 2a6c1c1 to 2247dbf Compare April 3, 2024 12:55
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-commitmentschemeprover_generic_in_backend branch from 967baeb to d6901e7 Compare April 3, 2024 13:09
@spapinistarkware spapinistarkware force-pushed the spapini/03-16-make_prove_generic_in_backend branch from 2247dbf to 701e435 Compare April 3, 2024 13:09
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: 3 of 14 files reviewed, 2 unresolved discussions (waiting on @andrewmilson)


src/core/prover/mod.rs line 170 at r5 (raw file):

Previously, andrewmilson (Andrew Milson) wrote…

Can we have a specific error something like InvalidOodsSampleStructure or document the error case please?

Can we do this in another PR? It's not related to this one.


src/core/prover/mod.rs line 171 at r5 (raw file):

Previously, andrewmilson (Andrew Milson) wrote…

So the last value is always the composition? Should we document this? /// Assumes the last sample corresponds to the OODS values for the composition columns.

Can we do this in another PR? It's not related to this one.

@spapinistarkware spapinistarkware force-pushed the spapini/03-15-commitmentschemeprover_generic_in_backend branch from d6901e7 to 5a50691 Compare April 4, 2024 09:47
@spapinistarkware spapinistarkware force-pushed the spapini/03-16-make_prove_generic_in_backend branch from 701e435 to 42c6621 Compare April 4, 2024 09:47
@spapinistarkware spapinistarkware force-pushed the spapini/03-15-commitmentschemeprover_generic_in_backend branch from 5a50691 to 3659df9 Compare April 4, 2024 09:52
@spapinistarkware spapinistarkware force-pushed the spapini/03-16-make_prove_generic_in_backend branch from 42c6621 to 2053114 Compare April 4, 2024 09:52
Copy link
Collaborator Author

spapinistarkware commented Apr 4, 2024

Merge activity

@spapinistarkware spapinistarkware changed the base branch from spapini/03-15-commitmentschemeprover_generic_in_backend to dev April 4, 2024 11:05
@spapinistarkware spapinistarkware force-pushed the spapini/03-16-make_prove_generic_in_backend branch from 2053114 to e3218cf Compare April 4, 2024 11:06
@spapinistarkware spapinistarkware merged commit 42e6cf6 into dev Apr 4, 2024
10 of 11 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

3 participants