Skip to main content
Log in

Backchain iteration: Towards a practical inference method that is simple enough to be proved terminating, sound, and complete

  • Published:
Journal of Automated Reasoning Aims and scope Submit manuscript

Abstract

We focus on methods for interpreting stratified datalog programs with negation, and we describe progress towards a practical, yet simple method that treats such programs as executable specifications of deductive database applications.

There are simple, but inefficient inference methods that are terminating, sound and complete when used to interpret stratified logic programs without function symbols. There are also efficient, but complex implemented methods whose correctness is unknown. However, it appears that no well-known method is both efficientand simple enough to be proved terminating, sound, and complete — particularly when successive optimizations are added. Such a method should allow us to write executable specifications, at a significantly lower cost than logic programs. However, we must first close the efficiency—simplicity gap.

We give a one-page abstract description of a method, calledbackchain iteration, and we show that it is terminating, sound, and complete on range-restricted, stratified logic specifications without function symbols. We also give an implementation of the method as a simple meta-interpreter, and we report that, on many experimental examples, it is terminating, sound, and complete and has promising efficiency.

Backchain iteration interleaves backchaining from a question with forward chaining iteration. In the version described here, the distinctive characteristics are as follows. Backchaining is done reluctantly, adding new rule instances only when no new lemmas can be proved using the existing rule instances. Subquestions and rule instances are indexed by depth of backchaining. Iteration is done eagerly, to a local fixed point, using depth indexing. The pattern of backchain and iteration depends on the specification being interpreted.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Institutional subscriptions

Similar content being viewed by others

