Package nltk :: Package inference :: Module api :: Class ProverCommand
[hide private]
[frames] | no frames]

type ProverCommand

source code

        object --+    
                 |    
TheoremToolCommand --+
                     |
                    ProverCommand
Known Subclasses:

This class holds a Prover, a goal, and a list of assumptions. When prove() is called, the Prover is executed with the goal and assumptions.

Instance Methods [hide private]
 
prove(self, verbose=False)
Perform the actual proof.
source code
 
proof(self, simplify=True)
Return the proof string
source code
 
get_prover(self)
Return the prover object
source code

Inherited from TheoremToolCommand: add_assumptions, assumptions, goal, print_assumptions, retract_assumptions

Method Details [hide private]

proof(self, simplify=True)

source code 

Return the proof string

Parameters:
  • simplify - boolean simplify the proof?
Returns:
str

get_prover(self)

source code 

Return the prover object

Returns:
Prover