Introduction
In the early 1970s, the verification of computer programs was a nascent field facing a significant hurdle: the "induction gap." While recursive functions were a natural way to express algorithms, particularly in languages like LISP, proving their correctness required mathematical induction—a process that was notoriously difficult to automate. In their seminal work, Boyer and Moore presented a system capable of proving properties of pure LISP functions without human intervention, relying on symbolic evaluation and a suite of powerful heuristics.
The Problem of Automated Induction
The core challenge addressed by Boyer and Moore is the automation of structural induction. When a human mathematician proves a theorem about a recursive function, they must decide which variable to induct upon and how to formulate an induction hypothesis that is strong enough to support the proof. For a machine, these decisions are non-trivial. A theorem prover must not only simplify expressions but also recognize when a specific case requires a recursive step and how to generalize a specific property into a broader, more provable form.
System Architecture and Methodology
The Boyer-Moore theorem prover operates through a combination of symbolic evaluation and a structured control loop. Unlike a standard LISP interpreter that evaluates expressions to concrete values, this system employs several specialized subroutines:
Symbolic EVAL and the BOMBLIST
The system utilizes a symbolic EVAL function that processes "Skolem constants"—placeholders representing arbitrary lists or atoms. When EVAL encounters a conditional expression (like an IF or COND) where the outcome depends on the internal structure of a Skolem constant, it cannot proceed. Rather than failing, the system records these points of failure in a data structure known as the BOMBLIST. This list serves as a diagnostic tool, identifying which variables are the primary candidates for induction.
Structural Induction
Using the BOMBLIST, the system selects a variable and generates two cases:
- The Base Case (NIL case): The theorem is tested with the variable set to an empty structure.
- The Inductive Step (CONS case): The system assumes the theorem holds for a smaller structure and attempts to prove it for a larger one (e.g., a list with an additional element).
Heuristics for Proof Discovery
The system’s success relies on three primary heuristics that guide the proof process:
- Rewrite Rules: Subroutines like
NORMALIZEandREDUCEapply standard LISP identities (e.g., simplifying(CAR (CONS A B))toA) to prune the search space. - Fertilization: This technique involves using the induction hypothesis to "cross-fertilize" the induction conclusion. By substituting parts of the goal with simpler terms derived from the hypothesis, the system can often bridge the gap between the recursive step and the base case.
- Generalization: Counter-intuitively, proving a more general version of a theorem is often easier than proving a specific instance. The system identifies common sub-expressions and replaces them with new variables, strengthening the induction hypothesis and making the recursive step more robust.
Evaluation and Results
The authors evaluated their system using a library of recursive functions, including standard list operations such as APPEND, REVERSE, MEMBER, and SORT. The test suite consisted of over 80 theorems, ranging from basic identities to complex properties of sorting algorithms.
The results demonstrated that the system could independently prove non-trivial theorems, such as the associativity of APPEND and the fact that reversing a list twice yields the original list. On an ICL 4130 computer, the program averaged approximately 8 seconds per proof. Crucially, the system required no human-provided lemmas or hints, representing a significant step forward in fully autonomous formal verification.
Discussion and Limitations
While groundbreaking, the Boyer-Moore prover was limited to "pure" LISP, meaning it could not reason about functions with side effects (e.g., SETQ or RPLACA). Additionally, the authors noted that identifying the optimal "type" for a recursive function to aid generalization is an undecidable problem, necessitating the use of heuristics that, while effective, are not guaranteed to succeed in all cases. Finally, the initial version of the system did not store previously proved theorems as lemmas, leading it to re-derive basic facts during more complex proofs.
Despite these limitations, the work established a foundation for modern automated reasoning, demonstrating that symbolic evaluation and clever heuristics could overcome the "induction gap" in program verification.
Summary updated