feat: check op queue wires are zero past minicircuit in Translator#16858
Merged
maramihali merged 5 commits intomerge-train/barretenbergfrom Sep 10, 2025
Merged
feat: check op queue wires are zero past minicircuit in Translator#16858maramihali merged 5 commits intomerge-train/barretenbergfrom
maramihali merged 5 commits intomerge-train/barretenbergfrom
Conversation
20ac371 to
7fa4203
Compare
ledwards2225
approved these changes
Sep 9, 2025
Contributor
ledwards2225
left a comment
There was a problem hiding this comment.
LG - I'm a little bit confused about the skip conditions though. I think those would benefit from some comments
| { | ||
| return (in.lagrange_odd_in_minicircuit + in.lagrange_last_in_minicircuit + in.lagrange_result_row).is_zero(); | ||
| return (in.lagrange_odd_in_minicircuit + in.lagrange_last_in_minicircuit + in.lagrange_result_row + | ||
| in.lagrange_mini_masking) |
Contributor
There was a problem hiding this comment.
is this an unrelated fix?
Contributor
There was a problem hiding this comment.
Also, I'm surprised that we want to skip only when NOT masking.. is that intentional?
| { | ||
| static constexpr auto minus_one = -FF(1); | ||
| return (in.lagrange_even_in_minicircuit + in.lagrange_last_in_minicircuit + minus_one).is_zero(); | ||
| return (in.lagrange_even_in_minicircuit + in.lagrange_last_in_minicircuit + in.lagrange_mini_masking + |
Contributor
There was a problem hiding this comment.
I'm confused about this change and its hard to read because its not clear to which polynomial we're logically applying the -1
0645d6b to
82e96a7
Compare
20c4680 to
60bc9ab
Compare
| // no-op (i.e. op is zero at an even index) | ||
| static constexpr auto minus_one = -FF(1); | ||
| return (in.lagrange_even_in_minicircuit + in.lagrange_last_in_minicircuit + minus_one).is_zero(); | ||
| return (in.lagrange_even_in_minicircuit + in.op + minus_one).is_zero() || |
Contributor
There was a problem hiding this comment.
I guess this is ok given that 1 is not a valid value for op (right?)
github-merge-queue bot
pushed a commit
that referenced
this pull request
Sep 11, 2025
BEGIN_COMMIT_OVERRIDE fix: Origin Tags edgecase (#16921) chore: cycle group cleanup #2 (#16876) chore: civc tidy 3 (#16671) refactor(bb): optimize batch_mul_with_endomorphism (#16905) feat: check op queue wires are zero past minicircuit in Translator (#16858) feat: Add CPU scaling benchmark script for remote execution (#16918) fix: Add free witness tag to field constructor (#16827) fix(bb): darwin build (#16957) END_COMMIT_OVERRIDE
Umarb97
pushed a commit
to Umarb97/aztec-packages
that referenced
this pull request
Sep 16, 2025
…ztecProtocol#16858) At each step of the merge protocol we chech that the `left_table` is of appropriate degree to ensure merging the subtable doesn't cause an overlap. However, as the last subtable is appended so it's the `right_table`, we don't perform a degree check on it currently. We have to ensure merging the last subtable doesn't cause the number of UltraOps does not go over the fixed Translator `MINICIRCUIT_SIZE` and the cheapest way to do this is by updating the `TranslatorZeroConstraintRelation` to ensure the op queue wires are also zero past the `MINICIRCUIT_SIZE`. On top of that, this PR reviews and document the `skip` conditions for the relations found in `translator_extra_relations.hpp` Closes AztecProtocol/barretenberg#1399
mralj
pushed a commit
that referenced
this pull request
Oct 13, 2025
…16858) At each step of the merge protocol we chech that the `left_table` is of appropriate degree to ensure merging the subtable doesn't cause an overlap. However, as the last subtable is appended so it's the `right_table`, we don't perform a degree check on it currently. We have to ensure merging the last subtable doesn't cause the number of UltraOps does not go over the fixed Translator `MINICIRCUIT_SIZE` and the cheapest way to do this is by updating the `TranslatorZeroConstraintRelation` to ensure the op queue wires are also zero past the `MINICIRCUIT_SIZE`. On top of that, this PR reviews and document the `skip` conditions for the relations found in `translator_extra_relations.hpp` Closes AztecProtocol/barretenberg#1399
ludamad
pushed a commit
that referenced
this pull request
Dec 16, 2025
…16858) At each step of the merge protocol we chech that the `left_table` is of appropriate degree to ensure merging the subtable doesn't cause an overlap. However, as the last subtable is appended so it's the `right_table`, we don't perform a degree check on it currently. We have to ensure merging the last subtable doesn't cause the number of UltraOps does not go over the fixed Translator `MINICIRCUIT_SIZE` and the cheapest way to do this is by updating the `TranslatorZeroConstraintRelation` to ensure the op queue wires are also zero past the `MINICIRCUIT_SIZE`. On top of that, this PR reviews and document the `skip` conditions for the relations found in `translator_extra_relations.hpp` Closes AztecProtocol/barretenberg#1399
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
At each step of the merge protocol we chech that the
left_tableis of appropriate degree to ensure merging the subtable doesn't cause an overlap. However, as the last subtable is appended so it's theright_table, we don't perform a degree check on it currently. We have to ensure merging the last subtable doesn't cause the number of UltraOps does not go over the fixed TranslatorMINICIRCUIT_SIZEand the cheapest way to do this is by updating theTranslatorZeroConstraintRelationto ensure the op queue wires are also zero past theMINICIRCUIT_SIZE.On top of that, this PR reviews and document the
skipconditions for the relations found intranslator_extra_relations.hppCloses AztecProtocol/barretenberg#1399