Skip to main content

Characterising and Explaining Inconsistency in Logic Programs

  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 9345))

Abstract

A logic program under the answer set semantics can be inconsistent because its only answer set is the set of all literals, or because it does not have any answer sets. In both cases, the reason for the inconsistency may be (1) only explicit negation, (2) only negation as failure, or (3) the interplay between these two kinds of negation. Overall, we identify four different inconsistency cases, and show how the respective reason can be further characterised by a set of culprits using semantics which are weaker than the answer set semantics. We also provide a technique for explaining the set of culprits in terms of trees whose nodes are derivations. This can be seen as an important first step towards debugging inconsistent logic programs.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    Clauses containing variables are used as shorthand for all their ground instances over the Herbrand Universe of the logic program.

References

  1. Brain, M., De Vos, M.: Debugging logic programs under the answer set semantics. In: Vos, M.D., Provetti, A. (eds.) ASP 2005. CEUR Workshop Proceedings, vol. 142, pp. 141–152. CEUR-WS.org (2005)

    Google Scholar 

  2. Dung, P.M.: On the relations between stable and well-founded semantics of logic programs. Theoret. Comput. Sci. 105(1), 7–25 (1992)

    Article  MATH  MathSciNet  Google Scholar 

  3. Eiter, T., Leone, N., Saccà, D.: On the partial semantics for disjunctive deductive databases. Ann. Math. AI 19(1–2), 59–96 (1997)

    MATH  Google Scholar 

  4. Eshghi, K., Kowalski, R.A.: Abduction compared with negation by failure. In: Levi, G., Martelli, M. (eds.) ICLP 1989, pp. 234–254. MIT Press (1989)

    Google Scholar 

  5. Fages, F.: Consistency of clark’s completion and existence of stable models. Methods Logic CS 1(1), 51–60 (1994)

    Google Scholar 

  6. Gebser, M., Kaufmann, B., Kaminski, R., Ostrowski, M., Schaub, T., Schneider, M.T.: Potassco: the Potsdam answer set solving collection. AI Commun. 24(2), 107–124 (2011)

    MATH  MathSciNet  Google Scholar 

  7. Gebser, M., Pührer, J., Schaub, T., Tompits, H.: A meta-programming technique for debugging answer-set programs. In: Fox, D., Gomes, C.P. (eds.) AAAI 2008, pp. 448–453. AAAI Press (2008)

    Google Scholar 

  8. Gelfond, M., Lifschitz, V.: Classical negation in logic programs and disjunctive databases. New Gener. Comput. 9(3–4), 365–385 (1991)

    Article  Google Scholar 

  9. Inoue, K.: Studies on Abductive and Nonmonotonic Reasoning. Ph.D. thesis, Kyoto University (1993)

    Google Scholar 

  10. Leone, N., Pfeifer, G., Faber, W., Eiter, T., Gottlob, G., Perri, S., Scarcello, F.: The dlv system for knowledge representation and reasoning. ACM Trans. Comput. Logic 7(3), 499–562 (2006)

    Article  MathSciNet  Google Scholar 

  11. Niemelä, I., Simons, P., Syrjänen, T.: Smodels: A system for answer set programming. In: Baral, C., Truszczynski, M. (eds.) NMR 2000, vol. cs.AI/0003033. CoRR (2000)

    Google Scholar 

  12. Oetsch, J., Pührer, J., Tompits, H.: Catching the ouroboros: on debugging non-ground answer-set programs. TPLP 10(4–6), 513–529 (2010)

    MATH  Google Scholar 

  13. Oetsch, J., Pührer, J., Tompits, H.: Stepping through an answer-set program. In: Delgrande, J.P., Faber, W. (eds.) LPNMR 2011. LNCS, vol. 6645, pp. 134–147. Springer, Heidelberg (2011)

    Chapter  Google Scholar 

  14. Pontelli, E., Son, T.C., Elkhatib, O.: Justifications for logic programs under answer set semantics. TPLP 9(1), 1–56 (2009)

    MATH  MathSciNet  Google Scholar 

  15. Przymusinski, T.C.: Stable semantics for disjunctive programs. New Gener. Comput. 9(3–4), 401–424 (1991)

    Article  Google Scholar 

  16. Schulz, C., Toni, F.: Justifying answer sets using argumentation. TPLP FirstView, 1–52 (2015)

    Google Scholar 

  17. Syrjänen, T.: Debugging inconsistent answer set programs. In: Dix, J., Hunter, A. (eds.) NMR 2006. Technical report Series, vol. IfI-06-04, pp. 77–83. Clausthal University of Technology, Institute of Informatics (2006)

    Google Scholar 

  18. Van Gelder, A.: The alternating fixpoint of logic programs with negation. J. Comput. Syst. Sci. 47(1), 185–221 (1993)

    Article  MATH  Google Scholar 

  19. Van Gelder, A., Ross, K.A., Schlipf, J.S.: The well-founded semantics for general logic programs. J. ACM 38(3), 619–649 (1991)

    Article  Google Scholar 

  20. You, J.H., Yuan, L.Y.: A three-valued semantics for deductive databases and logic programs. J. Comput. Syst. Sci. 49(2), 334–361 (1994)

    Article  MATH  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Claudia Schulz .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer International Publishing Switzerland

About this paper

Cite this paper

Schulz, C., Satoh, K., Toni, F. (2015). Characterising and Explaining Inconsistency in Logic Programs. In: Calimeri, F., Ianni, G., Truszczynski, M. (eds) Logic Programming and Nonmonotonic Reasoning. LPNMR 2015. Lecture Notes in Computer Science(), vol 9345. Springer, Cham. https://doi.org/10.1007/978-3-319-23264-5_39

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-23264-5_39

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-23263-8

  • Online ISBN: 978-3-319-23264-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics