In logic, a clause is a propositional formula formed from a finite collection of literals (atoms or their negations) and logical connectives. A clause is true either whenever at least one of the literals that form it is true (a disjunctive clause, the most common use of the term), or when all of the literals that form it are true (a conjunctive clause, a less common use of the term). That is, it is a finite disjunction[1] or conjunction of literals, depending on the context. Clauses are usually written as follows, where the symbols [math]\displaystyle{ l_i }[/math] are literals:
A clause can be empty (defined from an empty set of literals). The empty clause is denoted by various symbols such as [math]\displaystyle{ \empty }[/math], [math]\displaystyle{ \bot }[/math], or [math]\displaystyle{ \Box }[/math]. The truth evaluation of an empty disjunctive clause is always [math]\displaystyle{ false }[/math]. This is justified by considering that [math]\displaystyle{ false }[/math] is the neutral element of the monoid [math]\displaystyle{ (\{false, true\}, \vee) }[/math].
The truth evaluation of an empty conjunctive clause is always [math]\displaystyle{ true }[/math]. This is related to the concept of a vacuous truth.
Every nonempty (disjunctive) clause is logically equivalent to an implication of a head from a body, where the head is an arbitrary literal of the clause and the body is the conjunction of the complements of the other literals. That is, if a truth assignment causes a clause to be true, and all of the literals of the body satisfy the clause, then the head must also be true.
This equivalence is commonly used in logic programming, where clauses are usually written as an implication in this form. More generally, the head may be a disjunction of literals. If [math]\displaystyle{ b_1, \ldots, b_m }[/math] are the literals in the body of a clause and [math]\displaystyle{ h_1, \ldots, h_n }[/math] are those of its head, the clause is usually written as follows:
Original source: https://en.wikipedia.org/wiki/Clause (logic).
Read more |
Categories: [Propositional calculus] [Predicate logic] [Logic programming]