×

Local search for solving satisfiability of polynomial formulas. (English) Zbl 07787549

Enea, Constantin (ed.) et al., Computer aided verification. 35th international conference, CAV 2023, Paris, France, July 17–22, 2023. Proceedings. Part II. Cham: Springer. Lect. Notes Comput. Sci. 13965, 87-109 (2023).
Summary: Satisfiability Modulo the Theory of Nonlinear Real Arithmetic, SMT(NRA) for short, concerns the satisfiability of polynomial formulas, which are quantifier-free Boolean combinations of polynomial equations and inequalities with integer coefficients and real variables. In this paper, we propose a local search algorithm for a special subclass of SMT(NRA), where all constraints are strict inequalities. An important fact is that, given a polynomial formula with \(n\) variables, the zero level set of the polynomials in the formula decomposes the \(n\)-dimensional real space into finitely many components (cells) and every polynomial has constant sign in each cell. The key point of our algorithm is a new operation based on real root isolation, called cell-jump, which updates the current assignment along a given direction such that the assignment can ‘jump’ from one cell to another. One cell-jump may adjust the values of several variables while traditional local search operations, such as flip for SAT and critical move for SMT(LIA), only change that of one variable. We also design a two-level operation selection to balance the success rate and efficiency. Furthermore, our algorithm can be easily generalized to a wider subclass of SMT(NRA) where polynomial equations linear with respect to some variable are allowed. Experiments show the algorithm is competitive with state-of-the-art SMT solvers, and performs particularly well on those formulas with high-degree polynomials.
For the entire collection see [Zbl 1528.68025].

MSC:

68T20 Problem solving in the context of artificial intelligence (heuristics, search strategies, etc.)
68Q60 Specification and verification (program logics, model checking, etc.)
68W30 Symbolic computation and algebraic computation

References:

