Integrating Cardinality Constraints into Constraint Logic Programming with Sets
- 9 November 2021
- journal article
- research article
- Published by Cambridge University Press (CUP) in Theory and Practice of Logic Programming
- Vol. 23 (2) , 468-502
Abstract
Formal reasoning about finite sets and cardinality is important for many applications, including software verification, where very often one needs to reason about the size of a given data structure. The Constraint Logic Programming tool provides a decision procedure for deciding the satisfiability of formulas involving very general forms of finite sets, although it does not provide cardinality constraints. In this paper we adapt and integrate a decision procedure for a theory of finite sets with cardinality into . The proposed solver is proved to be a decision procedure for its formulas. Besides, the new CLP instance is implemented as part of the tool. In turn, the implementation uses Howe and King’s Prolog SAT solver and Prolog’s CLP(Q) library, as an integer linear programming solver. The empirical evaluation of this implementation based on +250 real verification conditions shows that it can be useful in practice. Under consideration in Theory and Practice of Logic Programming (TPLP)Keywords
All Related Versions
This publication has 35 references indexed in Scilit:
- {log} as a Test Case Generator for the Test Template Framework2013
- A pearl on SAT and SMT solving in PrologTheoretical Computer Science, 2012
- Cardinal: A Finite Sets Constraint SolverConstraints, 2007
- Deciding Boolean Algebra with Presburger ArithmeticJournal of Automated Reasoning, 2006
- Set unificationTheory and Practice of Logic Programming, 2006
- What’s Decidable About Arrays?2005
- Combining Sets with CardinalsJournal of Automated Reasoning, 2005
- Sets and constraint logic programmingACM Transactions on Programming Languages and Systems, 2000
- Interval propagation to reason about sets: Definition and implementation of a practical languageConstraints, 1997
- {log}: A language for programming in logic with finite setsThe Journal of Logic Programming, 1996