PlanetMath (more info)
 Math for the people, by the people. Sponsor PlanetMath
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Owner confidence rating: High Entry average rating: Low
Horn clause (Definition)

In logic, a Horn clause is a clause (a disjunction of literals) with at most one positive literal. A Horn clause with exactly one positive literal is a definite clause; a Horn clause with no positive literals is sometimes called a goal clause, especially in logic programming. A Horn formula is a conjunctive normal form formula whose clauses are all Horn; in other words, it is a conjunction of Horn clauses. A dual-Horn clause is a clause with at most one negative literal. Horn clauses play a basic role in logic programming and are important for constructive logic.

The following is an example of a (definite) Horn clause:

$$\neg p \vee \neg q \vee \cdots \vee \neg t \vee u$$

Such a formula can be rewritten in the following form, which is more common in logic programming and similar fields:

$$(p \wedge q \wedge \cdots \wedge t) \rightarrow u$$

The relevance of Horn clauses to theorem proving by first-order resolution is that the resolution of two Horn clauses is a Horn clause. Moreover, the resolution of a goal clause and a definite clause is again a goal clause. In automated theorem proving, this can lead to greater efficiencies in proving a theorem (represented as a goal clause). In fact, Prolog is a programming language based on Horn clauses (Prolog also includes constructs such as the cut that cannot be easily expressed in logic).

Horn clauses are also of interest in computational complexity, where the problem of finding a set of variable assignments to make a conjunction of Horn clauses true is a P-complete problem, sometimes called HORNSAT. This is P's version of the boolean satisfiability problem, a central NP-complete problem.

The name "Horn clause" comes from the logician Alfred Horn, who first pointed out the significance of such clauses in 1951, in the article "On sentences which are true of direct unions of algebras", Journal of Symbolic Logic, 16, 14 - 21.

This entry was adapted from the Wikipedia article Horn clause as of December 19, 2006.




Anyone with an account can edit this entry. Please help improve it!

"Horn clause" is owned by PrimeFan. [ full author list (3) ]
(view preamble | get metadata)

View style:

Also defines:  dual-Horn clause
Log in to rate this entry.
(view current ratings)

Cross-references: Wikipedia, adapted, algebras, unions, sentences, NP-complete, Boolean, variable, cut, language, efficiencies, theorem, fields, similar, negative literal, conjunction, conjunctive normal form, formula, positive literal, literals, disjunction, clause, logic

This is version 3 of Horn clause, born on 2006-12-19, modified 2006-12-19.
Object id is 8641, canonical name is HornClause.
Accessed 2846 times total.

Classification:
AMS MSC68N30 (Computer science :: Software :: Mathematical aspects of software engineering )

Pending Errata and Addenda
None.
Discussion
Style: Expand: Order:
forum policy

No messages.

Interact
post | correct | update request | add derivation | add example | add (any)