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

Implement running product column p0 in the range checker #230

Merged
merged 6 commits into from
Jun 3, 2022

Conversation

grjte
Copy link
Contributor

@grjte grjte commented May 31, 2022

This PR adds handling of auxiliary trace segments to the ExecutionTrace and the ProcessorAir, and implements the range checker's first running product column p0 as described in the docs.

  • add range checker integration tests
  • refactor range checker constants
  • add auxiliary segment handling to the execution trace
  • implement the execution trace for the range checker's running product column p0
  • add constraint handling for auxiliary columns + constraints for running product column p0
  • add unit test for the execution trace of the range checker's running product column p0

@grjte grjte marked this pull request as ready for review May 31, 2022 15:04
@grjte grjte requested a review from bobbinth May 31, 2022 15:27
Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I haven't reviewed the constraints part yet - but wanted to leave a few comments about the trace generation part for now.

air/src/lib.rs Outdated Show resolved Hide resolved
processor/src/trace/range/mod.rs Outdated Show resolved Hide resolved
processor/src/trace/range/mod.rs Outdated Show resolved Hide resolved
processor/src/trace/range/mod.rs Outdated Show resolved Hide resolved
processor/src/trace/range/mod.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thank you! A few very small comments inline.

miden/tests/integration/air/range.rs Show resolved Hide resolved
processor/src/trace/range/mod.rs Show resolved Hide resolved
processor/src/trace/range/mod.rs Outdated Show resolved Hide resolved
air/src/range.rs Outdated Show resolved Hide resolved
air/src/lib.rs Outdated Show resolved Hide resolved
grjte added 6 commits June 3, 2022 09:17
… column

- Precompute the range-checker's flag values identified by the selector columns & save them as auxiliary column hints.
- Add auxiliary column hints to the execution trace handling.
- Add the execution trace for the auxiliary segment.
- Add the range checker's running p0 running product column execution trace
…onstraints

- Add handling of the assertions and transition constraints for auxiliary columns to the ProcessorAir.
- Add auxiliary column constraints for the range checker's p0 running product column.
Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good! Thank you!

@bobbinth bobbinth merged commit 6c262ae into 0xPolygonMiden:next Jun 3, 2022
@bobbinth bobbinth mentioned this pull request Jun 10, 2022
39 tasks
@grjte grjte deleted the range-checker-p0 branch July 6, 2022 09:13
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.

None yet

2 participants