book: Note that roots don't have to be constant

Co-authored-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
str4d 2020-12-11 18:45:14 +00:00 committed by GitHub
parent 653cb6ca88
commit 2aea582865
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,3 +23,5 @@ $$(7 - c) \cdot (13 - c) = 0$$
> supported polynomial degree is 2 (due to all constraints being of the form $a * b = c$).
> In halo2 circuits, you can use arbitrary-degree polynomials - with the proviso that
> higher-degree constraints are more expensive to use.
Note that the roots don't have to be constants; for example $(a - x) \cdot (a - y) \cdot (a - z) = 0$ will constrain $a$ to be equal to one of $\{ x, y, z \}$ where the latter can be arbitrary polynomials, as long as the whole expression stays within the maximum degree bound.