quantstamp / halo2-analyzer

SMT 2023 Submission; license pending
52 stars 10 forks source link

ZKR-3417-match equivalent lookup functions #41

Closed FatemehHeidari closed 7 months ago

FatemehHeidari commented 7 months ago

This PR introduces functionality to detect equivalent lookup tables within a circuit, aiming to enhance the efficiency of the SMT solver by avoiding the addition of multiple identical lookup tables as interpreted functions.

The analyzer is adjusted to utilize a call to an existing equivalent lookup table rather than redefining it.

This enhancement prevents the unnecessary duplication of lookup tables in the SMT solver's interpreted functions, thereby streamlining solver operations and potentially reducing computation time.

To test the new functionality, new circuits with identical lookups but with different orders of rows are implemented and new tests are added to analyze these new circuits.