Abstract
This seminal paper establishes the completeness of the "Negation as Failure" (NAF) rule for Horn clause logic programs. While previous work by Keith Clark demonstrated the soundness of NAF—showing that finite failure implies logical falsehood under a program's completion—this work proves the converse. It demonstrates that if a statement is logically false according to the completion of a program, a fair interpreter will always eventually fail to prove it. This result provides a rigorous mathematical foundation for how logic programs handle negative information.
Introduction
In classical logic programming, such as Prolog, systems are highly effective at proving positive statements through SLD-resolution. However, proving that a statement is false presents a significant challenge. Standard logic programs consisting of Horn clauses are always satisfiable, meaning there is always a mathematical model where every rule in the program holds true. Consequently, one cannot technically prove a negation (¬A) simply by inspecting the rules.
To address this, researchers adopted the Negation as Failure rule: if an interpreter exhausts every possible path to prove A and all paths fail in finite time, we conclude that ¬A is true. While this was known to be sound, the community lacked proof of its completeness: is the computer guaranteed to fail and inform us if something is logically false? This paper confirms that for Horn clause programs, the answer is yes.
Methods and Theoretical Framework
The authors employ a rigorous mathematical proof targeting the contrapositive: they show that "No Finite Failure implies Logical Consistency." This approach required moving beyond standard Herbrand models, which use the program's own terms as the domain, as they were insufficient for this proof.
Constructing the Domain
The proof relies on constructing a custom domain of interpretation based on equivalence classes of terms. The authors utilized a system of rewrites to manage the interactions between variables and functions. A key component of this framework is ensuring properties like the Church-Rosser property, which allows for consistent reduction of terms.
Inductive Proof and Fixed-Point Theory
The core of the completeness theorem involves an inductive argument. The authors generalized the $T_P$ operator—a mathematical mapping used to define the semantics of a program—and applied the Knaster-Tarski fixed-point theorem to prove that a model for a statement A exists if the program does not fail to prove it.
Key Insights
- The Role of Completion: Clark's "completion" ($comp(P)$) transforms a program's "if" rules into "if and only if" statements. This paper proves that NAF perfectly tracks the logic of this completion.
- Mandatory Fairness: The proof assumes a "fair" computation rule. This ensures the interpreter does not get trapped in an infinite loop on one branch of a proof tree if another branch could lead to finite failure.
- Beyond Herbrand Models: The critical breakthrough was the realization that proving completeness required looking at more complex domains of interpretation to find models that simpler methods overlooked.
Results and Impact
The paper formally proves the Completeness Theorem: for any ground atom A, A is in the finite failure set of program P if and only if ¬A is a logical consequence of the completion of P. Furthermore, it demonstrates that various definitions of "failure" are equivalent, provided the search algorithm is fair.
This result transitioned NAF from a heuristic "hack" used in early AI systems to a mathematically sound and complete logical inference rule. It solidified the theoretical underpinnings of logic programming languages.
Limitations
Despite its significance, the proof is limited to Horn clause programs. In "General Programs," where negations can appear in the bodies of rules, the converse of this result does not necessarily hold. Additionally, while the theorem requires a fair interpreter, many practical implementations (like standard Prolog) use depth-first search, which is not fair and may still encounter infinite loops in practice.
Summary updated