Nothing Special   »   [go: up one dir, main page]

skip to main content
research-article

Levelwise construction of a single cylindrical algebraic cell

Published: 16 May 2024 Publication History

Abstract

Satisfiability modulo theories (SMT) solvers check the satisfiability of quantifier-free first-order logic formulae over different theories. We consider the theory of non-linear real arithmetic where the formulae are logical combinations of polynomial constraints. Here a commonly used tool is the cylindrical algebraic decomposition (CAD) to decompose the real space into cells where the constraints are truth-invariant through the use of projection polynomials.
A CAD encodes more information than necessary for checking satisfiability. One approach to address this is to repackage the CAD theory into a search-based algorithm: one that guesses sample points to satisfy the formula, and generalizes guesses that conflict constraints to cylindrical cells around samples which are avoided in the continuing search. This can lead to a satisfying assignment more quickly, or conclude unsatisfiability with far fewer cells. A notable example of this approach is Jovanović and de Moura's NLSAT algorithm. Since these cells are being produced locally to a sample there is scope to use fewer projection polynomials than the traditional CAD projection. The original NLSAT algorithm reduced the set a little; while Brown's single cell construction reduced it much further still. However, it refines a cell polynomial-by-polynomial, meaning the shape and size of the cell produced depends on the order in which the polynomials are considered.
The present paper proposes a method to construct such cells levelwise, i.e. built level-by-level according to a variable ordering instead of polynomial-by-polynomial for all levels. We still use a reduced number of projection polynomials, but can now consider a variety of different reductions and use heuristics to select the projection polynomials in order to optimize the shape of the cell under construction. The new method can thus improve the performance of the NLSAT algorithm. We formulate all the necessary theory that underpins the algorithm as a proof system: while not a common presentation for work in this field, it is valuable in allowing an elegant decoupling of heuristic decisions from the main algorithm and its proof of correctness. We expect the symbolic computation community may find uses for it in other areas too. In particular, the proof system could be a step towards formal proofs for non-linear real arithmetic.
This work has been implemented in the SMT-RAT solver and the benefits of the levelwise construction are validated experimentally on the SMT-LIB benchmark library. We also compare several heuristics for the construction and observe that each heuristic has strengths offering potential for further exploitation of the new approach.

References

