Skip to main content

Applications: Prolog; Relational Databases and SQL; Social Choice Theory

  • Chapter
  • First Online:

Part of the book series: Springer Undergraduate Texts in Philosophy ((SUTP))

Abstract

The language of logic can be used as a declarative programming language, i.e., the programmer has to describe what the problem is, not how it should be solved. We introduce logic programming by means of an example and explain how the system answers questions given a certain program. The possibility of recursive definitions is one of the cornerstones of logic programming. Prolog is a particular form of logic programming; it has been implemented in a certain way. As a consequence, although declarative in principle, Prolog also has certain procedural aspects. The syntax of logic programming in general and of Prolog in particular is very simple. Although the reasoning mechanism should use unification, many systems work with a simpler form, called matching, for reasons of efficiency. Lists are important terms in logic programming. Cut is a procedural device needed to keep programs efficient. Negation is implemented by means of cut and hence differs from logical negation. Logic programming has many applications in (deductive) databases and in Artificial Intelligence. We discuss the most important pitfalls.

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 PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD   54.99
Price excludes VAT (USA)
  • Durable hardcover 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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

de Swart, H.C.M.(. (2018). Applications: Prolog; Relational Databases and SQL; Social Choice Theory. In: Philosophical and Mathematical Logic. Springer Undergraduate Texts in Philosophy. Springer, Cham. https://doi.org/10.1007/978-3-030-03255-5_9

Download citation

Publish with us

Policies and ethics