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

Formal polynomials. #835

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Formal polynomials. #835

wants to merge 1 commit into from

Conversation

Alon-Ti
Copy link
Contributor

@Alon-Ti Alon-Ti commented Sep 16, 2024

This change is Reviewable

Copy link
Contributor Author

Alon-Ti commented Sep 16, 2024

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

Join @Alon-Ti and the rest of your teammates on Graphite Graphite

@Alon-Ti Alon-Ti marked this pull request as ready for review September 16, 2024 15:47
@codecov-commenter
Copy link

codecov-commenter commented Sep 16, 2024

Codecov Report

Attention: Patch coverage is 73.22835% with 68 lines in your changes missing coverage. Please review.

Project coverage is 91.53%. Comparing base (6e649fc) to head (5a971e9).

Files with missing lines Patch % Lines
crates/prover/src/constraint_framework/poly.rs 73.22% 61 Missing and 7 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #835      +/-   ##
==========================================
- Coverage   91.91%   91.53%   -0.38%     
==========================================
  Files          90       91       +1     
  Lines       12375    12629     +254     
  Branches    12375    12629     +254     
==========================================
+ Hits        11374    11560     +186     
- Misses        892      953      +61     
- Partials      109      116       +7     
Flag Coverage Δ
91.53% <73.22%> (-0.38%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@Alon-Ti Alon-Ti changed the base branch from alont/evalfw-copy2clone to graphite-base/835 September 25, 2024 20:57
@Alon-Ti Alon-Ti requested review from andrewmilson and removed request for shaharsamocha7 September 25, 2024 20:58
@Alon-Ti Alon-Ti changed the base branch from graphite-base/835 to dev September 25, 2024 20:58
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: 0 of 2 files reviewed, 4 unresolved discussions (waiting on @Alon-Ti)


crates/prover/src/constraint_framework/poly.rs line 12 at r2 (raw file):

/// A monic monomial consists of a list of variables and their exponents.
#[derive(Debug, Hash, PartialEq, PartialOrd, Eq, Ord, Clone)]

Nit: is hash needed?

Suggestion:

#[derive(Debug, PartialEq, PartialOrd, Eq, Ord, Clone)]

crates/prover/src/constraint_framework/poly.rs line 31 at r2 (raw file):

/// A polynomial consists of a list of monomials with coefficients.
#[derive(Debug, Hash, PartialEq, PartialOrd, Eq, Ord, Clone)]

Same here.

Suggestion:

#[derive(Debug, PartialEq, PartialOrd, Eq, Ord, Clone)]

crates/prover/src/constraint_framework/poly.rs line 46 at r2 (raw file):

impl<F: From<BaseField>> From<F> for Polynomial<F>
where
    F: One + Clone,

Suggestion:

impl<F: One + Clone + From<BaseField>> From<F> for Polynomial<F>

crates/prover/src/constraint_framework/poly.rs line 151 at r2 (raw file):

impl<F: Zero + Clone + From<BaseField>> Zero for Polynomial<F> {
    fn is_zero(&self) -> bool {
        self.monomials.is_empty()

Can multiple zero representations not returning true here? i.e. x0^0 - x1^0
Is it a problem?

Code quote:

self.monomials.is_empty()

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