[1]
Erika Ábrahám, Jasper Nalbach, Gereon Kremer, Embedding the virtual substitution method in the model constructing satisfiability calculus framework, in: Proceedings of the 2nd International Workshop on Satisfiability Checking and Symbolic Computation (SC 2 2017), in: CEUR Workshop Proceedings, vol. 1974, 2017, http://ceur-ws.org/Vol-1974/.
[2]
Erika Ábrahám, James Davenport, Matthew England, Gereon Kremer, Deciding the consistency of non-linear real arithmetic constraints with a conflict driven search using cylindrical algebraic coverings, J. Log. Algebraic Methods Program. 119 (2021),.
[3]
Haniel Barbosa, Andrew Reynolds, Gereon Kremer, Hanna Lachnitt, Aina Niemetz, Andres Nötzli, Alex Ozdemir, Mathias Preiner, Arjun Viswanathan, Scott Viteri, Yoni Zohar, Cesare Tinelli, Clark Barrett, Flexible proof production in an industrial-strength SMT solver, in: Proceedings of the 11th International Joint Conference on Automated Reasoning (IJCAR 2022), Springer, 2022, pp. 15–35. https://doi.org/10.1007/978-3-031-10769-6_3.
[4]
Clark Barrett, Aaron Stump, Cesare Tinelli, et al., The SMT-LIB standard: version 2.0, in: Proceedings of the 8th International Workshop on Satisfiability Modulo Theories, 2010, https://smtlib.cs.uiowa.edu/.
[5]
Russell Bradford, James H. Davenport, Matthew England, Scott McCallum, David Wilson, Truth table invariant cylindrical algebraic decomposition, J. Symb. Comput. 76 (2016) 1–35,.
[6]
Christopher W. Brown, Improved projection for cylindrical algebraic decomposition, J. Symb. Comput. 32 (5) (2001) 447–465,.
[7]
Christopher W. Brown, Constructing a single open cell in a cylindrical algebraic decomposition, in: Proceedings of the 2013 International Symposium on Symbolic and Algebraic Computation (ISSAC 2013), ACM, 2013, pp. 133–140. https://doi.org/10.1145/2465506.2465952.
[8]
Christopher W. Brown, Open non-uniform cylindrical algebraic decompositions, in: Proceedings of the 2015 International Symposium on Symbolic and Algebraic Computation (ISSAC 2015), ACM, 2015, pp. 85–92. https://doi.org/10.1145/2755996.2756654.
[9]
Christopher W. Brown, Projection and quantifier elimination using non-uniform cylindrical algebraic decomposition, in: Proceedings of the 2017 International Symposium on Symbolic and Algebraic Computation (ISSAC 2017), ACM, 2017, pp. 53–60. https://doi.org/10.1145/3087604.3087651.
[10]
Christopher W. Brown, Glenn C. Daves, Applying machine learning to heuristics for real polynomial constraint solving, in: Proceedings of the 7th International Conference on Mathematical Software (ICMS 2020), in: LNCS, vol. 12097, Springer, 2020, pp. 292–301. https://doi.org/10.1007/978-3-030-52200-1_29.
[11]
Christopher W. Brown, Marek Košta, Constructing a single cell in cylindrical algebraic decomposition, J. Symb. Comput. 70 (2015) 14–48,.
[12]
Christopher W. Brown, Scott McCallum, Enhancements to Lazard's method for cylindrical algebraic decomposition, in: Proceedings of the 22nd International Workshop on Computer Algebra in Scientific Computing (CASC 2020), in: LNCS, vol. 12291, Springer, 2020, pp. 129–149. https://doi.org/10.1007/978-3-030-60026-6_8.
[13]
B. Buchberger, George E. Collins, Rudiger Loos, Rudolf Albrecht (Eds.), Computer Algebra: Symbolic and Algebraic Computation, 2nd ed., Springer, 1983, https://doi.org/10.1007/978-3-7091-7551-4.
[14]
Bob F. Caviness, Jeremy R. Johnson, Quantifier Elimination and Cylindrical Algebraic Decomposition, Texts & Monographs in Symbolic Computation, Springer, 1998, https://doi.org/10.1007/978-3-7091-9459-1.
[15]
Alessandro Cimatti, Alberto Griggio, Ahmed Irfan, Marco Roveri, Roberto Sebastiani, Invariant checking of NRA transition systems via incremental reduction to LRA with EUF, in: Proceedings of the 23rd International Conference on Tools and Algorithms for the Construction and Analysis of Systems (TACAS 2017), Springer, 2017, pp. 58–75. https://doi.org/10.1007/978-3-662-54577-5_4.
[16]
George E. Collins, Quantifier elimination for real closed fields by cylindrical algebraic decomposition, in: Proceedings of the 2nd GI Conference on Automata Theory and Formal Languages (1975), Springer, 1975, pp. 134–183. https://doi.org/10.1007/3-540-07407-4_17 (reprinted in the collection Caviness and Johnson (1998)).
[17]
George E. Collins, Hoon Hong, Partial cylindrical algebraic decomposition for quantifier elimination, J. Symb. Comput. 12 (1991) 299–328,.
[18]
Florian Corzilius, Gereon Kremer, Sebastian Junges, Stefan Schupp, Erika Ábrahám, SMT-RAT: an open source C++ toolbox for strategic and parallel SMT solving, in: Proceedings of the 18th International Conference on Theory and Applications of Satisfiability Testing (SAT 2015), Springer, 2015, pp. 360–368. https://doi.org/10.1007/978-3-319-24318-4_26.
[19]
D.A. Cox, J.B. Little, D.B. O'Shea, Ideals, Varieties and Algorithms, Springer, 2006, https://doi.org/10.1007/978-3-662-41154-4.
[20]
James H. Davenport, Joos Heintz, Real quantifier elimination is doubly exponential, J. Symb. Comput. 5 (1–2) (1988) 29–35,.
[21]
Leonardo de Moura, Dejan Jovanović, A model-constructing satisfiability calculus, in: Proceedings of the 14th International Conference on Verification, Model Checking, and Abstract Interpretation (VMCAI 2013), in: LNCS, vol. 7737, Springer, 2013, pp. 1–12. https://doi.org/10.1007/978-3-642-35873-9_1.
[22]
Lionel Ducos, Optimizations of the subresultant algorithm, J. Pure Appl. Algebra 145 (2) (2000) 149–163,.
[23]
Matthew England, Russell Bradford, James H. Davenport, Cylindrical algebraic decomposition with equational constraints, J. Symb. Comput. 100 (2020) 38–71,.
[24]
Israel M. Gelfand, Mikhail M. Kapranov, Andrei V. Zelevinsky, Discriminants, Resultants, and Multidimensional Determinants, Springer, 1994, https://doi.org/10.1007/978-0-8176-4771-1.
[25]
Dejan Jovanović, Solving nonlinear integer arithmetic with MCSAT, in: Proceedings of the 18th International Conference on Verification, Model Checking, and Abstract Interpretation (VMCAI 2017), in: LNCS, vol. 10145, Springer, 2017, pp. 330–346. https://doi.org/10.1007/978-3-319-52234-0_18.
[26]
Dejan Jovanović, Leonardo de Moura, Solving non-linear arithmetic, in: Proceedings of the 6th International Joint Conference on Automated Reasoning (IJCAR 2012), in: LNCS, vol. 7364, Springer, 2012, pp. 339–354. https://doi.org/10.1007/978-3-642-31365-3_27.
[27]
Dejan Jovanovic, Clark Barrett, Leonardo De Moura, The design and implementation of the model constructing satisfiability calculus, in: Proceedings of the 13th International Conference on Formal Methods in Computer-Aided Design (FMCAD 2013), IEEE, 2013, pp. 173–180. https://doi.org/10.1109/FMCAD.2013.7027033.
[28]
Gereon Kremer, Cylindrical Algebraic Decomposition for Nonlinear Arithmetic Problems, PhD thesis RWTH Aachen University, 2019, https://publications.rwth-aachen.de/record/792185.
[29]
Daniel Lazard, An improved projection for cylindrical algebraic decomposition, in: Algebraic Geometry and Its Applications: Collections of Papers from Abhyankar's 60th Birthday Conference, Springer, 1994, pp. 467–476. https://doi.org/10.1007/978-1-4612-2628-4_29.
[30]
Li, Haokun; Xia, Bican (March 2020): Solving satisfiability of polynomial formulas by sample-cell projection. arXiv:2003.00409 : Solving satisfiability of polynomial formulas by sample-cell projection. https://arxiv.org/abs/2003.00409.
[31]
Scott McCallum, An improved projection operation for cylindrical algebraic decomposition, PhD thesis. Published as UW-Madison CS Department Technical Report Number TR578 University of Wisconsin-Madison, 1985, https://minds.wisconsin.edu/handle/1793/58594.
[32]
Scott McCallum, An improved projection operation for cylindrical algebraic decomposition, in: Quantifier Elimination and Cylindrical Algebraic Decomposition, Springer, 1998, pp. 242–268. https://doi.org/10.1007/978-3-7091-9459-1_12.
[33]
Scott McCallum, On projection in CAD-based quantifier elimination with equational constraint, in: Proceedings of the 1999 International Symposium on Symbolic and Algebraic Computation (ISSAC 1999), Association for Computing Machinery, 1999, pp. 145–149. https://doi.org/10.1145/309831.309892.
[34]
Scott McCallum, Hoon Hong, On using Lazard's projection in CAD construction, J. Symb. Comput. 72 (2016) 65–81,.
[35]
Scott McCallum, Adam Parusińiski, Laurentiu Paunescu, Validity proof of Lazard's method for CAD construction, J. Symb. Comput. 92 (2019) 52–69,.
[36]
Akshar Nair, James H. Davenport, Gregory Sankaran, On benefits of equality constraints in lex-least invariant CAD, in: Proceedings of the 4th Workshop on Satisfiability Checking and Symbolic Computation (SC 2 2019), in: CEUR Workshop Proceedings, vol. 2460, 2019, http://ceur-ws.org/Vol-2460/.
[37]
Akshar Nair, James H. Davenport, Gregory Sankaran, Curtains in CAD: why are they a problem and how do we fix them?, in: Proceedings of the 7th International Conference on Mathematical Software (ICMS 2020), in: LNCS, vol. 12097, Springer, 2020, pp. 17–26. https://doi.org/10.1007/978-3-030-52200-1_2.
[38]
Jasper Nalbach, Gereon Kremer, Erika Ábrahám, On variable orderings in MCSAT for non-linear real arithmetic, in: Proceedings of the 4th Workshop on Satisfiability Checking and Symbolic Computation (SC 2 2019), in: CEUR Workshop Proceedings, vol. 2460, 2019, http://ceur-ws.org/Vol-2460/.
[39]
(2023): SMT-RAT, a toolbox for strategic and parallel satisfiability modulo theories solving. https://github.com/smtrat/smtrat.
[40]
Alfred Tarski, A Decision Method for Elementary Algebra and Geometry, RAND Corporation, Santa Monica, CA, 1948, (reprinted in the collection Caviness and Johnson (1998)) https://doi.org/10.1007/978-3-7091-9459-1_3.

