English

Synthesizing Strongly Equivalent Logic Programs: Beth Definability for Answer Set Programs via Craig Interpolation in First-Order Logic

Logic in Computer Science 2024-08-19 v3

Abstract

We show a projective Beth definability theorem for logic programs under the stable model semantics: For given programs PP and QQ and vocabulary VV (set of predicates) the existence of a program RR in VV such that PRP \cup R and PQP \cup Q are strongly equivalent can be expressed as a first-order entailment. Moreover, our result is effective: A program RR can be constructed from a Craig interpolant for this entailment, using a known first-order encoding for testing strong equivalence, which we apply in reverse to extract programs from formulas. As a further perspective, this allows transforming logic programs via transforming their first-order encodings. In a prototypical implementation, the Craig interpolation is performed by first-order provers based on clausal tableaux or resolution calculi. Our work shows how definability and interpolation, which underlie modern logic-based approaches to advanced tasks in knowledge representation, transfer to answer set programming.

Keywords

Cite

@article{arxiv.2402.07696,
  title  = {Synthesizing Strongly Equivalent Logic Programs: Beth Definability for Answer Set Programs via Craig Interpolation in First-Order Logic},
  author = {Jan Heuer and Christoph Wernhard},
  journal= {arXiv preprint arXiv:2402.07696},
  year   = {2024}
}

Comments

Preprint version of the IJCAR 2024 contribution

R2 v1 2026-06-28T14:46:03.719Z