Skip to content

feat: merge-train/barretenberg#21879

Merged
AztecBot merged 2 commits into
nextfrom
merge-train/barretenberg
Mar 22, 2026
Merged

feat: merge-train/barretenberg#21879
AztecBot merged 2 commits into
nextfrom
merge-train/barretenberg

Conversation

@AztecBot

@AztecBot AztecBot commented Mar 21, 2026

Copy link
Copy Markdown
Collaborator

BEGIN_COMMIT_OVERRIDE
chore: translator checker and builder cleanup (#21094)
chore: better parallelisation of translator wire instantiation (#21100)
END_COMMIT_OVERRIDE

Resolves AztecProtocol/barretenberg#1373 and
AztecProtocol/barretenberg#1367

Cleans up `TranslatorCircuitBuilder` and `TranslatorCircuitChecker`:

1. **Checker uses relations**: replaces the hand-rolled check() with the
same relation-based pattern used by ultra circuit checker, populates
`TranslatorFlavor::AllValues` per row and calls `accumulate` for
`OpcodeConstraint`, `AccumulatorTransfer`, `Decomposition`, and
`NonNativeField` relations. `PermutationRelation` and
`DeltaRangeConstraintRelation` are intentionally skipped (require
grand-product polynomials unavailable at circuit-builder level).
2. **Builder**: extracts 7 anonymous lambdas
(`split_limb_into_microlimbs`, `split_wide_limb_into_2_limbs`,
`uint512_to_limbs`, `check_binary_limbs_maximum_values`,
`check_micro_limbs_maximum_values`, `lay_limbs_in_row`,
`process_random_op`) into named private methods.
3. **Checker cleanup**: removes the intermediate `RelationInputs` struct
and `compute_relation_inputs_limbs` helper.
resolves AztecProtocol/barretenberg#1383

While filling the wire polynomials in translator, we currently process
wires sequentially (and parallelise filling an individual wire).
However, since there's only $2^{13}$ values to be filled, it didn't make
sense to parallelise for a given wire.

Instead, we parallelise across wires: thread $i$ will process wire $i$.
This makes the proving key construction faster by ~30% (but overall
translator proving only improves by a mere ~2% because proving key
construction forms a small part of total proving.)

@ludamad ludamad left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🤖 Auto-approved

@AztecBot

Copy link
Copy Markdown
Collaborator Author

🤖 Auto-merge enabled after 4 hours of inactivity. This PR will be merged automatically once all checks pass.

@AztecBot AztecBot added this pull request to the merge queue Mar 22, 2026
Merged via the queue into next with commit d5d22e3 Mar 22, 2026
19 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants