Proceedings

Logic Program Termination Analysis Using Atom Sizes

Download BibTeX Cite

Proceedings of the Twenty-Fourth International Joint Conference on Artificial Intelligence. Special Track on Knowledge Representation and Reasoning. Pages 2833-2838.

Abstract

Recent years have witnessed a great deal of interest in extending answer set programming with function symbols. Since the evaluation of a program with function symbols might not terminate and checking termination is undecidable, several classes of logic programs have been proposed where the use of function symbols is limited but the program evaluation is guaranteed to terminate. In this paper, we propose a novel class of logic programs whose evaluation always terminates. The proposed technique identifies terminating programs that are not captured by any of the current approaches. Our technique is based on the idea of measuring the size of terms and atoms to check whether the rule head size is bounded by the body, and performs a more fine-grained analysis than previous work. Rather than adopting an all-or-nothing approach (either we can say that the program is terminating or we cannot say anything), our technique can identify arguments that are limited'' (i.e., where there is no infinite propagation of terms) even when the program is not entirely recognized as terminating. Identifying arguments that are limited can support the user in the problem formulation and help other techniques that use limited arguments as a starting point. Another useful feature of our approach is that it is able to leverage external information about limited arguments. We also provide results on the correctness, the complexity, and the expressivity of our technique.

  1. [Alviano et al., 2010] M. Alviano, W. Faber, and N. Leone. Dis- junctive ASP with functions: Decidable queries and effective computation. TPLP, 10(4-6):497-512, 2010.
  2. T. Arts and J. Giesl. Termination of term rewriting using dependency pairs. TCS, 236(1-2):133-178, 2000.
  3. [Baselice et al., 2009] S. Baselice, P. A. Bonatti, and G. Criscuolo. On finitely recursive programs. TPLP, 9(2):213-238, 2009.
  4. [Bruynooghe et al., 2007] M. Bruynooghe, M. Codish, J. P. Gal- lagher, S. Genaim, and W. Vanhoof. Termination analysis of logic programs through combination of type-based norms. ACM TOPLAS, 29(2), 2007.
  5. [Calautti et al., 2013] M. Calautti, S. Greco, and I. Trubitsyna. De- tecting decidable classes of finitely ground logic programs with function symbols. In PPDP, 2013.
  6. [Calautti et al., 2014a] M. Calautti, S. Greco, C. Molinaro, and I. Trubitsyna. Checking termination of logic programs with func- tion symbols through linear constraints. In RuleML, pages 97- 111, 2014.
  7. [Calautti et al., 2014b] M. Calautti, S. Greco, F. Spezzano, and I. Trubitsyna. Checking termination of bottom-up evaluation of logic programs with function symbols. TPLP, 2014.
  8. [Calimeri et al., 2008] F. Calimeri, S. Cozza, G. Ianni, and N. Leone. Computable functions in ASP: Theory and implemen- tation. In ICLP, pages 407-424, 2008.
  9. [Codish et al., 2005] M. Codish, V. Lagoon, and P. J. Stuckey. Test- ing for termination with monotonicity constraints. In ICLP, pages 326-340, 2005.
  10. [De Schreye and Decorte, 1994] D. De Schreye and S. Decorte. Termination of logic programs: The never-ending story. JLP, 19/20:199-260, 1994.
  11. [Eiter and Simkus, 2010] T. Eiter and M. Simkus. Fdnc: Decidable nonmonotonic disjunctive logic programs with function symbols. ACM TOCL, 11(2), 2010.
  12. [Eiter et al., 2013] T. Eiter, M. Fink, T. Krennwallner, and C. Redl. Liberal safety for answer set programs with external sources. In AAAI, 2013.
  13. [Endrullis et al., 2008] J. Endrullis, J. Waldmann, and H. Zantema. Matrix interpretations for proving termination of term rewriting. JAR, 40(2-3):195-220, 2008.
  14. [Gebser et al., 2007] M. Gebser, T. Schaub, and S. Thiele. Gringo: A new grounder for answer set programming. In LPNMR, pages 266-271, 2007.
  15. [Gebser et al., 2012] M. Gebser, R. Kaminski, B. Kaufmann, and T. Schaub. Answer Set Solving in Practice. Synthesis Lectures on AI and ML. Morgan & Claypool Publishers, 2012.
  16. [Gelfond and Lifschitz, 1988] M. Gelfond and V. Lifschitz. The stable model semantics for logic programming. In ICLP/SLP, pages 1070-1080, 1988.
  17. [Gelfond and Lifschitz, 1991] M. Gelfond and V. Lifschitz. Classi- cal negation in logic programs and disjunctive databases. NGC, 9(3/4):365-386, 1991.
  18. [Greco et al., 2011] Sergio Greco, Francesca Spezzano, and Irina Trubitsyna. Stratification criteria and rewriting techniques for checking chase termination. PVLDB, 4(11):1158-1168, 2011.
  19. [Greco et al., 2012] S. Greco, C. Molinaro, and F. Spezzano. In- complete Data and Data Dependencies in Relational Databases. Synthesis Lectures on Data Management. Morgan & Claypool Publishers, 2012.
  20. [Greco et al., 2013a] S. Greco, C. Molinaro, and I. Trubitsyna. Bounded programs: A new decidable class of logic programs with function symbols. In IJCAI, 2013. IJCAI
  21. [Greco et al., 2013b] S. Greco, C. Molinaro, and I. Trubitsyna. Logic programming with function symbols: Checking termi- nation of bottom-up evaluation through program adornments. TPLP, 13(4-5):737-752, 2013.
  22. [Leuschel and Vidal, 2014] M. Leuschel and G. Vidal. Fast offline partial evaluation of logic programs. I&C, 235(0):70-97, 2014.
  23. [Lierler and Lifschitz, 2009] Y. Lierler and V. Lifschitz. One more decidable class of finitely ground programs. In ICLP, pages 489- 493, 2009.
  24. [Marchiori, 1996] M. Marchiori. Proving existential termination of normal logic programs. In AMST, 1996.
  25. [Nguyen et al., 2007] M. Thang Nguyen, J. Giesl, P. Schneider- Kamp, and D. De Schreye. Termination analysis of logic pro- grams based on dependency graphs. In LOPSTR, pages 8-22, 2007.
  26. [Ohlebusch, 2001] E. Ohlebusch. Termination of logic programs: Transformational methods revisited. AAECC, 12(1/2):73-116, 2001.
  27. [Riguzzi and Swift, 2013] F. Riguzzi and T. Swift. Well- definedness and efficient inference for probabilistic logic pro- gramming under the distribution semantics. TPLP, 13(2):279- 302, 2013.
  28. [Riguzzi and Swift, 2014] F. Riguzzi and T. Swift. Terminating evaluation of logic programs with finite three-valued models. ACM TOCL, 2014.
  29. [Schneider-Kamp et al., 2009] P. Schneider-Kamp, J. Giesl, A. Serebrenik, and R. Thiemann. Automated termination proofs for logic programs by term rewriting. ACM TOCL, 11(1), 2009.
  30. [Sohn and Gelder, 1991] K. Sohn and A. Van Gelder. Termination detection in logic programs using argument sizes. In ACM PODS, pages 216-226, 1991.
  31. [Sternagel and Middeldorp, 2008] C. Sternagel and A. Middeldorp. Root-labeling. In RTA, pages 336-350, 2008.
  32. [Syrjanen, 2001] T. Syrjanen. Omega-restricted logic programs. In LPNMR, pages 267-279, 2001.
  33. [Verbaeten et al., 2001] S. Verbaeten, D. De Schreye, and K. F. Sagonas. Termination proofs for logic programs with tabling. ACM TOCL, 2(1):57-92, 2001.
  34. [Voets and De Schreye, 2011] D. Voets and D. De Schreye. Non- termination analysis of logic programs with integer arithmetics. TPLP, 11(4-5):521-536, 2011.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards