Finding Regular Herbrand Models for CHCs using Answer Set Programming
By: Gregoire Maire, Thomas Genet
Potential Business Impact:
Finds computer bugs by checking code rules.
We are interested in proving satisfiability of Constrained Horn Clauses (CHCs) over Algebraic Data Types (ADTs). We propose to prove satisfiability by building a tree automaton recognizing the Herbrand model of the CHCs. If such an automaton exists then the model is said to be regular, i.e., the Herbrand model is a regular set of atoms. Kostyukov et al. have shown how to derive an automaton when CVC4 finds a finite model of the CHCs. We propose an alternative way to build the automaton using an encoding into a SAT problem using Clingo, an Answer Set Programming (ASP) tool. We implemented a translation of CHCs with ADTs into an ASP problem. Combined with Clingo, we obtain a semi-complete satisfiability checker: it finds a tree automaton if a regular Herbrand model exists or finds a counter-example if the problem is unsatisfiable.
Similar Papers
CHCVerif: A Portfolio-Based Solver for Constrained Horn Clauses
Software Engineering
Helps computers check if programs are safe.
Büchi-Elgot-Trakhtenbrot Theorem for Higher-Dimensional Automata
Formal Languages and Automata Theory
Helps computers understand complex patterns in data.
Computing Supported Models via Transformation to Stable Models
Logic in Computer Science
Lets computers explore more answers to problems.