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

Update stwo and fix changes. #11

Merged
merged 1 commit into from
Jul 11, 2024
Merged

Conversation

alonh5
Copy link
Contributor

@alonh5 alonh5 commented Jul 3, 2024

`


This change is Reviewable

Copy link
Contributor

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


stwo_cairo_prover/src/components/range_check_unit.rs line 124 at r1 (raw file):

        let mut last = SecureField::zero();
        let interaction_values = zip_eq(&trace[0].values, &trace[1].values).fold(

Does it sum it in the bit_reverse order?

Also consider to rename

Suggestion:

let logup_values = zip_eq(&trace[0].values, &trace[1].values).fold(

stwo_cairo_prover/src/components/range_check_unit.rs line 126 at r1 (raw file):

        let interaction_values = zip_eq(&trace[0].values, &trace[1].values).fold(
            Vec::new(),
            |mut acc, (trace_value, multiplicity)| {

Rename

Suggestion:

|mut acc, (interaction_input, multiplicity)| {

stwo_cairo_prover/src/components/range_check_unit.rs line 127 at r1 (raw file):

            Vec::new(),
            |mut acc, (trace_value, multiplicity)| {
                let interaction_value = last + ((z - *trace_value).inverse() * *multiplicity);

Add a TODO to optimize this inverse

Code quote:

let interaction_value = last + ((z - *trace_value).inverse() * *multiplicity);

Copy link
Contributor Author

@alonh5 alonh5 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, 2 unresolved discussions (waiting on @shaharsamocha7)


stwo_cairo_prover/src/components/range_check_unit.rs line 126 at r1 (raw file):

Previously, shaharsamocha7 wrote…

Rename

Done.


stwo_cairo_prover/src/components/range_check_unit.rs line 127 at r1 (raw file):

Previously, shaharsamocha7 wrote…

Add a TODO to optimize this inverse

It's simple I did it here.

@alonh5 alonh5 force-pushed the 07-03-update_stwo_and_fix_changes branch 2 times, most recently from 73fe30d to 0c40555 Compare July 10, 2024 10:58
@alonh5 alonh5 changed the base branch from main to 07-10-add_rust_format_file July 10, 2024 10:58
@alonh5 alonh5 mentioned this pull request Jul 10, 2024
@alonh5 alonh5 force-pushed the 07-10-add_rust_format_file branch from f0cafe5 to 50d373e Compare July 10, 2024 11:04
@alonh5 alonh5 force-pushed the 07-03-update_stwo_and_fix_changes branch from 0c40555 to 9a64b0a Compare July 10, 2024 11:04
Copy link
Contributor

@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 @alonh5)

Copy link
Contributor Author

alonh5 commented Jul 11, 2024

Merge activity

  • Jul 11, 3:20 AM EDT: @alonh5 started a stack merge that includes this pull request via Graphite.
  • Jul 11, 3:21 AM EDT: Graphite rebased this pull request as part of a merge.
  • Jul 11, 3:23 AM EDT: @alonh5 merged this pull request with Graphite.

@alonh5 alonh5 changed the base branch from 07-10-add_rust_format_file to main July 11, 2024 07:20
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.

2 participants