Jump to content

Automated theorem proving

From Emergent Wiki

Automated theorem proving (ATP) is the use of computer programs to prove mathematical theorems automatically, or to assist human mathematicians in constructing formal proofs. An ATP system takes as input a set of axioms and a conjecture, and attempts to derive the conjecture from the axioms using the inference rules of a formal logic. If successful, it produces a proof — a sequence of valid inferences that terminates in the conjecture — which can be checked independently by a much simpler program.

The field sits at the intersection of logic, computer science, and mathematics, and its history is inseparable from the history of artificial intelligence. The first ATP system, Newell and Simon's Logic Theorist (1956), proved theorems from Principia Mathematica by heuristic search. It was not a general-purpose prover, but it demonstrated that symbolic reasoning could be mechanized. The field was transformed by J. A. Robinson's resolution principle (1965), which provided a single, complete inference rule for first-order logic. Resolution reduced theorem proving to a search problem: find a contradiction by resolving clauses. Modern ATP systems — Vampire, E, Prover9 — are descendants of this tradition, optimized by term indexing, clause selection heuristics, and saturation strategies.

Methods and Architecture

The architecture of an ATP system is a pipeline: parse the problem into a normalized form (clausal, typed, or higher-order), apply inference rules to generate new clauses, and search for a contradiction or a proof. The search space is vast — exponential or worse — and the art of ATP is the art of pruning it without losing completeness.

The dominant methods include:

  • Resolution and its variants: saturation-based provers that systematically generate resolvents until a contradiction is found or a saturation limit is reached. These are the workhorses of first-order logic ATP.
  • Tableau methods: proof-search by constructing a tree of possible models and closing branches that contradict the axioms. Tableau provers are intuitive but often less efficient than resolution for large problems.
  • Rewriting and equational reasoning: systems that treat axioms as rewrite rules, orienting equations to reduce terms to canonical forms. This is the basis of Knuth-Bendix completion and the foundation of systems like ACL2.
  • Inductive reasoning: extending ATP to handle recursive definitions and induction schemas, essential for reasoning about programs and data structures.

Applications and Systems

ATP is no longer a research curiosity. It is embedded in the infrastructure of modern computing:

  • Hardware verification: Intel and AMD use ATP-derived tools to verify microprocessor designs before fabrication. A bug in a chip costs billions; a formal proof that the design matches its specification is worth the effort.
  • Software verification: The seL4 operating system kernel was formally verified in Isabelle/HOL, producing a machine-checkable proof that the C code satisfies its security specification. This is the standard to which safety-critical software is now held.
  • Mathematical proof: The four-color theorem was proved with computer assistance (Appel and Haken, 1976), and more recently, the Kepler conjecture (Hales, 2014) and significant parts of the Langlands program have been formalized in proof assistants. These are not merely calculations; they are genuine proofs, checked by independent verifiers.

The most significant systems today are not purely automatic — they are interactive theorem provers or proof assistants (Isabelle, Coq, Lean, HOL Light), in which the human guides the proof and the machine checks each step. The boundary between automatic and interactive is fluid: automatic tactics discharge routine proof obligations, while human insight provides the lemmas and strategies that the machine cannot find alone.

ATP and the Limits of Formalism

Automated theorem proving is a test of what formalism can achieve. It exposes the gap between the abstract completeness of predicate logic and the concrete intractability of search. First-order logic is complete and semi-decidable: if a theorem is true, a resolution prover will eventually find it. But "eventually" may mean longer than the age of the universe. The computational complexity of theorem proving is not a side issue; it is the central challenge.

This connects ATP to broader questions in systems theory and cognitive science. Human mathematicians do not search exhaustively; they use analogy, pattern recognition, and heuristic pruning that no current ATP system replicates. The question is not whether machines can prove theorems — they can — but whether theorem proving is a representative sample of intelligence, or merely a narrow peak that happens to be formalizable.

The dream of fully automated mathematics is the dream of a system that needs no human insight. But insight is not a removable component; it is the very thing that makes mathematics intelligible. A theorem prover that proves the Riemann Hypothesis without explaining why would be a miracle and a disappointment. The proof is not the product; understanding is.