Skip to main content

Logic programs and many-valued logic

A fuller version of this paper can be obtained as a report from the address below

  • Contibuted Papers
  • Conference paper
  • First Online:
STACS 84 (STACS 1984)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 166))

Included in the following conference series:

Abstract

We claim that the well-known equivalence of declarative and procedural interpretations for Horn clauses (predicate logic or Prolog programs) has been unjustifiably used when discussing computation. The reason for this is that the Apt, van Emden and Kowalski theory is based on a 2-valued logic {true, false} whereas computation requires at least a 3-valued logic {true, false, "still computing"}. We introduce such logics and relate the results obtained to the traditional ones. This gives a characterization of under-defined clauses which naturally correspond to looping programs. Moreover, it further supports the view that strong correctness (including termination) should be considered, rather than weak correctness (eg 2-valued logic) together with a separate analysis of termination.

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

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Apt, K.R. and van Emden, M.H. "Contributions to the theory of logic programming" JACM, Vol. 29, No. 3, July 1982.

    Google Scholar 

  2. Clark, K.L. "Negation as failure" In "Logic and Data Bases", H. Gallaire and J. Minker (eds), 1978.

    Google Scholar 

  3. van Emden, M.H. and Kowalski, R.A. "The semantics of predicate logic as a programming language", JACM Vol. 23, No. 3, Oct. 1976.

    Google Scholar 

  4. Gordon, M.J., Milner, R. and Wadsworth, C.P. "Edinburgh LCF" Springer-Verlag "Lecture Notes in Computer Science", Vol. 78, 1979.

    Google Scholar 

  5. Jones, N.D. and Mycroft, A. "Stepwise development of operational and denotational semantics of Prolog" DIKU report, Copenhagen University 1983, also submitted to "Science of Computer Programming".

    Google Scholar 

  6. Kowalski, R.A. "Predicate logic as a programming language" In "Information processing 74", J. Rosenfeld (ed.), 1974.

    Google Scholar 

  7. Lassez, J.L. and Maher, M.J. "Optimal fixpoints of logic programs" To appear in TCS, also presented at FST, Bangalore 1983.

    Google Scholar 

  8. Lassez, J.L. and Maher, M.J. "Closures and fairness in the semantics of predicate logic" To appear in TCS, also internal report Melbourne University, Australia 1983.

    Google Scholar 

  9. Plotkin, G.D. "LCF considered as a programming language" TCS Vol. 5, 1976.

    Google Scholar 

  10. Plotkin, G.D. "A powerdomain construction", SIAM J. Comput., Vol. 5, 1976.

    Google Scholar 

  11. Robinson, J.A. "A machine-oriented logic based on the resolution principle", JACM Vol. 12, No. 1, Jan. 1965.

    Google Scholar 

  12. Robinson, J.A. and Sibert, E.E. "LOGLISP — an alternative to PROLOG" Technical Report 7-80, School of Comp. and Info. Sci., Syracuse University 1980.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

M. Fontet K. Mehlhorn

Rights and permissions

Reprints and permissions

Copyright information

© 1984 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Mycroft, A. (1984). Logic programs and many-valued logic. In: Fontet, M., Mehlhorn, K. (eds) STACS 84. STACS 1984. Lecture Notes in Computer Science, vol 166. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-12920-0_25

Download citation

  • DOI: https://doi.org/10.1007/3-540-12920-0_25

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-12920-2

  • Online ISBN: 978-3-540-38805-0

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics