zkllvm-blueprint icon indicating copy to clipboard operation
zkllvm-blueprint copied to clipboard

Feature Request: Not Equals Zero Component

Open NoamDev opened this issue 3 years ago • 0 comments

It'd be cool to have a not equals component that would be more efficient that compare component or packing component + disjunction component. The constraint I suggest is: inv * x =1 for some inv. This can only be true if x is non zero. on witness generation inv would be assigned the inverse of x. It'd better to write it in a way that supports linear combinations and not just variables, this way it could be used to check that any two numbers/variables are different just by subtracting one from the other and using the not_zero component on the linear combination.

NoamDev avatar Jul 15 '21 14:07 NoamDev