Introduction
Automated reasoning often involves checking the satisfiability of logical formulas. While modern Satisfiability Modulo Theories (SMT) solvers excel at quantifier-free formulas, the addition of universal ($\forall$) and existential ($\exists$) quantifiers significantly increases computational complexity. In Linear Real Arithmetic (LRA) and Non-linear Real Arithmetic (NRA), the standard approach is Quantifier Elimination (QE). However, QE suffers from "doubly-exponential" time complexity, creating a bottleneck for applications in program synthesis, formal verification, and multi-agent systems.
To address this, researchers have developed QuantiSAT, a tool that leverages template-based Skolemization and algebraic geometry to bypass traditional complexity limits.
Methodology: Template-based Skolemization
QuantiSAT employs a three-step pipeline to eliminate quantifiers more efficiently:
- Template-based Skolemization: Existential quantifiers ($\exists x$) are replaced with Skolem functions—polynomial functions of preceding universal variables. These functions are represented as "templates" (polynomials with unknown coefficients) of a user-defined degree $D$.
- Universal Elimination via Positivstellensätze: To eliminate universal quantifiers ($\forall$), the method utilizes theorems from algebraic geometry. For linear problems, it applies Farkas’ Lemma; for non-linear problems, it uses Positivstellensätze (specifically Handelman’s and Putinar’s theorems). These transform statements about "all values" into constraints on the Skolem template coefficients.
- Quantifier-free Solving: The resulting quantifier-free formula is solved using standard SMT solvers (e.g., Z3 or MathSAT5) to determine the coefficient values.
This approach trades absolute completeness for speed. While traditional QE is complete, QuantiSAT is semi-complete: it will find a solution if a polynomial witness of degree $D$ exists. This trade-off enables subexponential-time performance and polynomial space usage.
Evaluation and Key Results
QuantiSAT was evaluated against state-of-the-art solvers Z3 and CVC5 using three benchmark suites: Keymaera (hybrid systems verification), Mjollnir (large-scale LRA), and PolySynth (program synthesis NRA).
The evaluation demonstrated several key advantages:
- Superior Scaling: On the Mjollnir benchmark, QuantiSAT solved 877 instances, significantly outperforming the best Z3 variant, which solved 593.
- Handling Hard NRA Problems: In the PolySynth suite, QuantiSAT solved 30 out of 32 instances, whereas CVC5 solved only 6.
- Efficiency: QuantiSAT often solved instances in under a second that caused other solvers to time out after 10 minutes.
- Witness Construction: Unlike solvers that only return "Satisfiable," QuantiSAT explicitly calculates Skolem functions, providing a constructive "witness" for the formula's satisfiability.
Limitations and Future Work
The primary limitation of QuantiSAT is its dependency on the template degree $D$. If a solution requires a highly complex or non-polynomial Skolem function, the tool may return "Unknown." Additionally, the current implementation requires input formulas to be in Conjunctive Normal Form (CNF).
Future research directions include exploring more flexible templates, such as piecewise linear or piecewise polynomial expressions, and extending this template-based approach to other logical theories beyond real arithmetic.
Summary updated