Skip to content

Document boolean constraint requirement for gates.#87

Open
BlakeMScurr wants to merge 1 commit intoiden3:masterfrom
BlakeMScurr:document-booleans
Open

Document boolean constraint requirement for gates.#87
BlakeMScurr wants to merge 1 commit intoiden3:masterfrom
BlakeMScurr:document-booleans

Conversation

@BlakeMScurr
Copy link

Users might naturally assume that they can use gates with non binary inputs. For example, you might assume that Or of two non zero numbers is non zero, or perhaps 1. In fact it is not tightly constrained, and can even be 0 if a = 2 and b = 2.

This documents which circuits don't extend to non binary inputs, and gives a specific example of why not.

piotr-roslaniec pushed a commit to piotr-roslaniec/circomlib that referenced this pull request Sep 18, 2024
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.

1 participant