nltk.inference.prover9 module¶
A theorem prover that makes use of the external ‘Prover9’ package.
- class nltk.inference.prover9.Prover9[source]¶
Bases:
Prover9Parent
,Prover
- class nltk.inference.prover9.Prover9Command[source]¶
Bases:
Prover9CommandParent
,BaseProverCommand
A
ProverCommand
specific to theProver9
prover. It contains the a print_assumptions() method that is used to print the list of assumptions in multiple formats.- __init__(goal=None, assumptions=None, timeout=60, prover=None)[source]¶
- Parameters:
goal (sem.Expression) – Input expression to prove
assumptions (list(sem.Expression)) – Input expressions to use as assumptions in the proof.
timeout (int) – number of seconds before timeout; set to 0 for no timeout.
prover (Prover9) – a prover. If not set, one will be created.
- class nltk.inference.prover9.Prover9CommandParent[source]¶
Bases:
object
A common base class used by both
Prover9Command
andMaceCommand
, which is responsible for maintaining a goal and a set of assumptions, and generating prover9-style input files from them.
- exception nltk.inference.prover9.Prover9FatalException[source]¶
Bases:
Prover9Exception
- exception nltk.inference.prover9.Prover9LimitExceededException[source]¶
Bases:
Prover9Exception
- class nltk.inference.prover9.Prover9Parent[source]¶
Bases:
object
A common class extended by both
Prover9
andMace <mace.Mace>
. It contains the functionality required to convert NLTK-style expressions into Prover9-style expressions.