Skip to content

chore: arithmetic relation cleanup#17878

Merged
ledwards2225 merged 5 commits intomerge-train/barretenbergfrom
lde/arithmetic-relation-cleanup
Oct 28, 2025
Merged

chore: arithmetic relation cleanup#17878
ledwards2225 merged 5 commits intomerge-train/barretenbergfrom
lde/arithmetic-relation-cleanup

Conversation

@ledwards2225
Copy link
Contributor

@ledwards2225 ledwards2225 commented Oct 22, 2025

Cleanup and docs related to Ultra ArithmeticRelation

  • Name change: UltraArithmeticRelation --> ArithmeticRelation
  • Improved docs in relation
  • Update UltraRelationConsistency::ArithmeticRelation to make it easier to verify each "mode" of the relation
  • Comments about subtle scaling in builder methods that's necessitated by ArithmeticRelation details

@ledwards2225 ledwards2225 changed the base branch from next to merge-train/barretenberg October 22, 2025 17:03
@ledwards2225 ledwards2225 marked this pull request as ready for review October 22, 2025 17:04
this->assert_valid_variables({ in.a, in.b, in.c, in.d });
blocks.arithmetic.populate_wires(in.a, in.b, in.c, in.d);
blocks.arithmetic.q_m().emplace_back(include_next_gate_w_4 ? in.mul_scaling * FF(2) : in.mul_scaling);
// If include_next_gate_w_4 is true then we set q_arith = 2. In this case, the linear term in the ArithmeticRelation
Copy link
Contributor

Choose a reason for hiding this comment

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

easier to understand!

@ledwards2225 ledwards2225 merged commit fc4d968 into merge-train/barretenberg Oct 28, 2025
6 checks passed
@ledwards2225 ledwards2225 deleted the lde/arithmetic-relation-cleanup branch October 28, 2025 21:16
github-merge-queue bot pushed a commit that referenced this pull request Oct 29, 2025
BEGIN_COMMIT_OVERRIDE
feat(ci/bb): enable BB_BENCH benchmarking in wasm (#17569)
fix: BB acir expression conversion issue (#17998)
chore: arithmetic relation cleanup (#17878)
chore: biggroup coordinates are private (#17923)
END_COMMIT_OVERRIDE
ludamad pushed a commit that referenced this pull request Dec 16, 2025
Cleanup and docs related to Ultra `ArithmeticRelation`
- Name change: `UltraArithmeticRelation` --> `ArithmeticRelation`
- Improved docs in relation
- Update `UltraRelationConsistency::ArithmeticRelation` to make it
easier to verify each "mode" of the relation
- Comments about subtle scaling in builder methods that's necessitated
by `ArithmeticRelation` details
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