[Paper Review] Antichain with SAT and Tries
This paper proposes Qzy, an SMT solver for regular language membership that uses Boolean finite automata (BFA) and the IC3 model checking algorithm to efficiently solve satisfiability problems involving multiple string variables, regular expressions, and complex operations like complementation and intersection. By encoding BFA as transition systems for IC3, the approach avoids the exponential blowup of NFA determinization, achieving superior performance on hard benchmarks, especially for difference and intersection problems.
Even the fastest SMT solvers have performance problems with regular expressions from real programs. Because these performance issues often arise from the problem representation (e.g. non-deterministic finite automata get determinized and regular expressions get unrolled), we revisit Boolean finite automata, which allow for the direct and natural representation of any Boolean combination of regular languages. By applying the IC3 model checking algorithm to Boolean finite automata, not only can we efficiently answer emptiness and universality problems, but through an extension, we can decide satisfiability of multiple variable string membership problems. We demonstrate the resulting system's effectiveness on a number of popular benchmarks and regular expressions.
Motivation & Objective
- To address the performance bottleneck in SMT solvers for regular expression membership by avoiding NFA determinization and complementation overhead.
- To enable efficient satisfiability checking for multiple string variables and complex regular expression constructs (e.g., anchors, word boundaries, case insensitivity).
- To demonstrate that model checking via IC3 on Boolean finite automata can outperform traditional automata-based and SMT-based solvers on hard benchmarks.
- To provide a compact, lazy representation of Boolean combinations of regular languages using BFA, avoiding exponential state explosion.
Proposed method
- Represent regular expressions as Boolean finite automata (BFA), which natively support complementation and intersection without state explosion.
- Encode BFA as finite-state transition systems with Boolean state and symbol vectors, enabling direct use of hardware model checkers.
- Apply the IC3 algorithm to verify safety properties corresponding to BFA emptiness and satisfiability.
- Extend the encoding to support bounded-history transition predicates (e.g., word boundaries, anchors) via inverter graphs on epsilon transitions.
- Support multiple independent string variables by extending the transition system to handle variable-length inputs and parallel state evolution.
- Use IC3’s lemma learning to prune search space efficiently, avoiding costly NFA determinization.
Experimental results
Research questions
- RQ1Can Boolean finite automata (BFA) be used to represent complex regular expression constraints more compactly than NFAs, especially for complementation and intersection?
- RQ2Can the IC3 model checking algorithm efficiently solve BFA emptiness and satisfiability problems, avoiding the exponential blowup of NFA determinization?
- RQ3How does the performance of a BFA-based SMT solver compare to existing solvers (e.g., DPRLE, Norn, CVC4, Z3-Str2) on benchmarks involving complex regular expressions and multiple variables?
- RQ4Can the encoding of bounded-history predicates (e.g., anchors, word boundaries) be efficiently integrated into the BFA-IC3 framework?
- RQ5Does the IC3-based approach scale better on hard problems—especially difference and intersection problems—than solvers relying on NFA conversion?
Key findings
- Qzy outperforms all other solvers on the most challenging benchmarks from RegExLib, particularly on difference and intersection problems, where others fail or time out.
- On intersection problems, Qzy maintains near-quadratic performance scaling, while other solvers exhibit exponential growth, indicating robustness on hard instances.
- Qzy successfully handles complex regular expression features including word boundaries, anchors, Unicode, and case insensitivity through a generalized symbolic automaton encoding.
- The IC3-based approach with BFA avoids the exponential cost of NFA determinization, enabling fast proofs even for problems that are theoretically hard.
- Qzy’s performance is attributed to clean model checking encodings and effective lemma learning in IC3, which reduces search space without preprocessing overhead.
- On parametric benchmarks, Qzy scales efficiently, with runtime growing moderately despite increasing problem complexity, unlike other solvers that show exponential behavior.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.