Prover9


Prover9 is an automated theorem prover for first-order and equational logic developed by William McCune.

Description

Prover9 is the successor of the Otter theorem prover also developed by William McCune. Prover9 is noted for producing relatively readable proofs and having a powerful hints strategy.
Prover9 is intentionally paired with Mace4, which searches for finite models and counterexamples. Both can be run simultaneously from the same input, with Prover9 attempting to find a proof, while Mace4 attempts to find a counter-example. Prover9, Mace4, and many other tools are built on an underlying library named LADR to simplify implementation. Resulting proofs can be double-checked by Ivy, a proof-checking tool that has been separately verified using ACL2.
In July 2006 the LADR/Prover9/Mace4 input language made a major change. The key distinction between "clauses" and "formulas" completely disappeared; "formulas" can now have free variables; and "clauses" are now a subset of "formulas". Prover9/Mace4 also supports a "goal" type of formula, which is automatically negated for proof. Prover9 attempts to automatically generate a proof by default; in contrast, Otter's automatic mode must be explicitly set.
Prover9 was under active development, with new releases every month or every other month, until 2009. Prover9 is free software, and therefore, open source software; it is released under GPL version 2 or later.

Examples

Socrates

The traditional "all men are mortal", "Socrates is a man", prove "Socrates is mortal" can be expressed this way in Prover9:
formulas.
man -> mortal. % open formula with free variable x
man.
end_of_list.
formulas.
mortal.
end_of_list.
This will be automatically converted into clausal form :
formulas.
-man | mortal.
man.
-mortal.
end_of_list.

Square root of 2 is irrational

A proof that the square root of 2 is irrational can be expressed this way:
formulas.
1*x = x. % identity
x*y = y*x. % commutativity
x* = *z. % associativity
-> y = z. % cancellation.
%
% Now let's define divides: x divides y.
% Example: divides is true b/c 2*3=6.
%
divides <->.
divides -> divides. % If 2 divides x*x, it divides x.
a*a = 2*. % a/b = sqrt, so a^2 = 2 * b^2.
-> - &
divides). % a/b is in lowest terms
2 != 1. % Original author almost forgot this.
end_of_list.