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 CommitmentSchemeProver::prove_values take ownership #852

Conversation

andrewmilson
Copy link
Contributor

@andrewmilson andrewmilson commented Sep 24, 2024

Simplifies the implementation of quotient commitment tree in following PR

This change is Reviewable

Copy link
Contributor Author

andrewmilson commented Sep 24, 2024

@codecov-commenter
Copy link

codecov-commenter commented Sep 24, 2024

Codecov Report

Attention: Patch coverage is 58.33333% with 15 lines in your changes missing coverage. Please review.

Project coverage is 91.95%. Comparing base (cd8b37b) to head (bbe8f96).

Files with missing lines Patch % Lines
crates/prover/src/core/prover/mod.rs 50.00% 11 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #852      +/-   ##
==========================================
+ Coverage   91.93%   91.95%   +0.02%     
==========================================
  Files          93       93              
  Lines       13312    13308       -4     
  Branches    13312    13308       -4     
==========================================
- Hits        12238    12237       -1     
+ Misses        957      954       -3     
  Partials      117      117              

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


🚨 Try these New Features:

Copy link
Contributor

@Alon-Ti Alon-Ti left a comment

Choose a reason for hiding this comment

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

:lgtm: up to stylistic question.

Reviewed 9 of 9 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @andrewmilson and @shaharsamocha7)


crates/prover/src/core/prover/mod.rs line 150 at r1 (raw file):

    fn extract_composition_oods_eval(&self) -> Result<SecureField, InvalidOodsSampleStructure> {
        // TODO(andrew): `[.., composition_mask, _quotients_mask]` when add quotients commitment.
        let [_traces_mask @ .., composition_mask] = &**self.sampled_values else {

Why are you binding traces_mask?

Copy link
Contributor Author

@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: all files reviewed, 1 unresolved discussion (waiting on @Alon-Ti and @shaharsamocha7)


crates/prover/src/core/prover/mod.rs line 150 at r1 (raw file):

Previously, Alon-Ti wrote…

Why are you binding traces_mask?

I would have done _ @ .. but it errors strangely.

OHHH. Wow didn't realise you can just do .. SMH, tyty

@andrewmilson andrewmilson force-pushed the 09-15-Add_arithmetic_op_counts_to_InfoEvaluator branch from 798f58a to a46c994 Compare September 25, 2024 21:22
@andrewmilson andrewmilson force-pushed the 09-23-Make_CommitmentSchemeProver_prove_values_take_ownership branch from 4de2301 to 64b9479 Compare September 25, 2024 21:22
Copy link
Contributor

@Alon-Ti Alon-Ti left a comment

Choose a reason for hiding this comment

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

Reviewed 6 of 6 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @shaharsamocha7)

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.

:lgtm:

Reviewed 3 of 9 files at r1, 6 of 6 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @andrewmilson)

@andrewmilson andrewmilson force-pushed the 09-15-Add_arithmetic_op_counts_to_InfoEvaluator branch from a46c994 to 19e4fac Compare November 19, 2024 13:58
@andrewmilson andrewmilson force-pushed the 09-23-Make_CommitmentSchemeProver_prove_values_take_ownership branch from 64b9479 to 16f372f Compare November 19, 2024 13:58
This was referenced Nov 19, 2024
@andrewmilson andrewmilson force-pushed the 09-23-Make_CommitmentSchemeProver_prove_values_take_ownership branch from 16f372f to e5089ad Compare November 23, 2024 23:18
@andrewmilson andrewmilson force-pushed the 09-15-Add_arithmetic_op_counts_to_InfoEvaluator branch from 19e4fac to deca512 Compare November 24, 2024 02:20
@andrewmilson andrewmilson force-pushed the 09-23-Make_CommitmentSchemeProver_prove_values_take_ownership branch from e5089ad to 02fe2b1 Compare November 24, 2024 02:20
@andrewmilson andrewmilson force-pushed the 09-15-Add_arithmetic_op_counts_to_InfoEvaluator branch from deca512 to b32c8bc Compare November 24, 2024 03:58
@andrewmilson andrewmilson force-pushed the 09-23-Make_CommitmentSchemeProver_prove_values_take_ownership branch from 02fe2b1 to 557345d Compare November 24, 2024 03:59
@andrewmilson andrewmilson force-pushed the 09-15-Add_arithmetic_op_counts_to_InfoEvaluator branch from b32c8bc to e5fe5d9 Compare November 24, 2024 04:04
@andrewmilson andrewmilson force-pushed the 09-23-Make_CommitmentSchemeProver_prove_values_take_ownership branch from 557345d to 78be733 Compare November 24, 2024 04:04
@andrewmilson andrewmilson force-pushed the 09-15-Add_arithmetic_op_counts_to_InfoEvaluator branch from e5fe5d9 to 840ed3e Compare November 24, 2024 04:08
@andrewmilson andrewmilson force-pushed the 09-23-Make_CommitmentSchemeProver_prove_values_take_ownership branch from 78be733 to c46d77b Compare November 24, 2024 04:08
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: bbe8f96 Previous: cd8b37b Ratio
merkle throughput/simd merkle 27701539 ns/iter (± 437610) 13712527 ns/iter (± 579195) 2.02

This comment was automatically generated by workflow using github-action-benchmark.

CC: @shaharsamocha7

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 9 of 9 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @andrewmilson)


crates/prover/src/examples/plonk/mod.rs line 301 at r3 (raw file):

        let sizes = component.trace_log_degree_bounds();

        // Constant columns.

rename

Suggestion:

// Preprocessed columns.

Base automatically changed from 09-15-Add_arithmetic_op_counts_to_InfoEvaluator to dev November 24, 2024 15:04
@andrewmilson andrewmilson force-pushed the 09-23-Make_CommitmentSchemeProver_prove_values_take_ownership branch from c46d77b to ba15488 Compare November 24, 2024 15:11
@andrewmilson andrewmilson force-pushed the 09-23-Make_CommitmentSchemeProver_prove_values_take_ownership branch from ba15488 to bbe8f96 Compare November 24, 2024 15:22
Copy link
Contributor Author

@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: 8 of 11 files reviewed, all discussions resolved (waiting on @shaharsamocha7)


crates/prover/src/examples/plonk/mod.rs line 301 at r3 (raw file):

Previously, shaharsamocha7 wrote…

rename

Done thanks

@andrewmilson andrewmilson merged commit 3e5a81d into dev Nov 24, 2024
17 of 19 checks passed
@andrewmilson andrewmilson deleted the 09-23-Make_CommitmentSchemeProver_prove_values_take_ownership branch November 24, 2024 15:25
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.

4 participants