Skip to content

Databus relation correctness #1405

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

Open
ledwards2225 opened this issue May 20, 2025 · 0 comments
Open

Databus relation correctness #1405

ledwards2225 opened this issue May 20, 2025 · 0 comments
Labels
bug Something isn't working databus

Comments

@ledwards2225
Copy link
Collaborator

ledwards2225 commented May 20, 2025

The databus relations (which use log-derivative lookups) need to be scrutinized for correctness. Some potential issues include:

  1. read_counts and read_tags must be connected. The former is boolean and takes 1 if read_counts > 0 and 0 otherwise. However this is not constrained in the relation itself.
  2. Boolean values must be constrained to be boolean (e.g. read_tags), e.g. via $b^2 - b = 0$

Note: currently read_tags/counts are both treated as witnesses but I think they should actually be treated as precomputed polynomials, i.e. their values are fixed for a given circuit. This probably makes it unnecessary to perform boolean checks but may still require an established connection between read_counts and tags.

@ledwards2225 ledwards2225 added databus bug Something isn't working labels May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working databus
Projects
None yet
Development

No branches or pull requests

1 participant