TERMINATOR

Grigoris Antoniou, Hans Jürgen OhlbachIJCAI 1983

Abstract

The TERMINATOR module is a high-speed "pre-theorem prover" designed to find unit refutations—chains of simple logical steps that lead to a contradiction—within large logic graphs. By shifting from a recursive search to a data-driven approach that caches intermediate results and utilizes a novel "P-representation" for substitutions, it reduces a traditionally exponential search problem to near-linear complexity in practical applications.

Introduction

In the field of Automated Theorem Proving (ATP), researchers utilize "connection graphs" to represent logical formulas and the potential links between them. Proving a theorem necessitates finding a "refutation"—a path through this graph demonstrating that the initial assumptions are unsatisfiable.

A specific challenge in this domain is the efficient identification of unit refutations. These are proofs derived using only "unit clauses" (statements containing a single literal). While unit refutations are structurally simpler than general proofs, finding them within a massive graph remains a significant computational challenge. Previous algorithms were often too slow due to redundant calculations or too memory-intensive for large-scale problems. TERMINATOR was developed as a high-speed module to scan graphs and extract these proofs before more computationally expensive main provers are engaged.

Methodology

The TERMINATOR algorithm departs from traditional recursive techniques through three primary innovations:

  1. Directional Shift: Instead of working from the "inside" of a potential proof tree outward, the algorithm works from the "leaves" (the simple unit clauses) inward.
  2. Memoization: Unlike its predecessors, TERMINATOR stores every intermediate result it generates. This ensures that no part of the clause graph is examined more than once, solving the efficiency bottleneck of previous recursive attempts.
  3. Advanced Data Structures:
    • T-representation: Substitutions are stored in a fixed-order table based on the variables in a clause, allowing for faster indexing.
  4. P-representation (Pointer-representation): This core innovation stores equal terms only once and uses pointers to link unifiable terms across different sets of substitutions. This allows the system to "merge" massive sets of substitutions without performing exhaustive $O(n \times m)$ comparisons.
The P-representation illustrating how terms are linked across substitution sets.

The authors identified that the primary bottleneck in theorem proving is often the "compatibility test"—checking if two sets of variable substitutions can work together. By using the P-representation, the algorithm exploits structural sharing, avoiding redundant unification work.

Logical predicates and associated substitution sets.

Evaluation and Results

The performance of TERMINATOR was evaluated on classic logic benchmarks, most notably SAM’s Lemma, a well-known problem in automated reasoning that served as a milestone for early theorem provers.

The algorithm successfully transformed a prohibitively expensive exhaustive search into an efficient extraction process. On the SAM’s Lemma benchmark, previous automated provers required deducing approximately 22,000 clauses to find a proof. With the TERMINATOR module integrated, the system identified the proof after generating only 190 unit clauses. This efficiency gain allowed the search limit to be extended from a single level ($n=1$) to multi-level ($n$-level) searches.

Discussion and Conclusion

TERMINATOR acts as a "scout" strategy rather than a replacement for the main theorem prover. It is invoked at the start and periodically during the search to determine if a quick unit proof has become available due to new information.

While the theoretical worst-case complexity for these types of merges is high, empirical results demonstrate that the P-representation approach behaves near-linearly in most practical scenarios. Future work may involve improving the "valuation" of unit clauses to further prune the search space, guiding the algorithm toward more promising logical paths.

Summary updated

BibTeX
@inproceedings{antoniou1983terminator,
  author = {Grigoris Antoniou and Hans Jürgen Ohlbach},
  title = {{TERMINATOR}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1983},
}
Figure