-
Notifications
You must be signed in to change notification settings - Fork 194
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
feat: add membership check #444
Conversation
afda721
to
fb13f72
Compare
72a4eaf
to
cfa7a3c
Compare
dbff583
to
9908847
Compare
a4e87a5
to
5ff2063
Compare
crates/proof-of-sql/src/sql/proof_gadgets/membership_check_test.rs
Outdated
Show resolved
Hide resolved
d7c477b
to
e7047a8
Compare
ec3558e
to
92252bd
Compare
2186ee5
to
99d5ac8
Compare
multiplicities: &[usize], | ||
alloc: &'a Bump, | ||
) { | ||
let casted_multiplicities: Vec<i128> = multiplicities.iter().map(|&x| x as i128).collect(); | ||
let alloc_multiplicities = alloc.alloc_slice_copy(casted_multiplicities.as_slice()); | ||
builder.produce_intermediate_mle(alloc_multiplicities as &[_]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
multiplicities: &[usize], | |
alloc: &'a Bump, | |
) { | |
let casted_multiplicities: Vec<i128> = multiplicities.iter().map(|&x| x as i128).collect(); | |
let alloc_multiplicities = alloc.alloc_slice_copy(casted_multiplicities.as_slice()); | |
builder.produce_intermediate_mle(alloc_multiplicities as &[_]); | |
multiplicities: &'a [u64], | |
) { | |
builder.produce_intermediate_mle(multiplicities); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thing in final_round_evaluate_membership_check
as well.
let input_ones = alloc.alloc_slice_fill_copy(num_rows, true); | ||
let candidate_ones = alloc.alloc_slice_fill_copy(candidate_num_rows, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Making these parameters allows them to be reused, which is likely, saving memory and sumcheck perf.
crates/proof-of-sql/src/sql/proof_gadgets/membership_check_test.rs
Outdated
Show resolved
Hide resolved
crates/proof-of-sql/src/sql/proof_gadgets/membership_check_test.rs
Outdated
Show resolved
Hide resolved
5b96478
to
0e8faaf
Compare
🎉 This PR is included in version 0.66.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Please be sure to look over the pull request guidelines here: https://github.com/spaceandtimelabs/sxt-proof-of-sql/blob/main/CONTRIBUTING.md#submit-pr.
Please go through the following checklist
!
is used if and only if at least one breaking change has been introduced.source scripts/run_ci_checks.sh
.FirstRoundBuilder
to produce MLEs #417Rationale for this change
The membership check gadget is a crucial component of joins. Hence we need to add it.
What changes are included in this PR?
Are these changes tested?
Yes.