Skip to main content

Clause

  • Reference work entry
  • First Online:
Encyclopedia of Machine Learning and Data Mining
  • 129 Accesses

A clause is a logical rule in a logic program. Formally, a clause is a disjunction of (possibly negated) literals, such as

$$\displaystyle\begin{array}{rcl} \mathit{grandfather}(x,y)& \vee & \neg \mathit{father}(x,z) {}\\ & \vee & \neg \mathit{parent}(z,y) {}\\ \end{array}$$

In the logic programming language Prolog this clause is written as

grandfather(X,Y) :- father(X,Z),                     parent(Z,Y).

The part to the left of :- (“if”) is the head of the clause, and the right part is its body. Informally, the clause asserts the truth of the head given the truth of the body. A clause with exactly one literal in the head is called a Horn clause or definite clause; logic programs mostly consist of definite clauses. A clause without a body is also called a fact; a clause without a head is also called a denial, or a query in a proof by refutation. The clause without head or body is called the empty clause: it signifies inconsistency or falsehood and is denoted □. Given a set of clauses, the resolution...

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 699.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 949.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

Institutional subscriptions

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Springer Science+Business Media New York

About this entry

Cite this entry

(2017). Clause. In: Sammut, C., Webb, G.I. (eds) Encyclopedia of Machine Learning and Data Mining. Springer, Boston, MA. https://doi.org/10.1007/978-1-4899-7687-1_116

Download citation

Publish with us

Policies and ethics