Cited By

View all
  • (2024)Merging Adjacent Cells During Single Cell ConstructionComputer Algebra in Scientific Computing10.1007/978-3-031-69070-9_15(252-272)Online publication date: 1-Sep-2024
  • (2024)Recent Developments in Real Quantifier Elimination and Cylindrical Algebraic Decomposition (Extended Abstract of Invited Talk)Computer Algebra in Scientific Computing10.1007/978-3-031-69070-9_1(1-10)Online publication date: 1-Sep-2024

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image Journal of Symbolic Computation
Journal of Symbolic Computation  Volume 123, Issue C
Jul 2024
265 pages

Publisher

Academic Press, Inc.

United States

Publication History

Published: 16 May 2024

Author Tags

  1. Satisfiability modulo theories
  2. Cylindrical algebraic decomposition
  3. Non-linear real arithmetic
  4. Model-constructing satisfiability calculus
  5. Formal proofs

Qualifiers

  • Research-article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)0
  • Downloads (Last 6 weeks)0
Reflects downloads up to 19 Nov 2024

Other Metrics

Citations

Cited By

View all
  • (2024)Merging Adjacent Cells During Single Cell ConstructionComputer Algebra in Scientific Computing10.1007/978-3-031-69070-9_15(252-272)Online publication date: 1-Sep-2024
  • (2024)Recent Developments in Real Quantifier Elimination and Cylindrical Algebraic Decomposition (Extended Abstract of Invited Talk)Computer Algebra in Scientific Computing10.1007/978-3-031-69070-9_1(1-10)Online publication date: 1-Sep-2024

View Options

View options

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media