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

MSM: add rangecheck4 and rangecheck15 lookups in constraints #1976

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

dannywillems
Copy link
Member

@dannywillems dannywillems commented Mar 13, 2024

Cherry-pick from #1966

@dannywillems dannywillems changed the title MSM: add rangecheck4 and rangecheck15 lookups MSM: add rangecheck4 and rangecheck15 lookups in constraints Mar 13, 2024
@dannywillems dannywillems self-assigned this Mar 13, 2024
Base automatically changed from dw/add-specialized-lookup-columns to master March 14, 2024 17:47
@@ -15,13 +16,17 @@ pub struct Env<Fp> {
/// folding for instance.
pub constraints: Vec<(usize, Expr<ConstantExpr<Fp>, Column>)>,
pub constrain_index: usize,
pub rangecheck4_lookups: Vec<Lookup<E<Fp>>>,
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if it is really a good idea to have the lookups split into different variable names. Looks more general to have just a single lookups vector, and then all of them get pushed into it.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, probably we should think of a way to generalize them to just have one. And then if you really need the distinction of different tables, think of a different way to split them but "inside" the lookup type/vector/struct/whatever. Maybe for a follow up.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, agreed. This is ugly atm, and we must generalize. Let's do it quickly after everything works.

msm/src/serialization/constraints.rs Show resolved Hide resolved
@dannywillems dannywillems merged commit c25763f into master Mar 14, 2024
4 checks passed
@dannywillems dannywillems deleted the dw/rc-lookup-constraints-serialization branch March 14, 2024 17:51
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