foundations of computational agents
The third edition of Artificial Intelligence: foundations of computational agents, Cambridge University Press, 2023 is now available (including full text).
The definite clause language does not allow a contradiction to be stated. However, a simple expansion of the language can allow proof by contradiction.
An integrity constraint is a clause of the form
where the are atoms and false is a special atom that is false in all interpretations.
A Horn clause is either a definite clause or an integrity constraint. That is, a Horn clause has either false or a normal atom as its head.
Integrity constraints allow the system to prove that some conjunction of atoms is false in all models of a knowledge base. Recall that is the negation of , which is true in an interpretation when is false in that interpretation, and is the disjunction of and , which is true in an interpretation if is true or is true or both are true in the interpretation. The integrity constraint is logically equivalent to .
A Horn clause knowledge base can imply negations of atoms, as shown in Example 5.19.
Consider the knowledge base :
The atom is false in all models of . To see this, suppose instead that is true in model of . Then and would both be true in (otherwise would not be a model of ). Because false is false in and and are true in , the first clause is false in , a contradiction to being a model of . Thus is true in all models of , which can be written as
Although the language of Horn clauses does not allow disjunctions and negations to be input, disjunctions of negations of atoms can be derived, as the following example shows.
Consider the knowledge base :
Either is false or is false in every model of . If they were both true in some model of , both and would be true in , so the first clause would be false in , a contradiction to being a model of . Similarly, either is false or is false in every model of . Thus,
A set of clauses is unsatisfiable if it has no models. A set of clauses is provably inconsistent with respect to a proof procedure if false can be derived from the clauses using that proof procedure. If a proof procedure is sound and complete, a set of clauses is provably inconsistent if and only if it is unsatisfiable.
It is always possible to find a model for a set of definite clauses. The interpretation with all atoms true is a model of any set of definite clauses. Thus, a definite-clause knowledge base is always satisfiable. However, a set of Horn clauses can be unsatisfiable.
The set of clauses is unsatisfiable. There is no interpretation that satisfies both clauses. Both and cannot be true in any interpretation.
Both the top-down and the bottom-up proof procedures can be used to prove inconsistency, by using false as the query.