References

  1. Apt, K. R., Blair, H. and Walker, A., ‘Towards a theory of declarative knowledge’, inFoundations of Deductive Databases and Logic Programming (ed. J. Minker), Morgan Kaufman, pp. 89–148 (1988).

  2. Apt, K. R. and van Emden, M. H., ‘Contributions to the theory of logic programming’,Journal of the Association for Computing Machinery 29(3), 841–862 (1982).

    Google Scholar 

  3. Bancilhon, F. and Ramakrishnan, R., ‘Performance evaluation of data intensive logic programs’, inFoundations of Deductive Databases and Logic Programming (ed. J. Minker), Morgan Kaufman, pp. 439–517 (1988).

  4. Bancilhon, F., Maier, D., Sagiv, Y. and Ullman, J., ‘Magic sets and other strange ways to implement logic programs’,Proceedings of the 5th ACM Symposium on Principles of Database Systems, Cambridge, Massachusetts, pp. 1–15 (1986).

  5. Balbin, I., Meenakshi, K. and Ramamohanarao, K, ‘A query independent method for magic set computation on stratified databases’,Proceedings of the International Conference on Fifth Generation Computer Systems, ICOT, Tokyo, Japan, pp. 711–718 (1988).

    Google Scholar 

  6. Beeri, C. and Ramakrishnan, R., ‘On the power of magic’Proceedings of the 6th ACM Symposium on Principles of Database Systems, San Diego, California, pp. 269–283 (1987).

  7. Bry, F., ‘Query evaluation in recursive databases: bottom-up and top-down reconciled’,Data and Knowledge Engineering 5(4), 312–332 (1990).

    Google Scholar 

  8. Clark, K., ‘Negation as failure’, inLogic and Databases (eds. H. Gallaire and J. Minker), Plenum, New York, pp. 293–322 (1978).

    Google Scholar 

  9. Foo, N., Rao, A., Taylor, A. and Walker, A., ‘Deduced relevant types and constructive negation’,Proceedings of the Fifth International Conference and Symposium on Logic Programming, Seattle, pp. 126–139 (1988). Also Report RC 13407, IBM T.J. Watson Research Center.

  10. Gardarin, G., Guessarian, I. and de Maindreville, C., ‘Translation of logic programs into functional fixpoint equations’,Theoretical Computer Science 63, 253–274 (1989).

    Google Scholar 

  11. Gelfond, M., ‘The stable model semantics for logic programming’,Proceedings of the Fifth International Conference and Symposium on Logic Programming, Seattle, pp. 1070–1080 (1988).

  12. IBM Prolog for 370, Programmer's Guide, IBM document SH21-1002 (1989).

  13. Kemp, D. and Topor, R., ‘Completeness of a top down query evaluation procedure for stratified databases’,Proceedings of the Fifth International Conference and Symposium on Logic Programming, Seattle, pp. 178–194 (1988).

  14. Kowalski, R. A., ‘A proof procedure using connection graphs’,Journal of the Association for Computing Machinery 22(4), 572–595 (1975).

    Google Scholar 

  15. Lefebvre, A. and Vielle, L.,On Deductive Query Evaluation in the DedGin* System, report, E.C.R.C., Munich, Germany (1989).

    Google Scholar 

  16. Lell, C., ‘Using a meta-knowledge method for developing an educational knowledge-based application’,Proceedings of the DEXA 91 International Conference on Database and Expert Systems Applications, Berlin, (ed. D. Karagiannis), Springer Verlag, New York (1991). Also, Diskussionspapier No. 8 (in English), Wirtschaftsuniversität Wien, Abteilung für Wirtschaftsinformatik, Augasse 6–8, A1090 Wien, Austria (1991).

    Google Scholar 

  17. Naughton, J., Ramakrishnan, R., Sagiv, Y. and Ullman, J., ‘Efficient evaluation of right-, left- and multilinear rules’,Proceedings of the ACM SIGMOD International Conference on Management of Data, Portland, Oregon, pp. 235–242 (1989).

  18. Neumann, G.,Meta-Programmierung und Prolog, Addison-Wesley (1988). AlsoMeta-Interpreter Directed Compilation of Logic Programs into Prolog, Report RC 12113, IBM T.J. Watson Research Center (1986).

  19. Pereira, F. and Warren, D. H. D., ‘Parsing as deduction’,Proceedings of the Association for Computational Linguistics, pp. 137–144 (1983).

  20. Przymusinski, T., ‘Perfect model semantics’,Proceedings of the Fifth International Conference and Symposium on Logic Programming, Seattle, pp. 1081–1096 (1988).

  21. Ross, K. A., ‘Modular stratification and magic sets for DATALOG programs with negation’,Proceedings of the 9th ACM Symposium on Principles of Database Systems, Nashville, Tennessee, pp. 161–171 (1990).

  22. Ross, K. A., ‘Modular stratification and magic sets for datalog programs with negation’, manuscript (1991).

  23. Seki, H. and Itoh, H., ‘A query evaluation method for stratified programs under the extended cwa’,Proceedings of the Fifth International Conference and Symposium on Logic Programming, Seattle, pp. 195–211 (1988).

  24. Sheridan, P., ‘On reordering conjunctions of literals: A simple, fast algorithm’,1991 Symposium on Applied Computing, April 3–5 (1991), Kansas City, Missouri. Also: Report RC 16079, IBM T.J. Watson Research Center (1990).

  25. Thorvaldson, J. and Walker, A., ‘VLSI physical design planning using the Syllog expert database system’, Report RC 14362, IBM T.J. Watson Research Center (1989).

  26. Tzoar, D. and Walker, A., ‘The Syllog expert database system: notes for users’, Report, IBM T.J. Watson Research Center (1990).

  27. Ullman, J. D.,Principles of Database and Knowledge-Base Systems. Volume II:The New Technologies, Computer Science Press, Rockville, Maryland (1989).

    Google Scholar 

  28. van Emden, M. and Kowalski, R., ‘The semantics of predicate logic as a programming language’,Journal of the Association for Computing Machinery 23(4), 733–742 (1976).

    Google Scholar 

  29. Vieille, L., ‘Recursive query processing: The power of logic’,Theoretical Computer Science 69, 1–53 (1989).

    Google Scholar 

  30. Waldinger, R. and Stickel, M., ‘Proving properties of rule based systems’, Technical Note 494, SRI International, Menlo Park, Calif. (1990).

    Google Scholar 

  31. Walker, A., ‘Syllog: A knowledge based data management system’, Report No. 34, Department of Computer Science, New York University, New York (1981).

    Google Scholar 

  32. Walker, A., ‘Backchain iteration: towards a practical inference method that is simple enough to be proved terminating, sound and complete’, Report RC 16849, IBM T.J. Watson Research Center (1991).

  33. Walker, A., McCord, M., Sowa, J. and Wilson, W.,Knowledge Systems and Prolog: Developing Expert, Database, and Natural Language Systems, 2nd Ed., Addison-Wesley (1990).

  34. Wallace, M., ‘Unrestricted logic programs, or: If stratification is the cure, what is the malady?’Proc. 9th ECAI, pp. 682–687 (1990).

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Walker, A. Backchain iteration: Towards a practical inference method that is simple enough to be proved terminating, sound, and complete. J Autom Reasoning 11, 1–22 (1993). https://doi.org/10.1007/BF00881898

Download citation

  • Received:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF00881898

Key words

Navigation