[1] Ábrahám, E.; Davenport, JH; England, M.; Kremer, G., Deciding the consistency of non-linear real arithmetic constraints with a conflict driven search using cylindrical algebraic coverings, J. Logical Algebraic Methods Programm., 119 (2021) · Zbl 1509.68243 · doi:10.1016/j.jlamp.2020.100633
[2] Balint, A.; Schöning, U.; Cimatti, A.; Sebastiani, R., Choosing probability distributions for stochastic local search and the role of make versus break, Theory and Applications of Satisfiability Testing - SAT 2012, 16-29 (2012), Heidelberg: Springer, Heidelberg · Zbl 1273.68333 · doi:10.1007/978-3-642-31612-8_3
[3] Barbosa, H., et al.: cvc5: a versatile and industrial-strength SMT solver. In: TACAS 2022. LNCS, pp. 415-442. Springer, Cham (2022). doi:10.1007/978-3-030-99524-9_24
[4] Biere, A.: Splatz, lingeling, plingeling, treengeling, yalsat entering the sat competition 2016. In: Proceedings of SAT Competition, pp. 44-45 (2016)
[5] Biere, A., Heule, M., van Maaren, H.: Handbook of Satisfiability, vol. 185. IOS press (2009) · Zbl 1183.68568
[6] Brown, CW, Improved projection for cylindrical algebraic decomposition, J. Symb. Comput., 32, 5, 447-465 (2001) · Zbl 0981.68186 · doi:10.1006/jsco.2001.0463
[7] Brown, CW; Košta, M., Constructing a single cell in cylindrical algebraic decomposition, J. Symb. Comput., 70, 14-48 (2015) · Zbl 1314.68414 · doi:10.1016/j.jsc.2014.09.024
[8] Cai, S., Li, B., Zhang, X.: Local search for SMT on linear integer arithmetic. In: International Conference on Computer Aided Verification. pp. 227-248. Springer (2022). doi:10.1007/978-3-031-13188-2_12 · Zbl 1514.68273
[9] Cai, S.; Su, K., Local search for Boolean satisfiability with configuration checking and subscore, Artif. Intell., 204, 75-98 (2013) · Zbl 1334.68200 · doi:10.1016/j.artint.2013.09.001
[10] Cimatti, A.; Griggio, A.; Irfan, A.; Roveri, M.; Sebastiani, R., Incremental linearization for satisfiability and verification modulo nonlinear arithmetic and transcendental functions, ACM Trans. Comput. Log., 19, 3, 1-52 (2018) · Zbl 1407.68285 · doi:10.1145/3230639
[11] Cimatti, A.; Griggio, A.; Schaafsma, BJ; Sebastiani, R.; Piterman, N.; Smolka, SA, The MathSAT5 SMT solver, Tools and Algorithms for the Construction and Analysis of Systems, 93-107 (2013), Heidelberg: Springer, Heidelberg · Zbl 1381.68153 · doi:10.1007/978-3-642-36742-7_7
[12] Clarke, E.M., Henzinger, T.A., Veith, H., Bloem, R., et al.: Handbook of Model Checking, vol. 10. Springer (2018). doi:10.1007/978-3-319-10575-8 · Zbl 1390.68001
[13] Collins, GE; Brakhage, H., Quantifier elimination for real closed fields by cylindrical algebraic decompostion, Automata Theory and Formal Languages, 134-183 (1975), Heidelberg: Springer, Heidelberg · Zbl 0318.02051 · doi:10.1007/3-540-07407-4_17
[14] Collins, GE; Hong, H., Partial cylindrical algebraic decomposition for quantifier elimination, J. Symb. Comput., 12, 3, 299-328 (1991) · Zbl 0754.68063 · doi:10.1016/S0747-7171(08)80152-6
[15] De Moura, L., Jovanović, D.: A model-constructing satisfiability calculus. In: International Workshop on Verification, Model Checking, and Abstract Interpretation, pp. 1-12. Springer (2013). doi:10.1007/978-3-642-35873-9_1 · Zbl 1426.68251
[16] Dutertre, B.; Biere, A.; Bloem, R., Yices 2.2, Computer Aided Verification, 737-744 (2014), Cham: Springer, Cham · doi:10.1007/978-3-319-08867-9_49
[17] Fröhlich, A., Biere, A., Wintersteiger, C., Hamadi, Y.: Stochastic local search for satisfiability modulo theories. In: Proceedings of the AAAI Conference on Artificial Intelligence, vol. 29 (2015)
[18] Glover, F., Laguna, M.: Tabu search. In: Handbook of Combinatorial Optimization, pp. 2093-2229. Springer (1998) · Zbl 0954.90069
[19] Griggio, A.; Phan, Q-S; Sebastiani, R.; Tomasi, S.; Tinelli, C.; Sofronie-Stokkermans, V., Stochastic local search for SMT: combining theory solvers with WalkSAT, Frontiers of Combining Systems, 163-178 (2011), Heidelberg: Springer, Heidelberg · Zbl 1348.68227 · doi:10.1007/978-3-642-24364-6_12
[20] Hong, H.: An improvement of the projection operator in cylindrical algebraic decomposition. In: Proceedings of the International Symposium on Symbolic and Algebraic Computation, pp. 261-264 (1990)
[21] Jovanović, D.; de Moura, L.; Gramlich, B.; Miller, D.; Sattler, U., Solving non-linear arithmetic, Automated Reasoning, 339-354 (2012), Heidelberg: Springer, Heidelberg · Zbl 1358.68257 · doi:10.1007/978-3-642-31365-3_27
[22] Lazard, D.: An improved projection for cylindrical algebraic decomposition. In: Algebraic Geometry and its Applications, pp. 467-476. Springer (1994). doi:10.1007/978-1-4612-2628-4_29 · Zbl 0822.68118
[23] Li, CM; Li, Yu; Cimatti, A.; Sebastiani, R., Satisfying versus falsifying in local search for satisfiability, Theory and Applications of Satisfiability Testing - SAT 2012, 477-478 (2012), Heidelberg: Springer, Heidelberg · doi:10.1007/978-3-642-31612-8_43
[24] Li, H., Xia, B.: Solving satisfiability of polynomial formulas by sample-cell projection. arXiv preprint arXiv:2003.00409 (2020)
[25] Liu, M., et al.: NRA-LS at the SMT competition 2022. Tool description document, see https://github.com/minghao-liu/NRA-LS (2022)
[26] McCallum, S.: An improved projection operation for cylindrical algebraic decomposition. In: Quantifier Elimination and Cylindrical Algebraic Decomposition, pp. 242-268. Springer (1998). doi:10.1007/978-3-7091-9459-1_12 · Zbl 0900.68279
[27] Mitchell, D., Selman, B., Leveque, H.: A new method for solving hard satisfiability problems. In: Proceedings of the AAAI Conference on Artificial Intelligence, pp. 440-446 (1992)
[28] Moura, L.d., Bjørner, N.: Z3: An efficient SMT solver. In: International Conference on Tools and Algorithms for the Construction and Analysis of Systems. pp. 337-340. Springer (2008). doi:10.1007/978-3-540-78800-3_24
[29] Nalbach, J., Ábrahám, E., Specht, P., Brown, C.W., Davenport, J.H., England, M.: Levelwise construction of a single cylindrical algebraic cell. arXiv preprint arXiv:2212.09309 (2022)
[30] Niemetz, A., Preiner, M.: Ternary propagation-based local search for more bit-precise reasoning. In: 2020 Formal Methods in Computer Aided Design (FMCAD), pp. 214-224. IEEE (2020)
[31] Niemetz, A.; Preiner, M.; Biere, A.; Chaudhuri, S.; Farzan, A., Precise and complete propagation based local search for satisfiability modulo theories, Computer Aided Verification, 199-217 (2016), Cham: Springer, Cham · Zbl 1411.68070 · doi:10.1007/978-3-319-41528-4_11
[32] Talupur, M.; Sinha, N.; Strichman, O.; Pnueli, A.; Alur, R.; Peled, DA, Range allocation for separation logic, Computer Aided Verification, 148-161 (2004), Heidelberg: Springer, Heidelberg · Zbl 1103.68079 · doi:10.1007/978-3-540-27813-9_12
[33] Tarski, A.: A decision method for elementary algebra and geometry. University of California Press (1951) · Zbl 0044.25102
[34] Tung, VX; Van Khanh, T.; Ogawa, M., raSAT: an SMT solver for polynomial constraints, Formal Methods Syst Design, 51, 3, 462-499 (2017) · Zbl 1377.68140 · doi:10.1007/s10703-017-0284-9
[35] Weispfenning, V., Quantifier elimination for real algebra-the quadratic case and beyond, Appl. Algebra Eng. Commun. Comput., 8, 2, 85-101 (1997) · Zbl 0867.03003 · doi:10.1007/s002000050055
This reference list is based on information provided by the publisher or from digital mathematics libraries. Its items are heuristically matched to zbMATH identifiers and may contain data conversion errors. In some cases that data have been complemented/enhanced by data from zbMATH Open. This attempts to reflect the references listed in the original paper as accurately as possible without claiming completeness or a perfect matching.