-
Notifications
You must be signed in to change notification settings - Fork 614
feat: translator zk relation adjustments testing #12718
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
Changes from 15 commits
f77c842
4117167
ec8b5c0
e3bd03f
2a74206
c9c2d3a
46376bb
8cd9d5c
adc1c62
98b1f7e
4391a58
6ce6276
4dde793
c55eac2
3582773
e2cf7d4
a93eb5c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| barretenberg_module(relations polynomials) | ||
| barretenberg_module(relations polynomials) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,7 @@ template <typename FF_> class TranslatorPermutationRelationImpl { | |
| inline static Accumulator compute_grand_product_numerator(const AllEntities& in, const Parameters& params) | ||
| { | ||
| using View = typename Accumulator::View; | ||
| using ParameterView = GetParameterView<Parameters, View>; | ||
|
|
||
| auto interleaved_range_constraints_0 = View(in.interleaved_range_constraints_0); | ||
| auto interleaved_range_constraints_1 = View(in.interleaved_range_constraints_1); | ||
|
|
@@ -29,28 +30,37 @@ template <typename FF_> class TranslatorPermutationRelationImpl { | |
|
|
||
| auto ordered_extra_range_constraints_numerator = View(in.ordered_extra_range_constraints_numerator); | ||
|
|
||
| const auto& gamma = params.gamma; | ||
| return (interleaved_range_constraints_0 + gamma) * (interleaved_range_constraints_1 + gamma) * | ||
| (interleaved_range_constraints_2 + gamma) * (interleaved_range_constraints_3 + gamma) * | ||
| (ordered_extra_range_constraints_numerator + gamma); | ||
| auto lagrange_masking = View(in.lagrange_masking); | ||
| const auto& gamma = ParameterView(params.gamma); | ||
| const auto& beta = ParameterView(params.beta); | ||
| return (interleaved_range_constraints_0 + lagrange_masking * beta + gamma) * | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this construction (in particular the
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks, will add comments to the declaration of |
||
| (interleaved_range_constraints_1 + lagrange_masking * beta + gamma) * | ||
| (interleaved_range_constraints_2 + lagrange_masking * beta + gamma) * | ||
| (interleaved_range_constraints_3 + lagrange_masking * beta + gamma) * | ||
| (ordered_extra_range_constraints_numerator + lagrange_masking * beta + gamma); | ||
| } | ||
|
|
||
| template <typename Accumulator, typename AllEntities, typename Parameters> | ||
| inline static Accumulator compute_grand_product_denominator(const AllEntities& in, const Parameters& params) | ||
| { | ||
| using View = typename Accumulator::View; | ||
| using ParameterView = GetParameterView<Parameters, View>; | ||
|
|
||
| auto ordered_range_constraints_0 = View(in.ordered_range_constraints_0); | ||
| auto ordered_range_constraints_1 = View(in.ordered_range_constraints_1); | ||
| auto ordered_range_constraints_2 = View(in.ordered_range_constraints_2); | ||
| auto ordered_range_constraints_3 = View(in.ordered_range_constraints_3); | ||
| auto ordered_range_constraints_4 = View(in.ordered_range_constraints_4); | ||
|
|
||
| const auto& gamma = params.gamma; | ||
| auto lagrange_masking = View(in.lagrange_masking); | ||
|
|
||
| return (ordered_range_constraints_0 + gamma) * (ordered_range_constraints_1 + gamma) * | ||
| (ordered_range_constraints_2 + gamma) * (ordered_range_constraints_3 + gamma) * | ||
| (ordered_range_constraints_4 + gamma); | ||
| const auto& gamma = ParameterView(params.gamma); | ||
| const auto& beta = ParameterView(params.beta); | ||
| return (ordered_range_constraints_0 + lagrange_masking * beta + gamma) * | ||
| (ordered_range_constraints_1 + lagrange_masking * beta + gamma) * | ||
| (ordered_range_constraints_2 + lagrange_masking * beta + gamma) * | ||
| (ordered_range_constraints_3 + lagrange_masking * beta + gamma) * | ||
| (ordered_range_constraints_4 + lagrange_masking * beta + gamma); | ||
| } | ||
| /** | ||
| * @brief Compute contribution of the goblin translator permutation relation for a given edge (internal function) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.