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

Struct for PreProcessed Columns ID #992

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

Gali-StarkWare
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

Gali-StarkWare commented Jan 14, 2025

@codecov-commenter
Copy link

codecov-commenter commented Jan 14, 2025

Codecov Report

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

Project coverage is 92.37%. Comparing base (cfb5031) to head (9d46c4c).

Files with missing lines Patch % Lines
...rates/prover/src/constraint_framework/component.rs 50.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #992   +/-   ##
=======================================
  Coverage   92.37%   92.37%           
=======================================
  Files         105      105           
  Lines       14218    14224    +6     
  Branches    14218    14224    +6     
=======================================
+ Hits        13134    13140    +6     
  Misses       1010     1010           
  Partials       74       74           

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

@Gali-StarkWare Gali-StarkWare force-pushed the gali/remove_preprocessed_column_enum branch 2 times, most recently from cabb311 to 8be88da Compare January 14, 2025 11:19
@Gali-StarkWare Gali-StarkWare force-pushed the gali/change_preprocessed_to_struct branch from ceaa22e to e1cc994 Compare January 14, 2025 11:19
Copy link
Collaborator

@ohad-starkware ohad-starkware 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 8 of 9 files at r1, all commit messages.
Reviewable status: 8 of 9 files reviewed, all discussions resolved (waiting on @shaharsamocha7)


crates/prover/src/constraint_framework/component.rs line 103 at r1 (raw file):

    // I.e. preprocessed_columns[i] == self.preprocessed_columns[i].
    pub fn validate_preprocessed_columns(&self, preprocessed_columns: &[PreProcessedColumnId]) {
        assert_eq!(self.preprocessed_columns, preprocessed_columns);

unrelated to this pr, this needs to assert that they are permutations, correct? it just happens to be the case with state machine that the order in the tree matches the usage order.

Copy link
Contributor Author

@Gali-StarkWare Gali-StarkWare 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 9 files reviewed, all discussions resolved (waiting on @shaharsamocha7)


crates/prover/src/constraint_framework/component.rs line 103 at r1 (raw file):

this needs to assert that they are permutations, correct?

Great question, not sure. @shaharsamocha7 wdyt?

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


crates/prover/src/constraint_framework/component.rs line 103 at r1 (raw file):

Previously, Gali-StarkWare wrote…

this needs to assert that they are permutations, correct?

Great question, not sure. @shaharsamocha7 wdyt?

Should be fixed in another pr


crates/prover/src/constraint_framework/preprocessed_columns.rs line 17 at r1 (raw file):

pub struct PreProcessedColumnId {
    pub id: String,
}

Currently you added an Id function to all the structs that implement this.
Maybe we just want to implement the From trait for each of those structs?
@ohad-starkware WDYT?

Code quote:

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct PreProcessedColumnId {
    pub id: String,
}

Copy link
Contributor Author

@Gali-StarkWare Gali-StarkWare 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 @ohad-starkware)


crates/prover/src/constraint_framework/preprocessed_columns.rs line 17 at r1 (raw file):

Previously, shaharsamocha7 wrote…

Currently you added an Id function to all the structs that implement this.
Maybe we just want to implement the From trait for each of those structs?
@ohad-starkware WDYT?

How will you include the variables' values as well there?

@Gali-StarkWare Gali-StarkWare force-pushed the gali/remove_preprocessed_column_enum branch from 8be88da to 7e6c81d Compare January 14, 2025 13:05
@Gali-StarkWare Gali-StarkWare force-pushed the gali/change_preprocessed_to_struct branch 2 times, most recently from 9046f3a to ff8a4e1 Compare January 14, 2025 13:07
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 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ohad-starkware)

Copy link
Contributor Author

Gali-StarkWare commented Jan 14, 2025

Merge activity

  • Jan 14, 9:01 AM EST: A user started a stack merge that includes this pull request via Graphite.
  • Jan 14, 9:03 AM EST: Graphite rebased this pull request as part of a merge.
  • Jan 14, 9:06 AM EST: A user merged this pull request with Graphite.

@Gali-StarkWare Gali-StarkWare changed the base branch from gali/remove_preprocessed_column_enum to graphite-base/992 January 14, 2025 14:01
@Gali-StarkWare Gali-StarkWare changed the base branch from graphite-base/992 to dev January 14, 2025 14:01
@Gali-StarkWare Gali-StarkWare force-pushed the gali/change_preprocessed_to_struct branch from ff8a4e1 to 9d46c4c Compare January 14, 2025 14:02
@Gali-StarkWare Gali-StarkWare merged commit 90b3e55 into dev Jan 14, 2025
17 of 19 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.

5 participants