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

Make next row available to CTLs #1229

Merged
merged 5 commits into from
Sep 18, 2023

Conversation

hratoanina
Copy link
Contributor

Cf. the Related work section of #1149.

When declaring a CTL, we can now access both lv and nv. For ease of implementation, all nv columns are declared after the lv columns. This PR does not bring anything concrete since no CTL needs it, but it paves the way to future optimizations.

In term of implementation details, the only thing of note is that the CTL Z polynomials are upside down, with the full product in the first row and the initial value in the last row. This allows us to compute the transition constraint while only using values from lv and nv (previously, we would have needed values from the row after nv).

@hratoanina hratoanina mentioned this pull request Sep 15, 2023
Copy link
Contributor

@npwardberkeley npwardberkeley 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! Thanks!

@hratoanina hratoanina merged commit 15064b3 into 0xPolygonZero:main Sep 18, 2023
2 checks passed
@Nashtare Nashtare deleted the next_row_ctls branch September 18, 2023 13:19
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