Abstract
The cvc5 SMT solver achieves state-of-the-art performance in nonlinear real arithmetic (NRA) by integrating incremental linearization and cylindrical algebraic coverings within a unified abstraction-refinement loop. This hybrid approach enables cvc5 to outperform existing solvers in the SMT-COMP nonlinear category, marking a significant advancement for non-MCSAT-based solvers.
Introduction
Nonlinear Real Arithmetic (NRA), involving equations with terms like $x \cdot y$ or $x^2$, represents a significant challenge in automated reasoning due to its doubly-exponential worst-case complexity. Historically, solvers relied on either computationally expensive Cylindrical Algebraic Decomposition (CAD) or fast but integration-resistant MCSAT methods. The cvc5 solver addresses these limitations by implementing a cooperative strategy that fits within the standard CDCL(T) framework, offering both high performance and flexibility for multi-theory problems.
Methodology: The Abstraction-Refinement Loop
The core of cvc5's NRA solving capability is a multi-stage abstraction-refinement loop. Rather than applying heavy algebraic methods immediately, the solver attempts increasingly complex techniques to find a solution or proof of unsatisfiability.
- Linear Abstraction: The problem is initially treated as linear by abstracting nonlinear terms as fresh variables.
- Incremental Linearization (IL): If the linear solver produces a model that violates nonlinear constraints, IL adds lemmas (e.g., tangent planes or sign properties) to refine the search space.
- Cylindrical Algebraic Coverings (CAC): When IL is insufficient, cvc5 employs CAC, a modern variant of CAD that searches for a "covering" of intervals to exclude impossible assignments.
- Lazard’s Projection: The implementation utilizes Lazard’s projection schema, ensuring mathematical completeness and soundness without sacrificing performance.
Experimental Evaluation and Results
The authors evaluated cvc5 using the SMT-LIB benchmarks across three categories: QF_NRA (quantifier-free), NRA (with quantifiers), and QF_UFNRA (combined with uninterpreted functions).
As shown in the results, cvc5 emerged as the top performer in the QF_NRA category, solving 10,733 benchmarks. The synergy between Incremental Linearization and Cylindrical Algebraic Coverings is evident: the hybrid configuration solved significantly more problems than versions using only one of the two techniques (cvc5.inclin or cvc5.cov).
Key Insights
- Cooperative Synergy: IL is particularly effective at finding contradictions (UNSAT), while CAC excels at identifying satisfiable models (SAT). Their sequential execution provides a "best of both worlds" advantage.
- Architectural Integration: By adhering to the CDCL(T) architecture, cvc5 maintains the ability to solve complex "mixed" problems involving multiple theories, such as nonlinear arithmetic combined with integers or strings.
- Soundness and Completeness: The adoption of Lazard’s projection demonstrates that rigorous mathematical foundations can be implemented efficiently in a production-grade solver.
Conclusion and Future Work
While cvc5 has set a new standard for NRA solving, challenges remain. Future development will focus on generating fully detailed, machine-verifiable proofs for CAC reasoning and expanding the solver's scope to include transcendental functions and bit-precise integer reasoning. Additionally, improving quantifier instantiation may help close the small performance gap observed in quantified NRA benchmarks.
Summary updated