-
Notifications
You must be signed in to change notification settings - Fork 20
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 new built-in $x for accessing x value at each row #90
Comments
Just to give a bit more context on the functionality Similarly we can construct other Lagrange polynomials A good mental model of these polynomials is to think of the numerator as the set of where the constraints will hold (all One last point that I didn't touch upon is the concept of an offset e.g. instead of counting from row So the next question that poses itself is how much should we expose/abstract away in AirScript through the |
Thank you @Al-Kindi-0 for the write-up. |
Glad to see this progressing! One second thought about my suggestion... if AirScript were to support multivariate systems in the future, that could complicate it a bit. E.g. I guess the analog of |
In order do define some constraints, we may want to be able to define lagrange polynomials directly. In such cases, the domain value that is used for interpolation is needed, so we need a shortcut for referring to this x-value at each row.
We can do this by adding a new built-in value $x that represents x at any given row.
Here's an example from @dlubarov at Polygon Zero of how this could give more flexibility in defining constraints:
Required changes:
This adds flexibility to AirScript, but Miden VM does not need this at the moment, so we could keep updates to the miden codegen very minimal (i.e. just throw an error if this is used)
The text was updated successfully, but these errors were encountered: