Repository navigation
PyProver 1.0.0
A complete rewrite of PyProver in idiomatic Coconut.
- A sound prover. The old resolution engine accepted invalid inferences (e.g.
∀x, P(x) ∨ Q(x) ⊢ (∀x, P(x)) ∨ (∀x, Q(x))) and could hang (#6). The new prover combines resolution with superposition-based equality reasoning, which is refutationally complete. It also runs a SAT-based finite countermodel search, which always decides function-free problems. It proves 21 of the classic Pelletier problems. - Proof objects.
prove()returns aProofwith a printable resolution refutation, a proof tree, Graphviz output, and countermodels for failed proofs (#2). - A new parser. It accepts more notations, gives error messages that point at the problem, and has no dependencies.
- A
pyprovercommand-line tool. - Full documentation in the README (#5).
- No dependencies; requires Python 3.10+.
Breaking changes:
Impis binary, thoughImp(a, b, c)still meansa → (b → c).iff()returns anIffformula.- In strict mode (a possibly empty universe), free constants are taken to refer to something.