Automated Theorem Proving

Research
Introduced by
John Alan Robinson
Year
1965
Type
Automated deduction technique
Family
Logic and Reasoning

What does it do?

Automated Theorem Proving (ATP) is the area of automated reasoning concerned with having a program establish that a formal conclusion follows from formal axioms.

The resolution principle, introduced by John Alan Robinson in 1965, is a foundational inference method for first-order clause logic. ATP is used in formal software and hardware verification and in formal mathematics, and it is related to, but distinct from, SAT and SMT solving.

The intuition behind the method

A mathematical claim is first written as logical formulas: a set of axioms and a goal. The prover then tries to show that the axioms together with the negation of the goal cannot all hold. Resolution does this by repeatedly combining two clauses that contain complementary literals into a new clause, until the empty clause, which represents a contradiction, appears or no new clauses can be generated. The difficulty is that the number of generated clauses can grow quickly, so practical provers use heuristics to choose which clauses to combine and to discard redundant ones.

History

John Alan Robinson's 1965 paper introduced the resolution principle, an inference rule for first-order clauses combined with unification for matching literals. Resolution became the basis for many later first-order provers, which refined search strategies and clause-handling techniques on that foundation.

When to use it

Choose ATP when the problem can be stated as first-order logic with a clear axiomatisation and the question is whether a conclusion follows from stated premises, for example checking a lemma against its axioms. It suits cases where a derivation is wanted, not just a verdict for a fixed finite model. Do not choose ATP for large propositional problems, where SAT solvers are usually the appropriate tool; for problems that depend on background theories such as arithmetic, where SMT solvers (for example Z3 or CVC5) are designed for that purpose; or for higher-order reasoning and guided induction, where interactive proof assistants such as Coq or Isabelle are more suitable.

Limitations and considerations

  • Undecidability: first-order validity is only semi-decidable, so on a non-theorem the search may never stop, and a bound on time or steps is needed.
  • Search explosion: the number of generated clauses can grow rapidly, and many provable theorems stay out of reach without restricting the search or supplying lemmas.
  • First-order scope: higher-order constructs and induction schemas are not directly expressible and require extra encoding or other tools.
  • Sensitivity to axiomatisation: omitting a needed axiom makes a true goal unprovable, while redundant axioms enlarge the clause set the search must process.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Automation: once a problem is written as first-order clauses, the search runs without interactive guidance.
  • Refutation completeness: resolution with a fair search strategy derives the empty clause from any unsatisfiable set of clauses, so a valid first-order theorem is eventually proved given enough time and memory.
  • Proof by contradiction is built in: the negated goal is added as a clause and the prover looks for a refutation.
  • Search components such as clause selection and redundancy elimination can be changed without altering the underlying logic.

Applications

  • Software verification: checking that programs or algorithms satisfy stated properties expressed as logical formulas.
  • Hardware verification: checking that a design meets a specification written as logical formulas.
  • Formal mathematics: deriving lemmas from axioms in formalised mathematical theories.
  • Knowledge bases: deriving consequences from a set of logical facts and rules.

How it works

How it works

1

Translate the axioms and the negated goal into clause normal form: a set of clauses, each a disjunction of literals, read as a conjunction. Quantifiers are removed during this translation, which preserves satisfiability.

2

Apply the resolution inference rule. From clauses C1 ∨ A and C2 ∨ ¬A, where A and ¬A are complementary literals (after unification when the literals contain variables), add the resolvent C1 ∨ C2 to the clause set. Redundant clauses, such as those subsumed by others, may then be removed.

3

If the empty clause is derived, the clause set is unsatisfiable, so the negated goal cannot hold and the original goal follows from the axioms. The parent links recorded during resolution make it possible to read a refutation, and hence a proof, from the derivation; the presentation of the proof depends on the implementation.

4

A derivation of the empty clause means the goal was proved. If the search saturates, meaning that no new clauses can be generated, without producing the empty clause, then under a fair search strategy the clause set is satisfiable: the axioms together with the negated goal are consistent, so the goal is not derivable from those axioms. For a non-theorem the search may not terminate, so a time or step limit is needed in practice. If that limit is reached, the outcome is inconclusive: the goal is neither proved nor refuted. Report the outcome together with the limit used and the time and memory consumed.

Common pitfalls

  • Ambiguous or incorrect formalisation: the prover works with the formulas exactly as written, so an error in a translated axiom can lead to a proof of the wrong conclusion or to no proof at all.
  • Irrelevant axioms: including unneeded axioms adds clauses the search must process, which often slows it down.
  • Treating a time-out as a negative answer: failure to find a proof within a limit does not show that the goal is false.
  • Confusing ATP with SMT: first-order provers reason with quantifiers and uninterpreted symbols, whereas SMT solvers decide formulas within specific background theories such as arithmetic.

Frequently asked questions

What is the resolution principle and why is it complete?

Resolution takes two clauses that contain complementary literals, such as A ∨ B and ¬B ∨ C, and infers the resolvent A ∨ C. To prove a goal, the negated goal is added to the axioms and clauses are resolved until the empty clause appears. Completeness means that, under a fair search strategy, every unsatisfiable set of clauses eventually yields the empty clause, so a valid first-order theorem is eventually proved. This guarantee holds only with unlimited time and memory, not within a fixed budget. It applies only to refutation of unsatisfiable clause sets, that is, to theorems. It does not mean that a non-theorem can be shown false: on a non-theorem the search may never terminate, and this method does not in general give a proof that the goal fails.

What is CNF and why is it needed?

Conjunctive normal form (CNF) is a conjunction of clauses, each a disjunction of literals. Resolution is defined on clauses, so provers convert formulas to clause form first. When the conversion introduces new symbols, the resulting clause set preserves satisfiability but is not logically equivalent to the original formula.

How do I formalize a mathematical theorem for ATP?

Identify the premises (axioms), the theorem goal, and the logical connectives. Use first-order predicate logic: universal (∀) and existential (∃) quantifiers, atomic formulas such as p(x), negation (¬), and logical operators (∧, ∨, →). See the TPTP library for examples.

Why is ATP slow on some theorems?

For many formulas the clause set grows rapidly before a contradiction is found. Clause selection heuristics, such as preferring shorter clauses, reduce wasted inferences, but hard problems can remain out of reach. Supplying helpful lemmas or selecting only the relevant axioms often helps.

Where can I find test problems, and what should I record for a run?

The TPTP library, referred to above, provides first-order problems and examples of formalised axioms and goals that can be used for testing. When reporting a run, record the problem, the prover and its strategy settings, the outcome (proof found, saturated without a proof, or limit reached), and the time and memory used.

Sources

  1. Robinson, J. A. (1965). A machine-oriented logic based on the resolution principle. Journal of the ACM, 12(1), 23–41.

    Open DOI reference
  2. Fitting, M. (1996). First-Order Logic and Automated Theorem Proving (2nd ed.). Springer.

    Open DOI reference
  3. Nieuwenhuis, R., Oliveras, A., & Tinelli, C. (2006). Solving SAT and SAT modulo theories: From an abstract Davis–Putnam–Logemann–Loveland procedure to DPLL(T). Journal of the ACM, 53(6), 937–977.

    Open DOI reference