Theorem Proving in Type Theory

Peter B. Andrews, Eve Longini CohenIJCAI 1977

Introduction

In the mid-1970s, the field of automated theorem proving was primarily dominated by First-Order Logic (FOL). While FOL provided a robust framework for many logical problems, it often proved cumbersome for expressing the nuances of higher-level mathematics. This paper details a pioneering effort at Carnegie-Mellon University to bridge this gap by automating theorem proving in Type Theory (higher-order logic), specifically using Church’s formulation based on the $\lambda$-calculus. By integrating Peter Andrews’ "mating method" with Gerard Huet’s unification algorithm, the authors developed a system capable of deriving complex proofs that require the "creative" invention of new sets and functions.

The Challenge of Higher-Order Unification

The transition from FOL to Type Theory introduces a significant theoretical hurdle: higher-order unification. In FOL, unification typically involves substituting variables for constants or other variables. In Type Theory, however, the computer must often "invent" a specific predicate or function—a complex substitution for a variable—to complete a proof. This requirement represents a fundamental bottleneck in automated reasoning, as there was previously no general method for automatically generating the substitutions that constitute the core "ideas" of a mathematical proof.

Methodology

The system operates through a dual-mode approach, offering both automatic and interactive capabilities. The architecture is built upon four key pillars:

  1. The Mating Method: To avoid the combinatorial explosion often associated with standard resolution, the program searches for an "acceptable mating." This involves pairing literals in a formula to demonstrate its unsatisfiability.
  2. Huet’s Unification Algorithm: The system utilizes Huet’s algorithm for $\omega$-order unification to handle the $\lambda$-expressions inherent in Type Theory. This allows the program to find valid substitutions for higher-order variables.
  3. Parallel Search Strategy: The program executes two semi-decision procedures in parallel: one searching for potential matings and another searching for unifying substitutions. These processes share information dynamically to prune the search trees of their counterparts.
  4. Refutation Construction: Once a valid mating is identified, the system translates the result back into a traditional formal proof (refutation) using rules such as substitution and ground resolution.

Evaluation and Benchmarks

As a theoretical contribution from 1976, the system was evaluated against classic benchmarks in mathematical logic rather than modern datasets. Key tests included:

  • Cantor’s Theorem: The proof that the power set of a set has a strictly greater cardinality than the set itself.
  • The Axiom of Choice (AC): Proving various consequences of AC, such as the existence of selection functions.
  • First-Order Logic Sentences: These were used to ensure the system remained complete and efficient when scaled down to simpler logical structures.

Key Insights and Results

A significant achievement of the system was the automated discovery of the diagonal argument in Cantor’s Theorem. To prove this theorem, a human must typically construct a set of elements that are not members of the sets they are mapped to. The program successfully discovered the necessary $\lambda$-expression—[λxj . ~H X X]—representing this diagonal set without human intervention.

Furthermore, the authors observed that Type Theory’s syntactic explicitness—making clear distinctions between numbers, functions, and sets—actually aids the computer in navigating logical spaces more effectively than untyped systems. While the system is logically complete in its interactive mode (where a human can provide difficult substitutions), the authors acknowledge a "completeness gap" in automatic mode. Because the search space for higher-order substitutions is infinite and often lacks a "most general" solution, some proofs remain beyond the reach of fully automated search.

Limitations and Future Directions

The primary limitation remains the substitution bottleneck. Generating substitutions for predicate variables often requires a level of mathematical intuition that is difficult to codify. While the system successfully proved Cantor’s Theorem for sets and functions on non-unit sets, it still struggles to "invent" the complex concepts required for more advanced proofs without specific heuristics or human guidance.

Future work points toward the development of more sophisticated heuristics to guide the search for substitutions. The goal is to move beyond brute-force search and toward teaching machines how to identify the specific mathematical objects necessary to bridge logical gaps in higher-order proofs.

Summary updated

BibTeX
@inproceedings{andrews1977theorem,
  author = {Peter B. Andrews and Eve Longini Cohen},
  title = {{Theorem Proving in Type Theory}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1977},
}
Figure