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

Revert "removed computing line coeffs (#643)" #684

Merged
merged 2 commits into from
Jul 2, 2024

Conversation

spapinistarkware
Copy link
Contributor

@spapinistarkware spapinistarkware commented Jun 30, 2024

Revert "removed computing line coeffs (#643)"

This reverts commit a150b8f.

Revert "integrated point vanishing in fri quotients (#619)"

This reverts commit a6eabdd.


This change is Reviewable

Copy link
Contributor Author

spapinistarkware commented Jun 30, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @spapinistarkware and the rest of your teammates on Graphite Graphite

@codecov-commenter
Copy link

codecov-commenter commented Jun 30, 2024

Codecov Report

Attention: Patch coverage is 98.81657% with 2 lines in your changes missing coverage. Please review.

Project coverage is 89.94%. Comparing base (a759ce0) to head (e33378a).

Files Patch % Lines
crates/prover/src/core/constraints.rs 96.96% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #684      +/-   ##
==========================================
- Coverage   89.95%   89.94%   -0.02%     
==========================================
  Files          75       75              
  Lines        9657     9755      +98     
  Branches     9657     9755      +98     
==========================================
+ Hits         8687     8774      +87     
- Misses        889      900      +11     
  Partials       81       81              

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

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 2 of 4 files at r1, all commit messages.
Reviewable status: 2 of 4 files reviewed, 3 unresolved discussions (waiting on @spapinistarkware)


crates/prover/src/core/constraints.rs line 94 at r1 (raw file):

/// Evaluates the coefficients of a line between a point and its complex conjugate. Specifically,
/// `a, b, and c, s.t. a*x + b -c*y = 0` for (x,y) being (sample.y, sample.value) and

Can we change it so the equation will be
ax + by +-c = 0?

Seems more intuitive for me (non-blocking)

Code quote:

a*x + b -c*y = 0`

crates/prover/src/core/backend/cpu/quotients.rs line 59 at r1 (raw file):

    ) {
        let mut numerator = SecureField::zero();
        for ((column_index, _), (a, b, c)) in zip_eq(&sample_batch.columns_and_values, line_coeffs)

These already multiply by the constraint random element.
Can you document that or rename the variable names to contain the alpha?

We had exactly this bug here.

Code quote:

(a, b, c)

crates/prover/src/core/backend/simd/quotients.rs line 82 at r1 (raw file):

            // at sample_point and conj(sample_point) if the original polynomial had the values
            // sample_value and conj(sample_value) at these points.
            // TODO(AlonH): Use single point vanishing to save a multiplication.

Remove

Code quote:

            // TODO(AlonH): Use single point vanishing to save a multiplication.

Copy link
Contributor 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: 2 of 4 files reviewed, 3 unresolved discussions (waiting on @shaharsamocha7)


crates/prover/src/core/constraints.rs line 94 at r1 (raw file):

Previously, shaharsamocha7 wrote…

Can we change it so the equation will be
ax + by +-c = 0?

Seems more intuitive for me (non-blocking)

That does sound better. Let's do it in another PR.


crates/prover/src/core/backend/cpu/quotients.rs line 59 at r1 (raw file):

Previously, shaharsamocha7 wrote…

These already multiply by the constraint random element.
Can you document that or rename the variable names to contain the alpha?

We had exactly this bug here.

Added in the last PR.


crates/prover/src/core/backend/simd/quotients.rs line 82 at r1 (raw file):

Previously, shaharsamocha7 wrote…

Remove

This gets removed in the following PRs. Better to keep this as a pure revert PR.

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:

Reviewable status: 2 of 4 files reviewed, 1 unresolved discussion (waiting on @spapinistarkware)


crates/prover/src/core/constraints.rs line 94 at r1 (raw file):

Previously, spapinistarkware (Shahar Papini) wrote…

That does sound better. Let's do it in another PR.

TODO?

@spapinistarkware spapinistarkware merged commit 60027bd into dev Jul 2, 2024
13 of 14 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.

3 participants