Skip to content

feat: merge-train/barretenberg#22646

Merged
AztecBot merged 2 commits into
nextfrom
merge-train/barretenberg
Apr 18, 2026
Merged

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

Conversation

@AztecBot

@AztecBot AztecBot commented Apr 17, 2026

Copy link
Copy Markdown
Collaborator

BEGIN_COMMIT_OVERRIDE
chore: update databus relation to remove need for read tags (#22610)
END_COMMIT_OVERRIDE

Rewrites the Databus relation to avoid the need for `read_tags` (boolean
witnesses indicating `read_counts` > 0)

Previously the databus relation had the following inverse correctness
subrelation:

`(lookup_term * table_term * inverses - inverse_exists) * scaling_factor
`

where `inverse_exists = is_read + read_tag - is_read * read_tag`

This PR splits this into two subrelations, one for reads and one for
writes:

(1a): `(lookup_term * table_term * inverses - 1) * is_read`
  (1b): `(lookup_term * table_term * inverses - 1) * count` 

The lookup subrelation itself remains unchanged. This keeps the total
number of subrelations at three but removes one witness poly per databus
column.

@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 AztecBot added this pull request to the merge queue Apr 18, 2026
@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.

Merged via the queue into next with commit aadaa9f Apr 18, 2026
24 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