Finding Regular Herbrand Models for CHCs using Answer Set Programming

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Maire, Gregoire, Genet, Thomas
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866908620111740928
author Maire, Gregoire
Genet, Thomas
author_facet Maire, Gregoire
Genet, Thomas
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2510_26428
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Finding Regular Herbrand Models for CHCs using Answer Set Programming
Maire, Gregoire
Genet, Thomas
Logic in Computer Science
Formal Languages and Automata Theory
Programming Languages
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.
title Finding Regular Herbrand Models for CHCs using Answer Set Programming
topic Logic in Computer Science
Formal Languages and Automata Theory
Programming Languages
url https://arxiv.org/abs/2510.26428