Abstract

We consider the decidability problem of logic program semantics, focusing in particular on the least Herbrand model, the least term model and the S-semantics. A declarative characterization is given for a large class of programs whose semantics are decidable sets. In addition, we show how decidability is strongly related to (black box) testing. In our terminology, the testing problem consists of checking whether or not the formal semantics of a program includes a given finite set of atoms. We show that the testing problem for a program is decidable iff its formal semantics is a decidable set.Interestingly, the decision procedure used to check whether an atom belongs to the S-semantics of a program has a natural implementation in the logic programming paradigm itself, in the form of a Prolog metaprogram. Consequently, this provides us with a basic tool for testing. Theory and tools are refined to consider the use of non-standard predicates, such as arithmetic built-in's and the meta-predicate demo.KeywordsTesting ProblemLogic ProgramLogic ProgrammingGround AtomProof TreeThese keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.