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

Add wide fib lookup constraint. #637

Merged
merged 1 commit into from
Jun 20, 2024
Merged

Conversation

alonh5
Copy link
Contributor

@alonh5 alonh5 commented May 20, 2024

This change is Reviewable

@alonh5 alonh5 mentioned this pull request May 20, 2024
@alonh5 alonh5 force-pushed the 05-19-add_interaction_to_proof branch from b03d5ce to dadd66b Compare May 20, 2024 11:07
@alonh5 alonh5 force-pushed the 05-20-add_wide_fib_lookup_constraint branch from 01e0b2a to 5f3ba6f Compare May 20, 2024 11:07
@alonh5 alonh5 force-pushed the 05-19-add_interaction_to_proof branch from dadd66b to c6ad58d Compare May 22, 2024 14:05
@alonh5 alonh5 force-pushed the 05-20-add_wide_fib_lookup_constraint branch 2 times, most recently from fbfa4cf to fac19e3 Compare May 23, 2024 07:15
@alonh5 alonh5 force-pushed the 05-19-add_interaction_to_proof branch from c6ad58d to 7d69e09 Compare May 23, 2024 07:40
@alonh5 alonh5 force-pushed the 05-20-add_wide_fib_lookup_constraint branch from fac19e3 to 571db0c Compare May 23, 2024 07:40
@codecov-commenter
Copy link

codecov-commenter commented May 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.75%. Comparing base (1a13348) to head (822ff20).

Additional details and impacted files
@@                       Coverage Diff                       @@
##           05-19-add_interaction_to_proof     #637   +/-   ##
===============================================================
  Coverage                           92.74%   92.75%           
===============================================================
  Files                                  71       71           
  Lines                                9291     9300    +9     
  Branches                             9291     9300    +9     
===============================================================
+ Hits                                 8617     8626    +9     
  Misses                                595      595           
  Partials                               79       79           

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

@alonh5 alonh5 force-pushed the 05-19-add_interaction_to_proof branch from 7d69e09 to abb0790 Compare May 26, 2024 14:19
@alonh5 alonh5 force-pushed the 05-20-add_wide_fib_lookup_constraint branch from 571db0c to d906f47 Compare May 26, 2024 14:19
@alonh5 alonh5 force-pushed the 05-19-add_interaction_to_proof branch from abb0790 to 005655c Compare May 26, 2024 14:48
@alonh5 alonh5 force-pushed the 05-20-add_wide_fib_lookup_constraint branch from d906f47 to 73a8750 Compare May 26, 2024 14:48
@alonh5 alonh5 force-pushed the 05-19-add_interaction_to_proof branch from 005655c to 82a0bbf Compare May 27, 2024 07:34
@alonh5 alonh5 force-pushed the 05-20-add_wide_fib_lookup_constraint branch from 73a8750 to 83a2b29 Compare May 27, 2024 07:34
@alonh5 alonh5 force-pushed the 05-19-add_interaction_to_proof branch from 82a0bbf to fa119f9 Compare May 27, 2024 07:46
@alonh5 alonh5 force-pushed the 05-20-add_wide_fib_lookup_constraint branch from 83a2b29 to 90cf808 Compare May 27, 2024 07:46
@alonh5 alonh5 force-pushed the 05-19-add_interaction_to_proof branch from fa119f9 to f0a5bb7 Compare May 28, 2024 12:14
@alonh5 alonh5 force-pushed the 05-20-add_wide_fib_lookup_constraint branch from 90cf808 to e22780e Compare May 28, 2024 12:14
@alonh5 alonh5 force-pushed the 05-20-add_wide_fib_lookup_constraint branch from 8f76500 to 4578cf4 Compare June 2, 2024 08:54
@alonh5 alonh5 mentioned this pull request Jun 2, 2024
@alonh5 alonh5 force-pushed the 05-19-add_interaction_to_proof branch from fc58324 to e6f186d Compare June 13, 2024 08:35
@alonh5 alonh5 force-pushed the 05-20-add_wide_fib_lookup_constraint branch from 4578cf4 to f79f23a Compare June 13, 2024 08:35
@alonh5 alonh5 force-pushed the 05-19-add_interaction_to_proof branch from e6f186d to 1a13348 Compare June 16, 2024 08:59
@alonh5 alonh5 force-pushed the 05-20-add_wide_fib_lookup_constraint branch from f79f23a to 822ff20 Compare June 16, 2024 08:59
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 1 of 5 files at r1, 1 of 7 files at r2, all commit messages.
Reviewable status: 2 of 9 files reviewed, 2 unresolved discussions (waiting on @alonh5 and @andrewmilson)


crates/prover/src/core/constraints.rs line 71 at r2 (raw file):

) -> EF {
    let h = p - vanish_point.into_ef();
    h.y / (EF::one() + h.x)

How come that you have to change this?

Code quote:

    let h = p - vanish_point.into_ef();
    h.y / (EF::one() + h.x)

crates/prover/src/core/air/mod.rs line 53 at r2 (raw file):

    fn max_constraint_log_degree_bound(&self) -> u32;

    fn n_phases(&self) -> u32;

Can you also document?

Suggestion:

fn n_interaction_phases(&self) -> u32;

@alonh5 alonh5 force-pushed the 05-19-add_interaction_to_proof branch from 1a13348 to 462a48c Compare June 18, 2024 07:03
@alonh5 alonh5 force-pushed the 05-20-add_wide_fib_lookup_constraint branch from 822ff20 to 14ae498 Compare June 18, 2024 07:03
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: 2 of 9 files reviewed, 2 unresolved discussions (waiting on @andrewmilson and @shaharsamocha7)


crates/prover/src/core/constraints.rs line 71 at r2 (raw file):

Previously, shaharsamocha7 wrote…

How come that you have to change this?

Because I'm now using it in evaluate_constraint_quotients_at_point() where the point p is of qm31, and the vanishing point is a point from the trace domain.
Previously this was used when evaluating the oods quotient so it had to be the other way around (we stopped using it regardless of this PR).


crates/prover/src/core/air/mod.rs line 53 at r2 (raw file):

Previously, shaharsamocha7 wrote…

Can you also document?

Done.

@alonh5 alonh5 force-pushed the 05-20-add_wide_fib_lookup_constraint branch from 14ae498 to f5bd7d5 Compare June 18, 2024 07:23
Copy link
Contributor

@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.

:lgtm:

Reviewed 2 of 5 files at r1, 2 of 7 files at r2, 6 of 6 files at r4, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @andrewmilson and @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 all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @andrewmilson)

Copy link
Contributor Author

alonh5 commented Jun 20, 2024

Merge activity

  • Jun 20, 6:54 AM EDT: @alonh5 started a stack merge that includes this pull request via Graphite.
  • Jun 20, 6:56 AM EDT: Graphite rebased this pull request as part of a merge.
  • Jun 20, 6:58 AM EDT: @alonh5 merged this pull request with Graphite.

@alonh5 alonh5 changed the base branch from 05-19-add_interaction_to_proof to dev June 20, 2024 10:54
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