Prover9 Manual | Version 2009-02A |
In one important case, formulas have different meanings in Prover9 and Mace4:If a formula contains constants that are natural-numbers, {0,1,...}, Mace4 assumes they are members of the domain of some structure, that is, they are distinct objects; in effect, Mace4 operates under the assumptions 0 ≠ 1, 0 ≠ 2, ... .
To Prover9, natural numbers are just ordinary constants. For example, to Prover9 the statement 0=1 is satisfiable, and to Mace4 it is unsatisfiable.
Because Mace4 assumes that natural-number constants are members of the domain, if a formula contains a natural number that is out of range (≥ n), when searching for a structure of size n), Mace4 will terminate its search for size n (and continue with larger sizes if the specification says to do so).
An Exception. When the flag arithmetic is set, natural numbers outside of {0,1,...,n-1} can occur.
Mace4 accepts any lists of formulas. All are treated as ordinary formulas except the following two lists.
When there are multiple goals, Mace handles them the same as Prover9. For example, consider the following goals.
formulas(goals). x * y = y * x # label(commutativity). (x * y) * z = x * (y * z) # label(associativity). end_of_list.Logically, this is a disjunction: Prover9 gives a proof if either goal is proved, and Mace4 gives a counterexample if both are falsified. In particular, this pair of goals is equivalent (for both Prover9 and Mace4) to the following pair of assumptions.
formulas(assumptions). exists x exists y (x * y != y * x). exists x exists y exists z (x * y) * z != x * (y * z). end_of_list.
list(distinct). [a,b,c]. % equivalent to (a!=b & a!=c & b!=c). [d,e,f(a)]. % equivalent to (d!=e & d!=f(a) & e!=f(a)). end_of_list.Although list(distinct) will probably be used mostly for constants and other ground terms, terms with variables can occur.